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 static native void init(java.lang.Class c);
42 static native void init_class_cache();
43 static native String get_lib_version_string();
45 public static native String get_ldk_c_bindings_version();
46 public static native String get_ldk_version();
48 static { BlindedFailure.values(); /* Force enum statics to run */ }
49 static { Bolt11SemanticError.values(); /* Force enum statics to run */ }
50 static { Bolt12SemanticError.values(); /* Force enum statics to run */ }
51 static { COption_NoneZ.values(); /* Force enum statics to run */ }
52 static { ChannelMonitorUpdateStatus.values(); /* Force enum statics to run */ }
53 static { ChannelShutdownState.values(); /* Force enum statics to run */ }
54 static { ConfirmationTarget.values(); /* Force enum statics to run */ }
55 static { CreationError.values(); /* Force enum statics to run */ }
56 static { Currency.values(); /* Force enum statics to run */ }
57 static { HTLCClaim.values(); /* Force enum statics to run */ }
58 static { IOError.values(); /* Force enum statics to run */ }
59 static { Level.values(); /* Force enum statics to run */ }
60 static { Network.values(); /* Force enum statics to run */ }
61 static { PaymentFailureReason.values(); /* Force enum statics to run */ }
62 static { Recipient.values(); /* Force enum statics to run */ }
63 static { RetryableSendFailure.values(); /* Force enum statics to run */ }
64 static { Secp256k1Error.values(); /* Force enum statics to run */ }
65 static { SiPrefix.values(); /* Force enum statics to run */ }
66 static { SocketAddressParseError.values(); /* Force enum statics to run */ }
67 static { UtxoLookupError.values(); /* Force enum statics to run */ }
68 // struct LDKThirtyTwoBytes BigEndianScalar_get_bytes (struct LDKBigEndianScalar* thing)
69 public static native byte[] BigEndianScalar_get_bytes(long thing);
70 // static void BigEndianScalar_free (struct LDKBigEndianScalar thing)
71 public static native void BigEndianScalar_free(long thing);
72 public static class LDKBech32Error {
73 private LDKBech32Error() {}
74 public final static class MissingSeparator extends LDKBech32Error {
75 MissingSeparator() { }
77 public final static class InvalidChecksum extends LDKBech32Error {
80 public final static class InvalidLength extends LDKBech32Error {
83 public final static class InvalidChar extends LDKBech32Error {
84 public int invalid_char;
85 InvalidChar(int invalid_char) { this.invalid_char = invalid_char; }
87 public final static class InvalidData extends LDKBech32Error {
88 public byte invalid_data;
89 InvalidData(byte invalid_data) { this.invalid_data = invalid_data; }
91 public final static class InvalidPadding extends LDKBech32Error {
94 public final static class MixedCase extends LDKBech32Error {
97 static native void init();
99 static { LDKBech32Error.init(); }
100 public static native LDKBech32Error LDKBech32Error_ref_from_ptr(long ptr);
101 public static class LDKCOption_u64Z {
102 private LDKCOption_u64Z() {}
103 public final static class Some extends LDKCOption_u64Z {
105 Some(long some) { this.some = some; }
107 public final static class None extends LDKCOption_u64Z {
110 static native void init();
112 static { LDKCOption_u64Z.init(); }
113 public static native LDKCOption_u64Z LDKCOption_u64Z_ref_from_ptr(long ptr);
114 // struct LDKRefund CResult_RefundBolt12ParseErrorZ_get_ok(LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR owner);
115 public static native long CResult_RefundBolt12ParseErrorZ_get_ok(long owner);
116 // struct LDKBolt12ParseError CResult_RefundBolt12ParseErrorZ_get_err(LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR owner);
117 public static native long CResult_RefundBolt12ParseErrorZ_get_err(long owner);
118 public static class LDKRetry {
119 private LDKRetry() {}
120 public final static class Attempts extends LDKRetry {
122 Attempts(int attempts) { this.attempts = attempts; }
124 public final static class Timeout extends LDKRetry {
126 Timeout(long timeout) { this.timeout = timeout; }
128 static native void init();
130 static { LDKRetry.init(); }
131 public static native LDKRetry LDKRetry_ref_from_ptr(long ptr);
132 public static class LDKDecodeError {
133 private LDKDecodeError() {}
134 public final static class UnknownVersion extends LDKDecodeError {
137 public final static class UnknownRequiredFeature extends LDKDecodeError {
138 UnknownRequiredFeature() { }
140 public final static class InvalidValue extends LDKDecodeError {
143 public final static class ShortRead extends LDKDecodeError {
146 public final static class BadLengthDescriptor extends LDKDecodeError {
147 BadLengthDescriptor() { }
149 public final static class Io extends LDKDecodeError {
150 public org.ldk.enums.IOError io;
151 Io(org.ldk.enums.IOError io) { this.io = io; }
153 public final static class UnsupportedCompression extends LDKDecodeError {
154 UnsupportedCompression() { }
156 static native void init();
158 static { LDKDecodeError.init(); }
159 public static native LDKDecodeError LDKDecodeError_ref_from_ptr(long ptr);
160 // struct LDKRetry CResult_RetryDecodeErrorZ_get_ok(LDKCResult_RetryDecodeErrorZ *NONNULL_PTR owner);
161 public static native long CResult_RetryDecodeErrorZ_get_ok(long owner);
162 // struct LDKDecodeError CResult_RetryDecodeErrorZ_get_err(LDKCResult_RetryDecodeErrorZ *NONNULL_PTR owner);
163 public static native long CResult_RetryDecodeErrorZ_get_err(long owner);
164 public static class LDKAPIError {
165 private LDKAPIError() {}
166 public final static class APIMisuseError extends LDKAPIError {
167 public java.lang.String err;
168 APIMisuseError(java.lang.String err) { this.err = err; }
170 public final static class FeeRateTooHigh extends LDKAPIError {
171 public java.lang.String err;
173 FeeRateTooHigh(java.lang.String err, int feerate) { this.err = err; this.feerate = feerate; }
175 public final static class InvalidRoute extends LDKAPIError {
176 public java.lang.String err;
177 InvalidRoute(java.lang.String err) { this.err = err; }
179 public final static class ChannelUnavailable extends LDKAPIError {
180 public java.lang.String err;
181 ChannelUnavailable(java.lang.String err) { this.err = err; }
183 public final static class MonitorUpdateInProgress extends LDKAPIError {
184 MonitorUpdateInProgress() { }
186 public final static class IncompatibleShutdownScript extends LDKAPIError {
188 IncompatibleShutdownScript(long script) { this.script = script; }
190 static native void init();
192 static { LDKAPIError.init(); }
193 public static native LDKAPIError LDKAPIError_ref_from_ptr(long ptr);
194 // void CResult_NoneAPIErrorZ_get_ok(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
195 public static native void CResult_NoneAPIErrorZ_get_ok(long owner);
196 // struct LDKAPIError CResult_NoneAPIErrorZ_get_err(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
197 public static native long CResult_NoneAPIErrorZ_get_err(long owner);
198 public static class LDKCOption_ThirtyTwoBytesZ {
199 private LDKCOption_ThirtyTwoBytesZ() {}
200 public final static class Some extends LDKCOption_ThirtyTwoBytesZ {
202 Some(byte[] some) { this.some = some; }
204 public final static class None extends LDKCOption_ThirtyTwoBytesZ {
207 static native void init();
209 static { LDKCOption_ThirtyTwoBytesZ.init(); }
210 public static native LDKCOption_ThirtyTwoBytesZ LDKCOption_ThirtyTwoBytesZ_ref_from_ptr(long ptr);
211 public static class LDKCOption_CVec_u8ZZ {
212 private LDKCOption_CVec_u8ZZ() {}
213 public final static class Some extends LDKCOption_CVec_u8ZZ {
215 Some(byte[] some) { this.some = some; }
217 public final static class None extends LDKCOption_CVec_u8ZZ {
220 static native void init();
222 static { LDKCOption_CVec_u8ZZ.init(); }
223 public static native LDKCOption_CVec_u8ZZ LDKCOption_CVec_u8ZZ_ref_from_ptr(long ptr);
224 // struct LDKRecipientOnionFields CResult_RecipientOnionFieldsDecodeErrorZ_get_ok(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR owner);
225 public static native long CResult_RecipientOnionFieldsDecodeErrorZ_get_ok(long owner);
226 // struct LDKDecodeError CResult_RecipientOnionFieldsDecodeErrorZ_get_err(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR owner);
227 public static native long CResult_RecipientOnionFieldsDecodeErrorZ_get_err(long owner);
228 // uint64_t C2Tuple_u64CVec_u8ZZ_get_a(LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR owner);
229 public static native long C2Tuple_u64CVec_u8ZZ_get_a(long owner);
230 // struct LDKCVec_u8Z C2Tuple_u64CVec_u8ZZ_get_b(LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR owner);
231 public static native byte[] C2Tuple_u64CVec_u8ZZ_get_b(long owner);
232 // struct LDKRecipientOnionFields CResult_RecipientOnionFieldsNoneZ_get_ok(LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR owner);
233 public static native long CResult_RecipientOnionFieldsNoneZ_get_ok(long owner);
234 // void CResult_RecipientOnionFieldsNoneZ_get_err(LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR owner);
235 public static native void CResult_RecipientOnionFieldsNoneZ_get_err(long owner);
236 public static class LDKCOption_CVec_ThirtyTwoBytesZZ {
237 private LDKCOption_CVec_ThirtyTwoBytesZZ() {}
238 public final static class Some extends LDKCOption_CVec_ThirtyTwoBytesZZ {
239 public byte[][] some;
240 Some(byte[][] some) { this.some = some; }
242 public final static class None extends LDKCOption_CVec_ThirtyTwoBytesZZ {
245 static native void init();
247 static { LDKCOption_CVec_ThirtyTwoBytesZZ.init(); }
248 public static native LDKCOption_CVec_ThirtyTwoBytesZZ LDKCOption_CVec_ThirtyTwoBytesZZ_ref_from_ptr(long ptr);
249 // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesNoneZ_get_ok(LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR owner);
250 public static native byte[] CResult_ThirtyTwoBytesNoneZ_get_ok(long owner);
251 // void CResult_ThirtyTwoBytesNoneZ_get_err(LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR owner);
252 public static native void CResult_ThirtyTwoBytesNoneZ_get_err(long owner);
253 // struct LDKBlindedPayInfo CResult_BlindedPayInfoDecodeErrorZ_get_ok(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR owner);
254 public static native long CResult_BlindedPayInfoDecodeErrorZ_get_ok(long owner);
255 // struct LDKDecodeError CResult_BlindedPayInfoDecodeErrorZ_get_err(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR owner);
256 public static native long CResult_BlindedPayInfoDecodeErrorZ_get_err(long owner);
257 // struct LDKDelayedPaymentOutputDescriptor CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
258 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(long owner);
259 // struct LDKDecodeError CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
260 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(long owner);
261 // struct LDKStaticPaymentOutputDescriptor CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
262 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(long owner);
263 // struct LDKDecodeError CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
264 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(long owner);
265 public static class LDKSpendableOutputDescriptor {
266 private LDKSpendableOutputDescriptor() {}
267 public final static class StaticOutput extends LDKSpendableOutputDescriptor {
268 public long outpoint;
270 public byte[] channel_keys_id;
271 StaticOutput(long outpoint, long output, byte[] channel_keys_id) { this.outpoint = outpoint; this.output = output; this.channel_keys_id = channel_keys_id; }
273 public final static class DelayedPaymentOutput extends LDKSpendableOutputDescriptor {
274 public long delayed_payment_output;
275 DelayedPaymentOutput(long delayed_payment_output) { this.delayed_payment_output = delayed_payment_output; }
277 public final static class StaticPaymentOutput extends LDKSpendableOutputDescriptor {
278 public long static_payment_output;
279 StaticPaymentOutput(long static_payment_output) { this.static_payment_output = static_payment_output; }
281 static native void init();
283 static { LDKSpendableOutputDescriptor.init(); }
284 public static native LDKSpendableOutputDescriptor LDKSpendableOutputDescriptor_ref_from_ptr(long ptr);
285 // struct LDKSpendableOutputDescriptor CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
286 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(long owner);
287 // struct LDKDecodeError CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
288 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(long owner);
289 public static class LDKCOption_u32Z {
290 private LDKCOption_u32Z() {}
291 public final static class Some extends LDKCOption_u32Z {
293 Some(int some) { this.some = some; }
295 public final static class None extends LDKCOption_u32Z {
298 static native void init();
300 static { LDKCOption_u32Z.init(); }
301 public static native LDKCOption_u32Z LDKCOption_u32Z_ref_from_ptr(long ptr);
302 // struct LDKCVec_u8Z C2Tuple_CVec_u8Zu64Z_get_a(LDKC2Tuple_CVec_u8Zu64Z *NONNULL_PTR owner);
303 public static native byte[] C2Tuple_CVec_u8Zu64Z_get_a(long owner);
304 // uint64_t C2Tuple_CVec_u8Zu64Z_get_b(LDKC2Tuple_CVec_u8Zu64Z *NONNULL_PTR owner);
305 public static native long C2Tuple_CVec_u8Zu64Z_get_b(long owner);
306 // struct LDKC2Tuple_CVec_u8Zu64Z CResult_C2Tuple_CVec_u8Zu64ZNoneZ_get_ok(LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ *NONNULL_PTR owner);
307 public static native long CResult_C2Tuple_CVec_u8Zu64ZNoneZ_get_ok(long owner);
308 // void CResult_C2Tuple_CVec_u8Zu64ZNoneZ_get_err(LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ *NONNULL_PTR owner);
309 public static native void CResult_C2Tuple_CVec_u8Zu64ZNoneZ_get_err(long owner);
310 // struct LDKChannelDerivationParameters CResult_ChannelDerivationParametersDecodeErrorZ_get_ok(LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR owner);
311 public static native long CResult_ChannelDerivationParametersDecodeErrorZ_get_ok(long owner);
312 // struct LDKDecodeError CResult_ChannelDerivationParametersDecodeErrorZ_get_err(LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR owner);
313 public static native long CResult_ChannelDerivationParametersDecodeErrorZ_get_err(long owner);
314 // struct LDKHTLCDescriptor CResult_HTLCDescriptorDecodeErrorZ_get_ok(LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR owner);
315 public static native long CResult_HTLCDescriptorDecodeErrorZ_get_ok(long owner);
316 // struct LDKDecodeError CResult_HTLCDescriptorDecodeErrorZ_get_err(LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR owner);
317 public static native long CResult_HTLCDescriptorDecodeErrorZ_get_err(long owner);
318 // void CResult_NoneNoneZ_get_ok(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
319 public static native void CResult_NoneNoneZ_get_ok(long owner);
320 // void CResult_NoneNoneZ_get_err(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
321 public static native void CResult_NoneNoneZ_get_err(long owner);
322 // struct LDKPublicKey CResult_PublicKeyNoneZ_get_ok(LDKCResult_PublicKeyNoneZ *NONNULL_PTR owner);
323 public static native byte[] CResult_PublicKeyNoneZ_get_ok(long owner);
324 // void CResult_PublicKeyNoneZ_get_err(LDKCResult_PublicKeyNoneZ *NONNULL_PTR owner);
325 public static native void CResult_PublicKeyNoneZ_get_err(long owner);
326 public static class LDKCOption_BigEndianScalarZ {
327 private LDKCOption_BigEndianScalarZ() {}
328 public final static class Some extends LDKCOption_BigEndianScalarZ {
330 Some(long some) { this.some = some; }
332 public final static class None extends LDKCOption_BigEndianScalarZ {
335 static native void init();
337 static { LDKCOption_BigEndianScalarZ.init(); }
338 public static native LDKCOption_BigEndianScalarZ LDKCOption_BigEndianScalarZ_ref_from_ptr(long ptr);
339 // struct LDKRecoverableSignature CResult_RecoverableSignatureNoneZ_get_ok(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
340 public static native byte[] CResult_RecoverableSignatureNoneZ_get_ok(long owner);
341 // void CResult_RecoverableSignatureNoneZ_get_err(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
342 public static native void CResult_RecoverableSignatureNoneZ_get_err(long owner);
343 // struct LDKSchnorrSignature CResult_SchnorrSignatureNoneZ_get_ok(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR owner);
344 public static native byte[] CResult_SchnorrSignatureNoneZ_get_ok(long owner);
345 // void CResult_SchnorrSignatureNoneZ_get_err(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR owner);
346 public static native void CResult_SchnorrSignatureNoneZ_get_err(long owner);
347 // struct LDKECDSASignature CResult_ECDSASignatureNoneZ_get_ok(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR owner);
348 public static native byte[] CResult_ECDSASignatureNoneZ_get_ok(long owner);
349 // void CResult_ECDSASignatureNoneZ_get_err(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR owner);
350 public static native void CResult_ECDSASignatureNoneZ_get_err(long owner);
351 // struct LDKECDSASignature C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_a(LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR owner);
352 public static native byte[] C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_a(long owner);
353 // struct LDKCVec_ECDSASignatureZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_b(LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR owner);
354 public static native byte[][] C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_b(long owner);
355 // struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_ok(LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR owner);
356 public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_ok(long owner);
357 // void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_err(LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR owner);
358 public static native void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_get_err(long owner);
359 public interface LDKChannelSigner {
360 byte[] get_per_commitment_point(long idx);
361 byte[] release_commitment_secret(long idx);
362 long validate_holder_commitment(long holder_tx, byte[][] outbound_htlc_preimages);
363 long validate_counterparty_revocation(long idx, byte[] secret);
364 byte[] channel_keys_id();
365 void provide_channel_parameters(long channel_parameters);
367 public static native long LDKChannelSigner_new(LDKChannelSigner impl, long pubkeys);
368 // LDKPublicKey ChannelSigner_get_per_commitment_point LDKChannelSigner *NONNULL_PTR this_arg, uint64_t idx
369 public static native byte[] ChannelSigner_get_per_commitment_point(long this_arg, long idx);
370 // LDKThirtyTwoBytes ChannelSigner_release_commitment_secret LDKChannelSigner *NONNULL_PTR this_arg, uint64_t idx
371 public static native byte[] ChannelSigner_release_commitment_secret(long this_arg, long idx);
372 // LDKCResult_NoneNoneZ ChannelSigner_validate_holder_commitment LDKChannelSigner *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_ThirtyTwoBytesZ outbound_htlc_preimages
373 public static native long ChannelSigner_validate_holder_commitment(long this_arg, long holder_tx, byte[][] outbound_htlc_preimages);
374 // LDKCResult_NoneNoneZ ChannelSigner_validate_counterparty_revocation LDKChannelSigner *NONNULL_PTR this_arg, uint64_t idx, const uint8_t (*secret)[32]
375 public static native long ChannelSigner_validate_counterparty_revocation(long this_arg, long idx, byte[] secret);
376 // LDKThirtyTwoBytes ChannelSigner_channel_keys_id LDKChannelSigner *NONNULL_PTR this_arg
377 public static native byte[] ChannelSigner_channel_keys_id(long this_arg);
378 // void ChannelSigner_provide_channel_parameters LDKChannelSigner *NONNULL_PTR this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
379 public static native void ChannelSigner_provide_channel_parameters(long this_arg, long channel_parameters);
380 // LDKChannelPublicKeys ChannelSigner_get_pubkeys LDKChannelSigner *NONNULL_PTR this_arg
381 public static native long ChannelSigner_get_pubkeys(long this_arg);
382 public interface LDKEcdsaChannelSigner {
383 long sign_counterparty_commitment(long commitment_tx, byte[][] inbound_htlc_preimages, byte[][] outbound_htlc_preimages);
384 long sign_holder_commitment(long commitment_tx);
385 long sign_justice_revoked_output(byte[] justice_tx, long input, long amount, byte[] per_commitment_key);
386 long sign_justice_revoked_htlc(byte[] justice_tx, long input, long amount, byte[] per_commitment_key, long htlc);
387 long sign_holder_htlc_transaction(byte[] htlc_tx, long input, long htlc_descriptor);
388 long sign_counterparty_htlc_transaction(byte[] htlc_tx, long input, long amount, byte[] per_commitment_point, long htlc);
389 long sign_closing_transaction(long closing_tx);
390 long sign_holder_anchor_input(byte[] anchor_tx, long input);
391 long sign_channel_announcement_with_funding_key(long msg);
393 public static native long LDKEcdsaChannelSigner_new(LDKEcdsaChannelSigner impl, LDKChannelSigner ChannelSigner, long pubkeys);
394 public static native long LDKEcdsaChannelSigner_get_ChannelSigner(long arg);
395 // 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
396 public static native long EcdsaChannelSigner_sign_counterparty_commitment(long this_arg, long commitment_tx, byte[][] inbound_htlc_preimages, byte[][] outbound_htlc_preimages);
397 // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_holder_commitment LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
398 public static native long EcdsaChannelSigner_sign_holder_commitment(long this_arg, long commitment_tx);
399 // 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]
400 public static native long EcdsaChannelSigner_sign_justice_revoked_output(long this_arg, byte[] justice_tx, long input, long amount, byte[] per_commitment_key);
401 // 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
402 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);
403 // 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
404 public static native long EcdsaChannelSigner_sign_holder_htlc_transaction(long this_arg, byte[] htlc_tx, long input, long htlc_descriptor);
405 // 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
406 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);
407 // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_closing_transaction LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx
408 public static native long EcdsaChannelSigner_sign_closing_transaction(long this_arg, long closing_tx);
409 // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_holder_anchor_input LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction anchor_tx, uintptr_t input
410 public static native long EcdsaChannelSigner_sign_holder_anchor_input(long this_arg, byte[] anchor_tx, long input);
411 // LDKCResult_ECDSASignatureNoneZ EcdsaChannelSigner_sign_channel_announcement_with_funding_key LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
412 public static native long EcdsaChannelSigner_sign_channel_announcement_with_funding_key(long this_arg, long msg);
413 public interface LDKWriteableEcdsaChannelSigner {
416 public static native long LDKWriteableEcdsaChannelSigner_new(LDKWriteableEcdsaChannelSigner impl, LDKEcdsaChannelSigner EcdsaChannelSigner, LDKChannelSigner ChannelSigner, long pubkeys);
417 public static native long LDKWriteableEcdsaChannelSigner_get_EcdsaChannelSigner(long arg);
418 public static native long LDKWriteableEcdsaChannelSigner_get_ChannelSigner(long arg);
419 // LDKCVec_u8Z WriteableEcdsaChannelSigner_write LDKWriteableEcdsaChannelSigner *NONNULL_PTR this_arg
420 public static native byte[] WriteableEcdsaChannelSigner_write(long this_arg);
421 // struct LDKWriteableEcdsaChannelSigner CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR owner);
422 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok(long owner);
423 // struct LDKDecodeError CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR owner);
424 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err(long owner);
425 // struct LDKCVec_u8Z CResult_CVec_u8ZNoneZ_get_ok(LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR owner);
426 public static native byte[] CResult_CVec_u8ZNoneZ_get_ok(long owner);
427 // void CResult_CVec_u8ZNoneZ_get_err(LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR owner);
428 public static native void CResult_CVec_u8ZNoneZ_get_err(long owner);
429 // struct LDKShutdownScript CResult_ShutdownScriptNoneZ_get_ok(LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR owner);
430 public static native long CResult_ShutdownScriptNoneZ_get_ok(long owner);
431 // void CResult_ShutdownScriptNoneZ_get_err(LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR owner);
432 public static native void CResult_ShutdownScriptNoneZ_get_err(long owner);
433 public static class LDKCOption_u16Z {
434 private LDKCOption_u16Z() {}
435 public final static class Some extends LDKCOption_u16Z {
437 Some(short some) { this.some = some; }
439 public final static class None extends LDKCOption_u16Z {
442 static native void init();
444 static { LDKCOption_u16Z.init(); }
445 public static native LDKCOption_u16Z LDKCOption_u16Z_ref_from_ptr(long ptr);
446 public static class LDKCOption_boolZ {
447 private LDKCOption_boolZ() {}
448 public final static class Some extends LDKCOption_boolZ {
450 Some(boolean some) { this.some = some; }
452 public final static class None extends LDKCOption_boolZ {
455 static native void init();
457 static { LDKCOption_boolZ.init(); }
458 public static native LDKCOption_boolZ LDKCOption_boolZ_ref_from_ptr(long ptr);
459 // struct LDKWitness CResult_WitnessNoneZ_get_ok(LDKCResult_WitnessNoneZ *NONNULL_PTR owner);
460 public static native byte[] CResult_WitnessNoneZ_get_ok(long owner);
461 // void CResult_WitnessNoneZ_get_err(LDKCResult_WitnessNoneZ *NONNULL_PTR owner);
462 public static native void CResult_WitnessNoneZ_get_err(long owner);
463 // struct LDKInMemorySigner CResult_InMemorySignerDecodeErrorZ_get_ok(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
464 public static native long CResult_InMemorySignerDecodeErrorZ_get_ok(long owner);
465 // struct LDKDecodeError CResult_InMemorySignerDecodeErrorZ_get_err(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
466 public static native long CResult_InMemorySignerDecodeErrorZ_get_err(long owner);
467 // struct LDKTransaction CResult_TransactionNoneZ_get_ok(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
468 public static native byte[] CResult_TransactionNoneZ_get_ok(long owner);
469 // void CResult_TransactionNoneZ_get_err(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
470 public static native void CResult_TransactionNoneZ_get_err(long owner);
471 public static class LDKCandidateRouteHop {
472 private LDKCandidateRouteHop() {}
473 public final static class FirstHop extends LDKCandidateRouteHop {
474 public long first_hop;
475 FirstHop(long first_hop) { this.first_hop = first_hop; }
477 public final static class PublicHop extends LDKCandidateRouteHop {
478 public long public_hop;
479 PublicHop(long public_hop) { this.public_hop = public_hop; }
481 public final static class PrivateHop extends LDKCandidateRouteHop {
482 public long private_hop;
483 PrivateHop(long private_hop) { this.private_hop = private_hop; }
485 public final static class Blinded extends LDKCandidateRouteHop {
487 Blinded(long blinded) { this.blinded = blinded; }
489 public final static class OneHopBlinded extends LDKCandidateRouteHop {
490 public long one_hop_blinded;
491 OneHopBlinded(long one_hop_blinded) { this.one_hop_blinded = one_hop_blinded; }
493 static native void init();
495 static { LDKCandidateRouteHop.init(); }
496 public static native LDKCandidateRouteHop LDKCandidateRouteHop_ref_from_ptr(long ptr);
497 public interface LDKScoreLookUp {
498 long channel_penalty_msat(long candidate, long usage, long score_params);
500 public static native long LDKScoreLookUp_new(LDKScoreLookUp impl);
501 // 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
502 public static native long ScoreLookUp_channel_penalty_msat(long this_arg, long candidate, long usage, long score_params);
503 public interface LDKScoreUpdate {
504 void payment_path_failed(long path, long short_channel_id, long duration_since_epoch);
505 void payment_path_successful(long path, long duration_since_epoch);
506 void probe_failed(long path, long short_channel_id, long duration_since_epoch);
507 void probe_successful(long path, long duration_since_epoch);
508 void time_passed(long duration_since_epoch);
510 public static native long LDKScoreUpdate_new(LDKScoreUpdate impl);
511 // 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
512 public static native void ScoreUpdate_payment_path_failed(long this_arg, long path, long short_channel_id, long duration_since_epoch);
513 // void ScoreUpdate_payment_path_successful LDKScoreUpdate *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, uint64_t duration_since_epoch
514 public static native void ScoreUpdate_payment_path_successful(long this_arg, long path, long duration_since_epoch);
515 // 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
516 public static native void ScoreUpdate_probe_failed(long this_arg, long path, long short_channel_id, long duration_since_epoch);
517 // void ScoreUpdate_probe_successful LDKScoreUpdate *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, uint64_t duration_since_epoch
518 public static native void ScoreUpdate_probe_successful(long this_arg, long path, long duration_since_epoch);
519 // void ScoreUpdate_time_passed LDKScoreUpdate *NONNULL_PTR this_arg, uint64_t duration_since_epoch
520 public static native void ScoreUpdate_time_passed(long this_arg, long duration_since_epoch);
521 public interface LDKLockableScore {
525 public static native long LDKLockableScore_new(LDKLockableScore impl);
526 // LDKScoreLookUp LockableScore_read_lock LDKLockableScore *NONNULL_PTR this_arg
527 public static native long LockableScore_read_lock(long this_arg);
528 // LDKScoreUpdate LockableScore_write_lock LDKLockableScore *NONNULL_PTR this_arg
529 public static native long LockableScore_write_lock(long this_arg);
530 public interface LDKWriteableScore {
533 public static native long LDKWriteableScore_new(LDKWriteableScore impl, LDKLockableScore LockableScore);
534 public static native long LDKWriteableScore_get_LockableScore(long arg);
535 // LDKCVec_u8Z WriteableScore_write LDKWriteableScore *NONNULL_PTR this_arg
536 public static native byte[] WriteableScore_write(long this_arg);
537 public static class LDKCOption_WriteableScoreZ {
538 private LDKCOption_WriteableScoreZ() {}
539 public final static class Some extends LDKCOption_WriteableScoreZ {
541 Some(long some) { this.some = some; }
543 public final static class None extends LDKCOption_WriteableScoreZ {
546 static native void init();
548 static { LDKCOption_WriteableScoreZ.init(); }
549 public static native LDKCOption_WriteableScoreZ LDKCOption_WriteableScoreZ_ref_from_ptr(long ptr);
550 // void CResult_NoneIOErrorZ_get_ok(LDKCResult_NoneIOErrorZ *NONNULL_PTR owner);
551 public static native void CResult_NoneIOErrorZ_get_ok(long owner);
552 // enum LDKIOError CResult_NoneIOErrorZ_get_err(LDKCResult_NoneIOErrorZ *NONNULL_PTR owner);
553 public static native IOError CResult_NoneIOErrorZ_get_err(long owner);
554 // struct LDKRoute CResult_RouteLightningErrorZ_get_ok(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
555 public static native long CResult_RouteLightningErrorZ_get_ok(long owner);
556 // struct LDKLightningError CResult_RouteLightningErrorZ_get_err(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
557 public static native long CResult_RouteLightningErrorZ_get_err(long owner);
558 // struct LDKBlindedPayInfo C2Tuple_BlindedPayInfoBlindedPathZ_get_a(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR owner);
559 public static native long C2Tuple_BlindedPayInfoBlindedPathZ_get_a(long owner);
560 // struct LDKBlindedPath C2Tuple_BlindedPayInfoBlindedPathZ_get_b(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR owner);
561 public static native long C2Tuple_BlindedPayInfoBlindedPathZ_get_b(long owner);
562 // struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_get_ok(LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ *NONNULL_PTR owner);
563 public static native long[] CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_get_ok(long owner);
564 // void CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_get_err(LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ *NONNULL_PTR owner);
565 public static native void CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_get_err(long owner);
566 // struct LDKOnionMessagePath CResult_OnionMessagePathNoneZ_get_ok(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR owner);
567 public static native long CResult_OnionMessagePathNoneZ_get_ok(long owner);
568 // void CResult_OnionMessagePathNoneZ_get_err(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR owner);
569 public static native void CResult_OnionMessagePathNoneZ_get_err(long owner);
570 // struct LDKCVec_BlindedPathZ CResult_CVec_BlindedPathZNoneZ_get_ok(LDKCResult_CVec_BlindedPathZNoneZ *NONNULL_PTR owner);
571 public static native long[] CResult_CVec_BlindedPathZNoneZ_get_ok(long owner);
572 // void CResult_CVec_BlindedPathZNoneZ_get_err(LDKCResult_CVec_BlindedPathZNoneZ *NONNULL_PTR owner);
573 public static native void CResult_CVec_BlindedPathZNoneZ_get_err(long owner);
574 // struct LDKInFlightHtlcs CResult_InFlightHtlcsDecodeErrorZ_get_ok(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR owner);
575 public static native long CResult_InFlightHtlcsDecodeErrorZ_get_ok(long owner);
576 // struct LDKDecodeError CResult_InFlightHtlcsDecodeErrorZ_get_err(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR owner);
577 public static native long CResult_InFlightHtlcsDecodeErrorZ_get_err(long owner);
578 // struct LDKRouteHop CResult_RouteHopDecodeErrorZ_get_ok(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
579 public static native long CResult_RouteHopDecodeErrorZ_get_ok(long owner);
580 // struct LDKDecodeError CResult_RouteHopDecodeErrorZ_get_err(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
581 public static native long CResult_RouteHopDecodeErrorZ_get_err(long owner);
582 // struct LDKBlindedTail CResult_BlindedTailDecodeErrorZ_get_ok(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR owner);
583 public static native long CResult_BlindedTailDecodeErrorZ_get_ok(long owner);
584 // struct LDKDecodeError CResult_BlindedTailDecodeErrorZ_get_err(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR owner);
585 public static native long CResult_BlindedTailDecodeErrorZ_get_err(long owner);
586 // struct LDKRoute CResult_RouteDecodeErrorZ_get_ok(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
587 public static native long CResult_RouteDecodeErrorZ_get_ok(long owner);
588 // struct LDKDecodeError CResult_RouteDecodeErrorZ_get_err(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
589 public static native long CResult_RouteDecodeErrorZ_get_err(long owner);
590 // struct LDKRouteParameters CResult_RouteParametersDecodeErrorZ_get_ok(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
591 public static native long CResult_RouteParametersDecodeErrorZ_get_ok(long owner);
592 // struct LDKDecodeError CResult_RouteParametersDecodeErrorZ_get_err(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
593 public static native long CResult_RouteParametersDecodeErrorZ_get_err(long owner);
594 // struct LDKPaymentParameters CResult_PaymentParametersDecodeErrorZ_get_ok(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
595 public static native long CResult_PaymentParametersDecodeErrorZ_get_ok(long owner);
596 // struct LDKDecodeError CResult_PaymentParametersDecodeErrorZ_get_err(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
597 public static native long CResult_PaymentParametersDecodeErrorZ_get_err(long owner);
598 // struct LDKRouteHint CResult_RouteHintDecodeErrorZ_get_ok(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
599 public static native long CResult_RouteHintDecodeErrorZ_get_ok(long owner);
600 // struct LDKDecodeError CResult_RouteHintDecodeErrorZ_get_err(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
601 public static native long CResult_RouteHintDecodeErrorZ_get_err(long owner);
602 // struct LDKRouteHintHop CResult_RouteHintHopDecodeErrorZ_get_ok(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
603 public static native long CResult_RouteHintHopDecodeErrorZ_get_ok(long owner);
604 // struct LDKDecodeError CResult_RouteHintHopDecodeErrorZ_get_err(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
605 public static native long CResult_RouteHintHopDecodeErrorZ_get_err(long owner);
606 // struct LDKFixedPenaltyScorer CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
607 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(long owner);
608 // struct LDKDecodeError CResult_FixedPenaltyScorerDecodeErrorZ_get_err(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
609 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_get_err(long owner);
610 // uint64_t C2Tuple_u64u64Z_get_a(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
611 public static native long C2Tuple_u64u64Z_get_a(long owner);
612 // uint64_t C2Tuple_u64u64Z_get_b(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
613 public static native long C2Tuple_u64u64Z_get_b(long owner);
614 public static class LDKCOption_C2Tuple_u64u64ZZ {
615 private LDKCOption_C2Tuple_u64u64ZZ() {}
616 public final static class Some extends LDKCOption_C2Tuple_u64u64ZZ {
618 Some(long some) { this.some = some; }
620 public final static class None extends LDKCOption_C2Tuple_u64u64ZZ {
623 static native void init();
625 static { LDKCOption_C2Tuple_u64u64ZZ.init(); }
626 public static native LDKCOption_C2Tuple_u64u64ZZ LDKCOption_C2Tuple_u64u64ZZ_ref_from_ptr(long ptr);
627 // struct LDKThirtyTwoU16s C2Tuple_Z_get_a(LDKC2Tuple_Z *NONNULL_PTR owner);
628 public static native short[] C2Tuple_Z_get_a(long owner);
629 // struct LDKThirtyTwoU16s C2Tuple_Z_get_b(LDKC2Tuple_Z *NONNULL_PTR owner);
630 public static native short[] C2Tuple_Z_get_b(long owner);
631 // struct LDKThirtyTwoU16s C2Tuple__u1632_u1632Z_get_a(LDKC2Tuple__u1632_u1632Z *NONNULL_PTR owner);
632 public static native short[] C2Tuple__u1632_u1632Z_get_a(long owner);
633 // struct LDKThirtyTwoU16s C2Tuple__u1632_u1632Z_get_b(LDKC2Tuple__u1632_u1632Z *NONNULL_PTR owner);
634 public static native short[] C2Tuple__u1632_u1632Z_get_b(long owner);
635 public static class LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ {
636 private LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ() {}
637 public final static class Some extends LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ {
639 Some(long some) { this.some = some; }
641 public final static class None extends LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ {
644 static native void init();
646 static { LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ.init(); }
647 public static native LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_ref_from_ptr(long ptr);
648 public static class LDKCOption_f64Z {
649 private LDKCOption_f64Z() {}
650 public final static class Some extends LDKCOption_f64Z {
652 Some(double some) { this.some = some; }
654 public final static class None extends LDKCOption_f64Z {
657 static native void init();
659 static { LDKCOption_f64Z.init(); }
660 public static native LDKCOption_f64Z LDKCOption_f64Z_ref_from_ptr(long ptr);
661 public interface LDKLogger {
662 void log(long record);
664 public static native long LDKLogger_new(LDKLogger impl);
665 // struct LDKProbabilisticScorer CResult_ProbabilisticScorerDecodeErrorZ_get_ok(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
666 public static native long CResult_ProbabilisticScorerDecodeErrorZ_get_ok(long owner);
667 // struct LDKDecodeError CResult_ProbabilisticScorerDecodeErrorZ_get_err(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
668 public static native long CResult_ProbabilisticScorerDecodeErrorZ_get_err(long owner);
669 // uintptr_t C2Tuple_usizeTransactionZ_get_a(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
670 public static native long C2Tuple_usizeTransactionZ_get_a(long owner);
671 // struct LDKTransaction C2Tuple_usizeTransactionZ_get_b(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
672 public static native byte[] C2Tuple_usizeTransactionZ_get_b(long owner);
673 // struct LDKThirtyTwoBytes C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_a(LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ *NONNULL_PTR owner);
674 public static native byte[] C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_a(long owner);
675 // uint32_t C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_b(LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ *NONNULL_PTR owner);
676 public static native int C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_b(long owner);
677 // struct LDKCOption_ThirtyTwoBytesZ C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_c(LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ *NONNULL_PTR owner);
678 public static native long C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_get_c(long owner);
679 // enum LDKChannelMonitorUpdateStatus CResult_ChannelMonitorUpdateStatusNoneZ_get_ok(LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR owner);
680 public static native ChannelMonitorUpdateStatus CResult_ChannelMonitorUpdateStatusNoneZ_get_ok(long owner);
681 // void CResult_ChannelMonitorUpdateStatusNoneZ_get_err(LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR owner);
682 public static native void CResult_ChannelMonitorUpdateStatusNoneZ_get_err(long owner);
683 public static class LDKMonitorEvent {
684 private LDKMonitorEvent() {}
685 public final static class HTLCEvent extends LDKMonitorEvent {
686 public long htlc_event;
687 HTLCEvent(long htlc_event) { this.htlc_event = htlc_event; }
689 public final static class HolderForceClosed extends LDKMonitorEvent {
690 public long holder_force_closed;
691 HolderForceClosed(long holder_force_closed) { this.holder_force_closed = holder_force_closed; }
693 public final static class Completed extends LDKMonitorEvent {
694 public long funding_txo;
695 public long monitor_update_id;
696 Completed(long funding_txo, long monitor_update_id) { this.funding_txo = funding_txo; this.monitor_update_id = monitor_update_id; }
698 static native void init();
700 static { LDKMonitorEvent.init(); }
701 public static native LDKMonitorEvent LDKMonitorEvent_ref_from_ptr(long ptr);
702 // struct LDKOutPoint C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
703 public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(long owner);
704 // struct LDKCVec_MonitorEventZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
705 public static native long[] C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(long owner);
706 // struct LDKPublicKey C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
707 public static native byte[] C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(long owner);
708 // struct LDKInitFeatures CResult_InitFeaturesDecodeErrorZ_get_ok(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
709 public static native long CResult_InitFeaturesDecodeErrorZ_get_ok(long owner);
710 // struct LDKDecodeError CResult_InitFeaturesDecodeErrorZ_get_err(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
711 public static native long CResult_InitFeaturesDecodeErrorZ_get_err(long owner);
712 // struct LDKChannelFeatures CResult_ChannelFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
713 public static native long CResult_ChannelFeaturesDecodeErrorZ_get_ok(long owner);
714 // struct LDKDecodeError CResult_ChannelFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
715 public static native long CResult_ChannelFeaturesDecodeErrorZ_get_err(long owner);
716 // struct LDKNodeFeatures CResult_NodeFeaturesDecodeErrorZ_get_ok(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
717 public static native long CResult_NodeFeaturesDecodeErrorZ_get_ok(long owner);
718 // struct LDKDecodeError CResult_NodeFeaturesDecodeErrorZ_get_err(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
719 public static native long CResult_NodeFeaturesDecodeErrorZ_get_err(long owner);
720 // struct LDKBolt11InvoiceFeatures CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
721 public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_ok(long owner);
722 // struct LDKDecodeError CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
723 public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_get_err(long owner);
724 // struct LDKBolt12InvoiceFeatures CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
725 public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_ok(long owner);
726 // struct LDKDecodeError CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
727 public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_get_err(long owner);
728 // struct LDKBlindedHopFeatures CResult_BlindedHopFeaturesDecodeErrorZ_get_ok(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR owner);
729 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_get_ok(long owner);
730 // struct LDKDecodeError CResult_BlindedHopFeaturesDecodeErrorZ_get_err(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR owner);
731 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_get_err(long owner);
732 // struct LDKChannelTypeFeatures CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
733 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(long owner);
734 // struct LDKDecodeError CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
735 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(long owner);
736 // struct LDKOffer CResult_OfferBolt12ParseErrorZ_get_ok(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR owner);
737 public static native long CResult_OfferBolt12ParseErrorZ_get_ok(long owner);
738 // struct LDKBolt12ParseError CResult_OfferBolt12ParseErrorZ_get_err(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR owner);
739 public static native long CResult_OfferBolt12ParseErrorZ_get_err(long owner);
740 // struct LDKPublicKey CResult_PublicKeySecp256k1ErrorZ_get_ok(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR owner);
741 public static native byte[] CResult_PublicKeySecp256k1ErrorZ_get_ok(long owner);
742 // enum LDKSecp256k1Error CResult_PublicKeySecp256k1ErrorZ_get_err(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR owner);
743 public static native Secp256k1Error CResult_PublicKeySecp256k1ErrorZ_get_err(long owner);
744 // struct LDKNodeId CResult_NodeIdDecodeErrorZ_get_ok(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
745 public static native long CResult_NodeIdDecodeErrorZ_get_ok(long owner);
746 // struct LDKDecodeError CResult_NodeIdDecodeErrorZ_get_err(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
747 public static native long CResult_NodeIdDecodeErrorZ_get_err(long owner);
748 public static class LDKNetworkUpdate {
749 private LDKNetworkUpdate() {}
750 public final static class ChannelUpdateMessage extends LDKNetworkUpdate {
752 ChannelUpdateMessage(long msg) { this.msg = msg; }
754 public final static class ChannelFailure extends LDKNetworkUpdate {
755 public long short_channel_id;
756 public boolean is_permanent;
757 ChannelFailure(long short_channel_id, boolean is_permanent) { this.short_channel_id = short_channel_id; this.is_permanent = is_permanent; }
759 public final static class NodeFailure extends LDKNetworkUpdate {
760 public byte[] node_id;
761 public boolean is_permanent;
762 NodeFailure(byte[] node_id, boolean is_permanent) { this.node_id = node_id; this.is_permanent = is_permanent; }
764 static native void init();
766 static { LDKNetworkUpdate.init(); }
767 public static native LDKNetworkUpdate LDKNetworkUpdate_ref_from_ptr(long ptr);
768 public static class LDKCOption_NetworkUpdateZ {
769 private LDKCOption_NetworkUpdateZ() {}
770 public final static class Some extends LDKCOption_NetworkUpdateZ {
772 Some(long some) { this.some = some; }
774 public final static class None extends LDKCOption_NetworkUpdateZ {
777 static native void init();
779 static { LDKCOption_NetworkUpdateZ.init(); }
780 public static native LDKCOption_NetworkUpdateZ LDKCOption_NetworkUpdateZ_ref_from_ptr(long ptr);
781 // struct LDKCOption_NetworkUpdateZ CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
782 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(long owner);
783 // struct LDKDecodeError CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
784 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(long owner);
785 // struct LDKTxOut CResult_TxOutUtxoLookupErrorZ_get_ok(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR owner);
786 public static native long CResult_TxOutUtxoLookupErrorZ_get_ok(long owner);
787 // enum LDKUtxoLookupError CResult_TxOutUtxoLookupErrorZ_get_err(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR owner);
788 public static native UtxoLookupError CResult_TxOutUtxoLookupErrorZ_get_err(long owner);
789 public static class LDKUtxoResult {
790 private LDKUtxoResult() {}
791 public final static class Sync extends LDKUtxoResult {
793 Sync(long sync) { this.sync = sync; }
795 public final static class Async extends LDKUtxoResult {
797 Async(long async) { this.async = async; }
799 static native void init();
801 static { LDKUtxoResult.init(); }
802 public static native LDKUtxoResult LDKUtxoResult_ref_from_ptr(long ptr);
803 public interface LDKUtxoLookup {
804 long get_utxo(byte[] chain_hash, long short_channel_id);
806 public static native long LDKUtxoLookup_new(LDKUtxoLookup impl);
807 // LDKUtxoResult UtxoLookup_get_utxo LDKUtxoLookup *NONNULL_PTR this_arg, const uint8_t (*chain_hash)[32], uint64_t short_channel_id
808 public static native long UtxoLookup_get_utxo(long this_arg, byte[] chain_hash, long short_channel_id);
809 public static class LDKCOption_UtxoLookupZ {
810 private LDKCOption_UtxoLookupZ() {}
811 public final static class Some extends LDKCOption_UtxoLookupZ {
813 Some(long some) { this.some = some; }
815 public final static class None extends LDKCOption_UtxoLookupZ {
818 static native void init();
820 static { LDKCOption_UtxoLookupZ.init(); }
821 public static native LDKCOption_UtxoLookupZ LDKCOption_UtxoLookupZ_ref_from_ptr(long ptr);
822 // void CResult_NoneLightningErrorZ_get_ok(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
823 public static native void CResult_NoneLightningErrorZ_get_ok(long owner);
824 // struct LDKLightningError CResult_NoneLightningErrorZ_get_err(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
825 public static native long CResult_NoneLightningErrorZ_get_err(long owner);
826 // bool CResult_boolLightningErrorZ_get_ok(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
827 public static native boolean CResult_boolLightningErrorZ_get_ok(long owner);
828 // struct LDKLightningError CResult_boolLightningErrorZ_get_err(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
829 public static native long CResult_boolLightningErrorZ_get_err(long owner);
830 // struct LDKChannelAnnouncement C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
831 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(long owner);
832 // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
833 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(long owner);
834 // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
835 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(long owner);
836 public static class LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
837 private LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ() {}
838 public final static class Some extends LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
840 Some(long some) { this.some = some; }
842 public final static class None extends LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
845 static native void init();
847 static { LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ.init(); }
848 public static native LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_ref_from_ptr(long ptr);
849 public static class LDKErrorAction {
850 private LDKErrorAction() {}
851 public final static class DisconnectPeer extends LDKErrorAction {
853 DisconnectPeer(long msg) { this.msg = msg; }
855 public final static class DisconnectPeerWithWarning extends LDKErrorAction {
857 DisconnectPeerWithWarning(long msg) { this.msg = msg; }
859 public final static class IgnoreError extends LDKErrorAction {
862 public final static class IgnoreAndLog extends LDKErrorAction {
863 public org.ldk.enums.Level ignore_and_log;
864 IgnoreAndLog(org.ldk.enums.Level ignore_and_log) { this.ignore_and_log = ignore_and_log; }
866 public final static class IgnoreDuplicateGossip extends LDKErrorAction {
867 IgnoreDuplicateGossip() { }
869 public final static class SendErrorMessage extends LDKErrorAction {
871 SendErrorMessage(long msg) { this.msg = msg; }
873 public final static class SendWarningMessage extends LDKErrorAction {
875 public org.ldk.enums.Level log_level;
876 SendWarningMessage(long msg, org.ldk.enums.Level log_level) { this.msg = msg; this.log_level = log_level; }
878 static native void init();
880 static { LDKErrorAction.init(); }
881 public static native LDKErrorAction LDKErrorAction_ref_from_ptr(long ptr);
882 public static class LDKMessageSendEvent {
883 private LDKMessageSendEvent() {}
884 public final static class SendAcceptChannel extends LDKMessageSendEvent {
885 public byte[] node_id;
887 SendAcceptChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
889 public final static class SendAcceptChannelV2 extends LDKMessageSendEvent {
890 public byte[] node_id;
892 SendAcceptChannelV2(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
894 public final static class SendOpenChannel extends LDKMessageSendEvent {
895 public byte[] node_id;
897 SendOpenChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
899 public final static class SendOpenChannelV2 extends LDKMessageSendEvent {
900 public byte[] node_id;
902 SendOpenChannelV2(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
904 public final static class SendFundingCreated extends LDKMessageSendEvent {
905 public byte[] node_id;
907 SendFundingCreated(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
909 public final static class SendFundingSigned extends LDKMessageSendEvent {
910 public byte[] node_id;
912 SendFundingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
914 public final static class SendStfu extends LDKMessageSendEvent {
915 public byte[] node_id;
917 SendStfu(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
919 public final static class SendSplice extends LDKMessageSendEvent {
920 public byte[] node_id;
922 SendSplice(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
924 public final static class SendSpliceAck extends LDKMessageSendEvent {
925 public byte[] node_id;
927 SendSpliceAck(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
929 public final static class SendSpliceLocked extends LDKMessageSendEvent {
930 public byte[] node_id;
932 SendSpliceLocked(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
934 public final static class SendTxAddInput extends LDKMessageSendEvent {
935 public byte[] node_id;
937 SendTxAddInput(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
939 public final static class SendTxAddOutput extends LDKMessageSendEvent {
940 public byte[] node_id;
942 SendTxAddOutput(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
944 public final static class SendTxRemoveInput extends LDKMessageSendEvent {
945 public byte[] node_id;
947 SendTxRemoveInput(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
949 public final static class SendTxRemoveOutput extends LDKMessageSendEvent {
950 public byte[] node_id;
952 SendTxRemoveOutput(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
954 public final static class SendTxComplete extends LDKMessageSendEvent {
955 public byte[] node_id;
957 SendTxComplete(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
959 public final static class SendTxSignatures extends LDKMessageSendEvent {
960 public byte[] node_id;
962 SendTxSignatures(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
964 public final static class SendTxInitRbf extends LDKMessageSendEvent {
965 public byte[] node_id;
967 SendTxInitRbf(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
969 public final static class SendTxAckRbf extends LDKMessageSendEvent {
970 public byte[] node_id;
972 SendTxAckRbf(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
974 public final static class SendTxAbort extends LDKMessageSendEvent {
975 public byte[] node_id;
977 SendTxAbort(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
979 public final static class SendChannelReady extends LDKMessageSendEvent {
980 public byte[] node_id;
982 SendChannelReady(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
984 public final static class SendAnnouncementSignatures extends LDKMessageSendEvent {
985 public byte[] node_id;
987 SendAnnouncementSignatures(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
989 public final static class UpdateHTLCs extends LDKMessageSendEvent {
990 public byte[] node_id;
992 UpdateHTLCs(byte[] node_id, long updates) { this.node_id = node_id; this.updates = updates; }
994 public final static class SendRevokeAndACK extends LDKMessageSendEvent {
995 public byte[] node_id;
997 SendRevokeAndACK(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
999 public final static class SendClosingSigned extends LDKMessageSendEvent {
1000 public byte[] node_id;
1002 SendClosingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1004 public final static class SendShutdown extends LDKMessageSendEvent {
1005 public byte[] node_id;
1007 SendShutdown(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1009 public final static class SendChannelReestablish extends LDKMessageSendEvent {
1010 public byte[] node_id;
1012 SendChannelReestablish(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1014 public final static class SendChannelAnnouncement extends LDKMessageSendEvent {
1015 public byte[] node_id;
1017 public long update_msg;
1018 SendChannelAnnouncement(byte[] node_id, long msg, long update_msg) { this.node_id = node_id; this.msg = msg; this.update_msg = update_msg; }
1020 public final static class BroadcastChannelAnnouncement extends LDKMessageSendEvent {
1022 public long update_msg;
1023 BroadcastChannelAnnouncement(long msg, long update_msg) { this.msg = msg; this.update_msg = update_msg; }
1025 public final static class BroadcastChannelUpdate extends LDKMessageSendEvent {
1027 BroadcastChannelUpdate(long msg) { this.msg = msg; }
1029 public final static class BroadcastNodeAnnouncement extends LDKMessageSendEvent {
1031 BroadcastNodeAnnouncement(long msg) { this.msg = msg; }
1033 public final static class SendChannelUpdate extends LDKMessageSendEvent {
1034 public byte[] node_id;
1036 SendChannelUpdate(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1038 public final static class HandleError extends LDKMessageSendEvent {
1039 public byte[] node_id;
1041 HandleError(byte[] node_id, long action) { this.node_id = node_id; this.action = action; }
1043 public final static class SendChannelRangeQuery extends LDKMessageSendEvent {
1044 public byte[] node_id;
1046 SendChannelRangeQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1048 public final static class SendShortIdsQuery extends LDKMessageSendEvent {
1049 public byte[] node_id;
1051 SendShortIdsQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1053 public final static class SendReplyChannelRange extends LDKMessageSendEvent {
1054 public byte[] node_id;
1056 SendReplyChannelRange(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1058 public final static class SendGossipTimestampFilter extends LDKMessageSendEvent {
1059 public byte[] node_id;
1061 SendGossipTimestampFilter(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
1063 static native void init();
1065 static { LDKMessageSendEvent.init(); }
1066 public static native LDKMessageSendEvent LDKMessageSendEvent_ref_from_ptr(long ptr);
1067 // struct LDKChannelUpdateInfo CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
1068 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(long owner);
1069 // struct LDKDecodeError CResult_ChannelUpdateInfoDecodeErrorZ_get_err(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
1070 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_get_err(long owner);
1071 // struct LDKChannelInfo CResult_ChannelInfoDecodeErrorZ_get_ok(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
1072 public static native long CResult_ChannelInfoDecodeErrorZ_get_ok(long owner);
1073 // struct LDKDecodeError CResult_ChannelInfoDecodeErrorZ_get_err(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
1074 public static native long CResult_ChannelInfoDecodeErrorZ_get_err(long owner);
1075 // struct LDKRoutingFees CResult_RoutingFeesDecodeErrorZ_get_ok(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
1076 public static native long CResult_RoutingFeesDecodeErrorZ_get_ok(long owner);
1077 // struct LDKDecodeError CResult_RoutingFeesDecodeErrorZ_get_err(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
1078 public static native long CResult_RoutingFeesDecodeErrorZ_get_err(long owner);
1079 public static class LDKSocketAddress {
1080 private LDKSocketAddress() {}
1081 public final static class TcpIpV4 extends LDKSocketAddress {
1084 TcpIpV4(byte[] addr, short port) { this.addr = addr; this.port = port; }
1086 public final static class TcpIpV6 extends LDKSocketAddress {
1089 TcpIpV6(byte[] addr, short port) { this.addr = addr; this.port = port; }
1091 public final static class OnionV2 extends LDKSocketAddress {
1092 public byte[] onion_v2;
1093 OnionV2(byte[] onion_v2) { this.onion_v2 = onion_v2; }
1095 public final static class OnionV3 extends LDKSocketAddress {
1096 public byte[] ed25519_pubkey;
1097 public short checksum;
1098 public byte version;
1100 OnionV3(byte[] ed25519_pubkey, short checksum, byte version, short port) { this.ed25519_pubkey = ed25519_pubkey; this.checksum = checksum; this.version = version; this.port = port; }
1102 public final static class Hostname extends LDKSocketAddress {
1103 public long hostname;
1105 Hostname(long hostname, short port) { this.hostname = hostname; this.port = port; }
1107 static native void init();
1109 static { LDKSocketAddress.init(); }
1110 public static native LDKSocketAddress LDKSocketAddress_ref_from_ptr(long ptr);
1111 // struct LDKNodeAnnouncementInfo CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
1112 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(long owner);
1113 // struct LDKDecodeError CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
1114 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(long owner);
1115 // struct LDKNodeAlias CResult_NodeAliasDecodeErrorZ_get_ok(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
1116 public static native long CResult_NodeAliasDecodeErrorZ_get_ok(long owner);
1117 // struct LDKDecodeError CResult_NodeAliasDecodeErrorZ_get_err(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
1118 public static native long CResult_NodeAliasDecodeErrorZ_get_err(long owner);
1119 // struct LDKNodeInfo CResult_NodeInfoDecodeErrorZ_get_ok(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
1120 public static native long CResult_NodeInfoDecodeErrorZ_get_ok(long owner);
1121 // struct LDKDecodeError CResult_NodeInfoDecodeErrorZ_get_err(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
1122 public static native long CResult_NodeInfoDecodeErrorZ_get_err(long owner);
1123 // struct LDKNetworkGraph CResult_NetworkGraphDecodeErrorZ_get_ok(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
1124 public static native long CResult_NetworkGraphDecodeErrorZ_get_ok(long owner);
1125 // struct LDKDecodeError CResult_NetworkGraphDecodeErrorZ_get_err(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
1126 public static native long CResult_NetworkGraphDecodeErrorZ_get_err(long owner);
1127 public static class LDKCOption_CVec_SocketAddressZZ {
1128 private LDKCOption_CVec_SocketAddressZZ() {}
1129 public final static class Some extends LDKCOption_CVec_SocketAddressZZ {
1131 Some(long[] some) { this.some = some; }
1133 public final static class None extends LDKCOption_CVec_SocketAddressZZ {
1136 static native void init();
1138 static { LDKCOption_CVec_SocketAddressZZ.init(); }
1139 public static native LDKCOption_CVec_SocketAddressZZ LDKCOption_CVec_SocketAddressZZ_ref_from_ptr(long ptr);
1140 // struct LDKPendingHTLCInfo CResult_PendingHTLCInfoInboundHTLCErrZ_get_ok(LDKCResult_PendingHTLCInfoInboundHTLCErrZ *NONNULL_PTR owner);
1141 public static native long CResult_PendingHTLCInfoInboundHTLCErrZ_get_ok(long owner);
1142 // struct LDKInboundHTLCErr CResult_PendingHTLCInfoInboundHTLCErrZ_get_err(LDKCResult_PendingHTLCInfoInboundHTLCErrZ *NONNULL_PTR owner);
1143 public static native long CResult_PendingHTLCInfoInboundHTLCErrZ_get_err(long owner);
1144 public static class LDKCOption_TxOutZ {
1145 private LDKCOption_TxOutZ() {}
1146 public final static class Some extends LDKCOption_TxOutZ {
1148 Some(long some) { this.some = some; }
1150 public final static class None extends LDKCOption_TxOutZ {
1153 static native void init();
1155 static { LDKCOption_TxOutZ.init(); }
1156 public static native LDKCOption_TxOutZ LDKCOption_TxOutZ_ref_from_ptr(long ptr);
1157 // struct LDKCoinSelection CResult_CoinSelectionNoneZ_get_ok(LDKCResult_CoinSelectionNoneZ *NONNULL_PTR owner);
1158 public static native long CResult_CoinSelectionNoneZ_get_ok(long owner);
1159 // void CResult_CoinSelectionNoneZ_get_err(LDKCResult_CoinSelectionNoneZ *NONNULL_PTR owner);
1160 public static native void CResult_CoinSelectionNoneZ_get_err(long owner);
1161 // struct LDKCVec_UtxoZ CResult_CVec_UtxoZNoneZ_get_ok(LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR owner);
1162 public static native long[] CResult_CVec_UtxoZNoneZ_get_ok(long owner);
1163 // void CResult_CVec_UtxoZNoneZ_get_err(LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR owner);
1164 public static native void CResult_CVec_UtxoZNoneZ_get_err(long owner);
1165 // uint64_t C2Tuple_u64u16Z_get_a(LDKC2Tuple_u64u16Z *NONNULL_PTR owner);
1166 public static native long C2Tuple_u64u16Z_get_a(long owner);
1167 // uint16_t C2Tuple_u64u16Z_get_b(LDKC2Tuple_u64u16Z *NONNULL_PTR owner);
1168 public static native short C2Tuple_u64u16Z_get_b(long owner);
1169 public static class LDKCOption_C2Tuple_u64u16ZZ {
1170 private LDKCOption_C2Tuple_u64u16ZZ() {}
1171 public final static class Some extends LDKCOption_C2Tuple_u64u16ZZ {
1173 Some(long some) { this.some = some; }
1175 public final static class None extends LDKCOption_C2Tuple_u64u16ZZ {
1178 static native void init();
1180 static { LDKCOption_C2Tuple_u64u16ZZ.init(); }
1181 public static native LDKCOption_C2Tuple_u64u16ZZ LDKCOption_C2Tuple_u64u16ZZ_ref_from_ptr(long ptr);
1182 public static class LDKCOption_ChannelShutdownStateZ {
1183 private LDKCOption_ChannelShutdownStateZ() {}
1184 public final static class Some extends LDKCOption_ChannelShutdownStateZ {
1185 public org.ldk.enums.ChannelShutdownState some;
1186 Some(org.ldk.enums.ChannelShutdownState some) { this.some = some; }
1188 public final static class None extends LDKCOption_ChannelShutdownStateZ {
1191 static native void init();
1193 static { LDKCOption_ChannelShutdownStateZ.init(); }
1194 public static native LDKCOption_ChannelShutdownStateZ LDKCOption_ChannelShutdownStateZ_ref_from_ptr(long ptr);
1195 // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesAPIErrorZ_get_ok(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR owner);
1196 public static native byte[] CResult_ThirtyTwoBytesAPIErrorZ_get_ok(long owner);
1197 // struct LDKAPIError CResult_ThirtyTwoBytesAPIErrorZ_get_err(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR owner);
1198 public static native long CResult_ThirtyTwoBytesAPIErrorZ_get_err(long owner);
1199 public static class LDKRecentPaymentDetails {
1200 private LDKRecentPaymentDetails() {}
1201 public final static class AwaitingInvoice extends LDKRecentPaymentDetails {
1202 public byte[] payment_id;
1203 AwaitingInvoice(byte[] payment_id) { this.payment_id = payment_id; }
1205 public final static class Pending extends LDKRecentPaymentDetails {
1206 public byte[] payment_id;
1207 public byte[] payment_hash;
1208 public long total_msat;
1209 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; }
1211 public final static class Fulfilled extends LDKRecentPaymentDetails {
1212 public byte[] payment_id;
1213 public long payment_hash;
1214 Fulfilled(byte[] payment_id, long payment_hash) { this.payment_id = payment_id; this.payment_hash = payment_hash; }
1216 public final static class Abandoned extends LDKRecentPaymentDetails {
1217 public byte[] payment_id;
1218 public byte[] payment_hash;
1219 Abandoned(byte[] payment_id, byte[] payment_hash) { this.payment_id = payment_id; this.payment_hash = payment_hash; }
1221 static native void init();
1223 static { LDKRecentPaymentDetails.init(); }
1224 public static native LDKRecentPaymentDetails LDKRecentPaymentDetails_ref_from_ptr(long ptr);
1225 public static class LDKPaymentSendFailure {
1226 private LDKPaymentSendFailure() {}
1227 public final static class ParameterError extends LDKPaymentSendFailure {
1228 public long parameter_error;
1229 ParameterError(long parameter_error) { this.parameter_error = parameter_error; }
1231 public final static class PathParameterError extends LDKPaymentSendFailure {
1232 public long[] path_parameter_error;
1233 PathParameterError(long[] path_parameter_error) { this.path_parameter_error = path_parameter_error; }
1235 public final static class AllFailedResendSafe extends LDKPaymentSendFailure {
1236 public long[] all_failed_resend_safe;
1237 AllFailedResendSafe(long[] all_failed_resend_safe) { this.all_failed_resend_safe = all_failed_resend_safe; }
1239 public final static class DuplicatePayment extends LDKPaymentSendFailure {
1240 DuplicatePayment() { }
1242 public final static class PartialFailure extends LDKPaymentSendFailure {
1243 public long[] results;
1244 public long failed_paths_retry;
1245 public byte[] payment_id;
1246 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; }
1248 static native void init();
1250 static { LDKPaymentSendFailure.init(); }
1251 public static native LDKPaymentSendFailure LDKPaymentSendFailure_ref_from_ptr(long ptr);
1252 // void CResult_NonePaymentSendFailureZ_get_ok(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
1253 public static native void CResult_NonePaymentSendFailureZ_get_ok(long owner);
1254 // struct LDKPaymentSendFailure CResult_NonePaymentSendFailureZ_get_err(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
1255 public static native long CResult_NonePaymentSendFailureZ_get_err(long owner);
1256 // void CResult_NoneRetryableSendFailureZ_get_ok(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR owner);
1257 public static native void CResult_NoneRetryableSendFailureZ_get_ok(long owner);
1258 // enum LDKRetryableSendFailure CResult_NoneRetryableSendFailureZ_get_err(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR owner);
1259 public static native RetryableSendFailure CResult_NoneRetryableSendFailureZ_get_err(long owner);
1260 // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesPaymentSendFailureZ_get_ok(LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR owner);
1261 public static native byte[] CResult_ThirtyTwoBytesPaymentSendFailureZ_get_ok(long owner);
1262 // struct LDKPaymentSendFailure CResult_ThirtyTwoBytesPaymentSendFailureZ_get_err(LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR owner);
1263 public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_get_err(long owner);
1264 // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesRetryableSendFailureZ_get_ok(LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR owner);
1265 public static native byte[] CResult_ThirtyTwoBytesRetryableSendFailureZ_get_ok(long owner);
1266 // enum LDKRetryableSendFailure CResult_ThirtyTwoBytesRetryableSendFailureZ_get_err(LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR owner);
1267 public static native RetryableSendFailure CResult_ThirtyTwoBytesRetryableSendFailureZ_get_err(long owner);
1268 // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_a(LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR owner);
1269 public static native byte[] C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_a(long owner);
1270 // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_b(LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR owner);
1271 public static native byte[] C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_get_b(long owner);
1272 // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR owner);
1273 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_ok(long owner);
1274 // struct LDKPaymentSendFailure CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR owner);
1275 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_get_err(long owner);
1276 public static class LDKProbeSendFailure {
1277 private LDKProbeSendFailure() {}
1278 public final static class RouteNotFound extends LDKProbeSendFailure {
1281 public final static class SendingFailed extends LDKProbeSendFailure {
1282 public long sending_failed;
1283 SendingFailed(long sending_failed) { this.sending_failed = sending_failed; }
1285 static native void init();
1287 static { LDKProbeSendFailure.init(); }
1288 public static native LDKProbeSendFailure LDKProbeSendFailure_ref_from_ptr(long ptr);
1289 // struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_ok(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR owner);
1290 public static native long[] CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_ok(long owner);
1291 // struct LDKProbeSendFailure CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_err(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR owner);
1292 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_err(long owner);
1293 // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesPublicKeyZ_get_a(LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR owner);
1294 public static native byte[] C2Tuple_ThirtyTwoBytesPublicKeyZ_get_a(long owner);
1295 // struct LDKPublicKey C2Tuple_ThirtyTwoBytesPublicKeyZ_get_b(LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR owner);
1296 public static native byte[] C2Tuple_ThirtyTwoBytesPublicKeyZ_get_b(long owner);
1297 public static class LDKCOption_StrZ {
1298 private LDKCOption_StrZ() {}
1299 public final static class Some extends LDKCOption_StrZ {
1300 public java.lang.String some;
1301 Some(java.lang.String some) { this.some = some; }
1303 public final static class None extends LDKCOption_StrZ {
1306 static native void init();
1308 static { LDKCOption_StrZ.init(); }
1309 public static native LDKCOption_StrZ LDKCOption_StrZ_ref_from_ptr(long ptr);
1310 // void CResult_NoneBolt12SemanticErrorZ_get_ok(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR owner);
1311 public static native void CResult_NoneBolt12SemanticErrorZ_get_ok(long owner);
1312 // enum LDKBolt12SemanticError CResult_NoneBolt12SemanticErrorZ_get_err(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR owner);
1313 public static native Bolt12SemanticError CResult_NoneBolt12SemanticErrorZ_get_err(long owner);
1314 // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR owner);
1315 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_ok(long owner);
1316 // void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR owner);
1317 public static native void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_err(long owner);
1318 public static class LDKOffersMessage {
1319 private LDKOffersMessage() {}
1320 public final static class InvoiceRequest extends LDKOffersMessage {
1321 public long invoice_request;
1322 InvoiceRequest(long invoice_request) { this.invoice_request = invoice_request; }
1324 public final static class Invoice extends LDKOffersMessage {
1325 public long invoice;
1326 Invoice(long invoice) { this.invoice = invoice; }
1328 public final static class InvoiceError extends LDKOffersMessage {
1329 public long invoice_error;
1330 InvoiceError(long invoice_error) { this.invoice_error = invoice_error; }
1332 static native void init();
1334 static { LDKOffersMessage.init(); }
1335 public static native LDKOffersMessage LDKOffersMessage_ref_from_ptr(long ptr);
1336 public static class LDKCOption_OffersMessageZ {
1337 private LDKCOption_OffersMessageZ() {}
1338 public final static class Some extends LDKCOption_OffersMessageZ {
1340 Some(long some) { this.some = some; }
1342 public final static class None extends LDKCOption_OffersMessageZ {
1345 static native void init();
1347 static { LDKCOption_OffersMessageZ.init(); }
1348 public static native LDKCOption_OffersMessageZ LDKCOption_OffersMessageZ_ref_from_ptr(long ptr);
1349 public static class LDKDestination {
1350 private LDKDestination() {}
1351 public final static class Node extends LDKDestination {
1353 Node(byte[] node) { this.node = node; }
1355 public final static class BlindedPath extends LDKDestination {
1356 public long blinded_path;
1357 BlindedPath(long blinded_path) { this.blinded_path = blinded_path; }
1359 static native void init();
1361 static { LDKDestination.init(); }
1362 public static native LDKDestination LDKDestination_ref_from_ptr(long ptr);
1363 // struct LDKOffersMessage C3Tuple_OffersMessageDestinationBlindedPathZ_get_a(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR owner);
1364 public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_get_a(long owner);
1365 // struct LDKDestination C3Tuple_OffersMessageDestinationBlindedPathZ_get_b(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR owner);
1366 public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_get_b(long owner);
1367 // struct LDKBlindedPath C3Tuple_OffersMessageDestinationBlindedPathZ_get_c(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR owner);
1368 public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_get_c(long owner);
1369 // struct LDKCounterpartyForwardingInfo CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
1370 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(long owner);
1371 // struct LDKDecodeError CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
1372 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(long owner);
1373 // struct LDKChannelCounterparty CResult_ChannelCounterpartyDecodeErrorZ_get_ok(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
1374 public static native long CResult_ChannelCounterpartyDecodeErrorZ_get_ok(long owner);
1375 // struct LDKDecodeError CResult_ChannelCounterpartyDecodeErrorZ_get_err(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
1376 public static native long CResult_ChannelCounterpartyDecodeErrorZ_get_err(long owner);
1377 // struct LDKChannelDetails CResult_ChannelDetailsDecodeErrorZ_get_ok(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
1378 public static native long CResult_ChannelDetailsDecodeErrorZ_get_ok(long owner);
1379 // struct LDKDecodeError CResult_ChannelDetailsDecodeErrorZ_get_err(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
1380 public static native long CResult_ChannelDetailsDecodeErrorZ_get_err(long owner);
1381 // struct LDKPhantomRouteHints CResult_PhantomRouteHintsDecodeErrorZ_get_ok(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
1382 public static native long CResult_PhantomRouteHintsDecodeErrorZ_get_ok(long owner);
1383 // struct LDKDecodeError CResult_PhantomRouteHintsDecodeErrorZ_get_err(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
1384 public static native long CResult_PhantomRouteHintsDecodeErrorZ_get_err(long owner);
1385 // struct LDKBlindedForward CResult_BlindedForwardDecodeErrorZ_get_ok(LDKCResult_BlindedForwardDecodeErrorZ *NONNULL_PTR owner);
1386 public static native long CResult_BlindedForwardDecodeErrorZ_get_ok(long owner);
1387 // struct LDKDecodeError CResult_BlindedForwardDecodeErrorZ_get_err(LDKCResult_BlindedForwardDecodeErrorZ *NONNULL_PTR owner);
1388 public static native long CResult_BlindedForwardDecodeErrorZ_get_err(long owner);
1389 public static class LDKPendingHTLCRouting {
1390 private LDKPendingHTLCRouting() {}
1391 public final static class Forward extends LDKPendingHTLCRouting {
1392 public long onion_packet;
1393 public long short_channel_id;
1394 public long blinded;
1395 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; }
1397 public final static class Receive extends LDKPendingHTLCRouting {
1398 public long payment_data;
1399 public long payment_metadata;
1400 public int incoming_cltv_expiry;
1401 public byte[] phantom_shared_secret;
1402 public long[] custom_tlvs;
1403 public boolean requires_blinded_error;
1404 Receive(long payment_data, long payment_metadata, 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.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; }
1406 public final static class ReceiveKeysend extends LDKPendingHTLCRouting {
1407 public long payment_data;
1408 public byte[] payment_preimage;
1409 public long payment_metadata;
1410 public int incoming_cltv_expiry;
1411 public long[] custom_tlvs;
1412 ReceiveKeysend(long payment_data, byte[] payment_preimage, long payment_metadata, int incoming_cltv_expiry, long[] custom_tlvs) { 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; }
1414 static native void init();
1416 static { LDKPendingHTLCRouting.init(); }
1417 public static native LDKPendingHTLCRouting LDKPendingHTLCRouting_ref_from_ptr(long ptr);
1418 // struct LDKPendingHTLCRouting CResult_PendingHTLCRoutingDecodeErrorZ_get_ok(LDKCResult_PendingHTLCRoutingDecodeErrorZ *NONNULL_PTR owner);
1419 public static native long CResult_PendingHTLCRoutingDecodeErrorZ_get_ok(long owner);
1420 // struct LDKDecodeError CResult_PendingHTLCRoutingDecodeErrorZ_get_err(LDKCResult_PendingHTLCRoutingDecodeErrorZ *NONNULL_PTR owner);
1421 public static native long CResult_PendingHTLCRoutingDecodeErrorZ_get_err(long owner);
1422 // struct LDKPendingHTLCInfo CResult_PendingHTLCInfoDecodeErrorZ_get_ok(LDKCResult_PendingHTLCInfoDecodeErrorZ *NONNULL_PTR owner);
1423 public static native long CResult_PendingHTLCInfoDecodeErrorZ_get_ok(long owner);
1424 // struct LDKDecodeError CResult_PendingHTLCInfoDecodeErrorZ_get_err(LDKCResult_PendingHTLCInfoDecodeErrorZ *NONNULL_PTR owner);
1425 public static native long CResult_PendingHTLCInfoDecodeErrorZ_get_err(long owner);
1426 // enum LDKBlindedFailure CResult_BlindedFailureDecodeErrorZ_get_ok(LDKCResult_BlindedFailureDecodeErrorZ *NONNULL_PTR owner);
1427 public static native BlindedFailure CResult_BlindedFailureDecodeErrorZ_get_ok(long owner);
1428 // struct LDKDecodeError CResult_BlindedFailureDecodeErrorZ_get_err(LDKCResult_BlindedFailureDecodeErrorZ *NONNULL_PTR owner);
1429 public static native long CResult_BlindedFailureDecodeErrorZ_get_err(long owner);
1430 // enum LDKChannelShutdownState CResult_ChannelShutdownStateDecodeErrorZ_get_ok(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR owner);
1431 public static native ChannelShutdownState CResult_ChannelShutdownStateDecodeErrorZ_get_ok(long owner);
1432 // struct LDKDecodeError CResult_ChannelShutdownStateDecodeErrorZ_get_err(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR owner);
1433 public static native long CResult_ChannelShutdownStateDecodeErrorZ_get_err(long owner);
1434 public interface LDKWatch {
1435 long watch_channel(long funding_txo, long monitor);
1436 ChannelMonitorUpdateStatus update_channel(long funding_txo, long update);
1437 long[] release_pending_monitor_events();
1439 public static native long LDKWatch_new(LDKWatch impl);
1440 // LDKCResult_ChannelMonitorUpdateStatusNoneZ Watch_watch_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor
1441 public static native long Watch_watch_channel(long this_arg, long funding_txo, long monitor);
1442 // LDKChannelMonitorUpdateStatus Watch_update_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, const struct LDKChannelMonitorUpdate *NONNULL_PTR update
1443 public static native ChannelMonitorUpdateStatus Watch_update_channel(long this_arg, long funding_txo, long update);
1444 // LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ Watch_release_pending_monitor_events LDKWatch *NONNULL_PTR this_arg
1445 public static native long[] Watch_release_pending_monitor_events(long this_arg);
1446 public interface LDKBroadcasterInterface {
1447 void broadcast_transactions(byte[][] txs);
1449 public static native long LDKBroadcasterInterface_new(LDKBroadcasterInterface impl);
1450 // void BroadcasterInterface_broadcast_transactions LDKBroadcasterInterface *NONNULL_PTR this_arg, struct LDKCVec_TransactionZ txs
1451 public static native void BroadcasterInterface_broadcast_transactions(long this_arg, byte[][] txs);
1452 public interface LDKEntropySource {
1453 byte[] get_secure_random_bytes();
1455 public static native long LDKEntropySource_new(LDKEntropySource impl);
1456 // LDKThirtyTwoBytes EntropySource_get_secure_random_bytes LDKEntropySource *NONNULL_PTR this_arg
1457 public static native byte[] EntropySource_get_secure_random_bytes(long this_arg);
1458 public static class LDKUnsignedGossipMessage {
1459 private LDKUnsignedGossipMessage() {}
1460 public final static class ChannelAnnouncement extends LDKUnsignedGossipMessage {
1461 public long channel_announcement;
1462 ChannelAnnouncement(long channel_announcement) { this.channel_announcement = channel_announcement; }
1464 public final static class ChannelUpdate extends LDKUnsignedGossipMessage {
1465 public long channel_update;
1466 ChannelUpdate(long channel_update) { this.channel_update = channel_update; }
1468 public final static class NodeAnnouncement extends LDKUnsignedGossipMessage {
1469 public long node_announcement;
1470 NodeAnnouncement(long node_announcement) { this.node_announcement = node_announcement; }
1472 static native void init();
1474 static { LDKUnsignedGossipMessage.init(); }
1475 public static native LDKUnsignedGossipMessage LDKUnsignedGossipMessage_ref_from_ptr(long ptr);
1476 public interface LDKNodeSigner {
1477 byte[] get_inbound_payment_key_material();
1478 long get_node_id(Recipient recipient);
1479 long ecdh(Recipient recipient, byte[] other_key, long tweak);
1480 long sign_invoice(byte[] hrp_bytes, byte[] invoice_data, Recipient recipient);
1481 long sign_bolt12_invoice_request(long invoice_request);
1482 long sign_bolt12_invoice(long invoice);
1483 long sign_gossip_message(long msg);
1485 public static native long LDKNodeSigner_new(LDKNodeSigner impl);
1486 // LDKThirtyTwoBytes NodeSigner_get_inbound_payment_key_material LDKNodeSigner *NONNULL_PTR this_arg
1487 public static native byte[] NodeSigner_get_inbound_payment_key_material(long this_arg);
1488 // LDKCResult_PublicKeyNoneZ NodeSigner_get_node_id LDKNodeSigner *NONNULL_PTR this_arg, enum LDKRecipient recipient
1489 public static native long NodeSigner_get_node_id(long this_arg, Recipient recipient);
1490 // LDKCResult_ThirtyTwoBytesNoneZ NodeSigner_ecdh LDKNodeSigner *NONNULL_PTR this_arg, enum LDKRecipient recipient, struct LDKPublicKey other_key, struct LDKCOption_BigEndianScalarZ tweak
1491 public static native long NodeSigner_ecdh(long this_arg, Recipient recipient, byte[] other_key, long tweak);
1492 // LDKCResult_RecoverableSignatureNoneZ NodeSigner_sign_invoice LDKNodeSigner *NONNULL_PTR this_arg, struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z invoice_data, enum LDKRecipient recipient
1493 public static native long NodeSigner_sign_invoice(long this_arg, byte[] hrp_bytes, byte[] invoice_data, Recipient recipient);
1494 // LDKCResult_SchnorrSignatureNoneZ NodeSigner_sign_bolt12_invoice_request LDKNodeSigner *NONNULL_PTR this_arg, const struct LDKUnsignedInvoiceRequest *NONNULL_PTR invoice_request
1495 public static native long NodeSigner_sign_bolt12_invoice_request(long this_arg, long invoice_request);
1496 // LDKCResult_SchnorrSignatureNoneZ NodeSigner_sign_bolt12_invoice LDKNodeSigner *NONNULL_PTR this_arg, const struct LDKUnsignedBolt12Invoice *NONNULL_PTR invoice
1497 public static native long NodeSigner_sign_bolt12_invoice(long this_arg, long invoice);
1498 // LDKCResult_ECDSASignatureNoneZ NodeSigner_sign_gossip_message LDKNodeSigner *NONNULL_PTR this_arg, struct LDKUnsignedGossipMessage msg
1499 public static native long NodeSigner_sign_gossip_message(long this_arg, long msg);
1500 public interface LDKSignerProvider {
1501 byte[] generate_channel_keys_id(boolean inbound, long channel_value_satoshis, byte[] user_channel_id);
1502 long derive_channel_signer(long channel_value_satoshis, byte[] channel_keys_id);
1503 long read_chan_signer(byte[] reader);
1504 long get_destination_script(byte[] channel_keys_id);
1505 long get_shutdown_scriptpubkey();
1507 public static native long LDKSignerProvider_new(LDKSignerProvider impl);
1508 // LDKThirtyTwoBytes SignerProvider_generate_channel_keys_id LDKSignerProvider *NONNULL_PTR this_arg, bool inbound, uint64_t channel_value_satoshis, struct LDKU128 user_channel_id
1509 public static native byte[] SignerProvider_generate_channel_keys_id(long this_arg, boolean inbound, long channel_value_satoshis, byte[] user_channel_id);
1510 // LDKWriteableEcdsaChannelSigner SignerProvider_derive_channel_signer LDKSignerProvider *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, struct LDKThirtyTwoBytes channel_keys_id
1511 public static native long SignerProvider_derive_channel_signer(long this_arg, long channel_value_satoshis, byte[] channel_keys_id);
1512 // LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ SignerProvider_read_chan_signer LDKSignerProvider *NONNULL_PTR this_arg, struct LDKu8slice reader
1513 public static native long SignerProvider_read_chan_signer(long this_arg, byte[] reader);
1514 // LDKCResult_CVec_u8ZNoneZ SignerProvider_get_destination_script LDKSignerProvider *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes channel_keys_id
1515 public static native long SignerProvider_get_destination_script(long this_arg, byte[] channel_keys_id);
1516 // LDKCResult_ShutdownScriptNoneZ SignerProvider_get_shutdown_scriptpubkey LDKSignerProvider *NONNULL_PTR this_arg
1517 public static native long SignerProvider_get_shutdown_scriptpubkey(long this_arg);
1518 public interface LDKFeeEstimator {
1519 int get_est_sat_per_1000_weight(ConfirmationTarget confirmation_target);
1521 public static native long LDKFeeEstimator_new(LDKFeeEstimator impl);
1522 // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator *NONNULL_PTR this_arg, enum LDKConfirmationTarget confirmation_target
1523 public static native int FeeEstimator_get_est_sat_per_1000_weight(long this_arg, ConfirmationTarget confirmation_target);
1524 public interface LDKMessageRouter {
1525 long find_path(byte[] sender, byte[][] peers, long destination);
1526 long create_blinded_paths(byte[] recipient, byte[][] peers);
1528 public static native long LDKMessageRouter_new(LDKMessageRouter impl);
1529 // LDKCResult_OnionMessagePathNoneZ MessageRouter_find_path LDKMessageRouter *NONNULL_PTR this_arg, struct LDKPublicKey sender, struct LDKCVec_PublicKeyZ peers, struct LDKDestination destination
1530 public static native long MessageRouter_find_path(long this_arg, byte[] sender, byte[][] peers, long destination);
1531 // LDKCResult_CVec_BlindedPathZNoneZ MessageRouter_create_blinded_paths LDKMessageRouter *NONNULL_PTR this_arg, struct LDKPublicKey recipient, struct LDKCVec_PublicKeyZ peers
1532 public static native long MessageRouter_create_blinded_paths(long this_arg, byte[] recipient, byte[][] peers);
1533 public interface LDKRouter {
1534 long find_route(byte[] payer, long route_params, long[] first_hops, long inflight_htlcs);
1535 long find_route_with_id(byte[] payer, long route_params, long[] first_hops, long inflight_htlcs, byte[] _payment_hash, byte[] _payment_id);
1536 long create_blinded_payment_paths(byte[] recipient, long[] first_hops, long tlvs, long amount_msats);
1538 public static native long LDKRouter_new(LDKRouter impl, LDKMessageRouter MessageRouter);
1539 public static native long LDKRouter_get_MessageRouter(long arg);
1540 // 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
1541 public static native long Router_find_route(long this_arg, byte[] payer, long route_params, long[] first_hops, long inflight_htlcs);
1542 // 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
1543 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);
1544 // 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
1545 public static native long Router_create_blinded_payment_paths(long this_arg, byte[] recipient, long[] first_hops, long tlvs, long amount_msats);
1546 // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesChannelManagerZ_get_a(LDKC2Tuple_ThirtyTwoBytesChannelManagerZ *NONNULL_PTR owner);
1547 public static native byte[] C2Tuple_ThirtyTwoBytesChannelManagerZ_get_a(long owner);
1548 // struct LDKChannelManager C2Tuple_ThirtyTwoBytesChannelManagerZ_get_b(LDKC2Tuple_ThirtyTwoBytesChannelManagerZ *NONNULL_PTR owner);
1549 public static native long C2Tuple_ThirtyTwoBytesChannelManagerZ_get_b(long owner);
1550 // struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ *CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
1551 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_ok(long owner);
1552 // struct LDKDecodeError CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
1553 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_get_err(long owner);
1554 public static class LDKMaxDustHTLCExposure {
1555 private LDKMaxDustHTLCExposure() {}
1556 public final static class FixedLimitMsat extends LDKMaxDustHTLCExposure {
1557 public long fixed_limit_msat;
1558 FixedLimitMsat(long fixed_limit_msat) { this.fixed_limit_msat = fixed_limit_msat; }
1560 public final static class FeeRateMultiplier extends LDKMaxDustHTLCExposure {
1561 public long fee_rate_multiplier;
1562 FeeRateMultiplier(long fee_rate_multiplier) { this.fee_rate_multiplier = fee_rate_multiplier; }
1564 static native void init();
1566 static { LDKMaxDustHTLCExposure.init(); }
1567 public static native LDKMaxDustHTLCExposure LDKMaxDustHTLCExposure_ref_from_ptr(long ptr);
1568 // struct LDKMaxDustHTLCExposure CResult_MaxDustHTLCExposureDecodeErrorZ_get_ok(LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR owner);
1569 public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_get_ok(long owner);
1570 // struct LDKDecodeError CResult_MaxDustHTLCExposureDecodeErrorZ_get_err(LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR owner);
1571 public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_get_err(long owner);
1572 // struct LDKChannelConfig CResult_ChannelConfigDecodeErrorZ_get_ok(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
1573 public static native long CResult_ChannelConfigDecodeErrorZ_get_ok(long owner);
1574 // struct LDKDecodeError CResult_ChannelConfigDecodeErrorZ_get_err(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
1575 public static native long CResult_ChannelConfigDecodeErrorZ_get_err(long owner);
1576 public static class LDKCOption_MaxDustHTLCExposureZ {
1577 private LDKCOption_MaxDustHTLCExposureZ() {}
1578 public final static class Some extends LDKCOption_MaxDustHTLCExposureZ {
1580 Some(long some) { this.some = some; }
1582 public final static class None extends LDKCOption_MaxDustHTLCExposureZ {
1585 static native void init();
1587 static { LDKCOption_MaxDustHTLCExposureZ.init(); }
1588 public static native LDKCOption_MaxDustHTLCExposureZ LDKCOption_MaxDustHTLCExposureZ_ref_from_ptr(long ptr);
1589 public static class LDKCOption_APIErrorZ {
1590 private LDKCOption_APIErrorZ() {}
1591 public final static class Some extends LDKCOption_APIErrorZ {
1593 Some(long some) { this.some = some; }
1595 public final static class None extends LDKCOption_APIErrorZ {
1598 static native void init();
1600 static { LDKCOption_APIErrorZ.init(); }
1601 public static native LDKCOption_APIErrorZ LDKCOption_APIErrorZ_ref_from_ptr(long ptr);
1602 // struct LDKCOption_APIErrorZ CResult_COption_APIErrorZDecodeErrorZ_get_ok(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR owner);
1603 public static native long CResult_COption_APIErrorZDecodeErrorZ_get_ok(long owner);
1604 // struct LDKDecodeError CResult_COption_APIErrorZDecodeErrorZ_get_err(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR owner);
1605 public static native long CResult_COption_APIErrorZDecodeErrorZ_get_err(long owner);
1606 // struct LDKChannelMonitorUpdate CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
1607 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(long owner);
1608 // struct LDKDecodeError CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
1609 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(long owner);
1610 public static class LDKCOption_MonitorEventZ {
1611 private LDKCOption_MonitorEventZ() {}
1612 public final static class Some extends LDKCOption_MonitorEventZ {
1614 Some(long some) { this.some = some; }
1616 public final static class None extends LDKCOption_MonitorEventZ {
1619 static native void init();
1621 static { LDKCOption_MonitorEventZ.init(); }
1622 public static native LDKCOption_MonitorEventZ LDKCOption_MonitorEventZ_ref_from_ptr(long ptr);
1623 // struct LDKCOption_MonitorEventZ CResult_COption_MonitorEventZDecodeErrorZ_get_ok(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
1624 public static native long CResult_COption_MonitorEventZDecodeErrorZ_get_ok(long owner);
1625 // struct LDKDecodeError CResult_COption_MonitorEventZDecodeErrorZ_get_err(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
1626 public static native long CResult_COption_MonitorEventZDecodeErrorZ_get_err(long owner);
1627 // struct LDKHTLCUpdate CResult_HTLCUpdateDecodeErrorZ_get_ok(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
1628 public static native long CResult_HTLCUpdateDecodeErrorZ_get_ok(long owner);
1629 // struct LDKDecodeError CResult_HTLCUpdateDecodeErrorZ_get_err(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
1630 public static native long CResult_HTLCUpdateDecodeErrorZ_get_err(long owner);
1631 // struct LDKOutPoint C2Tuple_OutPointCVec_u8ZZ_get_a(LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR owner);
1632 public static native long C2Tuple_OutPointCVec_u8ZZ_get_a(long owner);
1633 // struct LDKCVec_u8Z C2Tuple_OutPointCVec_u8ZZ_get_b(LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR owner);
1634 public static native byte[] C2Tuple_OutPointCVec_u8ZZ_get_b(long owner);
1635 // uint32_t C2Tuple_u32CVec_u8ZZ_get_a(LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR owner);
1636 public static native int C2Tuple_u32CVec_u8ZZ_get_a(long owner);
1637 // struct LDKCVec_u8Z C2Tuple_u32CVec_u8ZZ_get_b(LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR owner);
1638 public static native byte[] C2Tuple_u32CVec_u8ZZ_get_b(long owner);
1639 // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_a(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR owner);
1640 public static native byte[] C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_a(long owner);
1641 // struct LDKCVec_C2Tuple_u32CVec_u8ZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_b(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR owner);
1642 public static native long[] C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_get_b(long owner);
1643 // uint32_t C2Tuple_u32TxOutZ_get_a(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
1644 public static native int C2Tuple_u32TxOutZ_get_a(long owner);
1645 // struct LDKTxOut C2Tuple_u32TxOutZ_get_b(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
1646 public static native long C2Tuple_u32TxOutZ_get_b(long owner);
1647 // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_a(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
1648 public static native byte[] C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_a(long owner);
1649 // struct LDKCVec_C2Tuple_u32TxOutZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_b(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
1650 public static native long[] C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_get_b(long owner);
1651 public static class LDKBalance {
1652 private LDKBalance() {}
1653 public final static class ClaimableOnChannelClose extends LDKBalance {
1654 public long amount_satoshis;
1655 ClaimableOnChannelClose(long amount_satoshis) { this.amount_satoshis = amount_satoshis; }
1657 public final static class ClaimableAwaitingConfirmations extends LDKBalance {
1658 public long amount_satoshis;
1659 public int confirmation_height;
1660 ClaimableAwaitingConfirmations(long amount_satoshis, int confirmation_height) { this.amount_satoshis = amount_satoshis; this.confirmation_height = confirmation_height; }
1662 public final static class ContentiousClaimable extends LDKBalance {
1663 public long amount_satoshis;
1664 public int timeout_height;
1665 public byte[] payment_hash;
1666 public byte[] payment_preimage;
1667 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; }
1669 public final static class MaybeTimeoutClaimableHTLC extends LDKBalance {
1670 public long amount_satoshis;
1671 public int claimable_height;
1672 public byte[] payment_hash;
1673 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; }
1675 public final static class MaybePreimageClaimableHTLC extends LDKBalance {
1676 public long amount_satoshis;
1677 public int expiry_height;
1678 public byte[] payment_hash;
1679 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; }
1681 public final static class CounterpartyRevokedOutputClaimable extends LDKBalance {
1682 public long amount_satoshis;
1683 CounterpartyRevokedOutputClaimable(long amount_satoshis) { this.amount_satoshis = amount_satoshis; }
1685 static native void init();
1687 static { LDKBalance.init(); }
1688 public static native LDKBalance LDKBalance_ref_from_ptr(long ptr);
1689 // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_a(LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR owner);
1690 public static native byte[] C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_a(long owner);
1691 // struct LDKChannelMonitor C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_b(LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR owner);
1692 public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_get_b(long owner);
1693 // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
1694 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_ok(long owner);
1695 // struct LDKDecodeError CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
1696 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_get_err(long owner);
1697 public interface LDKType {
1702 public static native long LDKType_new(LDKType impl);
1703 // uint16_t Type_type_id LDKType *NONNULL_PTR this_arg
1704 public static native short Type_type_id(long this_arg);
1705 // LDKStr Type_debug_str LDKType *NONNULL_PTR this_arg
1706 public static native String Type_debug_str(long this_arg);
1707 // LDKCVec_u8Z Type_write LDKType *NONNULL_PTR this_arg
1708 public static native byte[] Type_write(long this_arg);
1709 // struct LDKPublicKey C2Tuple_PublicKeyTypeZ_get_a(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
1710 public static native byte[] C2Tuple_PublicKeyTypeZ_get_a(long owner);
1711 // struct LDKType C2Tuple_PublicKeyTypeZ_get_b(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
1712 public static native long C2Tuple_PublicKeyTypeZ_get_b(long owner);
1713 // struct LDKPublicKey C2Tuple_PublicKeyCVec_SocketAddressZZ_get_a(LDKC2Tuple_PublicKeyCVec_SocketAddressZZ *NONNULL_PTR owner);
1714 public static native byte[] C2Tuple_PublicKeyCVec_SocketAddressZZ_get_a(long owner);
1715 // struct LDKCVec_SocketAddressZ C2Tuple_PublicKeyCVec_SocketAddressZZ_get_b(LDKC2Tuple_PublicKeyCVec_SocketAddressZZ *NONNULL_PTR owner);
1716 public static native long[] C2Tuple_PublicKeyCVec_SocketAddressZZ_get_b(long owner);
1717 public interface LDKOnionMessageContents {
1722 public static native long LDKOnionMessageContents_new(LDKOnionMessageContents impl);
1723 // uint64_t OnionMessageContents_tlv_type LDKOnionMessageContents *NONNULL_PTR this_arg
1724 public static native long OnionMessageContents_tlv_type(long this_arg);
1725 // LDKCVec_u8Z OnionMessageContents_write LDKOnionMessageContents *NONNULL_PTR this_arg
1726 public static native byte[] OnionMessageContents_write(long this_arg);
1727 // LDKStr OnionMessageContents_debug_str LDKOnionMessageContents *NONNULL_PTR this_arg
1728 public static native String OnionMessageContents_debug_str(long this_arg);
1729 public static class LDKCOption_OnionMessageContentsZ {
1730 private LDKCOption_OnionMessageContentsZ() {}
1731 public final static class Some extends LDKCOption_OnionMessageContentsZ {
1733 Some(long some) { this.some = some; }
1735 public final static class None extends LDKCOption_OnionMessageContentsZ {
1738 static native void init();
1740 static { LDKCOption_OnionMessageContentsZ.init(); }
1741 public static native LDKCOption_OnionMessageContentsZ LDKCOption_OnionMessageContentsZ_ref_from_ptr(long ptr);
1742 // struct LDKCOption_OnionMessageContentsZ CResult_COption_OnionMessageContentsZDecodeErrorZ_get_ok(LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR owner);
1743 public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_get_ok(long owner);
1744 // struct LDKDecodeError CResult_COption_OnionMessageContentsZDecodeErrorZ_get_err(LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR owner);
1745 public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_get_err(long owner);
1746 // struct LDKOnionMessageContents C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_a(LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR owner);
1747 public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_a(long owner);
1748 // struct LDKDestination C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_b(LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR owner);
1749 public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_b(long owner);
1750 // struct LDKBlindedPath C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_c(LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR owner);
1751 public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_c(long owner);
1752 public static class LDKCOption_TypeZ {
1753 private LDKCOption_TypeZ() {}
1754 public final static class Some extends LDKCOption_TypeZ {
1756 Some(long some) { this.some = some; }
1758 public final static class None extends LDKCOption_TypeZ {
1761 static native void init();
1763 static { LDKCOption_TypeZ.init(); }
1764 public static native LDKCOption_TypeZ LDKCOption_TypeZ_ref_from_ptr(long ptr);
1765 // struct LDKCOption_TypeZ CResult_COption_TypeZDecodeErrorZ_get_ok(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
1766 public static native long CResult_COption_TypeZDecodeErrorZ_get_ok(long owner);
1767 // struct LDKDecodeError CResult_COption_TypeZDecodeErrorZ_get_err(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
1768 public static native long CResult_COption_TypeZDecodeErrorZ_get_err(long owner);
1769 public static class LDKCOption_SocketAddressZ {
1770 private LDKCOption_SocketAddressZ() {}
1771 public final static class Some extends LDKCOption_SocketAddressZ {
1773 Some(long some) { this.some = some; }
1775 public final static class None extends LDKCOption_SocketAddressZ {
1778 static native void init();
1780 static { LDKCOption_SocketAddressZ.init(); }
1781 public static native LDKCOption_SocketAddressZ LDKCOption_SocketAddressZ_ref_from_ptr(long ptr);
1782 // struct LDKPublicKey C2Tuple_PublicKeyCOption_SocketAddressZZ_get_a(LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR owner);
1783 public static native byte[] C2Tuple_PublicKeyCOption_SocketAddressZZ_get_a(long owner);
1784 // struct LDKCOption_SocketAddressZ C2Tuple_PublicKeyCOption_SocketAddressZZ_get_b(LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR owner);
1785 public static native long C2Tuple_PublicKeyCOption_SocketAddressZZ_get_b(long owner);
1786 // struct LDKCVec_u8Z CResult_CVec_u8ZPeerHandleErrorZ_get_ok(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
1787 public static native byte[] CResult_CVec_u8ZPeerHandleErrorZ_get_ok(long owner);
1788 // struct LDKPeerHandleError CResult_CVec_u8ZPeerHandleErrorZ_get_err(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
1789 public static native long CResult_CVec_u8ZPeerHandleErrorZ_get_err(long owner);
1790 // void CResult_NonePeerHandleErrorZ_get_ok(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
1791 public static native void CResult_NonePeerHandleErrorZ_get_ok(long owner);
1792 // struct LDKPeerHandleError CResult_NonePeerHandleErrorZ_get_err(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
1793 public static native long CResult_NonePeerHandleErrorZ_get_err(long owner);
1794 // bool CResult_boolPeerHandleErrorZ_get_ok(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
1795 public static native boolean CResult_boolPeerHandleErrorZ_get_ok(long owner);
1796 // struct LDKPeerHandleError CResult_boolPeerHandleErrorZ_get_err(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
1797 public static native long CResult_boolPeerHandleErrorZ_get_err(long owner);
1798 public static class LDKGraphSyncError {
1799 private LDKGraphSyncError() {}
1800 public final static class DecodeError extends LDKGraphSyncError {
1801 public long decode_error;
1802 DecodeError(long decode_error) { this.decode_error = decode_error; }
1804 public final static class LightningError extends LDKGraphSyncError {
1805 public long lightning_error;
1806 LightningError(long lightning_error) { this.lightning_error = lightning_error; }
1808 static native void init();
1810 static { LDKGraphSyncError.init(); }
1811 public static native LDKGraphSyncError LDKGraphSyncError_ref_from_ptr(long ptr);
1812 // uint32_t CResult_u32GraphSyncErrorZ_get_ok(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner);
1813 public static native int CResult_u32GraphSyncErrorZ_get_ok(long owner);
1814 // struct LDKGraphSyncError CResult_u32GraphSyncErrorZ_get_err(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner);
1815 public static native long CResult_u32GraphSyncErrorZ_get_err(long owner);
1816 // struct LDKCVec_u8Z CResult_CVec_u8ZIOErrorZ_get_ok(LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR owner);
1817 public static native byte[] CResult_CVec_u8ZIOErrorZ_get_ok(long owner);
1818 // enum LDKIOError CResult_CVec_u8ZIOErrorZ_get_err(LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR owner);
1819 public static native IOError CResult_CVec_u8ZIOErrorZ_get_err(long owner);
1820 // struct LDKCVec_StrZ CResult_CVec_StrZIOErrorZ_get_ok(LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR owner);
1821 public static native String[] CResult_CVec_StrZIOErrorZ_get_ok(long owner);
1822 // enum LDKIOError CResult_CVec_StrZIOErrorZ_get_err(LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR owner);
1823 public static native IOError CResult_CVec_StrZIOErrorZ_get_err(long owner);
1824 // struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_ok(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR owner);
1825 public static native long[] CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_ok(long owner);
1826 // enum LDKIOError CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_err(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR owner);
1827 public static native IOError CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_get_err(long owner);
1828 // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR owner);
1829 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_ok(long owner);
1830 // enum LDKIOError CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_err(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR owner);
1831 public static native IOError CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_err(long owner);
1832 public static class LDKCOption_SecretKeyZ {
1833 private LDKCOption_SecretKeyZ() {}
1834 public final static class Some extends LDKCOption_SecretKeyZ {
1836 Some(byte[] some) { this.some = some; }
1838 public final static class None extends LDKCOption_SecretKeyZ {
1841 static native void init();
1843 static { LDKCOption_SecretKeyZ.init(); }
1844 public static native LDKCOption_SecretKeyZ LDKCOption_SecretKeyZ_ref_from_ptr(long ptr);
1845 // struct LDKVerifiedInvoiceRequest CResult_VerifiedInvoiceRequestNoneZ_get_ok(LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR owner);
1846 public static native long CResult_VerifiedInvoiceRequestNoneZ_get_ok(long owner);
1847 // void CResult_VerifiedInvoiceRequestNoneZ_get_err(LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR owner);
1848 public static native void CResult_VerifiedInvoiceRequestNoneZ_get_err(long owner);
1849 public static class LDKCOption_i64Z {
1850 private LDKCOption_i64Z() {}
1851 public final static class Some extends LDKCOption_i64Z {
1853 Some(long some) { this.some = some; }
1855 public final static class None extends LDKCOption_i64Z {
1858 static native void init();
1860 static { LDKCOption_i64Z.init(); }
1861 public static native LDKCOption_i64Z LDKCOption_i64Z_ref_from_ptr(long ptr);
1862 // struct LDKSocketAddress CResult_SocketAddressDecodeErrorZ_get_ok(LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR owner);
1863 public static native long CResult_SocketAddressDecodeErrorZ_get_ok(long owner);
1864 // struct LDKDecodeError CResult_SocketAddressDecodeErrorZ_get_err(LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR owner);
1865 public static native long CResult_SocketAddressDecodeErrorZ_get_err(long owner);
1866 // struct LDKSocketAddress CResult_SocketAddressSocketAddressParseErrorZ_get_ok(LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR owner);
1867 public static native long CResult_SocketAddressSocketAddressParseErrorZ_get_ok(long owner);
1868 // enum LDKSocketAddressParseError CResult_SocketAddressSocketAddressParseErrorZ_get_err(LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR owner);
1869 public static native SocketAddressParseError CResult_SocketAddressSocketAddressParseErrorZ_get_err(long owner);
1870 // struct LDKAcceptChannel CResult_AcceptChannelDecodeErrorZ_get_ok(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
1871 public static native long CResult_AcceptChannelDecodeErrorZ_get_ok(long owner);
1872 // struct LDKDecodeError CResult_AcceptChannelDecodeErrorZ_get_err(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
1873 public static native long CResult_AcceptChannelDecodeErrorZ_get_err(long owner);
1874 // struct LDKAcceptChannelV2 CResult_AcceptChannelV2DecodeErrorZ_get_ok(LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR owner);
1875 public static native long CResult_AcceptChannelV2DecodeErrorZ_get_ok(long owner);
1876 // struct LDKDecodeError CResult_AcceptChannelV2DecodeErrorZ_get_err(LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR owner);
1877 public static native long CResult_AcceptChannelV2DecodeErrorZ_get_err(long owner);
1878 // struct LDKStfu CResult_StfuDecodeErrorZ_get_ok(LDKCResult_StfuDecodeErrorZ *NONNULL_PTR owner);
1879 public static native long CResult_StfuDecodeErrorZ_get_ok(long owner);
1880 // struct LDKDecodeError CResult_StfuDecodeErrorZ_get_err(LDKCResult_StfuDecodeErrorZ *NONNULL_PTR owner);
1881 public static native long CResult_StfuDecodeErrorZ_get_err(long owner);
1882 // struct LDKSplice CResult_SpliceDecodeErrorZ_get_ok(LDKCResult_SpliceDecodeErrorZ *NONNULL_PTR owner);
1883 public static native long CResult_SpliceDecodeErrorZ_get_ok(long owner);
1884 // struct LDKDecodeError CResult_SpliceDecodeErrorZ_get_err(LDKCResult_SpliceDecodeErrorZ *NONNULL_PTR owner);
1885 public static native long CResult_SpliceDecodeErrorZ_get_err(long owner);
1886 // struct LDKSpliceAck CResult_SpliceAckDecodeErrorZ_get_ok(LDKCResult_SpliceAckDecodeErrorZ *NONNULL_PTR owner);
1887 public static native long CResult_SpliceAckDecodeErrorZ_get_ok(long owner);
1888 // struct LDKDecodeError CResult_SpliceAckDecodeErrorZ_get_err(LDKCResult_SpliceAckDecodeErrorZ *NONNULL_PTR owner);
1889 public static native long CResult_SpliceAckDecodeErrorZ_get_err(long owner);
1890 // struct LDKSpliceLocked CResult_SpliceLockedDecodeErrorZ_get_ok(LDKCResult_SpliceLockedDecodeErrorZ *NONNULL_PTR owner);
1891 public static native long CResult_SpliceLockedDecodeErrorZ_get_ok(long owner);
1892 // struct LDKDecodeError CResult_SpliceLockedDecodeErrorZ_get_err(LDKCResult_SpliceLockedDecodeErrorZ *NONNULL_PTR owner);
1893 public static native long CResult_SpliceLockedDecodeErrorZ_get_err(long owner);
1894 // struct LDKTxAddInput CResult_TxAddInputDecodeErrorZ_get_ok(LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR owner);
1895 public static native long CResult_TxAddInputDecodeErrorZ_get_ok(long owner);
1896 // struct LDKDecodeError CResult_TxAddInputDecodeErrorZ_get_err(LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR owner);
1897 public static native long CResult_TxAddInputDecodeErrorZ_get_err(long owner);
1898 // struct LDKTxAddOutput CResult_TxAddOutputDecodeErrorZ_get_ok(LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR owner);
1899 public static native long CResult_TxAddOutputDecodeErrorZ_get_ok(long owner);
1900 // struct LDKDecodeError CResult_TxAddOutputDecodeErrorZ_get_err(LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR owner);
1901 public static native long CResult_TxAddOutputDecodeErrorZ_get_err(long owner);
1902 // struct LDKTxRemoveInput CResult_TxRemoveInputDecodeErrorZ_get_ok(LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR owner);
1903 public static native long CResult_TxRemoveInputDecodeErrorZ_get_ok(long owner);
1904 // struct LDKDecodeError CResult_TxRemoveInputDecodeErrorZ_get_err(LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR owner);
1905 public static native long CResult_TxRemoveInputDecodeErrorZ_get_err(long owner);
1906 // struct LDKTxRemoveOutput CResult_TxRemoveOutputDecodeErrorZ_get_ok(LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR owner);
1907 public static native long CResult_TxRemoveOutputDecodeErrorZ_get_ok(long owner);
1908 // struct LDKDecodeError CResult_TxRemoveOutputDecodeErrorZ_get_err(LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR owner);
1909 public static native long CResult_TxRemoveOutputDecodeErrorZ_get_err(long owner);
1910 // struct LDKTxComplete CResult_TxCompleteDecodeErrorZ_get_ok(LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR owner);
1911 public static native long CResult_TxCompleteDecodeErrorZ_get_ok(long owner);
1912 // struct LDKDecodeError CResult_TxCompleteDecodeErrorZ_get_err(LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR owner);
1913 public static native long CResult_TxCompleteDecodeErrorZ_get_err(long owner);
1914 // struct LDKTxSignatures CResult_TxSignaturesDecodeErrorZ_get_ok(LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR owner);
1915 public static native long CResult_TxSignaturesDecodeErrorZ_get_ok(long owner);
1916 // struct LDKDecodeError CResult_TxSignaturesDecodeErrorZ_get_err(LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR owner);
1917 public static native long CResult_TxSignaturesDecodeErrorZ_get_err(long owner);
1918 // struct LDKTxInitRbf CResult_TxInitRbfDecodeErrorZ_get_ok(LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR owner);
1919 public static native long CResult_TxInitRbfDecodeErrorZ_get_ok(long owner);
1920 // struct LDKDecodeError CResult_TxInitRbfDecodeErrorZ_get_err(LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR owner);
1921 public static native long CResult_TxInitRbfDecodeErrorZ_get_err(long owner);
1922 // struct LDKTxAckRbf CResult_TxAckRbfDecodeErrorZ_get_ok(LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR owner);
1923 public static native long CResult_TxAckRbfDecodeErrorZ_get_ok(long owner);
1924 // struct LDKDecodeError CResult_TxAckRbfDecodeErrorZ_get_err(LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR owner);
1925 public static native long CResult_TxAckRbfDecodeErrorZ_get_err(long owner);
1926 // struct LDKTxAbort CResult_TxAbortDecodeErrorZ_get_ok(LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR owner);
1927 public static native long CResult_TxAbortDecodeErrorZ_get_ok(long owner);
1928 // struct LDKDecodeError CResult_TxAbortDecodeErrorZ_get_err(LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR owner);
1929 public static native long CResult_TxAbortDecodeErrorZ_get_err(long owner);
1930 // struct LDKAnnouncementSignatures CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
1931 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(long owner);
1932 // struct LDKDecodeError CResult_AnnouncementSignaturesDecodeErrorZ_get_err(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
1933 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_get_err(long owner);
1934 // struct LDKChannelReestablish CResult_ChannelReestablishDecodeErrorZ_get_ok(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
1935 public static native long CResult_ChannelReestablishDecodeErrorZ_get_ok(long owner);
1936 // struct LDKDecodeError CResult_ChannelReestablishDecodeErrorZ_get_err(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
1937 public static native long CResult_ChannelReestablishDecodeErrorZ_get_err(long owner);
1938 // struct LDKClosingSigned CResult_ClosingSignedDecodeErrorZ_get_ok(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
1939 public static native long CResult_ClosingSignedDecodeErrorZ_get_ok(long owner);
1940 // struct LDKDecodeError CResult_ClosingSignedDecodeErrorZ_get_err(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
1941 public static native long CResult_ClosingSignedDecodeErrorZ_get_err(long owner);
1942 // struct LDKClosingSignedFeeRange CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
1943 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(long owner);
1944 // struct LDKDecodeError CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
1945 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(long owner);
1946 // struct LDKCommitmentSigned CResult_CommitmentSignedDecodeErrorZ_get_ok(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
1947 public static native long CResult_CommitmentSignedDecodeErrorZ_get_ok(long owner);
1948 // struct LDKDecodeError CResult_CommitmentSignedDecodeErrorZ_get_err(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
1949 public static native long CResult_CommitmentSignedDecodeErrorZ_get_err(long owner);
1950 // struct LDKFundingCreated CResult_FundingCreatedDecodeErrorZ_get_ok(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
1951 public static native long CResult_FundingCreatedDecodeErrorZ_get_ok(long owner);
1952 // struct LDKDecodeError CResult_FundingCreatedDecodeErrorZ_get_err(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
1953 public static native long CResult_FundingCreatedDecodeErrorZ_get_err(long owner);
1954 // struct LDKFundingSigned CResult_FundingSignedDecodeErrorZ_get_ok(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
1955 public static native long CResult_FundingSignedDecodeErrorZ_get_ok(long owner);
1956 // struct LDKDecodeError CResult_FundingSignedDecodeErrorZ_get_err(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
1957 public static native long CResult_FundingSignedDecodeErrorZ_get_err(long owner);
1958 // struct LDKChannelReady CResult_ChannelReadyDecodeErrorZ_get_ok(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
1959 public static native long CResult_ChannelReadyDecodeErrorZ_get_ok(long owner);
1960 // struct LDKDecodeError CResult_ChannelReadyDecodeErrorZ_get_err(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
1961 public static native long CResult_ChannelReadyDecodeErrorZ_get_err(long owner);
1962 // struct LDKInit CResult_InitDecodeErrorZ_get_ok(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
1963 public static native long CResult_InitDecodeErrorZ_get_ok(long owner);
1964 // struct LDKDecodeError CResult_InitDecodeErrorZ_get_err(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
1965 public static native long CResult_InitDecodeErrorZ_get_err(long owner);
1966 // struct LDKOpenChannel CResult_OpenChannelDecodeErrorZ_get_ok(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
1967 public static native long CResult_OpenChannelDecodeErrorZ_get_ok(long owner);
1968 // struct LDKDecodeError CResult_OpenChannelDecodeErrorZ_get_err(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
1969 public static native long CResult_OpenChannelDecodeErrorZ_get_err(long owner);
1970 // struct LDKOpenChannelV2 CResult_OpenChannelV2DecodeErrorZ_get_ok(LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR owner);
1971 public static native long CResult_OpenChannelV2DecodeErrorZ_get_ok(long owner);
1972 // struct LDKDecodeError CResult_OpenChannelV2DecodeErrorZ_get_err(LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR owner);
1973 public static native long CResult_OpenChannelV2DecodeErrorZ_get_err(long owner);
1974 // struct LDKRevokeAndACK CResult_RevokeAndACKDecodeErrorZ_get_ok(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
1975 public static native long CResult_RevokeAndACKDecodeErrorZ_get_ok(long owner);
1976 // struct LDKDecodeError CResult_RevokeAndACKDecodeErrorZ_get_err(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
1977 public static native long CResult_RevokeAndACKDecodeErrorZ_get_err(long owner);
1978 // struct LDKShutdown CResult_ShutdownDecodeErrorZ_get_ok(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
1979 public static native long CResult_ShutdownDecodeErrorZ_get_ok(long owner);
1980 // struct LDKDecodeError CResult_ShutdownDecodeErrorZ_get_err(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
1981 public static native long CResult_ShutdownDecodeErrorZ_get_err(long owner);
1982 // struct LDKUpdateFailHTLC CResult_UpdateFailHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
1983 public static native long CResult_UpdateFailHTLCDecodeErrorZ_get_ok(long owner);
1984 // struct LDKDecodeError CResult_UpdateFailHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
1985 public static native long CResult_UpdateFailHTLCDecodeErrorZ_get_err(long owner);
1986 // struct LDKUpdateFailMalformedHTLC CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
1987 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(long owner);
1988 // struct LDKDecodeError CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
1989 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(long owner);
1990 // struct LDKUpdateFee CResult_UpdateFeeDecodeErrorZ_get_ok(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
1991 public static native long CResult_UpdateFeeDecodeErrorZ_get_ok(long owner);
1992 // struct LDKDecodeError CResult_UpdateFeeDecodeErrorZ_get_err(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
1993 public static native long CResult_UpdateFeeDecodeErrorZ_get_err(long owner);
1994 // struct LDKUpdateFulfillHTLC CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
1995 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(long owner);
1996 // struct LDKDecodeError CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
1997 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(long owner);
1998 // struct LDKOnionPacket CResult_OnionPacketDecodeErrorZ_get_ok(LDKCResult_OnionPacketDecodeErrorZ *NONNULL_PTR owner);
1999 public static native long CResult_OnionPacketDecodeErrorZ_get_ok(long owner);
2000 // struct LDKDecodeError CResult_OnionPacketDecodeErrorZ_get_err(LDKCResult_OnionPacketDecodeErrorZ *NONNULL_PTR owner);
2001 public static native long CResult_OnionPacketDecodeErrorZ_get_err(long owner);
2002 // struct LDKUpdateAddHTLC CResult_UpdateAddHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
2003 public static native long CResult_UpdateAddHTLCDecodeErrorZ_get_ok(long owner);
2004 // struct LDKDecodeError CResult_UpdateAddHTLCDecodeErrorZ_get_err(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
2005 public static native long CResult_UpdateAddHTLCDecodeErrorZ_get_err(long owner);
2006 // struct LDKOnionMessage CResult_OnionMessageDecodeErrorZ_get_ok(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR owner);
2007 public static native long CResult_OnionMessageDecodeErrorZ_get_ok(long owner);
2008 // struct LDKDecodeError CResult_OnionMessageDecodeErrorZ_get_err(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR owner);
2009 public static native long CResult_OnionMessageDecodeErrorZ_get_err(long owner);
2010 // struct LDKFinalOnionHopData CResult_FinalOnionHopDataDecodeErrorZ_get_ok(LDKCResult_FinalOnionHopDataDecodeErrorZ *NONNULL_PTR owner);
2011 public static native long CResult_FinalOnionHopDataDecodeErrorZ_get_ok(long owner);
2012 // struct LDKDecodeError CResult_FinalOnionHopDataDecodeErrorZ_get_err(LDKCResult_FinalOnionHopDataDecodeErrorZ *NONNULL_PTR owner);
2013 public static native long CResult_FinalOnionHopDataDecodeErrorZ_get_err(long owner);
2014 // struct LDKPing CResult_PingDecodeErrorZ_get_ok(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
2015 public static native long CResult_PingDecodeErrorZ_get_ok(long owner);
2016 // struct LDKDecodeError CResult_PingDecodeErrorZ_get_err(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
2017 public static native long CResult_PingDecodeErrorZ_get_err(long owner);
2018 // struct LDKPong CResult_PongDecodeErrorZ_get_ok(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
2019 public static native long CResult_PongDecodeErrorZ_get_ok(long owner);
2020 // struct LDKDecodeError CResult_PongDecodeErrorZ_get_err(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
2021 public static native long CResult_PongDecodeErrorZ_get_err(long owner);
2022 // struct LDKUnsignedChannelAnnouncement CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
2023 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(long owner);
2024 // struct LDKDecodeError CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
2025 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(long owner);
2026 // struct LDKChannelAnnouncement CResult_ChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
2027 public static native long CResult_ChannelAnnouncementDecodeErrorZ_get_ok(long owner);
2028 // struct LDKDecodeError CResult_ChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
2029 public static native long CResult_ChannelAnnouncementDecodeErrorZ_get_err(long owner);
2030 // struct LDKUnsignedChannelUpdate CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
2031 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(long owner);
2032 // struct LDKDecodeError CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
2033 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(long owner);
2034 // struct LDKChannelUpdate CResult_ChannelUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
2035 public static native long CResult_ChannelUpdateDecodeErrorZ_get_ok(long owner);
2036 // struct LDKDecodeError CResult_ChannelUpdateDecodeErrorZ_get_err(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
2037 public static native long CResult_ChannelUpdateDecodeErrorZ_get_err(long owner);
2038 // struct LDKErrorMessage CResult_ErrorMessageDecodeErrorZ_get_ok(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
2039 public static native long CResult_ErrorMessageDecodeErrorZ_get_ok(long owner);
2040 // struct LDKDecodeError CResult_ErrorMessageDecodeErrorZ_get_err(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
2041 public static native long CResult_ErrorMessageDecodeErrorZ_get_err(long owner);
2042 // struct LDKWarningMessage CResult_WarningMessageDecodeErrorZ_get_ok(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
2043 public static native long CResult_WarningMessageDecodeErrorZ_get_ok(long owner);
2044 // struct LDKDecodeError CResult_WarningMessageDecodeErrorZ_get_err(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
2045 public static native long CResult_WarningMessageDecodeErrorZ_get_err(long owner);
2046 // struct LDKUnsignedNodeAnnouncement CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
2047 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(long owner);
2048 // struct LDKDecodeError CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
2049 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(long owner);
2050 // struct LDKNodeAnnouncement CResult_NodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
2051 public static native long CResult_NodeAnnouncementDecodeErrorZ_get_ok(long owner);
2052 // struct LDKDecodeError CResult_NodeAnnouncementDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
2053 public static native long CResult_NodeAnnouncementDecodeErrorZ_get_err(long owner);
2054 // struct LDKQueryShortChannelIds CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
2055 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(long owner);
2056 // struct LDKDecodeError CResult_QueryShortChannelIdsDecodeErrorZ_get_err(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
2057 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_get_err(long owner);
2058 // struct LDKReplyShortChannelIdsEnd CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
2059 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(long owner);
2060 // struct LDKDecodeError CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
2061 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(long owner);
2062 // struct LDKQueryChannelRange CResult_QueryChannelRangeDecodeErrorZ_get_ok(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
2063 public static native long CResult_QueryChannelRangeDecodeErrorZ_get_ok(long owner);
2064 // struct LDKDecodeError CResult_QueryChannelRangeDecodeErrorZ_get_err(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
2065 public static native long CResult_QueryChannelRangeDecodeErrorZ_get_err(long owner);
2066 // struct LDKReplyChannelRange CResult_ReplyChannelRangeDecodeErrorZ_get_ok(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
2067 public static native long CResult_ReplyChannelRangeDecodeErrorZ_get_ok(long owner);
2068 // struct LDKDecodeError CResult_ReplyChannelRangeDecodeErrorZ_get_err(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
2069 public static native long CResult_ReplyChannelRangeDecodeErrorZ_get_err(long owner);
2070 // struct LDKGossipTimestampFilter CResult_GossipTimestampFilterDecodeErrorZ_get_ok(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
2071 public static native long CResult_GossipTimestampFilterDecodeErrorZ_get_ok(long owner);
2072 // struct LDKDecodeError CResult_GossipTimestampFilterDecodeErrorZ_get_err(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
2073 public static native long CResult_GossipTimestampFilterDecodeErrorZ_get_err(long owner);
2074 public static class LDKSignOrCreationError {
2075 private LDKSignOrCreationError() {}
2076 public final static class SignError extends LDKSignOrCreationError {
2079 public final static class CreationError extends LDKSignOrCreationError {
2080 public org.ldk.enums.CreationError creation_error;
2081 CreationError(org.ldk.enums.CreationError creation_error) { this.creation_error = creation_error; }
2083 static native void init();
2085 static { LDKSignOrCreationError.init(); }
2086 public static native LDKSignOrCreationError LDKSignOrCreationError_ref_from_ptr(long ptr);
2087 // struct LDKBolt11Invoice CResult_Bolt11InvoiceSignOrCreationErrorZ_get_ok(LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
2088 public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_get_ok(long owner);
2089 // struct LDKSignOrCreationError CResult_Bolt11InvoiceSignOrCreationErrorZ_get_err(LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
2090 public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_get_err(long owner);
2091 // struct LDKOffersMessage CResult_OffersMessageDecodeErrorZ_get_ok(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR owner);
2092 public static native long CResult_OffersMessageDecodeErrorZ_get_ok(long owner);
2093 // struct LDKDecodeError CResult_OffersMessageDecodeErrorZ_get_err(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR owner);
2094 public static native long CResult_OffersMessageDecodeErrorZ_get_err(long owner);
2095 public static class LDKCOption_HTLCClaimZ {
2096 private LDKCOption_HTLCClaimZ() {}
2097 public final static class Some extends LDKCOption_HTLCClaimZ {
2098 public org.ldk.enums.HTLCClaim some;
2099 Some(org.ldk.enums.HTLCClaim some) { this.some = some; }
2101 public final static class None extends LDKCOption_HTLCClaimZ {
2104 static native void init();
2106 static { LDKCOption_HTLCClaimZ.init(); }
2107 public static native LDKCOption_HTLCClaimZ LDKCOption_HTLCClaimZ_ref_from_ptr(long ptr);
2108 // struct LDKCounterpartyCommitmentSecrets CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
2109 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(long owner);
2110 // struct LDKDecodeError CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
2111 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(long owner);
2112 // struct LDKTxCreationKeys CResult_TxCreationKeysDecodeErrorZ_get_ok(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
2113 public static native long CResult_TxCreationKeysDecodeErrorZ_get_ok(long owner);
2114 // struct LDKDecodeError CResult_TxCreationKeysDecodeErrorZ_get_err(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
2115 public static native long CResult_TxCreationKeysDecodeErrorZ_get_err(long owner);
2116 // struct LDKChannelPublicKeys CResult_ChannelPublicKeysDecodeErrorZ_get_ok(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
2117 public static native long CResult_ChannelPublicKeysDecodeErrorZ_get_ok(long owner);
2118 // struct LDKDecodeError CResult_ChannelPublicKeysDecodeErrorZ_get_err(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
2119 public static native long CResult_ChannelPublicKeysDecodeErrorZ_get_err(long owner);
2120 // struct LDKHTLCOutputInCommitment CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
2121 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(long owner);
2122 // struct LDKDecodeError CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
2123 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(long owner);
2124 // struct LDKCounterpartyChannelTransactionParameters CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
2125 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(long owner);
2126 // struct LDKDecodeError CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
2127 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(long owner);
2128 // struct LDKChannelTransactionParameters CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
2129 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(long owner);
2130 // struct LDKDecodeError CResult_ChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
2131 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_get_err(long owner);
2132 // struct LDKHolderCommitmentTransaction CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
2133 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(long owner);
2134 // struct LDKDecodeError CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
2135 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(long owner);
2136 // struct LDKBuiltCommitmentTransaction CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
2137 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(long owner);
2138 // struct LDKDecodeError CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
2139 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(long owner);
2140 // struct LDKTrustedClosingTransaction CResult_TrustedClosingTransactionNoneZ_get_ok(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
2141 public static native long CResult_TrustedClosingTransactionNoneZ_get_ok(long owner);
2142 // void CResult_TrustedClosingTransactionNoneZ_get_err(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
2143 public static native void CResult_TrustedClosingTransactionNoneZ_get_err(long owner);
2144 // struct LDKCommitmentTransaction CResult_CommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
2145 public static native long CResult_CommitmentTransactionDecodeErrorZ_get_ok(long owner);
2146 // struct LDKDecodeError CResult_CommitmentTransactionDecodeErrorZ_get_err(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
2147 public static native long CResult_CommitmentTransactionDecodeErrorZ_get_err(long owner);
2148 // struct LDKTrustedCommitmentTransaction CResult_TrustedCommitmentTransactionNoneZ_get_ok(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
2149 public static native long CResult_TrustedCommitmentTransactionNoneZ_get_ok(long owner);
2150 // void CResult_TrustedCommitmentTransactionNoneZ_get_err(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
2151 public static native void CResult_TrustedCommitmentTransactionNoneZ_get_err(long owner);
2152 // struct LDKCVec_ECDSASignatureZ CResult_CVec_ECDSASignatureZNoneZ_get_ok(LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR owner);
2153 public static native byte[][] CResult_CVec_ECDSASignatureZNoneZ_get_ok(long owner);
2154 // void CResult_CVec_ECDSASignatureZNoneZ_get_err(LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR owner);
2155 public static native void CResult_CVec_ECDSASignatureZNoneZ_get_err(long owner);
2156 public static class LDKCOption_usizeZ {
2157 private LDKCOption_usizeZ() {}
2158 public final static class Some extends LDKCOption_usizeZ {
2160 Some(long some) { this.some = some; }
2162 public final static class None extends LDKCOption_usizeZ {
2165 static native void init();
2167 static { LDKCOption_usizeZ.init(); }
2168 public static native LDKCOption_usizeZ LDKCOption_usizeZ_ref_from_ptr(long ptr);
2169 // struct LDKShutdownScript CResult_ShutdownScriptDecodeErrorZ_get_ok(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
2170 public static native long CResult_ShutdownScriptDecodeErrorZ_get_ok(long owner);
2171 // struct LDKDecodeError CResult_ShutdownScriptDecodeErrorZ_get_err(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
2172 public static native long CResult_ShutdownScriptDecodeErrorZ_get_err(long owner);
2173 // struct LDKShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
2174 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(long owner);
2175 // struct LDKInvalidShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
2176 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(long owner);
2177 public static class LDKPaymentPurpose {
2178 private LDKPaymentPurpose() {}
2179 public final static class InvoicePayment extends LDKPaymentPurpose {
2180 public long payment_preimage;
2181 public byte[] payment_secret;
2182 InvoicePayment(long payment_preimage, byte[] payment_secret) { this.payment_preimage = payment_preimage; this.payment_secret = payment_secret; }
2184 public final static class SpontaneousPayment extends LDKPaymentPurpose {
2185 public byte[] spontaneous_payment;
2186 SpontaneousPayment(byte[] spontaneous_payment) { this.spontaneous_payment = spontaneous_payment; }
2188 static native void init();
2190 static { LDKPaymentPurpose.init(); }
2191 public static native LDKPaymentPurpose LDKPaymentPurpose_ref_from_ptr(long ptr);
2192 // struct LDKPaymentPurpose CResult_PaymentPurposeDecodeErrorZ_get_ok(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
2193 public static native long CResult_PaymentPurposeDecodeErrorZ_get_ok(long owner);
2194 // struct LDKDecodeError CResult_PaymentPurposeDecodeErrorZ_get_err(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
2195 public static native long CResult_PaymentPurposeDecodeErrorZ_get_err(long owner);
2196 // struct LDKClaimedHTLC CResult_ClaimedHTLCDecodeErrorZ_get_ok(LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR owner);
2197 public static native long CResult_ClaimedHTLCDecodeErrorZ_get_ok(long owner);
2198 // struct LDKDecodeError CResult_ClaimedHTLCDecodeErrorZ_get_err(LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR owner);
2199 public static native long CResult_ClaimedHTLCDecodeErrorZ_get_err(long owner);
2200 public static class LDKPathFailure {
2201 private LDKPathFailure() {}
2202 public final static class InitialSend extends LDKPathFailure {
2204 InitialSend(long err) { this.err = err; }
2206 public final static class OnPath extends LDKPathFailure {
2207 public long network_update;
2208 OnPath(long network_update) { this.network_update = network_update; }
2210 static native void init();
2212 static { LDKPathFailure.init(); }
2213 public static native LDKPathFailure LDKPathFailure_ref_from_ptr(long ptr);
2214 public static class LDKCOption_PathFailureZ {
2215 private LDKCOption_PathFailureZ() {}
2216 public final static class Some extends LDKCOption_PathFailureZ {
2218 Some(long some) { this.some = some; }
2220 public final static class None extends LDKCOption_PathFailureZ {
2223 static native void init();
2225 static { LDKCOption_PathFailureZ.init(); }
2226 public static native LDKCOption_PathFailureZ LDKCOption_PathFailureZ_ref_from_ptr(long ptr);
2227 // struct LDKCOption_PathFailureZ CResult_COption_PathFailureZDecodeErrorZ_get_ok(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR owner);
2228 public static native long CResult_COption_PathFailureZDecodeErrorZ_get_ok(long owner);
2229 // struct LDKDecodeError CResult_COption_PathFailureZDecodeErrorZ_get_err(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR owner);
2230 public static native long CResult_COption_PathFailureZDecodeErrorZ_get_err(long owner);
2231 public static class LDKClosureReason {
2232 private LDKClosureReason() {}
2233 public final static class CounterpartyForceClosed extends LDKClosureReason {
2234 public long peer_msg;
2235 CounterpartyForceClosed(long peer_msg) { this.peer_msg = peer_msg; }
2237 public final static class HolderForceClosed extends LDKClosureReason {
2238 HolderForceClosed() { }
2240 public final static class CooperativeClosure extends LDKClosureReason {
2241 CooperativeClosure() { }
2243 public final static class CommitmentTxConfirmed extends LDKClosureReason {
2244 CommitmentTxConfirmed() { }
2246 public final static class FundingTimedOut extends LDKClosureReason {
2247 FundingTimedOut() { }
2249 public final static class ProcessingError extends LDKClosureReason {
2250 public java.lang.String err;
2251 ProcessingError(java.lang.String err) { this.err = err; }
2253 public final static class DisconnectedPeer extends LDKClosureReason {
2254 DisconnectedPeer() { }
2256 public final static class OutdatedChannelManager extends LDKClosureReason {
2257 OutdatedChannelManager() { }
2259 public final static class CounterpartyCoopClosedUnfundedChannel extends LDKClosureReason {
2260 CounterpartyCoopClosedUnfundedChannel() { }
2262 public final static class FundingBatchClosure extends LDKClosureReason {
2263 FundingBatchClosure() { }
2265 static native void init();
2267 static { LDKClosureReason.init(); }
2268 public static native LDKClosureReason LDKClosureReason_ref_from_ptr(long ptr);
2269 public static class LDKCOption_ClosureReasonZ {
2270 private LDKCOption_ClosureReasonZ() {}
2271 public final static class Some extends LDKCOption_ClosureReasonZ {
2273 Some(long some) { this.some = some; }
2275 public final static class None extends LDKCOption_ClosureReasonZ {
2278 static native void init();
2280 static { LDKCOption_ClosureReasonZ.init(); }
2281 public static native LDKCOption_ClosureReasonZ LDKCOption_ClosureReasonZ_ref_from_ptr(long ptr);
2282 // struct LDKCOption_ClosureReasonZ CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
2283 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(long owner);
2284 // struct LDKDecodeError CResult_COption_ClosureReasonZDecodeErrorZ_get_err(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
2285 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_get_err(long owner);
2286 public static class LDKHTLCDestination {
2287 private LDKHTLCDestination() {}
2288 public final static class NextHopChannel extends LDKHTLCDestination {
2289 public byte[] node_id;
2290 public byte[] channel_id;
2291 NextHopChannel(byte[] node_id, byte[] channel_id) { this.node_id = node_id; this.channel_id = channel_id; }
2293 public final static class UnknownNextHop extends LDKHTLCDestination {
2294 public long requested_forward_scid;
2295 UnknownNextHop(long requested_forward_scid) { this.requested_forward_scid = requested_forward_scid; }
2297 public final static class InvalidForward extends LDKHTLCDestination {
2298 public long requested_forward_scid;
2299 InvalidForward(long requested_forward_scid) { this.requested_forward_scid = requested_forward_scid; }
2301 public final static class FailedPayment extends LDKHTLCDestination {
2302 public byte[] payment_hash;
2303 FailedPayment(byte[] payment_hash) { this.payment_hash = payment_hash; }
2305 static native void init();
2307 static { LDKHTLCDestination.init(); }
2308 public static native LDKHTLCDestination LDKHTLCDestination_ref_from_ptr(long ptr);
2309 public static class LDKCOption_HTLCDestinationZ {
2310 private LDKCOption_HTLCDestinationZ() {}
2311 public final static class Some extends LDKCOption_HTLCDestinationZ {
2313 Some(long some) { this.some = some; }
2315 public final static class None extends LDKCOption_HTLCDestinationZ {
2318 static native void init();
2320 static { LDKCOption_HTLCDestinationZ.init(); }
2321 public static native LDKCOption_HTLCDestinationZ LDKCOption_HTLCDestinationZ_ref_from_ptr(long ptr);
2322 // struct LDKCOption_HTLCDestinationZ CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner);
2323 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(long owner);
2324 // struct LDKDecodeError CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner);
2325 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(long owner);
2326 // enum LDKPaymentFailureReason CResult_PaymentFailureReasonDecodeErrorZ_get_ok(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR owner);
2327 public static native PaymentFailureReason CResult_PaymentFailureReasonDecodeErrorZ_get_ok(long owner);
2328 // struct LDKDecodeError CResult_PaymentFailureReasonDecodeErrorZ_get_err(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR owner);
2329 public static native long CResult_PaymentFailureReasonDecodeErrorZ_get_err(long owner);
2330 public static class LDKCOption_U128Z {
2331 private LDKCOption_U128Z() {}
2332 public final static class Some extends LDKCOption_U128Z {
2334 Some(byte[] some) { this.some = some; }
2336 public final static class None extends LDKCOption_U128Z {
2339 static native void init();
2341 static { LDKCOption_U128Z.init(); }
2342 public static native LDKCOption_U128Z LDKCOption_U128Z_ref_from_ptr(long ptr);
2343 public static class LDKCOption_PaymentFailureReasonZ {
2344 private LDKCOption_PaymentFailureReasonZ() {}
2345 public final static class Some extends LDKCOption_PaymentFailureReasonZ {
2346 public org.ldk.enums.PaymentFailureReason some;
2347 Some(org.ldk.enums.PaymentFailureReason some) { this.some = some; }
2349 public final static class None extends LDKCOption_PaymentFailureReasonZ {
2352 static native void init();
2354 static { LDKCOption_PaymentFailureReasonZ.init(); }
2355 public static native LDKCOption_PaymentFailureReasonZ LDKCOption_PaymentFailureReasonZ_ref_from_ptr(long ptr);
2356 public static class LDKBumpTransactionEvent {
2357 private LDKBumpTransactionEvent() {}
2358 public final static class ChannelClose extends LDKBumpTransactionEvent {
2359 public byte[] claim_id;
2360 public int package_target_feerate_sat_per_1000_weight;
2361 public byte[] commitment_tx;
2362 public long commitment_tx_fee_satoshis;
2363 public long anchor_descriptor;
2364 public long[] pending_htlcs;
2365 ChannelClose(byte[] claim_id, int package_target_feerate_sat_per_1000_weight, byte[] commitment_tx, long commitment_tx_fee_satoshis, long anchor_descriptor, long[] pending_htlcs) { this.claim_id = claim_id; this.package_target_feerate_sat_per_1000_weight = package_target_feerate_sat_per_1000_weight; this.commitment_tx = commitment_tx; this.commitment_tx_fee_satoshis = commitment_tx_fee_satoshis; this.anchor_descriptor = anchor_descriptor; this.pending_htlcs = pending_htlcs; }
2367 public final static class HTLCResolution extends LDKBumpTransactionEvent {
2368 public byte[] claim_id;
2369 public int target_feerate_sat_per_1000_weight;
2370 public long[] htlc_descriptors;
2371 public int tx_lock_time;
2372 HTLCResolution(byte[] claim_id, int target_feerate_sat_per_1000_weight, long[] htlc_descriptors, int tx_lock_time) { this.claim_id = claim_id; this.target_feerate_sat_per_1000_weight = target_feerate_sat_per_1000_weight; this.htlc_descriptors = htlc_descriptors; this.tx_lock_time = tx_lock_time; }
2374 static native void init();
2376 static { LDKBumpTransactionEvent.init(); }
2377 public static native LDKBumpTransactionEvent LDKBumpTransactionEvent_ref_from_ptr(long ptr);
2378 public static class LDKEvent {
2379 private LDKEvent() {}
2380 public final static class FundingGenerationReady extends LDKEvent {
2381 public byte[] temporary_channel_id;
2382 public byte[] counterparty_node_id;
2383 public long channel_value_satoshis;
2384 public byte[] output_script;
2385 public byte[] user_channel_id;
2386 FundingGenerationReady(byte[] temporary_channel_id, byte[] counterparty_node_id, long channel_value_satoshis, byte[] output_script, byte[] user_channel_id) { this.temporary_channel_id = temporary_channel_id; this.counterparty_node_id = counterparty_node_id; this.channel_value_satoshis = channel_value_satoshis; this.output_script = output_script; this.user_channel_id = user_channel_id; }
2388 public final static class PaymentClaimable extends LDKEvent {
2389 public byte[] receiver_node_id;
2390 public byte[] payment_hash;
2391 public long onion_fields;
2392 public long amount_msat;
2393 public long counterparty_skimmed_fee_msat;
2394 public long purpose;
2395 public long via_channel_id;
2396 public long via_user_channel_id;
2397 public long claim_deadline;
2398 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; }
2400 public final static class PaymentClaimed extends LDKEvent {
2401 public byte[] receiver_node_id;
2402 public byte[] payment_hash;
2403 public long amount_msat;
2404 public long purpose;
2405 public long[] htlcs;
2406 public long sender_intended_total_msat;
2407 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; }
2409 public final static class ConnectionNeeded extends LDKEvent {
2410 public byte[] node_id;
2411 public long[] addresses;
2412 ConnectionNeeded(byte[] node_id, long[] addresses) { this.node_id = node_id; this.addresses = addresses; }
2414 public final static class InvoiceRequestFailed extends LDKEvent {
2415 public byte[] payment_id;
2416 InvoiceRequestFailed(byte[] payment_id) { this.payment_id = payment_id; }
2418 public final static class PaymentSent extends LDKEvent {
2419 public long payment_id;
2420 public byte[] payment_preimage;
2421 public byte[] payment_hash;
2422 public long fee_paid_msat;
2423 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; }
2425 public final static class PaymentFailed extends LDKEvent {
2426 public byte[] payment_id;
2427 public byte[] payment_hash;
2429 PaymentFailed(byte[] payment_id, byte[] payment_hash, long reason) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.reason = reason; }
2431 public final static class PaymentPathSuccessful extends LDKEvent {
2432 public byte[] payment_id;
2433 public long payment_hash;
2435 PaymentPathSuccessful(byte[] payment_id, long payment_hash, long path) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.path = path; }
2437 public final static class PaymentPathFailed extends LDKEvent {
2438 public long payment_id;
2439 public byte[] payment_hash;
2440 public boolean payment_failed_permanently;
2441 public long failure;
2443 public long short_channel_id;
2444 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; }
2446 public final static class ProbeSuccessful extends LDKEvent {
2447 public byte[] payment_id;
2448 public byte[] payment_hash;
2450 ProbeSuccessful(byte[] payment_id, byte[] payment_hash, long path) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.path = path; }
2452 public final static class ProbeFailed extends LDKEvent {
2453 public byte[] payment_id;
2454 public byte[] payment_hash;
2456 public long short_channel_id;
2457 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; }
2459 public final static class PendingHTLCsForwardable extends LDKEvent {
2460 public long time_forwardable;
2461 PendingHTLCsForwardable(long time_forwardable) { this.time_forwardable = time_forwardable; }
2463 public final static class HTLCIntercepted extends LDKEvent {
2464 public byte[] intercept_id;
2465 public long requested_next_hop_scid;
2466 public byte[] payment_hash;
2467 public long inbound_amount_msat;
2468 public long expected_outbound_amount_msat;
2469 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; }
2471 public final static class SpendableOutputs extends LDKEvent {
2472 public long[] outputs;
2473 public long channel_id;
2474 SpendableOutputs(long[] outputs, long channel_id) { this.outputs = outputs; this.channel_id = channel_id; }
2476 public final static class PaymentForwarded extends LDKEvent {
2477 public long prev_channel_id;
2478 public long next_channel_id;
2479 public long fee_earned_msat;
2480 public boolean claim_from_onchain_tx;
2481 public long outbound_amount_forwarded_msat;
2482 PaymentForwarded(long prev_channel_id, long next_channel_id, long fee_earned_msat, boolean claim_from_onchain_tx, long outbound_amount_forwarded_msat) { this.prev_channel_id = prev_channel_id; this.next_channel_id = next_channel_id; this.fee_earned_msat = fee_earned_msat; this.claim_from_onchain_tx = claim_from_onchain_tx; this.outbound_amount_forwarded_msat = outbound_amount_forwarded_msat; }
2484 public final static class ChannelPending extends LDKEvent {
2485 public byte[] channel_id;
2486 public byte[] user_channel_id;
2487 public long former_temporary_channel_id;
2488 public byte[] counterparty_node_id;
2489 public long funding_txo;
2490 ChannelPending(byte[] channel_id, byte[] user_channel_id, long former_temporary_channel_id, byte[] counterparty_node_id, long funding_txo) { this.channel_id = channel_id; this.user_channel_id = user_channel_id; this.former_temporary_channel_id = former_temporary_channel_id; this.counterparty_node_id = counterparty_node_id; this.funding_txo = funding_txo; }
2492 public final static class ChannelReady extends LDKEvent {
2493 public byte[] channel_id;
2494 public byte[] user_channel_id;
2495 public byte[] counterparty_node_id;
2496 public long channel_type;
2497 ChannelReady(byte[] channel_id, byte[] user_channel_id, byte[] counterparty_node_id, long channel_type) { this.channel_id = channel_id; this.user_channel_id = user_channel_id; this.counterparty_node_id = counterparty_node_id; this.channel_type = channel_type; }
2499 public final static class ChannelClosed extends LDKEvent {
2500 public byte[] channel_id;
2501 public byte[] user_channel_id;
2503 public byte[] counterparty_node_id;
2504 public long channel_capacity_sats;
2505 public long channel_funding_txo;
2506 ChannelClosed(byte[] 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; }
2508 public final static class DiscardFunding extends LDKEvent {
2509 public byte[] channel_id;
2510 public byte[] transaction;
2511 DiscardFunding(byte[] channel_id, byte[] transaction) { this.channel_id = channel_id; this.transaction = transaction; }
2513 public final static class OpenChannelRequest extends LDKEvent {
2514 public byte[] temporary_channel_id;
2515 public byte[] counterparty_node_id;
2516 public long funding_satoshis;
2517 public long push_msat;
2518 public long channel_type;
2519 OpenChannelRequest(byte[] temporary_channel_id, byte[] counterparty_node_id, long funding_satoshis, long push_msat, long channel_type) { this.temporary_channel_id = temporary_channel_id; this.counterparty_node_id = counterparty_node_id; this.funding_satoshis = funding_satoshis; this.push_msat = push_msat; this.channel_type = channel_type; }
2521 public final static class HTLCHandlingFailed extends LDKEvent {
2522 public byte[] prev_channel_id;
2523 public long failed_next_destination;
2524 HTLCHandlingFailed(byte[] prev_channel_id, long failed_next_destination) { this.prev_channel_id = prev_channel_id; this.failed_next_destination = failed_next_destination; }
2526 public final static class BumpTransaction extends LDKEvent {
2527 public long bump_transaction;
2528 BumpTransaction(long bump_transaction) { this.bump_transaction = bump_transaction; }
2530 static native void init();
2532 static { LDKEvent.init(); }
2533 public static native LDKEvent LDKEvent_ref_from_ptr(long ptr);
2534 public static class LDKCOption_EventZ {
2535 private LDKCOption_EventZ() {}
2536 public final static class Some extends LDKCOption_EventZ {
2538 Some(long some) { this.some = some; }
2540 public final static class None extends LDKCOption_EventZ {
2543 static native void init();
2545 static { LDKCOption_EventZ.init(); }
2546 public static native LDKCOption_EventZ LDKCOption_EventZ_ref_from_ptr(long ptr);
2547 // struct LDKCOption_EventZ CResult_COption_EventZDecodeErrorZ_get_ok(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
2548 public static native long CResult_COption_EventZDecodeErrorZ_get_ok(long owner);
2549 // struct LDKDecodeError CResult_COption_EventZDecodeErrorZ_get_err(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
2550 public static native long CResult_COption_EventZDecodeErrorZ_get_err(long owner);
2551 public static class LDKBolt11ParseError {
2552 private LDKBolt11ParseError() {}
2553 public final static class Bech32Error extends LDKBolt11ParseError {
2554 public long bech32_error;
2555 Bech32Error(long bech32_error) { this.bech32_error = bech32_error; }
2557 public final static class ParseAmountError extends LDKBolt11ParseError {
2558 public int parse_amount_error;
2559 ParseAmountError(int parse_amount_error) { this.parse_amount_error = parse_amount_error; }
2561 public final static class MalformedSignature extends LDKBolt11ParseError {
2562 public org.ldk.enums.Secp256k1Error malformed_signature;
2563 MalformedSignature(org.ldk.enums.Secp256k1Error malformed_signature) { this.malformed_signature = malformed_signature; }
2565 public final static class BadPrefix extends LDKBolt11ParseError {
2568 public final static class UnknownCurrency extends LDKBolt11ParseError {
2569 UnknownCurrency() { }
2571 public final static class UnknownSiPrefix extends LDKBolt11ParseError {
2572 UnknownSiPrefix() { }
2574 public final static class MalformedHRP extends LDKBolt11ParseError {
2577 public final static class TooShortDataPart extends LDKBolt11ParseError {
2578 TooShortDataPart() { }
2580 public final static class UnexpectedEndOfTaggedFields extends LDKBolt11ParseError {
2581 UnexpectedEndOfTaggedFields() { }
2583 public final static class DescriptionDecodeError extends LDKBolt11ParseError {
2584 public int description_decode_error;
2585 DescriptionDecodeError(int description_decode_error) { this.description_decode_error = description_decode_error; }
2587 public final static class PaddingError extends LDKBolt11ParseError {
2590 public final static class IntegerOverflowError extends LDKBolt11ParseError {
2591 IntegerOverflowError() { }
2593 public final static class InvalidSegWitProgramLength extends LDKBolt11ParseError {
2594 InvalidSegWitProgramLength() { }
2596 public final static class InvalidPubKeyHashLength extends LDKBolt11ParseError {
2597 InvalidPubKeyHashLength() { }
2599 public final static class InvalidScriptHashLength extends LDKBolt11ParseError {
2600 InvalidScriptHashLength() { }
2602 public final static class InvalidRecoveryId extends LDKBolt11ParseError {
2603 InvalidRecoveryId() { }
2605 public final static class InvalidSliceLength extends LDKBolt11ParseError {
2606 public java.lang.String invalid_slice_length;
2607 InvalidSliceLength(java.lang.String invalid_slice_length) { this.invalid_slice_length = invalid_slice_length; }
2609 public final static class Skip extends LDKBolt11ParseError {
2612 static native void init();
2614 static { LDKBolt11ParseError.init(); }
2615 public static native LDKBolt11ParseError LDKBolt11ParseError_ref_from_ptr(long ptr);
2616 // enum LDKSiPrefix CResult_SiPrefixBolt11ParseErrorZ_get_ok(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR owner);
2617 public static native SiPrefix CResult_SiPrefixBolt11ParseErrorZ_get_ok(long owner);
2618 // struct LDKBolt11ParseError CResult_SiPrefixBolt11ParseErrorZ_get_err(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR owner);
2619 public static native long CResult_SiPrefixBolt11ParseErrorZ_get_err(long owner);
2620 public static class LDKParseOrSemanticError {
2621 private LDKParseOrSemanticError() {}
2622 public final static class ParseError extends LDKParseOrSemanticError {
2623 public long parse_error;
2624 ParseError(long parse_error) { this.parse_error = parse_error; }
2626 public final static class SemanticError extends LDKParseOrSemanticError {
2627 public org.ldk.enums.Bolt11SemanticError semantic_error;
2628 SemanticError(org.ldk.enums.Bolt11SemanticError semantic_error) { this.semantic_error = semantic_error; }
2630 static native void init();
2632 static { LDKParseOrSemanticError.init(); }
2633 public static native LDKParseOrSemanticError LDKParseOrSemanticError_ref_from_ptr(long ptr);
2634 // struct LDKBolt11Invoice CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_ok(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
2635 public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_ok(long owner);
2636 // struct LDKParseOrSemanticError CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_err(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
2637 public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_err(long owner);
2638 // struct LDKSignedRawBolt11Invoice CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_ok(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR owner);
2639 public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_ok(long owner);
2640 // struct LDKBolt11ParseError CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_err(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR owner);
2641 public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_err(long owner);
2642 // struct LDKRawBolt11Invoice C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_a(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner);
2643 public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_a(long owner);
2644 // struct LDKThirtyTwoBytes C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_b(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner);
2645 public static native byte[] C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_b(long owner);
2646 // struct LDKBolt11InvoiceSignature C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_c(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner);
2647 public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_c(long owner);
2648 // struct LDKPayeePubKey CResult_PayeePubKeySecp256k1ErrorZ_get_ok(LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR owner);
2649 public static native long CResult_PayeePubKeySecp256k1ErrorZ_get_ok(long owner);
2650 // enum LDKSecp256k1Error CResult_PayeePubKeySecp256k1ErrorZ_get_err(LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR owner);
2651 public static native Secp256k1Error CResult_PayeePubKeySecp256k1ErrorZ_get_err(long owner);
2652 // struct LDKPositiveTimestamp CResult_PositiveTimestampCreationErrorZ_get_ok(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
2653 public static native long CResult_PositiveTimestampCreationErrorZ_get_ok(long owner);
2654 // enum LDKCreationError CResult_PositiveTimestampCreationErrorZ_get_err(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
2655 public static native CreationError CResult_PositiveTimestampCreationErrorZ_get_err(long owner);
2656 // void CResult_NoneBolt11SemanticErrorZ_get_ok(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR owner);
2657 public static native void CResult_NoneBolt11SemanticErrorZ_get_ok(long owner);
2658 // enum LDKBolt11SemanticError CResult_NoneBolt11SemanticErrorZ_get_err(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR owner);
2659 public static native Bolt11SemanticError CResult_NoneBolt11SemanticErrorZ_get_err(long owner);
2660 // struct LDKBolt11Invoice CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_ok(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR owner);
2661 public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_ok(long owner);
2662 // enum LDKBolt11SemanticError CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_err(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR owner);
2663 public static native Bolt11SemanticError CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_err(long owner);
2664 // struct LDKDescription CResult_DescriptionCreationErrorZ_get_ok(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
2665 public static native long CResult_DescriptionCreationErrorZ_get_ok(long owner);
2666 // enum LDKCreationError CResult_DescriptionCreationErrorZ_get_err(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
2667 public static native CreationError CResult_DescriptionCreationErrorZ_get_err(long owner);
2668 // struct LDKPrivateRoute CResult_PrivateRouteCreationErrorZ_get_ok(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
2669 public static native long CResult_PrivateRouteCreationErrorZ_get_ok(long owner);
2670 // enum LDKCreationError CResult_PrivateRouteCreationErrorZ_get_err(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
2671 public static native CreationError CResult_PrivateRouteCreationErrorZ_get_err(long owner);
2672 // struct LDKOutPoint CResult_OutPointDecodeErrorZ_get_ok(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
2673 public static native long CResult_OutPointDecodeErrorZ_get_ok(long owner);
2674 // struct LDKDecodeError CResult_OutPointDecodeErrorZ_get_err(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
2675 public static native long CResult_OutPointDecodeErrorZ_get_err(long owner);
2676 // struct LDKBigSize CResult_BigSizeDecodeErrorZ_get_ok(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR owner);
2677 public static native long CResult_BigSizeDecodeErrorZ_get_ok(long owner);
2678 // struct LDKDecodeError CResult_BigSizeDecodeErrorZ_get_err(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR owner);
2679 public static native long CResult_BigSizeDecodeErrorZ_get_err(long owner);
2680 // struct LDKHostname CResult_HostnameDecodeErrorZ_get_ok(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR owner);
2681 public static native long CResult_HostnameDecodeErrorZ_get_ok(long owner);
2682 // struct LDKDecodeError CResult_HostnameDecodeErrorZ_get_err(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR owner);
2683 public static native long CResult_HostnameDecodeErrorZ_get_err(long owner);
2684 // struct LDKTransactionU16LenLimited CResult_TransactionU16LenLimitedNoneZ_get_ok(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR owner);
2685 public static native long CResult_TransactionU16LenLimitedNoneZ_get_ok(long owner);
2686 // void CResult_TransactionU16LenLimitedNoneZ_get_err(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR owner);
2687 public static native void CResult_TransactionU16LenLimitedNoneZ_get_err(long owner);
2688 // struct LDKTransactionU16LenLimited CResult_TransactionU16LenLimitedDecodeErrorZ_get_ok(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR owner);
2689 public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_get_ok(long owner);
2690 // struct LDKDecodeError CResult_TransactionU16LenLimitedDecodeErrorZ_get_err(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR owner);
2691 public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_get_err(long owner);
2692 // struct LDKUntrustedString CResult_UntrustedStringDecodeErrorZ_get_ok(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR owner);
2693 public static native long CResult_UntrustedStringDecodeErrorZ_get_ok(long owner);
2694 // struct LDKDecodeError CResult_UntrustedStringDecodeErrorZ_get_err(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR owner);
2695 public static native long CResult_UntrustedStringDecodeErrorZ_get_err(long owner);
2696 // struct LDKThirtyTwoBytes C2Tuple__u832u16Z_get_a(LDKC2Tuple__u832u16Z *NONNULL_PTR owner);
2697 public static native byte[] C2Tuple__u832u16Z_get_a(long owner);
2698 // uint16_t C2Tuple__u832u16Z_get_b(LDKC2Tuple__u832u16Z *NONNULL_PTR owner);
2699 public static native short C2Tuple__u832u16Z_get_b(long owner);
2700 // struct LDKPaymentRelay CResult_PaymentRelayDecodeErrorZ_get_ok(LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR owner);
2701 public static native long CResult_PaymentRelayDecodeErrorZ_get_ok(long owner);
2702 // struct LDKDecodeError CResult_PaymentRelayDecodeErrorZ_get_err(LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR owner);
2703 public static native long CResult_PaymentRelayDecodeErrorZ_get_err(long owner);
2704 // struct LDKPaymentConstraints CResult_PaymentConstraintsDecodeErrorZ_get_ok(LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR owner);
2705 public static native long CResult_PaymentConstraintsDecodeErrorZ_get_ok(long owner);
2706 // struct LDKDecodeError CResult_PaymentConstraintsDecodeErrorZ_get_err(LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR owner);
2707 public static native long CResult_PaymentConstraintsDecodeErrorZ_get_err(long owner);
2708 // struct LDKThirtyTwoBytes C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_a(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR owner);
2709 public static native byte[] C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_a(long owner);
2710 // struct LDKRecipientOnionFields C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_b(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR owner);
2711 public static native long C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_b(long owner);
2712 // struct LDKRouteParameters C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_c(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR owner);
2713 public static native long C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_c(long owner);
2714 // struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_ok(LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR owner);
2715 public static native long CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_ok(long owner);
2716 // void CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_err(LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR owner);
2717 public static native void CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_err(long owner);
2718 // struct LDKStr CResult_StrSecp256k1ErrorZ_get_ok(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR owner);
2719 public static native String CResult_StrSecp256k1ErrorZ_get_ok(long owner);
2720 // enum LDKSecp256k1Error CResult_StrSecp256k1ErrorZ_get_err(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR owner);
2721 public static native Secp256k1Error CResult_StrSecp256k1ErrorZ_get_err(long owner);
2722 // struct LDKPublicKey C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_a(LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR owner);
2723 public static native byte[] C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_a(long owner);
2724 // struct LDKOnionMessage C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_b(LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR owner);
2725 public static native long C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_b(long owner);
2726 // struct LDKCOption_CVec_SocketAddressZZ C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_c(LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR owner);
2727 public static native long C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_c(long owner);
2728 public static class LDKSendError {
2729 private LDKSendError() {}
2730 public final static class Secp256k1 extends LDKSendError {
2731 public org.ldk.enums.Secp256k1Error secp256k1;
2732 Secp256k1(org.ldk.enums.Secp256k1Error secp256k1) { this.secp256k1 = secp256k1; }
2734 public final static class TooBigPacket extends LDKSendError {
2737 public final static class TooFewBlindedHops extends LDKSendError {
2738 TooFewBlindedHops() { }
2740 public final static class InvalidFirstHop extends LDKSendError {
2741 public byte[] invalid_first_hop;
2742 InvalidFirstHop(byte[] invalid_first_hop) { this.invalid_first_hop = invalid_first_hop; }
2744 public final static class PathNotFound extends LDKSendError {
2747 public final static class InvalidMessage extends LDKSendError {
2748 InvalidMessage() { }
2750 public final static class BufferFull extends LDKSendError {
2753 public final static class GetNodeIdFailed extends LDKSendError {
2754 GetNodeIdFailed() { }
2756 public final static class BlindedPathAdvanceFailed extends LDKSendError {
2757 BlindedPathAdvanceFailed() { }
2759 static native void init();
2761 static { LDKSendError.init(); }
2762 public static native LDKSendError LDKSendError_ref_from_ptr(long ptr);
2763 // struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_ok(LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ *NONNULL_PTR owner);
2764 public static native long CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_ok(long owner);
2765 // struct LDKSendError CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_err(LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ *NONNULL_PTR owner);
2766 public static native long CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_get_err(long owner);
2767 public static class LDKParsedOnionMessageContents {
2768 private LDKParsedOnionMessageContents() {}
2769 public final static class Offers extends LDKParsedOnionMessageContents {
2771 Offers(long offers) { this.offers = offers; }
2773 public final static class Custom extends LDKParsedOnionMessageContents {
2775 Custom(long custom) { this.custom = custom; }
2777 static native void init();
2779 static { LDKParsedOnionMessageContents.init(); }
2780 public static native LDKParsedOnionMessageContents LDKParsedOnionMessageContents_ref_from_ptr(long ptr);
2781 public static class LDKPeeledOnion {
2782 private LDKPeeledOnion() {}
2783 public final static class Forward extends LDKPeeledOnion {
2786 Forward(byte[] _0, long _1) { this._0 = _0; this._1 = _1; }
2788 public final static class Receive extends LDKPeeledOnion {
2792 Receive(long _0, byte[] _1, long _2) { this._0 = _0; this._1 = _1; this._2 = _2; }
2794 static native void init();
2796 static { LDKPeeledOnion.init(); }
2797 public static native LDKPeeledOnion LDKPeeledOnion_ref_from_ptr(long ptr);
2798 // struct LDKPeeledOnion CResult_PeeledOnionNoneZ_get_ok(LDKCResult_PeeledOnionNoneZ *NONNULL_PTR owner);
2799 public static native long CResult_PeeledOnionNoneZ_get_ok(long owner);
2800 // void CResult_PeeledOnionNoneZ_get_err(LDKCResult_PeeledOnionNoneZ *NONNULL_PTR owner);
2801 public static native void CResult_PeeledOnionNoneZ_get_err(long owner);
2802 public static class LDKSendSuccess {
2803 private LDKSendSuccess() {}
2804 public final static class Buffered extends LDKSendSuccess {
2807 public final static class BufferedAwaitingConnection extends LDKSendSuccess {
2808 public byte[] buffered_awaiting_connection;
2809 BufferedAwaitingConnection(byte[] buffered_awaiting_connection) { this.buffered_awaiting_connection = buffered_awaiting_connection; }
2811 static native void init();
2813 static { LDKSendSuccess.init(); }
2814 public static native LDKSendSuccess LDKSendSuccess_ref_from_ptr(long ptr);
2815 // struct LDKSendSuccess CResult_SendSuccessSendErrorZ_get_ok(LDKCResult_SendSuccessSendErrorZ *NONNULL_PTR owner);
2816 public static native long CResult_SendSuccessSendErrorZ_get_ok(long owner);
2817 // struct LDKSendError CResult_SendSuccessSendErrorZ_get_err(LDKCResult_SendSuccessSendErrorZ *NONNULL_PTR owner);
2818 public static native long CResult_SendSuccessSendErrorZ_get_err(long owner);
2819 // struct LDKBlindedPath CResult_BlindedPathNoneZ_get_ok(LDKCResult_BlindedPathNoneZ *NONNULL_PTR owner);
2820 public static native long CResult_BlindedPathNoneZ_get_ok(long owner);
2821 // void CResult_BlindedPathNoneZ_get_err(LDKCResult_BlindedPathNoneZ *NONNULL_PTR owner);
2822 public static native void CResult_BlindedPathNoneZ_get_err(long owner);
2823 // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_ok(LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR owner);
2824 public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_ok(long owner);
2825 // void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_err(LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR owner);
2826 public static native void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_err(long owner);
2827 // struct LDKBlindedPath CResult_BlindedPathDecodeErrorZ_get_ok(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR owner);
2828 public static native long CResult_BlindedPathDecodeErrorZ_get_ok(long owner);
2829 // struct LDKDecodeError CResult_BlindedPathDecodeErrorZ_get_err(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR owner);
2830 public static native long CResult_BlindedPathDecodeErrorZ_get_err(long owner);
2831 // struct LDKBlindedHop CResult_BlindedHopDecodeErrorZ_get_ok(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner);
2832 public static native long CResult_BlindedHopDecodeErrorZ_get_ok(long owner);
2833 // struct LDKDecodeError CResult_BlindedHopDecodeErrorZ_get_err(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner);
2834 public static native long CResult_BlindedHopDecodeErrorZ_get_err(long owner);
2835 // struct LDKInvoiceError CResult_InvoiceErrorDecodeErrorZ_get_ok(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR owner);
2836 public static native long CResult_InvoiceErrorDecodeErrorZ_get_ok(long owner);
2837 // struct LDKDecodeError CResult_InvoiceErrorDecodeErrorZ_get_err(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR owner);
2838 public static native long CResult_InvoiceErrorDecodeErrorZ_get_err(long owner);
2839 // struct LDKDelayedPaymentBasepoint CResult_DelayedPaymentBasepointDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR owner);
2840 public static native long CResult_DelayedPaymentBasepointDecodeErrorZ_get_ok(long owner);
2841 // struct LDKDecodeError CResult_DelayedPaymentBasepointDecodeErrorZ_get_err(LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR owner);
2842 public static native long CResult_DelayedPaymentBasepointDecodeErrorZ_get_err(long owner);
2843 // struct LDKDelayedPaymentKey CResult_DelayedPaymentKeyDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR owner);
2844 public static native long CResult_DelayedPaymentKeyDecodeErrorZ_get_ok(long owner);
2845 // struct LDKDecodeError CResult_DelayedPaymentKeyDecodeErrorZ_get_err(LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR owner);
2846 public static native long CResult_DelayedPaymentKeyDecodeErrorZ_get_err(long owner);
2847 // struct LDKHtlcBasepoint CResult_HtlcBasepointDecodeErrorZ_get_ok(LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR owner);
2848 public static native long CResult_HtlcBasepointDecodeErrorZ_get_ok(long owner);
2849 // struct LDKDecodeError CResult_HtlcBasepointDecodeErrorZ_get_err(LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR owner);
2850 public static native long CResult_HtlcBasepointDecodeErrorZ_get_err(long owner);
2851 // struct LDKHtlcKey CResult_HtlcKeyDecodeErrorZ_get_ok(LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR owner);
2852 public static native long CResult_HtlcKeyDecodeErrorZ_get_ok(long owner);
2853 // struct LDKDecodeError CResult_HtlcKeyDecodeErrorZ_get_err(LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR owner);
2854 public static native long CResult_HtlcKeyDecodeErrorZ_get_err(long owner);
2855 // struct LDKRevocationBasepoint CResult_RevocationBasepointDecodeErrorZ_get_ok(LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR owner);
2856 public static native long CResult_RevocationBasepointDecodeErrorZ_get_ok(long owner);
2857 // struct LDKDecodeError CResult_RevocationBasepointDecodeErrorZ_get_err(LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR owner);
2858 public static native long CResult_RevocationBasepointDecodeErrorZ_get_err(long owner);
2859 // struct LDKRevocationKey CResult_RevocationKeyDecodeErrorZ_get_ok(LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR owner);
2860 public static native long CResult_RevocationKeyDecodeErrorZ_get_ok(long owner);
2861 // struct LDKDecodeError CResult_RevocationKeyDecodeErrorZ_get_err(LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR owner);
2862 public static native long CResult_RevocationKeyDecodeErrorZ_get_err(long owner);
2863 public interface LDKFilter {
2864 void register_tx(byte[] txid, byte[] script_pubkey);
2865 void register_output(long output);
2867 public static native long LDKFilter_new(LDKFilter impl);
2868 // void Filter_register_tx LDKFilter *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
2869 public static native void Filter_register_tx(long this_arg, byte[] txid, byte[] script_pubkey);
2870 // void Filter_register_output LDKFilter *NONNULL_PTR this_arg, struct LDKWatchedOutput output
2871 public static native void Filter_register_output(long this_arg, long output);
2872 public static class LDKCOption_FilterZ {
2873 private LDKCOption_FilterZ() {}
2874 public final static class Some extends LDKCOption_FilterZ {
2876 Some(long some) { this.some = some; }
2878 public final static class None extends LDKCOption_FilterZ {
2881 static native void init();
2883 static { LDKCOption_FilterZ.init(); }
2884 public static native LDKCOption_FilterZ LDKCOption_FilterZ_ref_from_ptr(long ptr);
2885 // struct LDKLockedChannelMonitor CResult_LockedChannelMonitorNoneZ_get_ok(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
2886 public static native long CResult_LockedChannelMonitorNoneZ_get_ok(long owner);
2887 // void CResult_LockedChannelMonitorNoneZ_get_err(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
2888 public static native void CResult_LockedChannelMonitorNoneZ_get_err(long owner);
2889 // struct LDKOutPoint C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner);
2890 public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(long owner);
2891 // struct LDKCVec_MonitorUpdateIdZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner);
2892 public static native long[] C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(long owner);
2893 public interface LDKKVStore {
2894 long read(String primary_namespace, String secondary_namespace, String key);
2895 long write(String primary_namespace, String secondary_namespace, String key, byte[] buf);
2896 long remove(String primary_namespace, String secondary_namespace, String key, boolean lazy);
2897 long list(String primary_namespace, String secondary_namespace);
2899 public static native long LDKKVStore_new(LDKKVStore impl);
2900 // LDKCResult_CVec_u8ZIOErrorZ KVStore_read LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key
2901 public static native long KVStore_read(long this_arg, String primary_namespace, String secondary_namespace, String key);
2902 // LDKCResult_NoneIOErrorZ KVStore_write LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key, struct LDKu8slice buf
2903 public static native long KVStore_write(long this_arg, String primary_namespace, String secondary_namespace, String key, byte[] buf);
2904 // LDKCResult_NoneIOErrorZ KVStore_remove LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key, bool lazy
2905 public static native long KVStore_remove(long this_arg, String primary_namespace, String secondary_namespace, String key, boolean lazy);
2906 // LDKCResult_CVec_StrZIOErrorZ KVStore_list LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace
2907 public static native long KVStore_list(long this_arg, String primary_namespace, String secondary_namespace);
2908 public interface LDKPersister {
2909 long persist_manager(long channel_manager);
2910 long persist_graph(long network_graph);
2911 long persist_scorer(long scorer);
2913 public static native long LDKPersister_new(LDKPersister impl);
2914 // LDKCResult_NoneIOErrorZ Persister_persist_manager LDKPersister *NONNULL_PTR this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager
2915 public static native long Persister_persist_manager(long this_arg, long channel_manager);
2916 // LDKCResult_NoneIOErrorZ Persister_persist_graph LDKPersister *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR network_graph
2917 public static native long Persister_persist_graph(long this_arg, long network_graph);
2918 // LDKCResult_NoneIOErrorZ Persister_persist_scorer LDKPersister *NONNULL_PTR this_arg, const struct LDKWriteableScore *NONNULL_PTR scorer
2919 public static native long Persister_persist_scorer(long this_arg, long scorer);
2920 public interface LDKPersist {
2921 ChannelMonitorUpdateStatus persist_new_channel(long channel_id, long data, long update_id);
2922 ChannelMonitorUpdateStatus update_persisted_channel(long channel_id, long update, long data, long update_id);
2924 public static native long LDKPersist_new(LDKPersist impl);
2925 // LDKChannelMonitorUpdateStatus Persist_persist_new_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_id, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id
2926 public static native ChannelMonitorUpdateStatus Persist_persist_new_channel(long this_arg, long channel_id, long data, long update_id);
2927 // LDKChannelMonitorUpdateStatus Persist_update_persisted_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_id, struct LDKChannelMonitorUpdate update, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id
2928 public static native ChannelMonitorUpdateStatus Persist_update_persisted_channel(long this_arg, long channel_id, long update, long data, long update_id);
2929 public interface LDKFutureCallback {
2932 public static native long LDKFutureCallback_new(LDKFutureCallback impl);
2933 // void FutureCallback_call LDKFutureCallback *NONNULL_PTR this_arg
2934 public static native void FutureCallback_call(long this_arg);
2935 public interface LDKListen {
2936 void filtered_block_connected(byte[] header, long[] txdata, int height);
2937 void block_connected(byte[] block, int height);
2938 void block_disconnected(byte[] header, int height);
2940 public static native long LDKListen_new(LDKListen impl);
2941 // void Listen_filtered_block_connected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
2942 public static native void Listen_filtered_block_connected(long this_arg, byte[] header, long[] txdata, int height);
2943 // void Listen_block_connected LDKListen *NONNULL_PTR this_arg, struct LDKu8slice block, uint32_t height
2944 public static native void Listen_block_connected(long this_arg, byte[] block, int height);
2945 // void Listen_block_disconnected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
2946 public static native void Listen_block_disconnected(long this_arg, byte[] header, int height);
2947 public interface LDKConfirm {
2948 void transactions_confirmed(byte[] header, long[] txdata, int height);
2949 void transaction_unconfirmed(byte[] txid);
2950 void best_block_updated(byte[] header, int height);
2951 long[] get_relevant_txids();
2953 public static native long LDKConfirm_new(LDKConfirm impl);
2954 // void Confirm_transactions_confirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
2955 public static native void Confirm_transactions_confirmed(long this_arg, byte[] header, long[] txdata, int height);
2956 // void Confirm_transaction_unconfirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*txid)[32]
2957 public static native void Confirm_transaction_unconfirmed(long this_arg, byte[] txid);
2958 // void Confirm_best_block_updated LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
2959 public static native void Confirm_best_block_updated(long this_arg, byte[] header, int height);
2960 // LDKCVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ Confirm_get_relevant_txids LDKConfirm *NONNULL_PTR this_arg
2961 public static native long[] Confirm_get_relevant_txids(long this_arg);
2962 public interface LDKEventHandler {
2963 void handle_event(long event);
2965 public static native long LDKEventHandler_new(LDKEventHandler impl);
2966 // void EventHandler_handle_event LDKEventHandler *NONNULL_PTR this_arg, struct LDKEvent event
2967 public static native void EventHandler_handle_event(long this_arg, long event);
2968 public interface LDKEventsProvider {
2969 void process_pending_events(long handler);
2971 public static native long LDKEventsProvider_new(LDKEventsProvider impl);
2972 // void EventsProvider_process_pending_events LDKEventsProvider *NONNULL_PTR this_arg, struct LDKEventHandler handler
2973 public static native void EventsProvider_process_pending_events(long this_arg, long handler);
2974 public static class LDKFailureCode {
2975 private LDKFailureCode() {}
2976 public final static class TemporaryNodeFailure extends LDKFailureCode {
2977 TemporaryNodeFailure() { }
2979 public final static class RequiredNodeFeatureMissing extends LDKFailureCode {
2980 RequiredNodeFeatureMissing() { }
2982 public final static class IncorrectOrUnknownPaymentDetails extends LDKFailureCode {
2983 IncorrectOrUnknownPaymentDetails() { }
2985 public final static class InvalidOnionPayload extends LDKFailureCode {
2986 public long invalid_onion_payload;
2987 InvalidOnionPayload(long invalid_onion_payload) { this.invalid_onion_payload = invalid_onion_payload; }
2989 static native void init();
2991 static { LDKFailureCode.init(); }
2992 public static native LDKFailureCode LDKFailureCode_ref_from_ptr(long ptr);
2993 public interface LDKMessageSendEventsProvider {
2994 long[] get_and_clear_pending_msg_events();
2996 public static native long LDKMessageSendEventsProvider_new(LDKMessageSendEventsProvider impl);
2997 // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider *NONNULL_PTR this_arg
2998 public static native long[] MessageSendEventsProvider_get_and_clear_pending_msg_events(long this_arg);
2999 public interface LDKChannelMessageHandler {
3000 void handle_open_channel(byte[] their_node_id, long msg);
3001 void handle_open_channel_v2(byte[] their_node_id, long msg);
3002 void handle_accept_channel(byte[] their_node_id, long msg);
3003 void handle_accept_channel_v2(byte[] their_node_id, long msg);
3004 void handle_funding_created(byte[] their_node_id, long msg);
3005 void handle_funding_signed(byte[] their_node_id, long msg);
3006 void handle_channel_ready(byte[] their_node_id, long msg);
3007 void handle_shutdown(byte[] their_node_id, long msg);
3008 void handle_closing_signed(byte[] their_node_id, long msg);
3009 void handle_stfu(byte[] their_node_id, long msg);
3010 void handle_splice(byte[] their_node_id, long msg);
3011 void handle_splice_ack(byte[] their_node_id, long msg);
3012 void handle_splice_locked(byte[] their_node_id, long msg);
3013 void handle_tx_add_input(byte[] their_node_id, long msg);
3014 void handle_tx_add_output(byte[] their_node_id, long msg);
3015 void handle_tx_remove_input(byte[] their_node_id, long msg);
3016 void handle_tx_remove_output(byte[] their_node_id, long msg);
3017 void handle_tx_complete(byte[] their_node_id, long msg);
3018 void handle_tx_signatures(byte[] their_node_id, long msg);
3019 void handle_tx_init_rbf(byte[] their_node_id, long msg);
3020 void handle_tx_ack_rbf(byte[] their_node_id, long msg);
3021 void handle_tx_abort(byte[] their_node_id, long msg);
3022 void handle_update_add_htlc(byte[] their_node_id, long msg);
3023 void handle_update_fulfill_htlc(byte[] their_node_id, long msg);
3024 void handle_update_fail_htlc(byte[] their_node_id, long msg);
3025 void handle_update_fail_malformed_htlc(byte[] their_node_id, long msg);
3026 void handle_commitment_signed(byte[] their_node_id, long msg);
3027 void handle_revoke_and_ack(byte[] their_node_id, long msg);
3028 void handle_update_fee(byte[] their_node_id, long msg);
3029 void handle_announcement_signatures(byte[] their_node_id, long msg);
3030 void peer_disconnected(byte[] their_node_id);
3031 long peer_connected(byte[] their_node_id, long msg, boolean inbound);
3032 void handle_channel_reestablish(byte[] their_node_id, long msg);
3033 void handle_channel_update(byte[] their_node_id, long msg);
3034 void handle_error(byte[] their_node_id, long msg);
3035 long provided_node_features();
3036 long provided_init_features(byte[] their_node_id);
3037 long get_chain_hashes();
3039 public static native long LDKChannelMessageHandler_new(LDKChannelMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
3040 public static native long LDKChannelMessageHandler_get_MessageSendEventsProvider(long arg);
3041 // void ChannelMessageHandler_handle_open_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKOpenChannel *NONNULL_PTR msg
3042 public static native void ChannelMessageHandler_handle_open_channel(long this_arg, byte[] their_node_id, long msg);
3043 // void ChannelMessageHandler_handle_open_channel_v2 LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKOpenChannelV2 *NONNULL_PTR msg
3044 public static native void ChannelMessageHandler_handle_open_channel_v2(long this_arg, byte[] their_node_id, long msg);
3045 // void ChannelMessageHandler_handle_accept_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAcceptChannel *NONNULL_PTR msg
3046 public static native void ChannelMessageHandler_handle_accept_channel(long this_arg, byte[] their_node_id, long msg);
3047 // void ChannelMessageHandler_handle_accept_channel_v2 LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAcceptChannelV2 *NONNULL_PTR msg
3048 public static native void ChannelMessageHandler_handle_accept_channel_v2(long this_arg, byte[] their_node_id, long msg);
3049 // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg
3050 public static native void ChannelMessageHandler_handle_funding_created(long this_arg, byte[] their_node_id, long msg);
3051 // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg
3052 public static native void ChannelMessageHandler_handle_funding_signed(long this_arg, byte[] their_node_id, long msg);
3053 // void ChannelMessageHandler_handle_channel_ready LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReady *NONNULL_PTR msg
3054 public static native void ChannelMessageHandler_handle_channel_ready(long this_arg, byte[] their_node_id, long msg);
3055 // void ChannelMessageHandler_handle_shutdown LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKShutdown *NONNULL_PTR msg
3056 public static native void ChannelMessageHandler_handle_shutdown(long this_arg, byte[] their_node_id, long msg);
3057 // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg
3058 public static native void ChannelMessageHandler_handle_closing_signed(long this_arg, byte[] their_node_id, long msg);
3059 // void ChannelMessageHandler_handle_stfu LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKStfu *NONNULL_PTR msg
3060 public static native void ChannelMessageHandler_handle_stfu(long this_arg, byte[] their_node_id, long msg);
3061 // void ChannelMessageHandler_handle_splice LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKSplice *NONNULL_PTR msg
3062 public static native void ChannelMessageHandler_handle_splice(long this_arg, byte[] their_node_id, long msg);
3063 // void ChannelMessageHandler_handle_splice_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKSpliceAck *NONNULL_PTR msg
3064 public static native void ChannelMessageHandler_handle_splice_ack(long this_arg, byte[] their_node_id, long msg);
3065 // void ChannelMessageHandler_handle_splice_locked LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKSpliceLocked *NONNULL_PTR msg
3066 public static native void ChannelMessageHandler_handle_splice_locked(long this_arg, byte[] their_node_id, long msg);
3067 // void ChannelMessageHandler_handle_tx_add_input LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAddInput *NONNULL_PTR msg
3068 public static native void ChannelMessageHandler_handle_tx_add_input(long this_arg, byte[] their_node_id, long msg);
3069 // void ChannelMessageHandler_handle_tx_add_output LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAddOutput *NONNULL_PTR msg
3070 public static native void ChannelMessageHandler_handle_tx_add_output(long this_arg, byte[] their_node_id, long msg);
3071 // void ChannelMessageHandler_handle_tx_remove_input LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxRemoveInput *NONNULL_PTR msg
3072 public static native void ChannelMessageHandler_handle_tx_remove_input(long this_arg, byte[] their_node_id, long msg);
3073 // void ChannelMessageHandler_handle_tx_remove_output LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxRemoveOutput *NONNULL_PTR msg
3074 public static native void ChannelMessageHandler_handle_tx_remove_output(long this_arg, byte[] their_node_id, long msg);
3075 // void ChannelMessageHandler_handle_tx_complete LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxComplete *NONNULL_PTR msg
3076 public static native void ChannelMessageHandler_handle_tx_complete(long this_arg, byte[] their_node_id, long msg);
3077 // void ChannelMessageHandler_handle_tx_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxSignatures *NONNULL_PTR msg
3078 public static native void ChannelMessageHandler_handle_tx_signatures(long this_arg, byte[] their_node_id, long msg);
3079 // void ChannelMessageHandler_handle_tx_init_rbf LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxInitRbf *NONNULL_PTR msg
3080 public static native void ChannelMessageHandler_handle_tx_init_rbf(long this_arg, byte[] their_node_id, long msg);
3081 // void ChannelMessageHandler_handle_tx_ack_rbf LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAckRbf *NONNULL_PTR msg
3082 public static native void ChannelMessageHandler_handle_tx_ack_rbf(long this_arg, byte[] their_node_id, long msg);
3083 // void ChannelMessageHandler_handle_tx_abort LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAbort *NONNULL_PTR msg
3084 public static native void ChannelMessageHandler_handle_tx_abort(long this_arg, byte[] their_node_id, long msg);
3085 // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg
3086 public static native void ChannelMessageHandler_handle_update_add_htlc(long this_arg, byte[] their_node_id, long msg);
3087 // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg
3088 public static native void ChannelMessageHandler_handle_update_fulfill_htlc(long this_arg, byte[] their_node_id, long msg);
3089 // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg
3090 public static native void ChannelMessageHandler_handle_update_fail_htlc(long this_arg, byte[] their_node_id, long msg);
3091 // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg
3092 public static native void ChannelMessageHandler_handle_update_fail_malformed_htlc(long this_arg, byte[] their_node_id, long msg);
3093 // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg
3094 public static native void ChannelMessageHandler_handle_commitment_signed(long this_arg, byte[] their_node_id, long msg);
3095 // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg
3096 public static native void ChannelMessageHandler_handle_revoke_and_ack(long this_arg, byte[] their_node_id, long msg);
3097 // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg
3098 public static native void ChannelMessageHandler_handle_update_fee(long this_arg, byte[] their_node_id, long msg);
3099 // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg
3100 public static native void ChannelMessageHandler_handle_announcement_signatures(long this_arg, byte[] their_node_id, long msg);
3101 // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
3102 public static native void ChannelMessageHandler_peer_disconnected(long this_arg, byte[] their_node_id);
3103 // LDKCResult_NoneNoneZ ChannelMessageHandler_peer_connected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg, bool inbound
3104 public static native long ChannelMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long msg, boolean inbound);
3105 // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg
3106 public static native void ChannelMessageHandler_handle_channel_reestablish(long this_arg, byte[] their_node_id, long msg);
3107 // void ChannelMessageHandler_handle_channel_update LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelUpdate *NONNULL_PTR msg
3108 public static native void ChannelMessageHandler_handle_channel_update(long this_arg, byte[] their_node_id, long msg);
3109 // void ChannelMessageHandler_handle_error LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg
3110 public static native void ChannelMessageHandler_handle_error(long this_arg, byte[] their_node_id, long msg);
3111 // LDKNodeFeatures ChannelMessageHandler_provided_node_features LDKChannelMessageHandler *NONNULL_PTR this_arg
3112 public static native long ChannelMessageHandler_provided_node_features(long this_arg);
3113 // LDKInitFeatures ChannelMessageHandler_provided_init_features LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
3114 public static native long ChannelMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
3115 // LDKCOption_CVec_ThirtyTwoBytesZZ ChannelMessageHandler_get_chain_hashes LDKChannelMessageHandler *NONNULL_PTR this_arg
3116 public static native long ChannelMessageHandler_get_chain_hashes(long this_arg);
3117 public interface LDKOffersMessageHandler {
3118 long handle_message(long message);
3119 long[] release_pending_messages();
3121 public static native long LDKOffersMessageHandler_new(LDKOffersMessageHandler impl);
3122 // LDKCOption_OffersMessageZ OffersMessageHandler_handle_message LDKOffersMessageHandler *NONNULL_PTR this_arg, struct LDKOffersMessage message
3123 public static native long OffersMessageHandler_handle_message(long this_arg, long message);
3124 // LDKCVec_C3Tuple_OffersMessageDestinationBlindedPathZZ OffersMessageHandler_release_pending_messages LDKOffersMessageHandler *NONNULL_PTR this_arg
3125 public static native long[] OffersMessageHandler_release_pending_messages(long this_arg);
3126 public interface LDKRoutingMessageHandler {
3127 long handle_node_announcement(long msg);
3128 long handle_channel_announcement(long msg);
3129 long handle_channel_update(long msg);
3130 long get_next_channel_announcement(long starting_point);
3131 long get_next_node_announcement(long starting_point);
3132 long peer_connected(byte[] their_node_id, long init, boolean inbound);
3133 long handle_reply_channel_range(byte[] their_node_id, long msg);
3134 long handle_reply_short_channel_ids_end(byte[] their_node_id, long msg);
3135 long handle_query_channel_range(byte[] their_node_id, long msg);
3136 long handle_query_short_channel_ids(byte[] their_node_id, long msg);
3137 boolean processing_queue_high();
3138 long provided_node_features();
3139 long provided_init_features(byte[] their_node_id);
3141 public static native long LDKRoutingMessageHandler_new(LDKRoutingMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
3142 public static native long LDKRoutingMessageHandler_get_MessageSendEventsProvider(long arg);
3143 // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg
3144 public static native long RoutingMessageHandler_handle_node_announcement(long this_arg, long msg);
3145 // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg
3146 public static native long RoutingMessageHandler_handle_channel_announcement(long this_arg, long msg);
3147 // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg
3148 public static native long RoutingMessageHandler_handle_channel_update(long this_arg, long msg);
3149 // LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, uint64_t starting_point
3150 public static native long RoutingMessageHandler_get_next_channel_announcement(long this_arg, long starting_point);
3151 // LDKNodeAnnouncement RoutingMessageHandler_get_next_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKNodeId starting_point
3152 public static native long RoutingMessageHandler_get_next_node_announcement(long this_arg, long starting_point);
3153 // LDKCResult_NoneNoneZ RoutingMessageHandler_peer_connected LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init, bool inbound
3154 public static native long RoutingMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long init, boolean inbound);
3155 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg
3156 public static native long RoutingMessageHandler_handle_reply_channel_range(long this_arg, byte[] their_node_id, long msg);
3157 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg
3158 public static native long RoutingMessageHandler_handle_reply_short_channel_ids_end(long this_arg, byte[] their_node_id, long msg);
3159 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg
3160 public static native long RoutingMessageHandler_handle_query_channel_range(long this_arg, byte[] their_node_id, long msg);
3161 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg
3162 public static native long RoutingMessageHandler_handle_query_short_channel_ids(long this_arg, byte[] their_node_id, long msg);
3163 // bool RoutingMessageHandler_processing_queue_high LDKRoutingMessageHandler *NONNULL_PTR this_arg
3164 public static native boolean RoutingMessageHandler_processing_queue_high(long this_arg);
3165 // LDKNodeFeatures RoutingMessageHandler_provided_node_features LDKRoutingMessageHandler *NONNULL_PTR this_arg
3166 public static native long RoutingMessageHandler_provided_node_features(long this_arg);
3167 // LDKInitFeatures RoutingMessageHandler_provided_init_features LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
3168 public static native long RoutingMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
3169 public interface LDKOnionMessageHandler {
3170 long[] get_and_clear_connections_needed();
3171 void handle_onion_message(byte[] peer_node_id, long msg);
3172 long next_onion_message_for_peer(byte[] peer_node_id);
3173 long peer_connected(byte[] their_node_id, long init, boolean inbound);
3174 void peer_disconnected(byte[] their_node_id);
3175 void timer_tick_occurred();
3176 long provided_node_features();
3177 long provided_init_features(byte[] their_node_id);
3179 public static native long LDKOnionMessageHandler_new(LDKOnionMessageHandler impl);
3180 // LDKCVec_C2Tuple_PublicKeyCVec_SocketAddressZZZ OnionMessageHandler_get_and_clear_connections_needed LDKOnionMessageHandler *NONNULL_PTR this_arg
3181 public static native long[] OnionMessageHandler_get_and_clear_connections_needed(long this_arg);
3182 // void OnionMessageHandler_handle_onion_message LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id, const struct LDKOnionMessage *NONNULL_PTR msg
3183 public static native void OnionMessageHandler_handle_onion_message(long this_arg, byte[] peer_node_id, long msg);
3184 // LDKOnionMessage OnionMessageHandler_next_onion_message_for_peer LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id
3185 public static native long OnionMessageHandler_next_onion_message_for_peer(long this_arg, byte[] peer_node_id);
3186 // LDKCResult_NoneNoneZ OnionMessageHandler_peer_connected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init, bool inbound
3187 public static native long OnionMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long init, boolean inbound);
3188 // void OnionMessageHandler_peer_disconnected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
3189 public static native void OnionMessageHandler_peer_disconnected(long this_arg, byte[] their_node_id);
3190 // void OnionMessageHandler_timer_tick_occurred LDKOnionMessageHandler *NONNULL_PTR this_arg
3191 public static native void OnionMessageHandler_timer_tick_occurred(long this_arg);
3192 // LDKNodeFeatures OnionMessageHandler_provided_node_features LDKOnionMessageHandler *NONNULL_PTR this_arg
3193 public static native long OnionMessageHandler_provided_node_features(long this_arg);
3194 // LDKInitFeatures OnionMessageHandler_provided_init_features LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
3195 public static native long OnionMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
3196 public interface LDKCustomMessageReader {
3197 long read(short message_type, byte[] buffer);
3199 public static native long LDKCustomMessageReader_new(LDKCustomMessageReader impl);
3200 // LDKCResult_COption_TypeZDecodeErrorZ CustomMessageReader_read LDKCustomMessageReader *NONNULL_PTR this_arg, uint16_t message_type, struct LDKu8slice buffer
3201 public static native long CustomMessageReader_read(long this_arg, short message_type, byte[] buffer);
3202 public interface LDKCustomMessageHandler {
3203 long handle_custom_message(long msg, byte[] sender_node_id);
3204 long[] get_and_clear_pending_msg();
3205 long provided_node_features();
3206 long provided_init_features(byte[] their_node_id);
3208 public static native long LDKCustomMessageHandler_new(LDKCustomMessageHandler impl, LDKCustomMessageReader CustomMessageReader);
3209 public static native long LDKCustomMessageHandler_get_CustomMessageReader(long arg);
3210 // LDKCResult_NoneLightningErrorZ CustomMessageHandler_handle_custom_message LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKType msg, struct LDKPublicKey sender_node_id
3211 public static native long CustomMessageHandler_handle_custom_message(long this_arg, long msg, byte[] sender_node_id);
3212 // LDKCVec_C2Tuple_PublicKeyTypeZZ CustomMessageHandler_get_and_clear_pending_msg LDKCustomMessageHandler *NONNULL_PTR this_arg
3213 public static native long[] CustomMessageHandler_get_and_clear_pending_msg(long this_arg);
3214 // LDKNodeFeatures CustomMessageHandler_provided_node_features LDKCustomMessageHandler *NONNULL_PTR this_arg
3215 public static native long CustomMessageHandler_provided_node_features(long this_arg);
3216 // LDKInitFeatures CustomMessageHandler_provided_init_features LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
3217 public static native long CustomMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
3218 public interface LDKCustomOnionMessageHandler {
3219 long handle_custom_message(long msg);
3220 long read_custom_message(long message_type, byte[] buffer);
3221 long[] release_pending_custom_messages();
3223 public static native long LDKCustomOnionMessageHandler_new(LDKCustomOnionMessageHandler impl);
3224 // LDKCOption_OnionMessageContentsZ CustomOnionMessageHandler_handle_custom_message LDKCustomOnionMessageHandler *NONNULL_PTR this_arg, struct LDKOnionMessageContents msg
3225 public static native long CustomOnionMessageHandler_handle_custom_message(long this_arg, long msg);
3226 // LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CustomOnionMessageHandler_read_custom_message LDKCustomOnionMessageHandler *NONNULL_PTR this_arg, uint64_t message_type, struct LDKu8slice buffer
3227 public static native long CustomOnionMessageHandler_read_custom_message(long this_arg, long message_type, byte[] buffer);
3228 // LDKCVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ CustomOnionMessageHandler_release_pending_custom_messages LDKCustomOnionMessageHandler *NONNULL_PTR this_arg
3229 public static native long[] CustomOnionMessageHandler_release_pending_custom_messages(long this_arg);
3230 public interface LDKSocketDescriptor {
3231 long send_data(byte[] data, boolean resume_read);
3232 void disconnect_socket();
3233 boolean eq(long other_arg);
3236 public static native long LDKSocketDescriptor_new(LDKSocketDescriptor impl);
3237 // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor *NONNULL_PTR this_arg, struct LDKu8slice data, bool resume_read
3238 public static native long SocketDescriptor_send_data(long this_arg, byte[] data, boolean resume_read);
3239 // void SocketDescriptor_disconnect_socket LDKSocketDescriptor *NONNULL_PTR this_arg
3240 public static native void SocketDescriptor_disconnect_socket(long this_arg);
3241 // uint64_t SocketDescriptor_hash LDKSocketDescriptor *NONNULL_PTR this_arg
3242 public static native long SocketDescriptor_hash(long this_arg);
3243 public static class LDKEffectiveCapacity {
3244 private LDKEffectiveCapacity() {}
3245 public final static class ExactLiquidity extends LDKEffectiveCapacity {
3246 public long liquidity_msat;
3247 ExactLiquidity(long liquidity_msat) { this.liquidity_msat = liquidity_msat; }
3249 public final static class AdvertisedMaxHTLC extends LDKEffectiveCapacity {
3250 public long amount_msat;
3251 AdvertisedMaxHTLC(long amount_msat) { this.amount_msat = amount_msat; }
3253 public final static class Total extends LDKEffectiveCapacity {
3254 public long capacity_msat;
3255 public long htlc_maximum_msat;
3256 Total(long capacity_msat, long htlc_maximum_msat) { this.capacity_msat = capacity_msat; this.htlc_maximum_msat = htlc_maximum_msat; }
3258 public final static class Infinite extends LDKEffectiveCapacity {
3261 public final static class HintMaxHTLC extends LDKEffectiveCapacity {
3262 public long amount_msat;
3263 HintMaxHTLC(long amount_msat) { this.amount_msat = amount_msat; }
3265 public final static class Unknown extends LDKEffectiveCapacity {
3268 static native void init();
3270 static { LDKEffectiveCapacity.init(); }
3271 public static native LDKEffectiveCapacity LDKEffectiveCapacity_ref_from_ptr(long ptr);
3272 public static class LDKPayee {
3273 private LDKPayee() {}
3274 public final static class Blinded extends LDKPayee {
3275 public long[] route_hints;
3276 public long features;
3277 Blinded(long[] route_hints, long features) { this.route_hints = route_hints; this.features = features; }
3279 public final static class Clear extends LDKPayee {
3280 public byte[] node_id;
3281 public long[] route_hints;
3282 public long features;
3283 public int final_cltv_expiry_delta;
3284 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; }
3286 static native void init();
3288 static { LDKPayee.init(); }
3289 public static native LDKPayee LDKPayee_ref_from_ptr(long ptr);
3290 public interface LDKScore {
3293 public static native long LDKScore_new(LDKScore impl, LDKScoreLookUp ScoreLookUp, LDKScoreUpdate ScoreUpdate);
3294 public static native long LDKScore_get_ScoreLookUp(long arg);
3295 public static native long LDKScore_get_ScoreUpdate(long arg);
3296 // LDKCVec_u8Z Score_write LDKScore *NONNULL_PTR this_arg
3297 public static native byte[] Score_write(long this_arg);
3298 public interface LDKCoinSelectionSource {
3299 long select_confirmed_utxos(byte[] claim_id, long[] must_spend, long[] must_pay_to, int target_feerate_sat_per_1000_weight);
3300 long sign_psbt(byte[] psbt);
3302 public static native long LDKCoinSelectionSource_new(LDKCoinSelectionSource impl);
3303 // 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
3304 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);
3305 // LDKCResult_TransactionNoneZ CoinSelectionSource_sign_psbt LDKCoinSelectionSource *NONNULL_PTR this_arg, struct LDKCVec_u8Z psbt
3306 public static native long CoinSelectionSource_sign_psbt(long this_arg, byte[] psbt);
3307 public interface LDKWalletSource {
3308 long list_confirmed_utxos();
3309 long get_change_script();
3310 long sign_psbt(byte[] psbt);
3312 public static native long LDKWalletSource_new(LDKWalletSource impl);
3313 // LDKCResult_CVec_UtxoZNoneZ WalletSource_list_confirmed_utxos LDKWalletSource *NONNULL_PTR this_arg
3314 public static native long WalletSource_list_confirmed_utxos(long this_arg);
3315 // LDKCResult_CVec_u8ZNoneZ WalletSource_get_change_script LDKWalletSource *NONNULL_PTR this_arg
3316 public static native long WalletSource_get_change_script(long this_arg);
3317 // LDKCResult_TransactionNoneZ WalletSource_sign_psbt LDKWalletSource *NONNULL_PTR this_arg, struct LDKCVec_u8Z psbt
3318 public static native long WalletSource_sign_psbt(long this_arg, byte[] psbt);
3319 public static class LDKGossipSync {
3320 private LDKGossipSync() {}
3321 public final static class P2P extends LDKGossipSync {
3323 P2P(long p2p) { this.p2p = p2p; }
3325 public final static class Rapid extends LDKGossipSync {
3327 Rapid(long rapid) { this.rapid = rapid; }
3329 public final static class None extends LDKGossipSync {
3332 static native void init();
3334 static { LDKGossipSync.init(); }
3335 public static native LDKGossipSync LDKGossipSync_ref_from_ptr(long ptr);
3336 public static class LDKFallback {
3337 private LDKFallback() {}
3338 public final static class SegWitProgram extends LDKFallback {
3339 public byte version;
3340 public byte[] program;
3341 SegWitProgram(byte version, byte[] program) { this.version = version; this.program = program; }
3343 public final static class PubKeyHash extends LDKFallback {
3344 public byte[] pub_key_hash;
3345 PubKeyHash(byte[] pub_key_hash) { this.pub_key_hash = pub_key_hash; }
3347 public final static class ScriptHash extends LDKFallback {
3348 public byte[] script_hash;
3349 ScriptHash(byte[] script_hash) { this.script_hash = script_hash; }
3351 static native void init();
3353 static { LDKFallback.init(); }
3354 public static native LDKFallback LDKFallback_ref_from_ptr(long ptr);
3355 // struct LDKStr _ldk_get_compiled_version(void);
3356 public static native String _ldk_get_compiled_version();
3357 // struct LDKStr _ldk_c_bindings_get_compiled_version(void);
3358 public static native String _ldk_c_bindings_get_compiled_version();
3359 // struct LDKSixteenBytes U128_le_bytes(struct LDKU128 val);
3360 public static native byte[] U128_le_bytes(byte[] val);
3361 // struct LDKU128 U128_new(struct LDKSixteenBytes le_bytes);
3362 public static native byte[] U128_new(byte[] le_bytes);
3363 // struct LDKWitnessProgram WitnessProgram_new(struct LDKWitnessVersion version, struct LDKCVec_u8Z program);
3364 public static native long WitnessProgram_new(byte version, byte[] program);
3365 // struct LDKWitnessVersion WitnessProgram_get_version(const struct LDKWitnessProgram *NONNULL_PTR prog);
3366 public static native byte WitnessProgram_get_version(long prog);
3367 // struct LDKu8slice WitnessProgram_get_program(const struct LDKWitnessProgram *NONNULL_PTR prog);
3368 public static native byte[] WitnessProgram_get_program(long prog);
3369 // uint64_t WitnessProgram_clone_ptr(LDKWitnessProgram *NONNULL_PTR arg);
3370 public static native long WitnessProgram_clone_ptr(long arg);
3371 // struct LDKWitnessProgram WitnessProgram_clone(const struct LDKWitnessProgram *NONNULL_PTR orig);
3372 public static native long WitnessProgram_clone(long orig);
3373 // void WitnessProgram_free(struct LDKWitnessProgram o);
3374 public static native void WitnessProgram_free(long o);
3375 // struct LDKBigEndianScalar BigEndianScalar_new(struct LDKThirtyTwoBytes big_endian_bytes);
3376 public static native long BigEndianScalar_new(byte[] big_endian_bytes);
3377 // uint64_t Bech32Error_clone_ptr(LDKBech32Error *NONNULL_PTR arg);
3378 public static native long Bech32Error_clone_ptr(long arg);
3379 // struct LDKBech32Error Bech32Error_clone(const struct LDKBech32Error *NONNULL_PTR orig);
3380 public static native long Bech32Error_clone(long orig);
3381 // void Bech32Error_free(struct LDKBech32Error o);
3382 public static native void Bech32Error_free(long o);
3383 // void Transaction_free(struct LDKTransaction _res);
3384 public static native void Transaction_free(byte[] _res);
3385 // void Witness_free(struct LDKWitness _res);
3386 public static native void Witness_free(byte[] _res);
3387 // struct LDKTxIn TxIn_new(struct LDKWitness witness, struct LDKCVec_u8Z script_sig, uint32_t sequence, struct LDKThirtyTwoBytes previous_txid, uint32_t previous_vout);
3388 public static native long TxIn_new(byte[] witness, byte[] script_sig, int sequence, byte[] previous_txid, int previous_vout);
3389 // struct LDKWitness TxIn_get_witness(const struct LDKTxIn *NONNULL_PTR txin);
3390 public static native byte[] TxIn_get_witness(long txin);
3391 // struct LDKu8slice TxIn_get_script_sig(const struct LDKTxIn *NONNULL_PTR txin);
3392 public static native byte[] TxIn_get_script_sig(long txin);
3393 // uint32_t TxIn_get_sequence(const struct LDKTxIn *NONNULL_PTR txin);
3394 public static native int TxIn_get_sequence(long txin);
3395 // struct LDKThirtyTwoBytes TxIn_get_previous_txid(const struct LDKTxIn *NONNULL_PTR txin);
3396 public static native byte[] TxIn_get_previous_txid(long txin);
3397 // uint32_t TxIn_get_previous_vout(const struct LDKTxIn *NONNULL_PTR txin);
3398 public static native int TxIn_get_previous_vout(long txin);
3399 // void TxIn_free(struct LDKTxIn _res);
3400 public static native void TxIn_free(long _res);
3401 // struct LDKTxOut TxOut_new(struct LDKCVec_u8Z script_pubkey, uint64_t value);
3402 public static native long TxOut_new(byte[] script_pubkey, long value);
3403 // struct LDKu8slice TxOut_get_script_pubkey(const struct LDKTxOut *NONNULL_PTR txout);
3404 public static native byte[] TxOut_get_script_pubkey(long txout);
3405 // uint64_t TxOut_get_value(const struct LDKTxOut *NONNULL_PTR txout);
3406 public static native long TxOut_get_value(long txout);
3407 // void TxOut_free(struct LDKTxOut _res);
3408 public static native void TxOut_free(long _res);
3409 // uint64_t TxOut_clone_ptr(LDKTxOut *NONNULL_PTR arg);
3410 public static native long TxOut_clone_ptr(long arg);
3411 // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
3412 public static native long TxOut_clone(long orig);
3413 // void Str_free(struct LDKStr _res);
3414 public static native void Str_free(String _res);
3415 // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o);
3416 public static native long COption_u64Z_some(long o);
3417 // struct LDKCOption_u64Z COption_u64Z_none(void);
3418 public static native long COption_u64Z_none();
3419 // void COption_u64Z_free(struct LDKCOption_u64Z _res);
3420 public static native void COption_u64Z_free(long _res);
3421 // uint64_t COption_u64Z_clone_ptr(LDKCOption_u64Z *NONNULL_PTR arg);
3422 public static native long COption_u64Z_clone_ptr(long arg);
3423 // struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig);
3424 public static native long COption_u64Z_clone(long orig);
3425 // void CVec_BlindedPathZ_free(struct LDKCVec_BlindedPathZ _res);
3426 public static native void CVec_BlindedPathZ_free(long[] _res);
3427 // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_ok(struct LDKRefund o);
3428 public static native long CResult_RefundBolt12ParseErrorZ_ok(long o);
3429 // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_err(struct LDKBolt12ParseError e);
3430 public static native long CResult_RefundBolt12ParseErrorZ_err(long e);
3431 // bool CResult_RefundBolt12ParseErrorZ_is_ok(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR o);
3432 public static native boolean CResult_RefundBolt12ParseErrorZ_is_ok(long o);
3433 // void CResult_RefundBolt12ParseErrorZ_free(struct LDKCResult_RefundBolt12ParseErrorZ _res);
3434 public static native void CResult_RefundBolt12ParseErrorZ_free(long _res);
3435 // uint64_t CResult_RefundBolt12ParseErrorZ_clone_ptr(LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR arg);
3436 public static native long CResult_RefundBolt12ParseErrorZ_clone_ptr(long arg);
3437 // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_clone(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR orig);
3438 public static native long CResult_RefundBolt12ParseErrorZ_clone(long orig);
3439 // struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_ok(struct LDKRetry o);
3440 public static native long CResult_RetryDecodeErrorZ_ok(long o);
3441 // struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_err(struct LDKDecodeError e);
3442 public static native long CResult_RetryDecodeErrorZ_err(long e);
3443 // bool CResult_RetryDecodeErrorZ_is_ok(const struct LDKCResult_RetryDecodeErrorZ *NONNULL_PTR o);
3444 public static native boolean CResult_RetryDecodeErrorZ_is_ok(long o);
3445 // void CResult_RetryDecodeErrorZ_free(struct LDKCResult_RetryDecodeErrorZ _res);
3446 public static native void CResult_RetryDecodeErrorZ_free(long _res);
3447 // uint64_t CResult_RetryDecodeErrorZ_clone_ptr(LDKCResult_RetryDecodeErrorZ *NONNULL_PTR arg);
3448 public static native long CResult_RetryDecodeErrorZ_clone_ptr(long arg);
3449 // struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_clone(const struct LDKCResult_RetryDecodeErrorZ *NONNULL_PTR orig);
3450 public static native long CResult_RetryDecodeErrorZ_clone(long orig);
3451 // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
3452 public static native long CResult_NoneAPIErrorZ_ok();
3453 // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
3454 public static native long CResult_NoneAPIErrorZ_err(long e);
3455 // bool CResult_NoneAPIErrorZ_is_ok(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR o);
3456 public static native boolean CResult_NoneAPIErrorZ_is_ok(long o);
3457 // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
3458 public static native void CResult_NoneAPIErrorZ_free(long _res);
3459 // uint64_t CResult_NoneAPIErrorZ_clone_ptr(LDKCResult_NoneAPIErrorZ *NONNULL_PTR arg);
3460 public static native long CResult_NoneAPIErrorZ_clone_ptr(long arg);
3461 // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig);
3462 public static native long CResult_NoneAPIErrorZ_clone(long orig);
3463 // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res);
3464 public static native void CVec_CResult_NoneAPIErrorZZ_free(long[] _res);
3465 // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res);
3466 public static native void CVec_APIErrorZ_free(long[] _res);
3467 // struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_some(struct LDKThirtyTwoBytes o);
3468 public static native long COption_ThirtyTwoBytesZ_some(byte[] o);
3469 // struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_none(void);
3470 public static native long COption_ThirtyTwoBytesZ_none();
3471 // void COption_ThirtyTwoBytesZ_free(struct LDKCOption_ThirtyTwoBytesZ _res);
3472 public static native void COption_ThirtyTwoBytesZ_free(long _res);
3473 // uint64_t COption_ThirtyTwoBytesZ_clone_ptr(LDKCOption_ThirtyTwoBytesZ *NONNULL_PTR arg);
3474 public static native long COption_ThirtyTwoBytesZ_clone_ptr(long arg);
3475 // struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_clone(const struct LDKCOption_ThirtyTwoBytesZ *NONNULL_PTR orig);
3476 public static native long COption_ThirtyTwoBytesZ_clone(long orig);
3477 // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
3478 public static native void CVec_u8Z_free(byte[] _res);
3479 // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_some(struct LDKCVec_u8Z o);
3480 public static native long COption_CVec_u8ZZ_some(byte[] o);
3481 // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_none(void);
3482 public static native long COption_CVec_u8ZZ_none();
3483 // void COption_CVec_u8ZZ_free(struct LDKCOption_CVec_u8ZZ _res);
3484 public static native void COption_CVec_u8ZZ_free(long _res);
3485 // uint64_t COption_CVec_u8ZZ_clone_ptr(LDKCOption_CVec_u8ZZ *NONNULL_PTR arg);
3486 public static native long COption_CVec_u8ZZ_clone_ptr(long arg);
3487 // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_clone(const struct LDKCOption_CVec_u8ZZ *NONNULL_PTR orig);
3488 public static native long COption_CVec_u8ZZ_clone(long orig);
3489 // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_ok(struct LDKRecipientOnionFields o);
3490 public static native long CResult_RecipientOnionFieldsDecodeErrorZ_ok(long o);
3491 // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_err(struct LDKDecodeError e);
3492 public static native long CResult_RecipientOnionFieldsDecodeErrorZ_err(long e);
3493 // bool CResult_RecipientOnionFieldsDecodeErrorZ_is_ok(const struct LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR o);
3494 public static native boolean CResult_RecipientOnionFieldsDecodeErrorZ_is_ok(long o);
3495 // void CResult_RecipientOnionFieldsDecodeErrorZ_free(struct LDKCResult_RecipientOnionFieldsDecodeErrorZ _res);
3496 public static native void CResult_RecipientOnionFieldsDecodeErrorZ_free(long _res);
3497 // uint64_t CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR arg);
3498 public static native long CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr(long arg);
3499 // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_clone(const struct LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR orig);
3500 public static native long CResult_RecipientOnionFieldsDecodeErrorZ_clone(long orig);
3501 // uint64_t C2Tuple_u64CVec_u8ZZ_clone_ptr(LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR arg);
3502 public static native long C2Tuple_u64CVec_u8ZZ_clone_ptr(long arg);
3503 // struct LDKC2Tuple_u64CVec_u8ZZ C2Tuple_u64CVec_u8ZZ_clone(const struct LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR orig);
3504 public static native long C2Tuple_u64CVec_u8ZZ_clone(long orig);
3505 // struct LDKC2Tuple_u64CVec_u8ZZ C2Tuple_u64CVec_u8ZZ_new(uint64_t a, struct LDKCVec_u8Z b);
3506 public static native long C2Tuple_u64CVec_u8ZZ_new(long a, byte[] b);
3507 // void C2Tuple_u64CVec_u8ZZ_free(struct LDKC2Tuple_u64CVec_u8ZZ _res);
3508 public static native void C2Tuple_u64CVec_u8ZZ_free(long _res);
3509 // void CVec_C2Tuple_u64CVec_u8ZZZ_free(struct LDKCVec_C2Tuple_u64CVec_u8ZZZ _res);
3510 public static native void CVec_C2Tuple_u64CVec_u8ZZZ_free(long[] _res);
3511 // struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_ok(struct LDKRecipientOnionFields o);
3512 public static native long CResult_RecipientOnionFieldsNoneZ_ok(long o);
3513 // struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_err(void);
3514 public static native long CResult_RecipientOnionFieldsNoneZ_err();
3515 // bool CResult_RecipientOnionFieldsNoneZ_is_ok(const struct LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR o);
3516 public static native boolean CResult_RecipientOnionFieldsNoneZ_is_ok(long o);
3517 // void CResult_RecipientOnionFieldsNoneZ_free(struct LDKCResult_RecipientOnionFieldsNoneZ _res);
3518 public static native void CResult_RecipientOnionFieldsNoneZ_free(long _res);
3519 // uint64_t CResult_RecipientOnionFieldsNoneZ_clone_ptr(LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR arg);
3520 public static native long CResult_RecipientOnionFieldsNoneZ_clone_ptr(long arg);
3521 // struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_clone(const struct LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR orig);
3522 public static native long CResult_RecipientOnionFieldsNoneZ_clone(long orig);
3523 // void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res);
3524 public static native void CVec_ThirtyTwoBytesZ_free(byte[][] _res);
3525 // struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_some(struct LDKCVec_ThirtyTwoBytesZ o);
3526 public static native long COption_CVec_ThirtyTwoBytesZZ_some(byte[][] o);
3527 // struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_none(void);
3528 public static native long COption_CVec_ThirtyTwoBytesZZ_none();
3529 // void COption_CVec_ThirtyTwoBytesZZ_free(struct LDKCOption_CVec_ThirtyTwoBytesZZ _res);
3530 public static native void COption_CVec_ThirtyTwoBytesZZ_free(long _res);
3531 // uint64_t COption_CVec_ThirtyTwoBytesZZ_clone_ptr(LDKCOption_CVec_ThirtyTwoBytesZZ *NONNULL_PTR arg);
3532 public static native long COption_CVec_ThirtyTwoBytesZZ_clone_ptr(long arg);
3533 // struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_clone(const struct LDKCOption_CVec_ThirtyTwoBytesZZ *NONNULL_PTR orig);
3534 public static native long COption_CVec_ThirtyTwoBytesZZ_clone(long orig);
3535 // struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_ok(struct LDKThirtyTwoBytes o);
3536 public static native long CResult_ThirtyTwoBytesNoneZ_ok(byte[] o);
3537 // struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_err(void);
3538 public static native long CResult_ThirtyTwoBytesNoneZ_err();
3539 // bool CResult_ThirtyTwoBytesNoneZ_is_ok(const struct LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR o);
3540 public static native boolean CResult_ThirtyTwoBytesNoneZ_is_ok(long o);
3541 // void CResult_ThirtyTwoBytesNoneZ_free(struct LDKCResult_ThirtyTwoBytesNoneZ _res);
3542 public static native void CResult_ThirtyTwoBytesNoneZ_free(long _res);
3543 // uint64_t CResult_ThirtyTwoBytesNoneZ_clone_ptr(LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR arg);
3544 public static native long CResult_ThirtyTwoBytesNoneZ_clone_ptr(long arg);
3545 // struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_clone(const struct LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR orig);
3546 public static native long CResult_ThirtyTwoBytesNoneZ_clone(long orig);
3547 // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_ok(struct LDKBlindedPayInfo o);
3548 public static native long CResult_BlindedPayInfoDecodeErrorZ_ok(long o);
3549 // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_err(struct LDKDecodeError e);
3550 public static native long CResult_BlindedPayInfoDecodeErrorZ_err(long e);
3551 // bool CResult_BlindedPayInfoDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR o);
3552 public static native boolean CResult_BlindedPayInfoDecodeErrorZ_is_ok(long o);
3553 // void CResult_BlindedPayInfoDecodeErrorZ_free(struct LDKCResult_BlindedPayInfoDecodeErrorZ _res);
3554 public static native void CResult_BlindedPayInfoDecodeErrorZ_free(long _res);
3555 // uint64_t CResult_BlindedPayInfoDecodeErrorZ_clone_ptr(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR arg);
3556 public static native long CResult_BlindedPayInfoDecodeErrorZ_clone_ptr(long arg);
3557 // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_clone(const struct LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR orig);
3558 public static native long CResult_BlindedPayInfoDecodeErrorZ_clone(long orig);
3559 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKDelayedPaymentOutputDescriptor o);
3560 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(long o);
3561 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
3562 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(long e);
3563 // bool CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
3564 public static native boolean CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(long o);
3565 // void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ _res);
3566 public static native void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(long _res);
3567 // uint64_t CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
3568 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
3569 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
3570 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
3571 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKStaticPaymentOutputDescriptor o);
3572 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(long o);
3573 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
3574 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(long e);
3575 // bool CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
3576 public static native boolean CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(long o);
3577 // void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ _res);
3578 public static native void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(long _res);
3579 // uint64_t CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
3580 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
3581 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
3582 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
3583 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
3584 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_ok(long o);
3585 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
3586 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_err(long e);
3587 // bool CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
3588 public static native boolean CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(long o);
3589 // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
3590 public static native void CResult_SpendableOutputDescriptorDecodeErrorZ_free(long _res);
3591 // uint64_t CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
3592 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
3593 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
3594 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone(long orig);
3595 // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
3596 public static native void CVec_SpendableOutputDescriptorZ_free(long[] _res);
3597 // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
3598 public static native void CVec_TxOutZ_free(long[] _res);
3599 // struct LDKCOption_u32Z COption_u32Z_some(uint32_t o);
3600 public static native long COption_u32Z_some(int o);
3601 // struct LDKCOption_u32Z COption_u32Z_none(void);
3602 public static native long COption_u32Z_none();
3603 // void COption_u32Z_free(struct LDKCOption_u32Z _res);
3604 public static native void COption_u32Z_free(long _res);
3605 // uint64_t COption_u32Z_clone_ptr(LDKCOption_u32Z *NONNULL_PTR arg);
3606 public static native long COption_u32Z_clone_ptr(long arg);
3607 // struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig);
3608 public static native long COption_u32Z_clone(long orig);
3609 // uint64_t C2Tuple_CVec_u8Zu64Z_clone_ptr(LDKC2Tuple_CVec_u8Zu64Z *NONNULL_PTR arg);
3610 public static native long C2Tuple_CVec_u8Zu64Z_clone_ptr(long arg);
3611 // struct LDKC2Tuple_CVec_u8Zu64Z C2Tuple_CVec_u8Zu64Z_clone(const struct LDKC2Tuple_CVec_u8Zu64Z *NONNULL_PTR orig);
3612 public static native long C2Tuple_CVec_u8Zu64Z_clone(long orig);
3613 // struct LDKC2Tuple_CVec_u8Zu64Z C2Tuple_CVec_u8Zu64Z_new(struct LDKCVec_u8Z a, uint64_t b);
3614 public static native long C2Tuple_CVec_u8Zu64Z_new(byte[] a, long b);
3615 // void C2Tuple_CVec_u8Zu64Z_free(struct LDKC2Tuple_CVec_u8Zu64Z _res);
3616 public static native void C2Tuple_CVec_u8Zu64Z_free(long _res);
3617 // struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ CResult_C2Tuple_CVec_u8Zu64ZNoneZ_ok(struct LDKC2Tuple_CVec_u8Zu64Z o);
3618 public static native long CResult_C2Tuple_CVec_u8Zu64ZNoneZ_ok(long o);
3619 // struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ CResult_C2Tuple_CVec_u8Zu64ZNoneZ_err(void);
3620 public static native long CResult_C2Tuple_CVec_u8Zu64ZNoneZ_err();
3621 // bool CResult_C2Tuple_CVec_u8Zu64ZNoneZ_is_ok(const struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ *NONNULL_PTR o);
3622 public static native boolean CResult_C2Tuple_CVec_u8Zu64ZNoneZ_is_ok(long o);
3623 // void CResult_C2Tuple_CVec_u8Zu64ZNoneZ_free(struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ _res);
3624 public static native void CResult_C2Tuple_CVec_u8Zu64ZNoneZ_free(long _res);
3625 // uint64_t CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone_ptr(LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ *NONNULL_PTR arg);
3626 public static native long CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone_ptr(long arg);
3627 // struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone(const struct LDKCResult_C2Tuple_CVec_u8Zu64ZNoneZ *NONNULL_PTR orig);
3628 public static native long CResult_C2Tuple_CVec_u8Zu64ZNoneZ_clone(long orig);
3629 // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_ok(struct LDKChannelDerivationParameters o);
3630 public static native long CResult_ChannelDerivationParametersDecodeErrorZ_ok(long o);
3631 // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_err(struct LDKDecodeError e);
3632 public static native long CResult_ChannelDerivationParametersDecodeErrorZ_err(long e);
3633 // bool CResult_ChannelDerivationParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR o);
3634 public static native boolean CResult_ChannelDerivationParametersDecodeErrorZ_is_ok(long o);
3635 // void CResult_ChannelDerivationParametersDecodeErrorZ_free(struct LDKCResult_ChannelDerivationParametersDecodeErrorZ _res);
3636 public static native void CResult_ChannelDerivationParametersDecodeErrorZ_free(long _res);
3637 // uint64_t CResult_ChannelDerivationParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR arg);
3638 public static native long CResult_ChannelDerivationParametersDecodeErrorZ_clone_ptr(long arg);
3639 // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR orig);
3640 public static native long CResult_ChannelDerivationParametersDecodeErrorZ_clone(long orig);
3641 // struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_ok(struct LDKHTLCDescriptor o);
3642 public static native long CResult_HTLCDescriptorDecodeErrorZ_ok(long o);
3643 // struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
3644 public static native long CResult_HTLCDescriptorDecodeErrorZ_err(long e);
3645 // bool CResult_HTLCDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR o);
3646 public static native boolean CResult_HTLCDescriptorDecodeErrorZ_is_ok(long o);
3647 // void CResult_HTLCDescriptorDecodeErrorZ_free(struct LDKCResult_HTLCDescriptorDecodeErrorZ _res);
3648 public static native void CResult_HTLCDescriptorDecodeErrorZ_free(long _res);
3649 // uint64_t CResult_HTLCDescriptorDecodeErrorZ_clone_ptr(LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR arg);
3650 public static native long CResult_HTLCDescriptorDecodeErrorZ_clone_ptr(long arg);
3651 // struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_clone(const struct LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR orig);
3652 public static native long CResult_HTLCDescriptorDecodeErrorZ_clone(long orig);
3653 // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_ok(void);
3654 public static native long CResult_NoneNoneZ_ok();
3655 // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_err(void);
3656 public static native long CResult_NoneNoneZ_err();
3657 // bool CResult_NoneNoneZ_is_ok(const struct LDKCResult_NoneNoneZ *NONNULL_PTR o);
3658 public static native boolean CResult_NoneNoneZ_is_ok(long o);
3659 // void CResult_NoneNoneZ_free(struct LDKCResult_NoneNoneZ _res);
3660 public static native void CResult_NoneNoneZ_free(long _res);
3661 // uint64_t CResult_NoneNoneZ_clone_ptr(LDKCResult_NoneNoneZ *NONNULL_PTR arg);
3662 public static native long CResult_NoneNoneZ_clone_ptr(long arg);
3663 // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_NoneNoneZ *NONNULL_PTR orig);
3664 public static native long CResult_NoneNoneZ_clone(long orig);
3665 // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_ok(struct LDKPublicKey o);
3666 public static native long CResult_PublicKeyNoneZ_ok(byte[] o);
3667 // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_err(void);
3668 public static native long CResult_PublicKeyNoneZ_err();
3669 // bool CResult_PublicKeyNoneZ_is_ok(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR o);
3670 public static native boolean CResult_PublicKeyNoneZ_is_ok(long o);
3671 // void CResult_PublicKeyNoneZ_free(struct LDKCResult_PublicKeyNoneZ _res);
3672 public static native void CResult_PublicKeyNoneZ_free(long _res);
3673 // uint64_t CResult_PublicKeyNoneZ_clone_ptr(LDKCResult_PublicKeyNoneZ *NONNULL_PTR arg);
3674 public static native long CResult_PublicKeyNoneZ_clone_ptr(long arg);
3675 // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_clone(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR orig);
3676 public static native long CResult_PublicKeyNoneZ_clone(long orig);
3677 // struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_some(struct LDKBigEndianScalar o);
3678 public static native long COption_BigEndianScalarZ_some(long o);
3679 // struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_none(void);
3680 public static native long COption_BigEndianScalarZ_none();
3681 // void COption_BigEndianScalarZ_free(struct LDKCOption_BigEndianScalarZ _res);
3682 public static native void COption_BigEndianScalarZ_free(long _res);
3683 // uint64_t COption_BigEndianScalarZ_clone_ptr(LDKCOption_BigEndianScalarZ *NONNULL_PTR arg);
3684 public static native long COption_BigEndianScalarZ_clone_ptr(long arg);
3685 // struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_clone(const struct LDKCOption_BigEndianScalarZ *NONNULL_PTR orig);
3686 public static native long COption_BigEndianScalarZ_clone(long orig);
3687 // void CVec_U5Z_free(struct LDKCVec_U5Z _res);
3688 public static native void CVec_U5Z_free(byte[] _res);
3689 // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o);
3690 public static native long CResult_RecoverableSignatureNoneZ_ok(byte[] o);
3691 // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void);
3692 public static native long CResult_RecoverableSignatureNoneZ_err();
3693 // bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o);
3694 public static native boolean CResult_RecoverableSignatureNoneZ_is_ok(long o);
3695 // void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res);
3696 public static native void CResult_RecoverableSignatureNoneZ_free(long _res);
3697 // uint64_t CResult_RecoverableSignatureNoneZ_clone_ptr(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR arg);
3698 public static native long CResult_RecoverableSignatureNoneZ_clone_ptr(long arg);
3699 // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig);
3700 public static native long CResult_RecoverableSignatureNoneZ_clone(long orig);
3701 // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_ok(struct LDKSchnorrSignature o);
3702 public static native long CResult_SchnorrSignatureNoneZ_ok(byte[] o);
3703 // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_err(void);
3704 public static native long CResult_SchnorrSignatureNoneZ_err();
3705 // bool CResult_SchnorrSignatureNoneZ_is_ok(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR o);
3706 public static native boolean CResult_SchnorrSignatureNoneZ_is_ok(long o);
3707 // void CResult_SchnorrSignatureNoneZ_free(struct LDKCResult_SchnorrSignatureNoneZ _res);
3708 public static native void CResult_SchnorrSignatureNoneZ_free(long _res);
3709 // uint64_t CResult_SchnorrSignatureNoneZ_clone_ptr(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR arg);
3710 public static native long CResult_SchnorrSignatureNoneZ_clone_ptr(long arg);
3711 // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_clone(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR orig);
3712 public static native long CResult_SchnorrSignatureNoneZ_clone(long orig);
3713 // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_ok(struct LDKECDSASignature o);
3714 public static native long CResult_ECDSASignatureNoneZ_ok(byte[] o);
3715 // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_err(void);
3716 public static native long CResult_ECDSASignatureNoneZ_err();
3717 // bool CResult_ECDSASignatureNoneZ_is_ok(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR o);
3718 public static native boolean CResult_ECDSASignatureNoneZ_is_ok(long o);
3719 // void CResult_ECDSASignatureNoneZ_free(struct LDKCResult_ECDSASignatureNoneZ _res);
3720 public static native void CResult_ECDSASignatureNoneZ_free(long _res);
3721 // uint64_t CResult_ECDSASignatureNoneZ_clone_ptr(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR arg);
3722 public static native long CResult_ECDSASignatureNoneZ_clone_ptr(long arg);
3723 // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_clone(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR orig);
3724 public static native long CResult_ECDSASignatureNoneZ_clone(long orig);
3725 // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(struct LDKWriteableEcdsaChannelSigner o);
3726 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(long o);
3727 // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(struct LDKDecodeError e);
3728 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(long e);
3729 // bool CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR o);
3730 public static native boolean CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(long o);
3731 // void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ _res);
3732 public static native void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(long _res);
3733 // uint64_t CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR arg);
3734 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(long arg);
3735 // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR orig);
3736 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(long orig);
3737 // struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_ok(struct LDKCVec_u8Z o);
3738 public static native long CResult_CVec_u8ZNoneZ_ok(byte[] o);
3739 // struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_err(void);
3740 public static native long CResult_CVec_u8ZNoneZ_err();
3741 // bool CResult_CVec_u8ZNoneZ_is_ok(const struct LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR o);
3742 public static native boolean CResult_CVec_u8ZNoneZ_is_ok(long o);
3743 // void CResult_CVec_u8ZNoneZ_free(struct LDKCResult_CVec_u8ZNoneZ _res);
3744 public static native void CResult_CVec_u8ZNoneZ_free(long _res);
3745 // uint64_t CResult_CVec_u8ZNoneZ_clone_ptr(LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR arg);
3746 public static native long CResult_CVec_u8ZNoneZ_clone_ptr(long arg);
3747 // struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_clone(const struct LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR orig);
3748 public static native long CResult_CVec_u8ZNoneZ_clone(long orig);
3749 // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_ok(struct LDKShutdownScript o);
3750 public static native long CResult_ShutdownScriptNoneZ_ok(long o);
3751 // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_err(void);
3752 public static native long CResult_ShutdownScriptNoneZ_err();
3753 // bool CResult_ShutdownScriptNoneZ_is_ok(const struct LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR o);
3754 public static native boolean CResult_ShutdownScriptNoneZ_is_ok(long o);
3755 // void CResult_ShutdownScriptNoneZ_free(struct LDKCResult_ShutdownScriptNoneZ _res);
3756 public static native void CResult_ShutdownScriptNoneZ_free(long _res);
3757 // uint64_t CResult_ShutdownScriptNoneZ_clone_ptr(LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR arg);
3758 public static native long CResult_ShutdownScriptNoneZ_clone_ptr(long arg);
3759 // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_clone(const struct LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR orig);
3760 public static native long CResult_ShutdownScriptNoneZ_clone(long orig);
3761 // struct LDKCOption_u16Z COption_u16Z_some(uint16_t o);
3762 public static native long COption_u16Z_some(short o);
3763 // struct LDKCOption_u16Z COption_u16Z_none(void);
3764 public static native long COption_u16Z_none();
3765 // void COption_u16Z_free(struct LDKCOption_u16Z _res);
3766 public static native void COption_u16Z_free(long _res);
3767 // uint64_t COption_u16Z_clone_ptr(LDKCOption_u16Z *NONNULL_PTR arg);
3768 public static native long COption_u16Z_clone_ptr(long arg);
3769 // struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig);
3770 public static native long COption_u16Z_clone(long orig);
3771 // struct LDKCOption_boolZ COption_boolZ_some(bool o);
3772 public static native long COption_boolZ_some(boolean o);
3773 // struct LDKCOption_boolZ COption_boolZ_none(void);
3774 public static native long COption_boolZ_none();
3775 // void COption_boolZ_free(struct LDKCOption_boolZ _res);
3776 public static native void COption_boolZ_free(long _res);
3777 // uint64_t COption_boolZ_clone_ptr(LDKCOption_boolZ *NONNULL_PTR arg);
3778 public static native long COption_boolZ_clone_ptr(long arg);
3779 // struct LDKCOption_boolZ COption_boolZ_clone(const struct LDKCOption_boolZ *NONNULL_PTR orig);
3780 public static native long COption_boolZ_clone(long orig);
3781 // struct LDKCResult_WitnessNoneZ CResult_WitnessNoneZ_ok(struct LDKWitness o);
3782 public static native long CResult_WitnessNoneZ_ok(byte[] o);
3783 // struct LDKCResult_WitnessNoneZ CResult_WitnessNoneZ_err(void);
3784 public static native long CResult_WitnessNoneZ_err();
3785 // bool CResult_WitnessNoneZ_is_ok(const struct LDKCResult_WitnessNoneZ *NONNULL_PTR o);
3786 public static native boolean CResult_WitnessNoneZ_is_ok(long o);
3787 // void CResult_WitnessNoneZ_free(struct LDKCResult_WitnessNoneZ _res);
3788 public static native void CResult_WitnessNoneZ_free(long _res);
3789 // uint64_t CResult_WitnessNoneZ_clone_ptr(LDKCResult_WitnessNoneZ *NONNULL_PTR arg);
3790 public static native long CResult_WitnessNoneZ_clone_ptr(long arg);
3791 // struct LDKCResult_WitnessNoneZ CResult_WitnessNoneZ_clone(const struct LDKCResult_WitnessNoneZ *NONNULL_PTR orig);
3792 public static native long CResult_WitnessNoneZ_clone(long orig);
3793 // void CVec_ECDSASignatureZ_free(struct LDKCVec_ECDSASignatureZ _res);
3794 public static native void CVec_ECDSASignatureZ_free(byte[][] _res);
3795 // uint64_t C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone_ptr(LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR arg);
3796 public static native long C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone_ptr(long arg);
3797 // struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone(const struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR orig);
3798 public static native long C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone(long orig);
3799 // struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_new(struct LDKECDSASignature a, struct LDKCVec_ECDSASignatureZ b);
3800 public static native long C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_new(byte[] a, byte[][] b);
3801 // void C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_free(struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ _res);
3802 public static native void C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_free(long _res);
3803 // struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_ok(struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ o);
3804 public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_ok(long o);
3805 // struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_err(void);
3806 public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_err();
3807 // bool CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR o);
3808 public static native boolean CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_is_ok(long o);
3809 // void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_free(struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ _res);
3810 public static native void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_free(long _res);
3811 // uint64_t CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone_ptr(LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR arg);
3812 public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone_ptr(long arg);
3813 // struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR orig);
3814 public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone(long orig);
3815 // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
3816 public static native long CResult_InMemorySignerDecodeErrorZ_ok(long o);
3817 // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
3818 public static native long CResult_InMemorySignerDecodeErrorZ_err(long e);
3819 // bool CResult_InMemorySignerDecodeErrorZ_is_ok(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR o);
3820 public static native boolean CResult_InMemorySignerDecodeErrorZ_is_ok(long o);
3821 // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
3822 public static native void CResult_InMemorySignerDecodeErrorZ_free(long _res);
3823 // uint64_t CResult_InMemorySignerDecodeErrorZ_clone_ptr(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR arg);
3824 public static native long CResult_InMemorySignerDecodeErrorZ_clone_ptr(long arg);
3825 // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
3826 public static native long CResult_InMemorySignerDecodeErrorZ_clone(long orig);
3827 // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
3828 public static native long CResult_TransactionNoneZ_ok(byte[] o);
3829 // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
3830 public static native long CResult_TransactionNoneZ_err();
3831 // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o);
3832 public static native boolean CResult_TransactionNoneZ_is_ok(long o);
3833 // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
3834 public static native void CResult_TransactionNoneZ_free(long _res);
3835 // uint64_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg);
3836 public static native long CResult_TransactionNoneZ_clone_ptr(long arg);
3837 // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig);
3838 public static native long CResult_TransactionNoneZ_clone(long orig);
3839 // struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_some(struct LDKWriteableScore o);
3840 public static native long COption_WriteableScoreZ_some(long o);
3841 // struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_none(void);
3842 public static native long COption_WriteableScoreZ_none();
3843 // void COption_WriteableScoreZ_free(struct LDKCOption_WriteableScoreZ _res);
3844 public static native void COption_WriteableScoreZ_free(long _res);
3845 // struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_ok(void);
3846 public static native long CResult_NoneIOErrorZ_ok();
3847 // struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_err(enum LDKIOError e);
3848 public static native long CResult_NoneIOErrorZ_err(IOError e);
3849 // bool CResult_NoneIOErrorZ_is_ok(const struct LDKCResult_NoneIOErrorZ *NONNULL_PTR o);
3850 public static native boolean CResult_NoneIOErrorZ_is_ok(long o);
3851 // void CResult_NoneIOErrorZ_free(struct LDKCResult_NoneIOErrorZ _res);
3852 public static native void CResult_NoneIOErrorZ_free(long _res);
3853 // uint64_t CResult_NoneIOErrorZ_clone_ptr(LDKCResult_NoneIOErrorZ *NONNULL_PTR arg);
3854 public static native long CResult_NoneIOErrorZ_clone_ptr(long arg);
3855 // struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_clone(const struct LDKCResult_NoneIOErrorZ *NONNULL_PTR orig);
3856 public static native long CResult_NoneIOErrorZ_clone(long orig);
3857 // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
3858 public static native void CVec_ChannelDetailsZ_free(long[] _res);
3859 // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
3860 public static native long CResult_RouteLightningErrorZ_ok(long o);
3861 // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
3862 public static native long CResult_RouteLightningErrorZ_err(long e);
3863 // bool CResult_RouteLightningErrorZ_is_ok(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR o);
3864 public static native boolean CResult_RouteLightningErrorZ_is_ok(long o);
3865 // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
3866 public static native void CResult_RouteLightningErrorZ_free(long _res);
3867 // uint64_t CResult_RouteLightningErrorZ_clone_ptr(LDKCResult_RouteLightningErrorZ *NONNULL_PTR arg);
3868 public static native long CResult_RouteLightningErrorZ_clone_ptr(long arg);
3869 // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
3870 public static native long CResult_RouteLightningErrorZ_clone(long orig);
3871 // uint64_t C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR arg);
3872 public static native long C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr(long arg);
3873 // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ C2Tuple_BlindedPayInfoBlindedPathZ_clone(const struct LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR orig);
3874 public static native long C2Tuple_BlindedPayInfoBlindedPathZ_clone(long orig);
3875 // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ C2Tuple_BlindedPayInfoBlindedPathZ_new(struct LDKBlindedPayInfo a, struct LDKBlindedPath b);
3876 public static native long C2Tuple_BlindedPayInfoBlindedPathZ_new(long a, long b);
3877 // void C2Tuple_BlindedPayInfoBlindedPathZ_free(struct LDKC2Tuple_BlindedPayInfoBlindedPathZ _res);
3878 public static native void C2Tuple_BlindedPayInfoBlindedPathZ_free(long _res);
3879 // void CVec_C2Tuple_BlindedPayInfoBlindedPathZZ_free(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ _res);
3880 public static native void CVec_C2Tuple_BlindedPayInfoBlindedPathZZ_free(long[] _res);
3881 // struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_ok(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ o);
3882 public static native long CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_ok(long[] o);
3883 // struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_err(void);
3884 public static native long CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_err();
3885 // bool CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_is_ok(const struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ *NONNULL_PTR o);
3886 public static native boolean CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_is_ok(long o);
3887 // void CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_free(struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ _res);
3888 public static native void CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_free(long _res);
3889 // uint64_t CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone_ptr(LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ *NONNULL_PTR arg);
3890 public static native long CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone_ptr(long arg);
3891 // struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone(const struct LDKCResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ *NONNULL_PTR orig);
3892 public static native long CResult_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ_clone(long orig);
3893 // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
3894 public static native void CVec_PublicKeyZ_free(byte[][] _res);
3895 // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_ok(struct LDKOnionMessagePath o);
3896 public static native long CResult_OnionMessagePathNoneZ_ok(long o);
3897 // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_err(void);
3898 public static native long CResult_OnionMessagePathNoneZ_err();
3899 // bool CResult_OnionMessagePathNoneZ_is_ok(const struct LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR o);
3900 public static native boolean CResult_OnionMessagePathNoneZ_is_ok(long o);
3901 // void CResult_OnionMessagePathNoneZ_free(struct LDKCResult_OnionMessagePathNoneZ _res);
3902 public static native void CResult_OnionMessagePathNoneZ_free(long _res);
3903 // uint64_t CResult_OnionMessagePathNoneZ_clone_ptr(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR arg);
3904 public static native long CResult_OnionMessagePathNoneZ_clone_ptr(long arg);
3905 // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_clone(const struct LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR orig);
3906 public static native long CResult_OnionMessagePathNoneZ_clone(long orig);
3907 // struct LDKCResult_CVec_BlindedPathZNoneZ CResult_CVec_BlindedPathZNoneZ_ok(struct LDKCVec_BlindedPathZ o);
3908 public static native long CResult_CVec_BlindedPathZNoneZ_ok(long[] o);
3909 // struct LDKCResult_CVec_BlindedPathZNoneZ CResult_CVec_BlindedPathZNoneZ_err(void);
3910 public static native long CResult_CVec_BlindedPathZNoneZ_err();
3911 // bool CResult_CVec_BlindedPathZNoneZ_is_ok(const struct LDKCResult_CVec_BlindedPathZNoneZ *NONNULL_PTR o);
3912 public static native boolean CResult_CVec_BlindedPathZNoneZ_is_ok(long o);
3913 // void CResult_CVec_BlindedPathZNoneZ_free(struct LDKCResult_CVec_BlindedPathZNoneZ _res);
3914 public static native void CResult_CVec_BlindedPathZNoneZ_free(long _res);
3915 // uint64_t CResult_CVec_BlindedPathZNoneZ_clone_ptr(LDKCResult_CVec_BlindedPathZNoneZ *NONNULL_PTR arg);
3916 public static native long CResult_CVec_BlindedPathZNoneZ_clone_ptr(long arg);
3917 // struct LDKCResult_CVec_BlindedPathZNoneZ CResult_CVec_BlindedPathZNoneZ_clone(const struct LDKCResult_CVec_BlindedPathZNoneZ *NONNULL_PTR orig);
3918 public static native long CResult_CVec_BlindedPathZNoneZ_clone(long orig);
3919 // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_ok(struct LDKInFlightHtlcs o);
3920 public static native long CResult_InFlightHtlcsDecodeErrorZ_ok(long o);
3921 // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_err(struct LDKDecodeError e);
3922 public static native long CResult_InFlightHtlcsDecodeErrorZ_err(long e);
3923 // bool CResult_InFlightHtlcsDecodeErrorZ_is_ok(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR o);
3924 public static native boolean CResult_InFlightHtlcsDecodeErrorZ_is_ok(long o);
3925 // void CResult_InFlightHtlcsDecodeErrorZ_free(struct LDKCResult_InFlightHtlcsDecodeErrorZ _res);
3926 public static native void CResult_InFlightHtlcsDecodeErrorZ_free(long _res);
3927 // uint64_t CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR arg);
3928 public static native long CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(long arg);
3929 // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_clone(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR orig);
3930 public static native long CResult_InFlightHtlcsDecodeErrorZ_clone(long orig);
3931 // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_ok(struct LDKRouteHop o);
3932 public static native long CResult_RouteHopDecodeErrorZ_ok(long o);
3933 // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_err(struct LDKDecodeError e);
3934 public static native long CResult_RouteHopDecodeErrorZ_err(long e);
3935 // bool CResult_RouteHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR o);
3936 public static native boolean CResult_RouteHopDecodeErrorZ_is_ok(long o);
3937 // void CResult_RouteHopDecodeErrorZ_free(struct LDKCResult_RouteHopDecodeErrorZ _res);
3938 public static native void CResult_RouteHopDecodeErrorZ_free(long _res);
3939 // uint64_t CResult_RouteHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR arg);
3940 public static native long CResult_RouteHopDecodeErrorZ_clone_ptr(long arg);
3941 // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_clone(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR orig);
3942 public static native long CResult_RouteHopDecodeErrorZ_clone(long orig);
3943 // void CVec_BlindedHopZ_free(struct LDKCVec_BlindedHopZ _res);
3944 public static native void CVec_BlindedHopZ_free(long[] _res);
3945 // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_ok(struct LDKBlindedTail o);
3946 public static native long CResult_BlindedTailDecodeErrorZ_ok(long o);
3947 // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_err(struct LDKDecodeError e);
3948 public static native long CResult_BlindedTailDecodeErrorZ_err(long e);
3949 // bool CResult_BlindedTailDecodeErrorZ_is_ok(const struct LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR o);
3950 public static native boolean CResult_BlindedTailDecodeErrorZ_is_ok(long o);
3951 // void CResult_BlindedTailDecodeErrorZ_free(struct LDKCResult_BlindedTailDecodeErrorZ _res);
3952 public static native void CResult_BlindedTailDecodeErrorZ_free(long _res);
3953 // uint64_t CResult_BlindedTailDecodeErrorZ_clone_ptr(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR arg);
3954 public static native long CResult_BlindedTailDecodeErrorZ_clone_ptr(long arg);
3955 // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_clone(const struct LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR orig);
3956 public static native long CResult_BlindedTailDecodeErrorZ_clone(long orig);
3957 // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
3958 public static native void CVec_RouteHopZ_free(long[] _res);
3959 // void CVec_PathZ_free(struct LDKCVec_PathZ _res);
3960 public static native void CVec_PathZ_free(long[] _res);
3961 // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
3962 public static native long CResult_RouteDecodeErrorZ_ok(long o);
3963 // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
3964 public static native long CResult_RouteDecodeErrorZ_err(long e);
3965 // bool CResult_RouteDecodeErrorZ_is_ok(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR o);
3966 public static native boolean CResult_RouteDecodeErrorZ_is_ok(long o);
3967 // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
3968 public static native void CResult_RouteDecodeErrorZ_free(long _res);
3969 // uint64_t CResult_RouteDecodeErrorZ_clone_ptr(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR arg);
3970 public static native long CResult_RouteDecodeErrorZ_clone_ptr(long arg);
3971 // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
3972 public static native long CResult_RouteDecodeErrorZ_clone(long orig);
3973 // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_ok(struct LDKRouteParameters o);
3974 public static native long CResult_RouteParametersDecodeErrorZ_ok(long o);
3975 // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_err(struct LDKDecodeError e);
3976 public static native long CResult_RouteParametersDecodeErrorZ_err(long e);
3977 // bool CResult_RouteParametersDecodeErrorZ_is_ok(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR o);
3978 public static native boolean CResult_RouteParametersDecodeErrorZ_is_ok(long o);
3979 // void CResult_RouteParametersDecodeErrorZ_free(struct LDKCResult_RouteParametersDecodeErrorZ _res);
3980 public static native void CResult_RouteParametersDecodeErrorZ_free(long _res);
3981 // uint64_t CResult_RouteParametersDecodeErrorZ_clone_ptr(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR arg);
3982 public static native long CResult_RouteParametersDecodeErrorZ_clone_ptr(long arg);
3983 // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_clone(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR orig);
3984 public static native long CResult_RouteParametersDecodeErrorZ_clone(long orig);
3985 // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
3986 public static native void CVec_u64Z_free(long[] _res);
3987 // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_ok(struct LDKPaymentParameters o);
3988 public static native long CResult_PaymentParametersDecodeErrorZ_ok(long o);
3989 // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_err(struct LDKDecodeError e);
3990 public static native long CResult_PaymentParametersDecodeErrorZ_err(long e);
3991 // bool CResult_PaymentParametersDecodeErrorZ_is_ok(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR o);
3992 public static native boolean CResult_PaymentParametersDecodeErrorZ_is_ok(long o);
3993 // void CResult_PaymentParametersDecodeErrorZ_free(struct LDKCResult_PaymentParametersDecodeErrorZ _res);
3994 public static native void CResult_PaymentParametersDecodeErrorZ_free(long _res);
3995 // uint64_t CResult_PaymentParametersDecodeErrorZ_clone_ptr(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR arg);
3996 public static native long CResult_PaymentParametersDecodeErrorZ_clone_ptr(long arg);
3997 // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_clone(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR orig);
3998 public static native long CResult_PaymentParametersDecodeErrorZ_clone(long orig);
3999 // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
4000 public static native void CVec_RouteHintZ_free(long[] _res);
4001 // void CVec_RouteHintHopZ_free(struct LDKCVec_RouteHintHopZ _res);
4002 public static native void CVec_RouteHintHopZ_free(long[] _res);
4003 // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_ok(struct LDKRouteHint o);
4004 public static native long CResult_RouteHintDecodeErrorZ_ok(long o);
4005 // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_err(struct LDKDecodeError e);
4006 public static native long CResult_RouteHintDecodeErrorZ_err(long e);
4007 // bool CResult_RouteHintDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR o);
4008 public static native boolean CResult_RouteHintDecodeErrorZ_is_ok(long o);
4009 // void CResult_RouteHintDecodeErrorZ_free(struct LDKCResult_RouteHintDecodeErrorZ _res);
4010 public static native void CResult_RouteHintDecodeErrorZ_free(long _res);
4011 // uint64_t CResult_RouteHintDecodeErrorZ_clone_ptr(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR arg);
4012 public static native long CResult_RouteHintDecodeErrorZ_clone_ptr(long arg);
4013 // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_clone(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR orig);
4014 public static native long CResult_RouteHintDecodeErrorZ_clone(long orig);
4015 // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_ok(struct LDKRouteHintHop o);
4016 public static native long CResult_RouteHintHopDecodeErrorZ_ok(long o);
4017 // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_err(struct LDKDecodeError e);
4018 public static native long CResult_RouteHintHopDecodeErrorZ_err(long e);
4019 // bool CResult_RouteHintHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR o);
4020 public static native boolean CResult_RouteHintHopDecodeErrorZ_is_ok(long o);
4021 // void CResult_RouteHintHopDecodeErrorZ_free(struct LDKCResult_RouteHintHopDecodeErrorZ _res);
4022 public static native void CResult_RouteHintHopDecodeErrorZ_free(long _res);
4023 // uint64_t CResult_RouteHintHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR arg);
4024 public static native long CResult_RouteHintHopDecodeErrorZ_clone_ptr(long arg);
4025 // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_clone(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR orig);
4026 public static native long CResult_RouteHintHopDecodeErrorZ_clone(long orig);
4027 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_ok(struct LDKFixedPenaltyScorer o);
4028 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_ok(long o);
4029 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_err(struct LDKDecodeError e);
4030 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_err(long e);
4031 // bool CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR o);
4032 public static native boolean CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(long o);
4033 // void CResult_FixedPenaltyScorerDecodeErrorZ_free(struct LDKCResult_FixedPenaltyScorerDecodeErrorZ _res);
4034 public static native void CResult_FixedPenaltyScorerDecodeErrorZ_free(long _res);
4035 // uint64_t CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR arg);
4036 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(long arg);
4037 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_clone(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR orig);
4038 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_clone(long orig);
4039 // void CVec_NodeIdZ_free(struct LDKCVec_NodeIdZ _res);
4040 public static native void CVec_NodeIdZ_free(long[] _res);
4041 // uint64_t C2Tuple_u64u64Z_clone_ptr(LDKC2Tuple_u64u64Z *NONNULL_PTR arg);
4042 public static native long C2Tuple_u64u64Z_clone_ptr(long arg);
4043 // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_clone(const struct LDKC2Tuple_u64u64Z *NONNULL_PTR orig);
4044 public static native long C2Tuple_u64u64Z_clone(long orig);
4045 // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_new(uint64_t a, uint64_t b);
4046 public static native long C2Tuple_u64u64Z_new(long a, long b);
4047 // void C2Tuple_u64u64Z_free(struct LDKC2Tuple_u64u64Z _res);
4048 public static native void C2Tuple_u64u64Z_free(long _res);
4049 // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_some(struct LDKC2Tuple_u64u64Z o);
4050 public static native long COption_C2Tuple_u64u64ZZ_some(long o);
4051 // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_none(void);
4052 public static native long COption_C2Tuple_u64u64ZZ_none();
4053 // void COption_C2Tuple_u64u64ZZ_free(struct LDKCOption_C2Tuple_u64u64ZZ _res);
4054 public static native void COption_C2Tuple_u64u64ZZ_free(long _res);
4055 // uint64_t COption_C2Tuple_u64u64ZZ_clone_ptr(LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR arg);
4056 public static native long COption_C2Tuple_u64u64ZZ_clone_ptr(long arg);
4057 // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_clone(const struct LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR orig);
4058 public static native long COption_C2Tuple_u64u64ZZ_clone(long orig);
4059 // struct LDKC2Tuple_Z C2Tuple_Z_new(struct LDKThirtyTwoU16s a, struct LDKThirtyTwoU16s b);
4060 public static native long C2Tuple_Z_new(short[] a, short[] b);
4061 // void C2Tuple_Z_free(struct LDKC2Tuple_Z _res);
4062 public static native void C2Tuple_Z_free(long _res);
4063 // struct LDKC2Tuple__u1632_u1632Z C2Tuple__u1632_u1632Z_new(struct LDKThirtyTwoU16s a, struct LDKThirtyTwoU16s b);
4064 public static native long C2Tuple__u1632_u1632Z_new(short[] a, short[] b);
4065 // void C2Tuple__u1632_u1632Z_free(struct LDKC2Tuple__u1632_u1632Z _res);
4066 public static native void C2Tuple__u1632_u1632Z_free(long _res);
4067 // struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_some(struct LDKC2Tuple__u1632_u1632Z o);
4068 public static native long COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_some(long o);
4069 // struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_none(void);
4070 public static native long COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_none();
4071 // void COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_free(struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ _res);
4072 public static native void COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_free(long _res);
4073 // struct LDKCOption_f64Z COption_f64Z_some(double o);
4074 public static native long COption_f64Z_some(double o);
4075 // struct LDKCOption_f64Z COption_f64Z_none(void);
4076 public static native long COption_f64Z_none();
4077 // void COption_f64Z_free(struct LDKCOption_f64Z _res);
4078 public static native void COption_f64Z_free(long _res);
4079 // uint64_t COption_f64Z_clone_ptr(LDKCOption_f64Z *NONNULL_PTR arg);
4080 public static native long COption_f64Z_clone_ptr(long arg);
4081 // struct LDKCOption_f64Z COption_f64Z_clone(const struct LDKCOption_f64Z *NONNULL_PTR orig);
4082 public static native long COption_f64Z_clone(long orig);
4083 // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_ok(struct LDKProbabilisticScorer o);
4084 public static native long CResult_ProbabilisticScorerDecodeErrorZ_ok(long o);
4085 // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_err(struct LDKDecodeError e);
4086 public static native long CResult_ProbabilisticScorerDecodeErrorZ_err(long e);
4087 // bool CResult_ProbabilisticScorerDecodeErrorZ_is_ok(const struct LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR o);
4088 public static native boolean CResult_ProbabilisticScorerDecodeErrorZ_is_ok(long o);
4089 // void CResult_ProbabilisticScorerDecodeErrorZ_free(struct LDKCResult_ProbabilisticScorerDecodeErrorZ _res);
4090 public static native void CResult_ProbabilisticScorerDecodeErrorZ_free(long _res);
4091 // uint64_t C2Tuple_usizeTransactionZ_clone_ptr(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR arg);
4092 public static native long C2Tuple_usizeTransactionZ_clone_ptr(long arg);
4093 // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_clone(const struct LDKC2Tuple_usizeTransactionZ *NONNULL_PTR orig);
4094 public static native long C2Tuple_usizeTransactionZ_clone(long orig);
4095 // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
4096 public static native long C2Tuple_usizeTransactionZ_new(long a, byte[] b);
4097 // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
4098 public static native void C2Tuple_usizeTransactionZ_free(long _res);
4099 // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
4100 public static native void CVec_C2Tuple_usizeTransactionZZ_free(long[] _res);
4101 // uint64_t C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone_ptr(LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ *NONNULL_PTR arg);
4102 public static native long C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone_ptr(long arg);
4103 // struct LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone(const struct LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ *NONNULL_PTR orig);
4104 public static native long C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_clone(long orig);
4105 // struct LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_new(struct LDKThirtyTwoBytes a, uint32_t b, struct LDKCOption_ThirtyTwoBytesZ c);
4106 public static native long C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_new(byte[] a, int b, long c);
4107 // void C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_free(struct LDKC3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ _res);
4108 public static native void C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ_free(long _res);
4109 // void CVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ_free(struct LDKCVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ _res);
4110 public static native void CVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ_free(long[] _res);
4111 // struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_ok(enum LDKChannelMonitorUpdateStatus o);
4112 public static native long CResult_ChannelMonitorUpdateStatusNoneZ_ok(ChannelMonitorUpdateStatus o);
4113 // struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_err(void);
4114 public static native long CResult_ChannelMonitorUpdateStatusNoneZ_err();
4115 // bool CResult_ChannelMonitorUpdateStatusNoneZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR o);
4116 public static native boolean CResult_ChannelMonitorUpdateStatusNoneZ_is_ok(long o);
4117 // void CResult_ChannelMonitorUpdateStatusNoneZ_free(struct LDKCResult_ChannelMonitorUpdateStatusNoneZ _res);
4118 public static native void CResult_ChannelMonitorUpdateStatusNoneZ_free(long _res);
4119 // uint64_t CResult_ChannelMonitorUpdateStatusNoneZ_clone_ptr(LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR arg);
4120 public static native long CResult_ChannelMonitorUpdateStatusNoneZ_clone_ptr(long arg);
4121 // struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_clone(const struct LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR orig);
4122 public static native long CResult_ChannelMonitorUpdateStatusNoneZ_clone(long orig);
4123 // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
4124 public static native void CVec_MonitorEventZ_free(long[] _res);
4125 // uint64_t C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR arg);
4126 public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(long arg);
4127 // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(const struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR orig);
4128 public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(long orig);
4129 // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorEventZ b, struct LDKPublicKey c);
4130 public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(long a, long[] b, byte[] c);
4131 // void C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ _res);
4132 public static native void C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(long _res);
4133 // void CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(struct LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ _res);
4134 public static native void CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(long[] _res);
4135 // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
4136 public static native long CResult_InitFeaturesDecodeErrorZ_ok(long o);
4137 // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
4138 public static native long CResult_InitFeaturesDecodeErrorZ_err(long e);
4139 // bool CResult_InitFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR o);
4140 public static native boolean CResult_InitFeaturesDecodeErrorZ_is_ok(long o);
4141 // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
4142 public static native void CResult_InitFeaturesDecodeErrorZ_free(long _res);
4143 // uint64_t CResult_InitFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR arg);
4144 public static native long CResult_InitFeaturesDecodeErrorZ_clone_ptr(long arg);
4145 // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_clone(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR orig);
4146 public static native long CResult_InitFeaturesDecodeErrorZ_clone(long orig);
4147 // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
4148 public static native long CResult_ChannelFeaturesDecodeErrorZ_ok(long o);
4149 // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
4150 public static native long CResult_ChannelFeaturesDecodeErrorZ_err(long e);
4151 // bool CResult_ChannelFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR o);
4152 public static native boolean CResult_ChannelFeaturesDecodeErrorZ_is_ok(long o);
4153 // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
4154 public static native void CResult_ChannelFeaturesDecodeErrorZ_free(long _res);
4155 // uint64_t CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR arg);
4156 public static native long CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(long arg);
4157 // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR orig);
4158 public static native long CResult_ChannelFeaturesDecodeErrorZ_clone(long orig);
4159 // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
4160 public static native long CResult_NodeFeaturesDecodeErrorZ_ok(long o);
4161 // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
4162 public static native long CResult_NodeFeaturesDecodeErrorZ_err(long e);
4163 // bool CResult_NodeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR o);
4164 public static native boolean CResult_NodeFeaturesDecodeErrorZ_is_ok(long o);
4165 // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
4166 public static native void CResult_NodeFeaturesDecodeErrorZ_free(long _res);
4167 // uint64_t CResult_NodeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR arg);
4168 public static native long CResult_NodeFeaturesDecodeErrorZ_clone_ptr(long arg);
4169 // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_clone(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR orig);
4170 public static native long CResult_NodeFeaturesDecodeErrorZ_clone(long orig);
4171 // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_ok(struct LDKBolt11InvoiceFeatures o);
4172 public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_ok(long o);
4173 // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
4174 public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_err(long e);
4175 // bool CResult_Bolt11InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
4176 public static native boolean CResult_Bolt11InvoiceFeaturesDecodeErrorZ_is_ok(long o);
4177 // void CResult_Bolt11InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ _res);
4178 public static native void CResult_Bolt11InvoiceFeaturesDecodeErrorZ_free(long _res);
4179 // uint64_t CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
4180 public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone_ptr(long arg);
4181 // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
4182 public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone(long orig);
4183 // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_ok(struct LDKBolt12InvoiceFeatures o);
4184 public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_ok(long o);
4185 // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
4186 public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_err(long e);
4187 // bool CResult_Bolt12InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
4188 public static native boolean CResult_Bolt12InvoiceFeaturesDecodeErrorZ_is_ok(long o);
4189 // void CResult_Bolt12InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ _res);
4190 public static native void CResult_Bolt12InvoiceFeaturesDecodeErrorZ_free(long _res);
4191 // uint64_t CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
4192 public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone_ptr(long arg);
4193 // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
4194 public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone(long orig);
4195 // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_ok(struct LDKBlindedHopFeatures o);
4196 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_ok(long o);
4197 // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
4198 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_err(long e);
4199 // bool CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR o);
4200 public static native boolean CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(long o);
4201 // void CResult_BlindedHopFeaturesDecodeErrorZ_free(struct LDKCResult_BlindedHopFeaturesDecodeErrorZ _res);
4202 public static native void CResult_BlindedHopFeaturesDecodeErrorZ_free(long _res);
4203 // uint64_t CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR arg);
4204 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(long arg);
4205 // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_clone(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR orig);
4206 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_clone(long orig);
4207 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_ok(struct LDKChannelTypeFeatures o);
4208 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_ok(long o);
4209 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
4210 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_err(long e);
4211 // bool CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR o);
4212 public static native boolean CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(long o);
4213 // void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ _res);
4214 public static native void CResult_ChannelTypeFeaturesDecodeErrorZ_free(long _res);
4215 // uint64_t CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR arg);
4216 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(long arg);
4217 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR orig);
4218 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_clone(long orig);
4219 // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_ok(struct LDKOffer o);
4220 public static native long CResult_OfferBolt12ParseErrorZ_ok(long o);
4221 // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_err(struct LDKBolt12ParseError e);
4222 public static native long CResult_OfferBolt12ParseErrorZ_err(long e);
4223 // bool CResult_OfferBolt12ParseErrorZ_is_ok(const struct LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR o);
4224 public static native boolean CResult_OfferBolt12ParseErrorZ_is_ok(long o);
4225 // void CResult_OfferBolt12ParseErrorZ_free(struct LDKCResult_OfferBolt12ParseErrorZ _res);
4226 public static native void CResult_OfferBolt12ParseErrorZ_free(long _res);
4227 // uint64_t CResult_OfferBolt12ParseErrorZ_clone_ptr(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR arg);
4228 public static native long CResult_OfferBolt12ParseErrorZ_clone_ptr(long arg);
4229 // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_clone(const struct LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR orig);
4230 public static native long CResult_OfferBolt12ParseErrorZ_clone(long orig);
4231 // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_ok(struct LDKPublicKey o);
4232 public static native long CResult_PublicKeySecp256k1ErrorZ_ok(byte[] o);
4233 // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e);
4234 public static native long CResult_PublicKeySecp256k1ErrorZ_err(Secp256k1Error e);
4235 // bool CResult_PublicKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR o);
4236 public static native boolean CResult_PublicKeySecp256k1ErrorZ_is_ok(long o);
4237 // void CResult_PublicKeySecp256k1ErrorZ_free(struct LDKCResult_PublicKeySecp256k1ErrorZ _res);
4238 public static native void CResult_PublicKeySecp256k1ErrorZ_free(long _res);
4239 // uint64_t CResult_PublicKeySecp256k1ErrorZ_clone_ptr(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR arg);
4240 public static native long CResult_PublicKeySecp256k1ErrorZ_clone_ptr(long arg);
4241 // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_clone(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR orig);
4242 public static native long CResult_PublicKeySecp256k1ErrorZ_clone(long orig);
4243 // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o);
4244 public static native long CResult_NodeIdDecodeErrorZ_ok(long o);
4245 // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e);
4246 public static native long CResult_NodeIdDecodeErrorZ_err(long e);
4247 // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o);
4248 public static native boolean CResult_NodeIdDecodeErrorZ_is_ok(long o);
4249 // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res);
4250 public static native void CResult_NodeIdDecodeErrorZ_free(long _res);
4251 // uint64_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg);
4252 public static native long CResult_NodeIdDecodeErrorZ_clone_ptr(long arg);
4253 // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig);
4254 public static native long CResult_NodeIdDecodeErrorZ_clone(long orig);
4255 // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_some(struct LDKNetworkUpdate o);
4256 public static native long COption_NetworkUpdateZ_some(long o);
4257 // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_none(void);
4258 public static native long COption_NetworkUpdateZ_none();
4259 // void COption_NetworkUpdateZ_free(struct LDKCOption_NetworkUpdateZ _res);
4260 public static native void COption_NetworkUpdateZ_free(long _res);
4261 // uint64_t COption_NetworkUpdateZ_clone_ptr(LDKCOption_NetworkUpdateZ *NONNULL_PTR arg);
4262 public static native long COption_NetworkUpdateZ_clone_ptr(long arg);
4263 // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_clone(const struct LDKCOption_NetworkUpdateZ *NONNULL_PTR orig);
4264 public static native long COption_NetworkUpdateZ_clone(long orig);
4265 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_ok(struct LDKCOption_NetworkUpdateZ o);
4266 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_ok(long o);
4267 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_err(struct LDKDecodeError e);
4268 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_err(long e);
4269 // bool CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR o);
4270 public static native boolean CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(long o);
4271 // void CResult_COption_NetworkUpdateZDecodeErrorZ_free(struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ _res);
4272 public static native void CResult_COption_NetworkUpdateZDecodeErrorZ_free(long _res);
4273 // uint64_t CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR arg);
4274 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(long arg);
4275 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_clone(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR orig);
4276 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_clone(long orig);
4277 // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_some(struct LDKUtxoLookup o);
4278 public static native long COption_UtxoLookupZ_some(long o);
4279 // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_none(void);
4280 public static native long COption_UtxoLookupZ_none();
4281 // void COption_UtxoLookupZ_free(struct LDKCOption_UtxoLookupZ _res);
4282 public static native void COption_UtxoLookupZ_free(long _res);
4283 // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
4284 public static native long CResult_NoneLightningErrorZ_ok();
4285 // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
4286 public static native long CResult_NoneLightningErrorZ_err(long e);
4287 // bool CResult_NoneLightningErrorZ_is_ok(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR o);
4288 public static native boolean CResult_NoneLightningErrorZ_is_ok(long o);
4289 // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
4290 public static native void CResult_NoneLightningErrorZ_free(long _res);
4291 // uint64_t CResult_NoneLightningErrorZ_clone_ptr(LDKCResult_NoneLightningErrorZ *NONNULL_PTR arg);
4292 public static native long CResult_NoneLightningErrorZ_clone_ptr(long arg);
4293 // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
4294 public static native long CResult_NoneLightningErrorZ_clone(long orig);
4295 // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
4296 public static native long CResult_boolLightningErrorZ_ok(boolean o);
4297 // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
4298 public static native long CResult_boolLightningErrorZ_err(long e);
4299 // bool CResult_boolLightningErrorZ_is_ok(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR o);
4300 public static native boolean CResult_boolLightningErrorZ_is_ok(long o);
4301 // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
4302 public static native void CResult_boolLightningErrorZ_free(long _res);
4303 // uint64_t CResult_boolLightningErrorZ_clone_ptr(LDKCResult_boolLightningErrorZ *NONNULL_PTR arg);
4304 public static native long CResult_boolLightningErrorZ_clone_ptr(long arg);
4305 // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
4306 public static native long CResult_boolLightningErrorZ_clone(long orig);
4307 // uint64_t C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR arg);
4308 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(long arg);
4309 // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
4310 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(long orig);
4311 // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
4312 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(long a, long b, long c);
4313 // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
4314 public static native void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(long _res);
4315 // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ o);
4316 public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(long o);
4317 // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none(void);
4318 public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none();
4319 // void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
4320 public static native void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(long _res);
4321 // uint64_t COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR arg);
4322 public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(long arg);
4323 // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(const struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR orig);
4324 public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(long orig);
4325 // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
4326 public static native void CVec_MessageSendEventZ_free(long[] _res);
4327 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_ok(struct LDKChannelUpdateInfo o);
4328 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_ok(long o);
4329 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_err(struct LDKDecodeError e);
4330 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_err(long e);
4331 // bool CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR o);
4332 public static native boolean CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(long o);
4333 // void CResult_ChannelUpdateInfoDecodeErrorZ_free(struct LDKCResult_ChannelUpdateInfoDecodeErrorZ _res);
4334 public static native void CResult_ChannelUpdateInfoDecodeErrorZ_free(long _res);
4335 // uint64_t CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR arg);
4336 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(long arg);
4337 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR orig);
4338 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_clone(long orig);
4339 // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
4340 public static native long CResult_ChannelInfoDecodeErrorZ_ok(long o);
4341 // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
4342 public static native long CResult_ChannelInfoDecodeErrorZ_err(long e);
4343 // bool CResult_ChannelInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR o);
4344 public static native boolean CResult_ChannelInfoDecodeErrorZ_is_ok(long o);
4345 // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
4346 public static native void CResult_ChannelInfoDecodeErrorZ_free(long _res);
4347 // uint64_t CResult_ChannelInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR arg);
4348 public static native long CResult_ChannelInfoDecodeErrorZ_clone_ptr(long arg);
4349 // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
4350 public static native long CResult_ChannelInfoDecodeErrorZ_clone(long orig);
4351 // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
4352 public static native long CResult_RoutingFeesDecodeErrorZ_ok(long o);
4353 // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
4354 public static native long CResult_RoutingFeesDecodeErrorZ_err(long e);
4355 // bool CResult_RoutingFeesDecodeErrorZ_is_ok(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR o);
4356 public static native boolean CResult_RoutingFeesDecodeErrorZ_is_ok(long o);
4357 // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
4358 public static native void CResult_RoutingFeesDecodeErrorZ_free(long _res);
4359 // uint64_t CResult_RoutingFeesDecodeErrorZ_clone_ptr(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR arg);
4360 public static native long CResult_RoutingFeesDecodeErrorZ_clone_ptr(long arg);
4361 // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
4362 public static native long CResult_RoutingFeesDecodeErrorZ_clone(long orig);
4363 // void CVec_SocketAddressZ_free(struct LDKCVec_SocketAddressZ _res);
4364 public static native void CVec_SocketAddressZ_free(long[] _res);
4365 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
4366 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_ok(long o);
4367 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
4368 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_err(long e);
4369 // bool CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR o);
4370 public static native boolean CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(long o);
4371 // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
4372 public static native void CResult_NodeAnnouncementInfoDecodeErrorZ_free(long _res);
4373 // uint64_t CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR arg);
4374 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(long arg);
4375 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
4376 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone(long orig);
4377 // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_ok(struct LDKNodeAlias o);
4378 public static native long CResult_NodeAliasDecodeErrorZ_ok(long o);
4379 // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_err(struct LDKDecodeError e);
4380 public static native long CResult_NodeAliasDecodeErrorZ_err(long e);
4381 // bool CResult_NodeAliasDecodeErrorZ_is_ok(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR o);
4382 public static native boolean CResult_NodeAliasDecodeErrorZ_is_ok(long o);
4383 // void CResult_NodeAliasDecodeErrorZ_free(struct LDKCResult_NodeAliasDecodeErrorZ _res);
4384 public static native void CResult_NodeAliasDecodeErrorZ_free(long _res);
4385 // uint64_t CResult_NodeAliasDecodeErrorZ_clone_ptr(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR arg);
4386 public static native long CResult_NodeAliasDecodeErrorZ_clone_ptr(long arg);
4387 // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_clone(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR orig);
4388 public static native long CResult_NodeAliasDecodeErrorZ_clone(long orig);
4389 // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
4390 public static native long CResult_NodeInfoDecodeErrorZ_ok(long o);
4391 // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
4392 public static native long CResult_NodeInfoDecodeErrorZ_err(long e);
4393 // bool CResult_NodeInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR o);
4394 public static native boolean CResult_NodeInfoDecodeErrorZ_is_ok(long o);
4395 // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
4396 public static native void CResult_NodeInfoDecodeErrorZ_free(long _res);
4397 // uint64_t CResult_NodeInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR arg);
4398 public static native long CResult_NodeInfoDecodeErrorZ_clone_ptr(long arg);
4399 // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
4400 public static native long CResult_NodeInfoDecodeErrorZ_clone(long orig);
4401 // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
4402 public static native long CResult_NetworkGraphDecodeErrorZ_ok(long o);
4403 // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
4404 public static native long CResult_NetworkGraphDecodeErrorZ_err(long e);
4405 // bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR o);
4406 public static native boolean CResult_NetworkGraphDecodeErrorZ_is_ok(long o);
4407 // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
4408 public static native void CResult_NetworkGraphDecodeErrorZ_free(long _res);
4409 // struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_some(struct LDKCVec_SocketAddressZ o);
4410 public static native long COption_CVec_SocketAddressZZ_some(long[] o);
4411 // struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_none(void);
4412 public static native long COption_CVec_SocketAddressZZ_none();
4413 // void COption_CVec_SocketAddressZZ_free(struct LDKCOption_CVec_SocketAddressZZ _res);
4414 public static native void COption_CVec_SocketAddressZZ_free(long _res);
4415 // uint64_t COption_CVec_SocketAddressZZ_clone_ptr(LDKCOption_CVec_SocketAddressZZ *NONNULL_PTR arg);
4416 public static native long COption_CVec_SocketAddressZZ_clone_ptr(long arg);
4417 // struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_clone(const struct LDKCOption_CVec_SocketAddressZZ *NONNULL_PTR orig);
4418 public static native long COption_CVec_SocketAddressZZ_clone(long orig);
4419 // struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ CResult_PendingHTLCInfoInboundHTLCErrZ_ok(struct LDKPendingHTLCInfo o);
4420 public static native long CResult_PendingHTLCInfoInboundHTLCErrZ_ok(long o);
4421 // struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ CResult_PendingHTLCInfoInboundHTLCErrZ_err(struct LDKInboundHTLCErr e);
4422 public static native long CResult_PendingHTLCInfoInboundHTLCErrZ_err(long e);
4423 // bool CResult_PendingHTLCInfoInboundHTLCErrZ_is_ok(const struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ *NONNULL_PTR o);
4424 public static native boolean CResult_PendingHTLCInfoInboundHTLCErrZ_is_ok(long o);
4425 // void CResult_PendingHTLCInfoInboundHTLCErrZ_free(struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ _res);
4426 public static native void CResult_PendingHTLCInfoInboundHTLCErrZ_free(long _res);
4427 // void CVec_HTLCOutputInCommitmentZ_free(struct LDKCVec_HTLCOutputInCommitmentZ _res);
4428 public static native void CVec_HTLCOutputInCommitmentZ_free(long[] _res);
4429 // void CVec_HTLCDescriptorZ_free(struct LDKCVec_HTLCDescriptorZ _res);
4430 public static native void CVec_HTLCDescriptorZ_free(long[] _res);
4431 // void CVec_UtxoZ_free(struct LDKCVec_UtxoZ _res);
4432 public static native void CVec_UtxoZ_free(long[] _res);
4433 // struct LDKCOption_TxOutZ COption_TxOutZ_some(struct LDKTxOut o);
4434 public static native long COption_TxOutZ_some(long o);
4435 // struct LDKCOption_TxOutZ COption_TxOutZ_none(void);
4436 public static native long COption_TxOutZ_none();
4437 // void COption_TxOutZ_free(struct LDKCOption_TxOutZ _res);
4438 public static native void COption_TxOutZ_free(long _res);
4439 // uint64_t COption_TxOutZ_clone_ptr(LDKCOption_TxOutZ *NONNULL_PTR arg);
4440 public static native long COption_TxOutZ_clone_ptr(long arg);
4441 // struct LDKCOption_TxOutZ COption_TxOutZ_clone(const struct LDKCOption_TxOutZ *NONNULL_PTR orig);
4442 public static native long COption_TxOutZ_clone(long orig);
4443 // void CVec_InputZ_free(struct LDKCVec_InputZ _res);
4444 public static native void CVec_InputZ_free(long[] _res);
4445 // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_ok(struct LDKCoinSelection o);
4446 public static native long CResult_CoinSelectionNoneZ_ok(long o);
4447 // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_err(void);
4448 public static native long CResult_CoinSelectionNoneZ_err();
4449 // bool CResult_CoinSelectionNoneZ_is_ok(const struct LDKCResult_CoinSelectionNoneZ *NONNULL_PTR o);
4450 public static native boolean CResult_CoinSelectionNoneZ_is_ok(long o);
4451 // void CResult_CoinSelectionNoneZ_free(struct LDKCResult_CoinSelectionNoneZ _res);
4452 public static native void CResult_CoinSelectionNoneZ_free(long _res);
4453 // uint64_t CResult_CoinSelectionNoneZ_clone_ptr(LDKCResult_CoinSelectionNoneZ *NONNULL_PTR arg);
4454 public static native long CResult_CoinSelectionNoneZ_clone_ptr(long arg);
4455 // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_clone(const struct LDKCResult_CoinSelectionNoneZ *NONNULL_PTR orig);
4456 public static native long CResult_CoinSelectionNoneZ_clone(long orig);
4457 // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_ok(struct LDKCVec_UtxoZ o);
4458 public static native long CResult_CVec_UtxoZNoneZ_ok(long[] o);
4459 // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_err(void);
4460 public static native long CResult_CVec_UtxoZNoneZ_err();
4461 // bool CResult_CVec_UtxoZNoneZ_is_ok(const struct LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR o);
4462 public static native boolean CResult_CVec_UtxoZNoneZ_is_ok(long o);
4463 // void CResult_CVec_UtxoZNoneZ_free(struct LDKCResult_CVec_UtxoZNoneZ _res);
4464 public static native void CResult_CVec_UtxoZNoneZ_free(long _res);
4465 // uint64_t CResult_CVec_UtxoZNoneZ_clone_ptr(LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR arg);
4466 public static native long CResult_CVec_UtxoZNoneZ_clone_ptr(long arg);
4467 // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_clone(const struct LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR orig);
4468 public static native long CResult_CVec_UtxoZNoneZ_clone(long orig);
4469 // uint64_t C2Tuple_u64u16Z_clone_ptr(LDKC2Tuple_u64u16Z *NONNULL_PTR arg);
4470 public static native long C2Tuple_u64u16Z_clone_ptr(long arg);
4471 // struct LDKC2Tuple_u64u16Z C2Tuple_u64u16Z_clone(const struct LDKC2Tuple_u64u16Z *NONNULL_PTR orig);
4472 public static native long C2Tuple_u64u16Z_clone(long orig);
4473 // struct LDKC2Tuple_u64u16Z C2Tuple_u64u16Z_new(uint64_t a, uint16_t b);
4474 public static native long C2Tuple_u64u16Z_new(long a, short b);
4475 // void C2Tuple_u64u16Z_free(struct LDKC2Tuple_u64u16Z _res);
4476 public static native void C2Tuple_u64u16Z_free(long _res);
4477 // struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_some(struct LDKC2Tuple_u64u16Z o);
4478 public static native long COption_C2Tuple_u64u16ZZ_some(long o);
4479 // struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_none(void);
4480 public static native long COption_C2Tuple_u64u16ZZ_none();
4481 // void COption_C2Tuple_u64u16ZZ_free(struct LDKCOption_C2Tuple_u64u16ZZ _res);
4482 public static native void COption_C2Tuple_u64u16ZZ_free(long _res);
4483 // uint64_t COption_C2Tuple_u64u16ZZ_clone_ptr(LDKCOption_C2Tuple_u64u16ZZ *NONNULL_PTR arg);
4484 public static native long COption_C2Tuple_u64u16ZZ_clone_ptr(long arg);
4485 // struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_clone(const struct LDKCOption_C2Tuple_u64u16ZZ *NONNULL_PTR orig);
4486 public static native long COption_C2Tuple_u64u16ZZ_clone(long orig);
4487 // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_some(enum LDKChannelShutdownState o);
4488 public static native long COption_ChannelShutdownStateZ_some(ChannelShutdownState o);
4489 // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_none(void);
4490 public static native long COption_ChannelShutdownStateZ_none();
4491 // void COption_ChannelShutdownStateZ_free(struct LDKCOption_ChannelShutdownStateZ _res);
4492 public static native void COption_ChannelShutdownStateZ_free(long _res);
4493 // uint64_t COption_ChannelShutdownStateZ_clone_ptr(LDKCOption_ChannelShutdownStateZ *NONNULL_PTR arg);
4494 public static native long COption_ChannelShutdownStateZ_clone_ptr(long arg);
4495 // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_clone(const struct LDKCOption_ChannelShutdownStateZ *NONNULL_PTR orig);
4496 public static native long COption_ChannelShutdownStateZ_clone(long orig);
4497 // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
4498 public static native long CResult_ThirtyTwoBytesAPIErrorZ_ok(byte[] o);
4499 // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_err(struct LDKAPIError e);
4500 public static native long CResult_ThirtyTwoBytesAPIErrorZ_err(long e);
4501 // bool CResult_ThirtyTwoBytesAPIErrorZ_is_ok(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR o);
4502 public static native boolean CResult_ThirtyTwoBytesAPIErrorZ_is_ok(long o);
4503 // void CResult_ThirtyTwoBytesAPIErrorZ_free(struct LDKCResult_ThirtyTwoBytesAPIErrorZ _res);
4504 public static native void CResult_ThirtyTwoBytesAPIErrorZ_free(long _res);
4505 // uint64_t CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR arg);
4506 public static native long CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr(long arg);
4507 // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_clone(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR orig);
4508 public static native long CResult_ThirtyTwoBytesAPIErrorZ_clone(long orig);
4509 // void CVec_RecentPaymentDetailsZ_free(struct LDKCVec_RecentPaymentDetailsZ _res);
4510 public static native void CVec_RecentPaymentDetailsZ_free(long[] _res);
4511 // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
4512 public static native long CResult_NonePaymentSendFailureZ_ok();
4513 // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
4514 public static native long CResult_NonePaymentSendFailureZ_err(long e);
4515 // bool CResult_NonePaymentSendFailureZ_is_ok(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR o);
4516 public static native boolean CResult_NonePaymentSendFailureZ_is_ok(long o);
4517 // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
4518 public static native void CResult_NonePaymentSendFailureZ_free(long _res);
4519 // uint64_t CResult_NonePaymentSendFailureZ_clone_ptr(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR arg);
4520 public static native long CResult_NonePaymentSendFailureZ_clone_ptr(long arg);
4521 // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig);
4522 public static native long CResult_NonePaymentSendFailureZ_clone(long orig);
4523 // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_ok(void);
4524 public static native long CResult_NoneRetryableSendFailureZ_ok();
4525 // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_err(enum LDKRetryableSendFailure e);
4526 public static native long CResult_NoneRetryableSendFailureZ_err(RetryableSendFailure e);
4527 // bool CResult_NoneRetryableSendFailureZ_is_ok(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR o);
4528 public static native boolean CResult_NoneRetryableSendFailureZ_is_ok(long o);
4529 // void CResult_NoneRetryableSendFailureZ_free(struct LDKCResult_NoneRetryableSendFailureZ _res);
4530 public static native void CResult_NoneRetryableSendFailureZ_free(long _res);
4531 // uint64_t CResult_NoneRetryableSendFailureZ_clone_ptr(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR arg);
4532 public static native long CResult_NoneRetryableSendFailureZ_clone_ptr(long arg);
4533 // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_clone(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR orig);
4534 public static native long CResult_NoneRetryableSendFailureZ_clone(long orig);
4535 // struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o);
4536 public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_ok(byte[] o);
4537 // struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
4538 public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_err(long e);
4539 // bool CResult_ThirtyTwoBytesPaymentSendFailureZ_is_ok(const struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR o);
4540 public static native boolean CResult_ThirtyTwoBytesPaymentSendFailureZ_is_ok(long o);
4541 // void CResult_ThirtyTwoBytesPaymentSendFailureZ_free(struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ _res);
4542 public static native void CResult_ThirtyTwoBytesPaymentSendFailureZ_free(long _res);
4543 // uint64_t CResult_ThirtyTwoBytesPaymentSendFailureZ_clone_ptr(LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR arg);
4544 public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_clone_ptr(long arg);
4545 // struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_clone(const struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR orig);
4546 public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_clone(long orig);
4547 // struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_ok(struct LDKThirtyTwoBytes o);
4548 public static native long CResult_ThirtyTwoBytesRetryableSendFailureZ_ok(byte[] o);
4549 // struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_err(enum LDKRetryableSendFailure e);
4550 public static native long CResult_ThirtyTwoBytesRetryableSendFailureZ_err(RetryableSendFailure e);
4551 // bool CResult_ThirtyTwoBytesRetryableSendFailureZ_is_ok(const struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR o);
4552 public static native boolean CResult_ThirtyTwoBytesRetryableSendFailureZ_is_ok(long o);
4553 // void CResult_ThirtyTwoBytesRetryableSendFailureZ_free(struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ _res);
4554 public static native void CResult_ThirtyTwoBytesRetryableSendFailureZ_free(long _res);
4555 // uint64_t CResult_ThirtyTwoBytesRetryableSendFailureZ_clone_ptr(LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR arg);
4556 public static native long CResult_ThirtyTwoBytesRetryableSendFailureZ_clone_ptr(long arg);
4557 // struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_clone(const struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR orig);
4558 public static native long CResult_ThirtyTwoBytesRetryableSendFailureZ_clone(long orig);
4559 // uint64_t C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR arg);
4560 public static native long C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone_ptr(long arg);
4561 // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR orig);
4562 public static native long C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone(long orig);
4563 // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
4564 public static native long C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_new(byte[] a, byte[] b);
4565 // void C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_free(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ _res);
4566 public static native void C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_free(long _res);
4567 // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_ok(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ o);
4568 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_ok(long o);
4569 // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
4570 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_err(long e);
4571 // bool CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR o);
4572 public static native boolean CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_is_ok(long o);
4573 // void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ _res);
4574 public static native void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_free(long _res);
4575 // uint64_t CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR arg);
4576 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone_ptr(long arg);
4577 // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR orig);
4578 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone(long orig);
4579 // void CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ _res);
4580 public static native void CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ_free(long[] _res);
4581 // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ o);
4582 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_ok(long[] o);
4583 // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_err(struct LDKProbeSendFailure e);
4584 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_err(long e);
4585 // bool CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR o);
4586 public static native boolean CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_is_ok(long o);
4587 // void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ _res);
4588 public static native void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_free(long _res);
4589 // uint64_t CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone_ptr(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR arg);
4590 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone_ptr(long arg);
4591 // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR orig);
4592 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone(long orig);
4593 // uint64_t C2Tuple_ThirtyTwoBytesPublicKeyZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR arg);
4594 public static native long C2Tuple_ThirtyTwoBytesPublicKeyZ_clone_ptr(long arg);
4595 // struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ C2Tuple_ThirtyTwoBytesPublicKeyZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR orig);
4596 public static native long C2Tuple_ThirtyTwoBytesPublicKeyZ_clone(long orig);
4597 // struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ C2Tuple_ThirtyTwoBytesPublicKeyZ_new(struct LDKThirtyTwoBytes a, struct LDKPublicKey b);
4598 public static native long C2Tuple_ThirtyTwoBytesPublicKeyZ_new(byte[] a, byte[] b);
4599 // void C2Tuple_ThirtyTwoBytesPublicKeyZ_free(struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ _res);
4600 public static native void C2Tuple_ThirtyTwoBytesPublicKeyZ_free(long _res);
4601 // void CVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ _res);
4602 public static native void CVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ_free(long[] _res);
4603 // struct LDKCOption_StrZ COption_StrZ_some(struct LDKStr o);
4604 public static native long COption_StrZ_some(String o);
4605 // struct LDKCOption_StrZ COption_StrZ_none(void);
4606 public static native long COption_StrZ_none();
4607 // void COption_StrZ_free(struct LDKCOption_StrZ _res);
4608 public static native void COption_StrZ_free(long _res);
4609 // uint64_t COption_StrZ_clone_ptr(LDKCOption_StrZ *NONNULL_PTR arg);
4610 public static native long COption_StrZ_clone_ptr(long arg);
4611 // struct LDKCOption_StrZ COption_StrZ_clone(const struct LDKCOption_StrZ *NONNULL_PTR orig);
4612 public static native long COption_StrZ_clone(long orig);
4613 // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_ok(void);
4614 public static native long CResult_NoneBolt12SemanticErrorZ_ok();
4615 // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e);
4616 public static native long CResult_NoneBolt12SemanticErrorZ_err(Bolt12SemanticError e);
4617 // bool CResult_NoneBolt12SemanticErrorZ_is_ok(const struct LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR o);
4618 public static native boolean CResult_NoneBolt12SemanticErrorZ_is_ok(long o);
4619 // void CResult_NoneBolt12SemanticErrorZ_free(struct LDKCResult_NoneBolt12SemanticErrorZ _res);
4620 public static native void CResult_NoneBolt12SemanticErrorZ_free(long _res);
4621 // uint64_t CResult_NoneBolt12SemanticErrorZ_clone_ptr(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR arg);
4622 public static native long CResult_NoneBolt12SemanticErrorZ_clone_ptr(long arg);
4623 // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_clone(const struct LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR orig);
4624 public static native long CResult_NoneBolt12SemanticErrorZ_clone(long orig);
4625 // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_ok(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ o);
4626 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_ok(long o);
4627 // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_err(void);
4628 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_err();
4629 // bool CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR o);
4630 public static native boolean CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_is_ok(long o);
4631 // void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ _res);
4632 public static native void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_free(long _res);
4633 // uint64_t CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR arg);
4634 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone_ptr(long arg);
4635 // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR orig);
4636 public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone(long orig);
4637 // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_some(struct LDKOffersMessage o);
4638 public static native long COption_OffersMessageZ_some(long o);
4639 // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_none(void);
4640 public static native long COption_OffersMessageZ_none();
4641 // void COption_OffersMessageZ_free(struct LDKCOption_OffersMessageZ _res);
4642 public static native void COption_OffersMessageZ_free(long _res);
4643 // uint64_t COption_OffersMessageZ_clone_ptr(LDKCOption_OffersMessageZ *NONNULL_PTR arg);
4644 public static native long COption_OffersMessageZ_clone_ptr(long arg);
4645 // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_clone(const struct LDKCOption_OffersMessageZ *NONNULL_PTR orig);
4646 public static native long COption_OffersMessageZ_clone(long orig);
4647 // uint64_t C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR arg);
4648 public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(long arg);
4649 // struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ C3Tuple_OffersMessageDestinationBlindedPathZ_clone(const struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR orig);
4650 public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_clone(long orig);
4651 // struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ C3Tuple_OffersMessageDestinationBlindedPathZ_new(struct LDKOffersMessage a, struct LDKDestination b, struct LDKBlindedPath c);
4652 public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_new(long a, long b, long c);
4653 // void C3Tuple_OffersMessageDestinationBlindedPathZ_free(struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ _res);
4654 public static native void C3Tuple_OffersMessageDestinationBlindedPathZ_free(long _res);
4655 // void CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free(struct LDKCVec_C3Tuple_OffersMessageDestinationBlindedPathZZ _res);
4656 public static native void CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free(long[] _res);
4657 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o);
4658 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(long o);
4659 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e);
4660 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_err(long e);
4661 // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o);
4662 public static native boolean CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(long o);
4663 // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res);
4664 public static native void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(long _res);
4665 // uint64_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg);
4666 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(long arg);
4667 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig);
4668 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(long orig);
4669 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o);
4670 public static native long CResult_ChannelCounterpartyDecodeErrorZ_ok(long o);
4671 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e);
4672 public static native long CResult_ChannelCounterpartyDecodeErrorZ_err(long e);
4673 // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o);
4674 public static native boolean CResult_ChannelCounterpartyDecodeErrorZ_is_ok(long o);
4675 // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res);
4676 public static native void CResult_ChannelCounterpartyDecodeErrorZ_free(long _res);
4677 // uint64_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg);
4678 public static native long CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(long arg);
4679 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig);
4680 public static native long CResult_ChannelCounterpartyDecodeErrorZ_clone(long orig);
4681 // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o);
4682 public static native long CResult_ChannelDetailsDecodeErrorZ_ok(long o);
4683 // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e);
4684 public static native long CResult_ChannelDetailsDecodeErrorZ_err(long e);
4685 // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o);
4686 public static native boolean CResult_ChannelDetailsDecodeErrorZ_is_ok(long o);
4687 // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res);
4688 public static native void CResult_ChannelDetailsDecodeErrorZ_free(long _res);
4689 // uint64_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg);
4690 public static native long CResult_ChannelDetailsDecodeErrorZ_clone_ptr(long arg);
4691 // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig);
4692 public static native long CResult_ChannelDetailsDecodeErrorZ_clone(long orig);
4693 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_ok(struct LDKPhantomRouteHints o);
4694 public static native long CResult_PhantomRouteHintsDecodeErrorZ_ok(long o);
4695 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_err(struct LDKDecodeError e);
4696 public static native long CResult_PhantomRouteHintsDecodeErrorZ_err(long e);
4697 // bool CResult_PhantomRouteHintsDecodeErrorZ_is_ok(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR o);
4698 public static native boolean CResult_PhantomRouteHintsDecodeErrorZ_is_ok(long o);
4699 // void CResult_PhantomRouteHintsDecodeErrorZ_free(struct LDKCResult_PhantomRouteHintsDecodeErrorZ _res);
4700 public static native void CResult_PhantomRouteHintsDecodeErrorZ_free(long _res);
4701 // uint64_t CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR arg);
4702 public static native long CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(long arg);
4703 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_clone(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR orig);
4704 public static native long CResult_PhantomRouteHintsDecodeErrorZ_clone(long orig);
4705 // struct LDKCResult_BlindedForwardDecodeErrorZ CResult_BlindedForwardDecodeErrorZ_ok(struct LDKBlindedForward o);
4706 public static native long CResult_BlindedForwardDecodeErrorZ_ok(long o);
4707 // struct LDKCResult_BlindedForwardDecodeErrorZ CResult_BlindedForwardDecodeErrorZ_err(struct LDKDecodeError e);
4708 public static native long CResult_BlindedForwardDecodeErrorZ_err(long e);
4709 // bool CResult_BlindedForwardDecodeErrorZ_is_ok(const struct LDKCResult_BlindedForwardDecodeErrorZ *NONNULL_PTR o);
4710 public static native boolean CResult_BlindedForwardDecodeErrorZ_is_ok(long o);
4711 // void CResult_BlindedForwardDecodeErrorZ_free(struct LDKCResult_BlindedForwardDecodeErrorZ _res);
4712 public static native void CResult_BlindedForwardDecodeErrorZ_free(long _res);
4713 // uint64_t CResult_BlindedForwardDecodeErrorZ_clone_ptr(LDKCResult_BlindedForwardDecodeErrorZ *NONNULL_PTR arg);
4714 public static native long CResult_BlindedForwardDecodeErrorZ_clone_ptr(long arg);
4715 // struct LDKCResult_BlindedForwardDecodeErrorZ CResult_BlindedForwardDecodeErrorZ_clone(const struct LDKCResult_BlindedForwardDecodeErrorZ *NONNULL_PTR orig);
4716 public static native long CResult_BlindedForwardDecodeErrorZ_clone(long orig);
4717 // struct LDKCResult_PendingHTLCRoutingDecodeErrorZ CResult_PendingHTLCRoutingDecodeErrorZ_ok(struct LDKPendingHTLCRouting o);
4718 public static native long CResult_PendingHTLCRoutingDecodeErrorZ_ok(long o);
4719 // struct LDKCResult_PendingHTLCRoutingDecodeErrorZ CResult_PendingHTLCRoutingDecodeErrorZ_err(struct LDKDecodeError e);
4720 public static native long CResult_PendingHTLCRoutingDecodeErrorZ_err(long e);
4721 // bool CResult_PendingHTLCRoutingDecodeErrorZ_is_ok(const struct LDKCResult_PendingHTLCRoutingDecodeErrorZ *NONNULL_PTR o);
4722 public static native boolean CResult_PendingHTLCRoutingDecodeErrorZ_is_ok(long o);
4723 // void CResult_PendingHTLCRoutingDecodeErrorZ_free(struct LDKCResult_PendingHTLCRoutingDecodeErrorZ _res);
4724 public static native void CResult_PendingHTLCRoutingDecodeErrorZ_free(long _res);
4725 // uint64_t CResult_PendingHTLCRoutingDecodeErrorZ_clone_ptr(LDKCResult_PendingHTLCRoutingDecodeErrorZ *NONNULL_PTR arg);
4726 public static native long CResult_PendingHTLCRoutingDecodeErrorZ_clone_ptr(long arg);
4727 // struct LDKCResult_PendingHTLCRoutingDecodeErrorZ CResult_PendingHTLCRoutingDecodeErrorZ_clone(const struct LDKCResult_PendingHTLCRoutingDecodeErrorZ *NONNULL_PTR orig);
4728 public static native long CResult_PendingHTLCRoutingDecodeErrorZ_clone(long orig);
4729 // struct LDKCResult_PendingHTLCInfoDecodeErrorZ CResult_PendingHTLCInfoDecodeErrorZ_ok(struct LDKPendingHTLCInfo o);
4730 public static native long CResult_PendingHTLCInfoDecodeErrorZ_ok(long o);
4731 // struct LDKCResult_PendingHTLCInfoDecodeErrorZ CResult_PendingHTLCInfoDecodeErrorZ_err(struct LDKDecodeError e);
4732 public static native long CResult_PendingHTLCInfoDecodeErrorZ_err(long e);
4733 // bool CResult_PendingHTLCInfoDecodeErrorZ_is_ok(const struct LDKCResult_PendingHTLCInfoDecodeErrorZ *NONNULL_PTR o);
4734 public static native boolean CResult_PendingHTLCInfoDecodeErrorZ_is_ok(long o);
4735 // void CResult_PendingHTLCInfoDecodeErrorZ_free(struct LDKCResult_PendingHTLCInfoDecodeErrorZ _res);
4736 public static native void CResult_PendingHTLCInfoDecodeErrorZ_free(long _res);
4737 // uint64_t CResult_PendingHTLCInfoDecodeErrorZ_clone_ptr(LDKCResult_PendingHTLCInfoDecodeErrorZ *NONNULL_PTR arg);
4738 public static native long CResult_PendingHTLCInfoDecodeErrorZ_clone_ptr(long arg);
4739 // struct LDKCResult_PendingHTLCInfoDecodeErrorZ CResult_PendingHTLCInfoDecodeErrorZ_clone(const struct LDKCResult_PendingHTLCInfoDecodeErrorZ *NONNULL_PTR orig);
4740 public static native long CResult_PendingHTLCInfoDecodeErrorZ_clone(long orig);
4741 // struct LDKCResult_BlindedFailureDecodeErrorZ CResult_BlindedFailureDecodeErrorZ_ok(enum LDKBlindedFailure o);
4742 public static native long CResult_BlindedFailureDecodeErrorZ_ok(BlindedFailure o);
4743 // struct LDKCResult_BlindedFailureDecodeErrorZ CResult_BlindedFailureDecodeErrorZ_err(struct LDKDecodeError e);
4744 public static native long CResult_BlindedFailureDecodeErrorZ_err(long e);
4745 // bool CResult_BlindedFailureDecodeErrorZ_is_ok(const struct LDKCResult_BlindedFailureDecodeErrorZ *NONNULL_PTR o);
4746 public static native boolean CResult_BlindedFailureDecodeErrorZ_is_ok(long o);
4747 // void CResult_BlindedFailureDecodeErrorZ_free(struct LDKCResult_BlindedFailureDecodeErrorZ _res);
4748 public static native void CResult_BlindedFailureDecodeErrorZ_free(long _res);
4749 // uint64_t CResult_BlindedFailureDecodeErrorZ_clone_ptr(LDKCResult_BlindedFailureDecodeErrorZ *NONNULL_PTR arg);
4750 public static native long CResult_BlindedFailureDecodeErrorZ_clone_ptr(long arg);
4751 // struct LDKCResult_BlindedFailureDecodeErrorZ CResult_BlindedFailureDecodeErrorZ_clone(const struct LDKCResult_BlindedFailureDecodeErrorZ *NONNULL_PTR orig);
4752 public static native long CResult_BlindedFailureDecodeErrorZ_clone(long orig);
4753 // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_ok(enum LDKChannelShutdownState o);
4754 public static native long CResult_ChannelShutdownStateDecodeErrorZ_ok(ChannelShutdownState o);
4755 // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_err(struct LDKDecodeError e);
4756 public static native long CResult_ChannelShutdownStateDecodeErrorZ_err(long e);
4757 // bool CResult_ChannelShutdownStateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR o);
4758 public static native boolean CResult_ChannelShutdownStateDecodeErrorZ_is_ok(long o);
4759 // void CResult_ChannelShutdownStateDecodeErrorZ_free(struct LDKCResult_ChannelShutdownStateDecodeErrorZ _res);
4760 public static native void CResult_ChannelShutdownStateDecodeErrorZ_free(long _res);
4761 // uint64_t CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR arg);
4762 public static native long CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(long arg);
4763 // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_clone(const struct LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR orig);
4764 public static native long CResult_ChannelShutdownStateDecodeErrorZ_clone(long orig);
4765 // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
4766 public static native void CVec_ChannelMonitorZ_free(long[] _res);
4767 // struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ C2Tuple_ThirtyTwoBytesChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
4768 public static native long C2Tuple_ThirtyTwoBytesChannelManagerZ_new(byte[] a, long b);
4769 // void C2Tuple_ThirtyTwoBytesChannelManagerZ_free(struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ _res);
4770 public static native void C2Tuple_ThirtyTwoBytesChannelManagerZ_free(long _res);
4771 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ o);
4772 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_ok(long o);
4773 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
4774 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_err(long e);
4775 // bool CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ *NONNULL_PTR o);
4776 public static native boolean CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_is_ok(long o);
4777 // void CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ _res);
4778 public static native void CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_free(long _res);
4779 // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_ok(struct LDKMaxDustHTLCExposure o);
4780 public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_ok(long o);
4781 // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_err(struct LDKDecodeError e);
4782 public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_err(long e);
4783 // bool CResult_MaxDustHTLCExposureDecodeErrorZ_is_ok(const struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR o);
4784 public static native boolean CResult_MaxDustHTLCExposureDecodeErrorZ_is_ok(long o);
4785 // void CResult_MaxDustHTLCExposureDecodeErrorZ_free(struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ _res);
4786 public static native void CResult_MaxDustHTLCExposureDecodeErrorZ_free(long _res);
4787 // uint64_t CResult_MaxDustHTLCExposureDecodeErrorZ_clone_ptr(LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR arg);
4788 public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_clone_ptr(long arg);
4789 // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_clone(const struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR orig);
4790 public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_clone(long orig);
4791 // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
4792 public static native long CResult_ChannelConfigDecodeErrorZ_ok(long o);
4793 // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
4794 public static native long CResult_ChannelConfigDecodeErrorZ_err(long e);
4795 // bool CResult_ChannelConfigDecodeErrorZ_is_ok(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR o);
4796 public static native boolean CResult_ChannelConfigDecodeErrorZ_is_ok(long o);
4797 // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
4798 public static native void CResult_ChannelConfigDecodeErrorZ_free(long _res);
4799 // uint64_t CResult_ChannelConfigDecodeErrorZ_clone_ptr(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR arg);
4800 public static native long CResult_ChannelConfigDecodeErrorZ_clone_ptr(long arg);
4801 // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
4802 public static native long CResult_ChannelConfigDecodeErrorZ_clone(long orig);
4803 // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_some(struct LDKMaxDustHTLCExposure o);
4804 public static native long COption_MaxDustHTLCExposureZ_some(long o);
4805 // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_none(void);
4806 public static native long COption_MaxDustHTLCExposureZ_none();
4807 // void COption_MaxDustHTLCExposureZ_free(struct LDKCOption_MaxDustHTLCExposureZ _res);
4808 public static native void COption_MaxDustHTLCExposureZ_free(long _res);
4809 // uint64_t COption_MaxDustHTLCExposureZ_clone_ptr(LDKCOption_MaxDustHTLCExposureZ *NONNULL_PTR arg);
4810 public static native long COption_MaxDustHTLCExposureZ_clone_ptr(long arg);
4811 // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_clone(const struct LDKCOption_MaxDustHTLCExposureZ *NONNULL_PTR orig);
4812 public static native long COption_MaxDustHTLCExposureZ_clone(long orig);
4813 // struct LDKCOption_APIErrorZ COption_APIErrorZ_some(struct LDKAPIError o);
4814 public static native long COption_APIErrorZ_some(long o);
4815 // struct LDKCOption_APIErrorZ COption_APIErrorZ_none(void);
4816 public static native long COption_APIErrorZ_none();
4817 // void COption_APIErrorZ_free(struct LDKCOption_APIErrorZ _res);
4818 public static native void COption_APIErrorZ_free(long _res);
4819 // uint64_t COption_APIErrorZ_clone_ptr(LDKCOption_APIErrorZ *NONNULL_PTR arg);
4820 public static native long COption_APIErrorZ_clone_ptr(long arg);
4821 // struct LDKCOption_APIErrorZ COption_APIErrorZ_clone(const struct LDKCOption_APIErrorZ *NONNULL_PTR orig);
4822 public static native long COption_APIErrorZ_clone(long orig);
4823 // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_ok(struct LDKCOption_APIErrorZ o);
4824 public static native long CResult_COption_APIErrorZDecodeErrorZ_ok(long o);
4825 // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_err(struct LDKDecodeError e);
4826 public static native long CResult_COption_APIErrorZDecodeErrorZ_err(long e);
4827 // bool CResult_COption_APIErrorZDecodeErrorZ_is_ok(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR o);
4828 public static native boolean CResult_COption_APIErrorZDecodeErrorZ_is_ok(long o);
4829 // void CResult_COption_APIErrorZDecodeErrorZ_free(struct LDKCResult_COption_APIErrorZDecodeErrorZ _res);
4830 public static native void CResult_COption_APIErrorZDecodeErrorZ_free(long _res);
4831 // uint64_t CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR arg);
4832 public static native long CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(long arg);
4833 // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_clone(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR orig);
4834 public static native long CResult_COption_APIErrorZDecodeErrorZ_clone(long orig);
4835 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
4836 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_ok(long o);
4837 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
4838 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_err(long e);
4839 // bool CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR o);
4840 public static native boolean CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(long o);
4841 // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
4842 public static native void CResult_ChannelMonitorUpdateDecodeErrorZ_free(long _res);
4843 // uint64_t CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR arg);
4844 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(long arg);
4845 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
4846 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone(long orig);
4847 // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_some(struct LDKMonitorEvent o);
4848 public static native long COption_MonitorEventZ_some(long o);
4849 // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_none(void);
4850 public static native long COption_MonitorEventZ_none();
4851 // void COption_MonitorEventZ_free(struct LDKCOption_MonitorEventZ _res);
4852 public static native void COption_MonitorEventZ_free(long _res);
4853 // uint64_t COption_MonitorEventZ_clone_ptr(LDKCOption_MonitorEventZ *NONNULL_PTR arg);
4854 public static native long COption_MonitorEventZ_clone_ptr(long arg);
4855 // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_clone(const struct LDKCOption_MonitorEventZ *NONNULL_PTR orig);
4856 public static native long COption_MonitorEventZ_clone(long orig);
4857 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_ok(struct LDKCOption_MonitorEventZ o);
4858 public static native long CResult_COption_MonitorEventZDecodeErrorZ_ok(long o);
4859 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_err(struct LDKDecodeError e);
4860 public static native long CResult_COption_MonitorEventZDecodeErrorZ_err(long e);
4861 // bool CResult_COption_MonitorEventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR o);
4862 public static native boolean CResult_COption_MonitorEventZDecodeErrorZ_is_ok(long o);
4863 // void CResult_COption_MonitorEventZDecodeErrorZ_free(struct LDKCResult_COption_MonitorEventZDecodeErrorZ _res);
4864 public static native void CResult_COption_MonitorEventZDecodeErrorZ_free(long _res);
4865 // uint64_t CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR arg);
4866 public static native long CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(long arg);
4867 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_clone(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR orig);
4868 public static native long CResult_COption_MonitorEventZDecodeErrorZ_clone(long orig);
4869 // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
4870 public static native long CResult_HTLCUpdateDecodeErrorZ_ok(long o);
4871 // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
4872 public static native long CResult_HTLCUpdateDecodeErrorZ_err(long e);
4873 // bool CResult_HTLCUpdateDecodeErrorZ_is_ok(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR o);
4874 public static native boolean CResult_HTLCUpdateDecodeErrorZ_is_ok(long o);
4875 // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
4876 public static native void CResult_HTLCUpdateDecodeErrorZ_free(long _res);
4877 // uint64_t CResult_HTLCUpdateDecodeErrorZ_clone_ptr(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR arg);
4878 public static native long CResult_HTLCUpdateDecodeErrorZ_clone_ptr(long arg);
4879 // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
4880 public static native long CResult_HTLCUpdateDecodeErrorZ_clone(long orig);
4881 // uint64_t C2Tuple_OutPointCVec_u8ZZ_clone_ptr(LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR arg);
4882 public static native long C2Tuple_OutPointCVec_u8ZZ_clone_ptr(long arg);
4883 // struct LDKC2Tuple_OutPointCVec_u8ZZ C2Tuple_OutPointCVec_u8ZZ_clone(const struct LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR orig);
4884 public static native long C2Tuple_OutPointCVec_u8ZZ_clone(long orig);
4885 // struct LDKC2Tuple_OutPointCVec_u8ZZ C2Tuple_OutPointCVec_u8ZZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
4886 public static native long C2Tuple_OutPointCVec_u8ZZ_new(long a, byte[] b);
4887 // void C2Tuple_OutPointCVec_u8ZZ_free(struct LDKC2Tuple_OutPointCVec_u8ZZ _res);
4888 public static native void C2Tuple_OutPointCVec_u8ZZ_free(long _res);
4889 // uint64_t C2Tuple_u32CVec_u8ZZ_clone_ptr(LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR arg);
4890 public static native long C2Tuple_u32CVec_u8ZZ_clone_ptr(long arg);
4891 // struct LDKC2Tuple_u32CVec_u8ZZ C2Tuple_u32CVec_u8ZZ_clone(const struct LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR orig);
4892 public static native long C2Tuple_u32CVec_u8ZZ_clone(long orig);
4893 // struct LDKC2Tuple_u32CVec_u8ZZ C2Tuple_u32CVec_u8ZZ_new(uint32_t a, struct LDKCVec_u8Z b);
4894 public static native long C2Tuple_u32CVec_u8ZZ_new(int a, byte[] b);
4895 // void C2Tuple_u32CVec_u8ZZ_free(struct LDKC2Tuple_u32CVec_u8ZZ _res);
4896 public static native void C2Tuple_u32CVec_u8ZZ_free(long _res);
4897 // void CVec_C2Tuple_u32CVec_u8ZZZ_free(struct LDKCVec_C2Tuple_u32CVec_u8ZZZ _res);
4898 public static native void CVec_C2Tuple_u32CVec_u8ZZZ_free(long[] _res);
4899 // uint64_t C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR arg);
4900 public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone_ptr(long arg);
4901 // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR orig);
4902 public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone(long orig);
4903 // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32CVec_u8ZZZ b);
4904 public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_new(byte[] a, long[] b);
4905 // void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ _res);
4906 public static native void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_free(long _res);
4907 // void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ _res);
4908 public static native void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ_free(long[] _res);
4909 // void CVec_CommitmentTransactionZ_free(struct LDKCVec_CommitmentTransactionZ _res);
4910 public static native void CVec_CommitmentTransactionZ_free(long[] _res);
4911 // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
4912 public static native void CVec_TransactionZ_free(byte[][] _res);
4913 // uint64_t C2Tuple_u32TxOutZ_clone_ptr(LDKC2Tuple_u32TxOutZ *NONNULL_PTR arg);
4914 public static native long C2Tuple_u32TxOutZ_clone_ptr(long arg);
4915 // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
4916 public static native long C2Tuple_u32TxOutZ_clone(long orig);
4917 // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
4918 public static native long C2Tuple_u32TxOutZ_new(int a, long b);
4919 // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
4920 public static native void C2Tuple_u32TxOutZ_free(long _res);
4921 // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
4922 public static native void CVec_C2Tuple_u32TxOutZZ_free(long[] _res);
4923 // uint64_t C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR arg);
4924 public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone_ptr(long arg);
4925 // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig);
4926 public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone(long orig);
4927 // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
4928 public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_new(byte[] a, long[] b);
4929 // void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ _res);
4930 public static native void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_free(long _res);
4931 // void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ _res);
4932 public static native void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ_free(long[] _res);
4933 // void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res);
4934 public static native void CVec_BalanceZ_free(long[] _res);
4935 // uint64_t C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR arg);
4936 public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone_ptr(long arg);
4937 // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR orig);
4938 public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone(long orig);
4939 // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
4940 public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_new(byte[] a, long b);
4941 // void C2Tuple_ThirtyTwoBytesChannelMonitorZ_free(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ _res);
4942 public static native void C2Tuple_ThirtyTwoBytesChannelMonitorZ_free(long _res);
4943 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ o);
4944 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_ok(long o);
4945 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
4946 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_err(long e);
4947 // bool CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR o);
4948 public static native boolean CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_is_ok(long o);
4949 // void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ _res);
4950 public static native void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_free(long _res);
4951 // uint64_t CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR arg);
4952 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone_ptr(long arg);
4953 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR orig);
4954 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone(long orig);
4955 // uint64_t C2Tuple_PublicKeyTypeZ_clone_ptr(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR arg);
4956 public static native long C2Tuple_PublicKeyTypeZ_clone_ptr(long arg);
4957 // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_clone(const struct LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR orig);
4958 public static native long C2Tuple_PublicKeyTypeZ_clone(long orig);
4959 // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_new(struct LDKPublicKey a, struct LDKType b);
4960 public static native long C2Tuple_PublicKeyTypeZ_new(byte[] a, long b);
4961 // void C2Tuple_PublicKeyTypeZ_free(struct LDKC2Tuple_PublicKeyTypeZ _res);
4962 public static native void C2Tuple_PublicKeyTypeZ_free(long _res);
4963 // void CVec_C2Tuple_PublicKeyTypeZZ_free(struct LDKCVec_C2Tuple_PublicKeyTypeZZ _res);
4964 public static native void CVec_C2Tuple_PublicKeyTypeZZ_free(long[] _res);
4965 // uint64_t C2Tuple_PublicKeyCVec_SocketAddressZZ_clone_ptr(LDKC2Tuple_PublicKeyCVec_SocketAddressZZ *NONNULL_PTR arg);
4966 public static native long C2Tuple_PublicKeyCVec_SocketAddressZZ_clone_ptr(long arg);
4967 // struct LDKC2Tuple_PublicKeyCVec_SocketAddressZZ C2Tuple_PublicKeyCVec_SocketAddressZZ_clone(const struct LDKC2Tuple_PublicKeyCVec_SocketAddressZZ *NONNULL_PTR orig);
4968 public static native long C2Tuple_PublicKeyCVec_SocketAddressZZ_clone(long orig);
4969 // struct LDKC2Tuple_PublicKeyCVec_SocketAddressZZ C2Tuple_PublicKeyCVec_SocketAddressZZ_new(struct LDKPublicKey a, struct LDKCVec_SocketAddressZ b);
4970 public static native long C2Tuple_PublicKeyCVec_SocketAddressZZ_new(byte[] a, long[] b);
4971 // void C2Tuple_PublicKeyCVec_SocketAddressZZ_free(struct LDKC2Tuple_PublicKeyCVec_SocketAddressZZ _res);
4972 public static native void C2Tuple_PublicKeyCVec_SocketAddressZZ_free(long _res);
4973 // void CVec_C2Tuple_PublicKeyCVec_SocketAddressZZZ_free(struct LDKCVec_C2Tuple_PublicKeyCVec_SocketAddressZZZ _res);
4974 public static native void CVec_C2Tuple_PublicKeyCVec_SocketAddressZZZ_free(long[] _res);
4975 // struct LDKCOption_OnionMessageContentsZ COption_OnionMessageContentsZ_some(struct LDKOnionMessageContents o);
4976 public static native long COption_OnionMessageContentsZ_some(long o);
4977 // struct LDKCOption_OnionMessageContentsZ COption_OnionMessageContentsZ_none(void);
4978 public static native long COption_OnionMessageContentsZ_none();
4979 // void COption_OnionMessageContentsZ_free(struct LDKCOption_OnionMessageContentsZ _res);
4980 public static native void COption_OnionMessageContentsZ_free(long _res);
4981 // uint64_t COption_OnionMessageContentsZ_clone_ptr(LDKCOption_OnionMessageContentsZ *NONNULL_PTR arg);
4982 public static native long COption_OnionMessageContentsZ_clone_ptr(long arg);
4983 // struct LDKCOption_OnionMessageContentsZ COption_OnionMessageContentsZ_clone(const struct LDKCOption_OnionMessageContentsZ *NONNULL_PTR orig);
4984 public static native long COption_OnionMessageContentsZ_clone(long orig);
4985 // struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CResult_COption_OnionMessageContentsZDecodeErrorZ_ok(struct LDKCOption_OnionMessageContentsZ o);
4986 public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_ok(long o);
4987 // struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CResult_COption_OnionMessageContentsZDecodeErrorZ_err(struct LDKDecodeError e);
4988 public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_err(long e);
4989 // bool CResult_COption_OnionMessageContentsZDecodeErrorZ_is_ok(const struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR o);
4990 public static native boolean CResult_COption_OnionMessageContentsZDecodeErrorZ_is_ok(long o);
4991 // void CResult_COption_OnionMessageContentsZDecodeErrorZ_free(struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ _res);
4992 public static native void CResult_COption_OnionMessageContentsZDecodeErrorZ_free(long _res);
4993 // uint64_t CResult_COption_OnionMessageContentsZDecodeErrorZ_clone_ptr(LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR arg);
4994 public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_clone_ptr(long arg);
4995 // struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CResult_COption_OnionMessageContentsZDecodeErrorZ_clone(const struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR orig);
4996 public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_clone(long orig);
4997 // uint64_t C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone_ptr(LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR arg);
4998 public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone_ptr(long arg);
4999 // struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone(const struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR orig);
5000 public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone(long orig);
5001 // struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ C3Tuple_OnionMessageContentsDestinationBlindedPathZ_new(struct LDKOnionMessageContents a, struct LDKDestination b, struct LDKBlindedPath c);
5002 public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_new(long a, long b, long c);
5003 // void C3Tuple_OnionMessageContentsDestinationBlindedPathZ_free(struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ _res);
5004 public static native void C3Tuple_OnionMessageContentsDestinationBlindedPathZ_free(long _res);
5005 // void CVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ_free(struct LDKCVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ _res);
5006 public static native void CVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ_free(long[] _res);
5007 // struct LDKCOption_TypeZ COption_TypeZ_some(struct LDKType o);
5008 public static native long COption_TypeZ_some(long o);
5009 // struct LDKCOption_TypeZ COption_TypeZ_none(void);
5010 public static native long COption_TypeZ_none();
5011 // void COption_TypeZ_free(struct LDKCOption_TypeZ _res);
5012 public static native void COption_TypeZ_free(long _res);
5013 // uint64_t COption_TypeZ_clone_ptr(LDKCOption_TypeZ *NONNULL_PTR arg);
5014 public static native long COption_TypeZ_clone_ptr(long arg);
5015 // struct LDKCOption_TypeZ COption_TypeZ_clone(const struct LDKCOption_TypeZ *NONNULL_PTR orig);
5016 public static native long COption_TypeZ_clone(long orig);
5017 // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_ok(struct LDKCOption_TypeZ o);
5018 public static native long CResult_COption_TypeZDecodeErrorZ_ok(long o);
5019 // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_err(struct LDKDecodeError e);
5020 public static native long CResult_COption_TypeZDecodeErrorZ_err(long e);
5021 // bool CResult_COption_TypeZDecodeErrorZ_is_ok(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR o);
5022 public static native boolean CResult_COption_TypeZDecodeErrorZ_is_ok(long o);
5023 // void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecodeErrorZ _res);
5024 public static native void CResult_COption_TypeZDecodeErrorZ_free(long _res);
5025 // uint64_t CResult_COption_TypeZDecodeErrorZ_clone_ptr(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR arg);
5026 public static native long CResult_COption_TypeZDecodeErrorZ_clone_ptr(long arg);
5027 // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig);
5028 public static native long CResult_COption_TypeZDecodeErrorZ_clone(long orig);
5029 // struct LDKCOption_SocketAddressZ COption_SocketAddressZ_some(struct LDKSocketAddress o);
5030 public static native long COption_SocketAddressZ_some(long o);
5031 // struct LDKCOption_SocketAddressZ COption_SocketAddressZ_none(void);
5032 public static native long COption_SocketAddressZ_none();
5033 // void COption_SocketAddressZ_free(struct LDKCOption_SocketAddressZ _res);
5034 public static native void COption_SocketAddressZ_free(long _res);
5035 // uint64_t COption_SocketAddressZ_clone_ptr(LDKCOption_SocketAddressZ *NONNULL_PTR arg);
5036 public static native long COption_SocketAddressZ_clone_ptr(long arg);
5037 // struct LDKCOption_SocketAddressZ COption_SocketAddressZ_clone(const struct LDKCOption_SocketAddressZ *NONNULL_PTR orig);
5038 public static native long COption_SocketAddressZ_clone(long orig);
5039 // uint64_t C2Tuple_PublicKeyCOption_SocketAddressZZ_clone_ptr(LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR arg);
5040 public static native long C2Tuple_PublicKeyCOption_SocketAddressZZ_clone_ptr(long arg);
5041 // struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ C2Tuple_PublicKeyCOption_SocketAddressZZ_clone(const struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR orig);
5042 public static native long C2Tuple_PublicKeyCOption_SocketAddressZZ_clone(long orig);
5043 // struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ C2Tuple_PublicKeyCOption_SocketAddressZZ_new(struct LDKPublicKey a, struct LDKCOption_SocketAddressZ b);
5044 public static native long C2Tuple_PublicKeyCOption_SocketAddressZZ_new(byte[] a, long b);
5045 // void C2Tuple_PublicKeyCOption_SocketAddressZZ_free(struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ _res);
5046 public static native void C2Tuple_PublicKeyCOption_SocketAddressZZ_free(long _res);
5047 // void CVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ_free(struct LDKCVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ _res);
5048 public static native void CVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ_free(long[] _res);
5049 // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
5050 public static native long CResult_CVec_u8ZPeerHandleErrorZ_ok(byte[] o);
5051 // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
5052 public static native long CResult_CVec_u8ZPeerHandleErrorZ_err(long e);
5053 // bool CResult_CVec_u8ZPeerHandleErrorZ_is_ok(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR o);
5054 public static native boolean CResult_CVec_u8ZPeerHandleErrorZ_is_ok(long o);
5055 // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
5056 public static native void CResult_CVec_u8ZPeerHandleErrorZ_free(long _res);
5057 // uint64_t CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR arg);
5058 public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(long arg);
5059 // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
5060 public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone(long orig);
5061 // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
5062 public static native long CResult_NonePeerHandleErrorZ_ok();
5063 // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
5064 public static native long CResult_NonePeerHandleErrorZ_err(long e);
5065 // bool CResult_NonePeerHandleErrorZ_is_ok(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR o);
5066 public static native boolean CResult_NonePeerHandleErrorZ_is_ok(long o);
5067 // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
5068 public static native void CResult_NonePeerHandleErrorZ_free(long _res);
5069 // uint64_t CResult_NonePeerHandleErrorZ_clone_ptr(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR arg);
5070 public static native long CResult_NonePeerHandleErrorZ_clone_ptr(long arg);
5071 // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
5072 public static native long CResult_NonePeerHandleErrorZ_clone(long orig);
5073 // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
5074 public static native long CResult_boolPeerHandleErrorZ_ok(boolean o);
5075 // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
5076 public static native long CResult_boolPeerHandleErrorZ_err(long e);
5077 // bool CResult_boolPeerHandleErrorZ_is_ok(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR o);
5078 public static native boolean CResult_boolPeerHandleErrorZ_is_ok(long o);
5079 // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
5080 public static native void CResult_boolPeerHandleErrorZ_free(long _res);
5081 // uint64_t CResult_boolPeerHandleErrorZ_clone_ptr(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR arg);
5082 public static native long CResult_boolPeerHandleErrorZ_clone_ptr(long arg);
5083 // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
5084 public static native long CResult_boolPeerHandleErrorZ_clone(long orig);
5085 // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_ok(uint32_t o);
5086 public static native long CResult_u32GraphSyncErrorZ_ok(int o);
5087 // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_err(struct LDKGraphSyncError e);
5088 public static native long CResult_u32GraphSyncErrorZ_err(long e);
5089 // bool CResult_u32GraphSyncErrorZ_is_ok(const struct LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR o);
5090 public static native boolean CResult_u32GraphSyncErrorZ_is_ok(long o);
5091 // void CResult_u32GraphSyncErrorZ_free(struct LDKCResult_u32GraphSyncErrorZ _res);
5092 public static native void CResult_u32GraphSyncErrorZ_free(long _res);
5093 // struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_ok(struct LDKCVec_u8Z o);
5094 public static native long CResult_CVec_u8ZIOErrorZ_ok(byte[] o);
5095 // struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_err(enum LDKIOError e);
5096 public static native long CResult_CVec_u8ZIOErrorZ_err(IOError e);
5097 // bool CResult_CVec_u8ZIOErrorZ_is_ok(const struct LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR o);
5098 public static native boolean CResult_CVec_u8ZIOErrorZ_is_ok(long o);
5099 // void CResult_CVec_u8ZIOErrorZ_free(struct LDKCResult_CVec_u8ZIOErrorZ _res);
5100 public static native void CResult_CVec_u8ZIOErrorZ_free(long _res);
5101 // uint64_t CResult_CVec_u8ZIOErrorZ_clone_ptr(LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR arg);
5102 public static native long CResult_CVec_u8ZIOErrorZ_clone_ptr(long arg);
5103 // struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_clone(const struct LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR orig);
5104 public static native long CResult_CVec_u8ZIOErrorZ_clone(long orig);
5105 // void CVec_StrZ_free(struct LDKCVec_StrZ _res);
5106 public static native void CVec_StrZ_free(String[] _res);
5107 // struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_ok(struct LDKCVec_StrZ o);
5108 public static native long CResult_CVec_StrZIOErrorZ_ok(String[] o);
5109 // struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_err(enum LDKIOError e);
5110 public static native long CResult_CVec_StrZIOErrorZ_err(IOError e);
5111 // bool CResult_CVec_StrZIOErrorZ_is_ok(const struct LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR o);
5112 public static native boolean CResult_CVec_StrZIOErrorZ_is_ok(long o);
5113 // void CResult_CVec_StrZIOErrorZ_free(struct LDKCResult_CVec_StrZIOErrorZ _res);
5114 public static native void CResult_CVec_StrZIOErrorZ_free(long _res);
5115 // uint64_t CResult_CVec_StrZIOErrorZ_clone_ptr(LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR arg);
5116 public static native long CResult_CVec_StrZIOErrorZ_clone_ptr(long arg);
5117 // struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_clone(const struct LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR orig);
5118 public static native long CResult_CVec_StrZIOErrorZ_clone(long orig);
5119 // void CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ _res);
5120 public static native void CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ_free(long[] _res);
5121 // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ o);
5122 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_ok(long[] o);
5123 // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_err(enum LDKIOError e);
5124 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_err(IOError e);
5125 // bool CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR o);
5126 public static native boolean CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_is_ok(long o);
5127 // void CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ _res);
5128 public static native void CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_free(long _res);
5129 // uint64_t CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone_ptr(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR arg);
5130 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone_ptr(long arg);
5131 // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR orig);
5132 public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone(long orig);
5133 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ o);
5134 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_ok(long o);
5135 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_err(enum LDKIOError e);
5136 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_err(IOError e);
5137 // bool CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR o);
5138 public static native boolean CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_is_ok(long o);
5139 // void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ _res);
5140 public static native void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_free(long _res);
5141 // uint64_t CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR arg);
5142 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone_ptr(long arg);
5143 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR orig);
5144 public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone(long orig);
5145 // struct LDKCOption_SecretKeyZ COption_SecretKeyZ_some(struct LDKSecretKey o);
5146 public static native long COption_SecretKeyZ_some(byte[] o);
5147 // struct LDKCOption_SecretKeyZ COption_SecretKeyZ_none(void);
5148 public static native long COption_SecretKeyZ_none();
5149 // void COption_SecretKeyZ_free(struct LDKCOption_SecretKeyZ _res);
5150 public static native void COption_SecretKeyZ_free(long _res);
5151 // uint64_t COption_SecretKeyZ_clone_ptr(LDKCOption_SecretKeyZ *NONNULL_PTR arg);
5152 public static native long COption_SecretKeyZ_clone_ptr(long arg);
5153 // struct LDKCOption_SecretKeyZ COption_SecretKeyZ_clone(const struct LDKCOption_SecretKeyZ *NONNULL_PTR orig);
5154 public static native long COption_SecretKeyZ_clone(long orig);
5155 // struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_ok(struct LDKVerifiedInvoiceRequest o);
5156 public static native long CResult_VerifiedInvoiceRequestNoneZ_ok(long o);
5157 // struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_err(void);
5158 public static native long CResult_VerifiedInvoiceRequestNoneZ_err();
5159 // bool CResult_VerifiedInvoiceRequestNoneZ_is_ok(const struct LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR o);
5160 public static native boolean CResult_VerifiedInvoiceRequestNoneZ_is_ok(long o);
5161 // void CResult_VerifiedInvoiceRequestNoneZ_free(struct LDKCResult_VerifiedInvoiceRequestNoneZ _res);
5162 public static native void CResult_VerifiedInvoiceRequestNoneZ_free(long _res);
5163 // uint64_t CResult_VerifiedInvoiceRequestNoneZ_clone_ptr(LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR arg);
5164 public static native long CResult_VerifiedInvoiceRequestNoneZ_clone_ptr(long arg);
5165 // struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_clone(const struct LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR orig);
5166 public static native long CResult_VerifiedInvoiceRequestNoneZ_clone(long orig);
5167 // enum LDKCOption_NoneZ COption_NoneZ_some(void);
5168 public static native COption_NoneZ COption_NoneZ_some();
5169 // enum LDKCOption_NoneZ COption_NoneZ_none(void);
5170 public static native COption_NoneZ COption_NoneZ_none();
5171 // void COption_NoneZ_free(enum LDKCOption_NoneZ _res);
5172 public static native void COption_NoneZ_free(COption_NoneZ _res);
5173 // void CVec_WitnessZ_free(struct LDKCVec_WitnessZ _res);
5174 public static native void CVec_WitnessZ_free(byte[][] _res);
5175 // struct LDKCOption_i64Z COption_i64Z_some(int64_t o);
5176 public static native long COption_i64Z_some(long o);
5177 // struct LDKCOption_i64Z COption_i64Z_none(void);
5178 public static native long COption_i64Z_none();
5179 // void COption_i64Z_free(struct LDKCOption_i64Z _res);
5180 public static native void COption_i64Z_free(long _res);
5181 // uint64_t COption_i64Z_clone_ptr(LDKCOption_i64Z *NONNULL_PTR arg);
5182 public static native long COption_i64Z_clone_ptr(long arg);
5183 // struct LDKCOption_i64Z COption_i64Z_clone(const struct LDKCOption_i64Z *NONNULL_PTR orig);
5184 public static native long COption_i64Z_clone(long orig);
5185 // struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_ok(struct LDKSocketAddress o);
5186 public static native long CResult_SocketAddressDecodeErrorZ_ok(long o);
5187 // struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_err(struct LDKDecodeError e);
5188 public static native long CResult_SocketAddressDecodeErrorZ_err(long e);
5189 // bool CResult_SocketAddressDecodeErrorZ_is_ok(const struct LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR o);
5190 public static native boolean CResult_SocketAddressDecodeErrorZ_is_ok(long o);
5191 // void CResult_SocketAddressDecodeErrorZ_free(struct LDKCResult_SocketAddressDecodeErrorZ _res);
5192 public static native void CResult_SocketAddressDecodeErrorZ_free(long _res);
5193 // uint64_t CResult_SocketAddressDecodeErrorZ_clone_ptr(LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR arg);
5194 public static native long CResult_SocketAddressDecodeErrorZ_clone_ptr(long arg);
5195 // struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_clone(const struct LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR orig);
5196 public static native long CResult_SocketAddressDecodeErrorZ_clone(long orig);
5197 // struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_ok(struct LDKSocketAddress o);
5198 public static native long CResult_SocketAddressSocketAddressParseErrorZ_ok(long o);
5199 // struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_err(enum LDKSocketAddressParseError e);
5200 public static native long CResult_SocketAddressSocketAddressParseErrorZ_err(SocketAddressParseError e);
5201 // bool CResult_SocketAddressSocketAddressParseErrorZ_is_ok(const struct LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR o);
5202 public static native boolean CResult_SocketAddressSocketAddressParseErrorZ_is_ok(long o);
5203 // void CResult_SocketAddressSocketAddressParseErrorZ_free(struct LDKCResult_SocketAddressSocketAddressParseErrorZ _res);
5204 public static native void CResult_SocketAddressSocketAddressParseErrorZ_free(long _res);
5205 // uint64_t CResult_SocketAddressSocketAddressParseErrorZ_clone_ptr(LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR arg);
5206 public static native long CResult_SocketAddressSocketAddressParseErrorZ_clone_ptr(long arg);
5207 // struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_clone(const struct LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR orig);
5208 public static native long CResult_SocketAddressSocketAddressParseErrorZ_clone(long orig);
5209 // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
5210 public static native void CVec_UpdateAddHTLCZ_free(long[] _res);
5211 // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
5212 public static native void CVec_UpdateFulfillHTLCZ_free(long[] _res);
5213 // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
5214 public static native void CVec_UpdateFailHTLCZ_free(long[] _res);
5215 // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
5216 public static native void CVec_UpdateFailMalformedHTLCZ_free(long[] _res);
5217 // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
5218 public static native long CResult_AcceptChannelDecodeErrorZ_ok(long o);
5219 // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
5220 public static native long CResult_AcceptChannelDecodeErrorZ_err(long e);
5221 // bool CResult_AcceptChannelDecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR o);
5222 public static native boolean CResult_AcceptChannelDecodeErrorZ_is_ok(long o);
5223 // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
5224 public static native void CResult_AcceptChannelDecodeErrorZ_free(long _res);
5225 // uint64_t CResult_AcceptChannelDecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR arg);
5226 public static native long CResult_AcceptChannelDecodeErrorZ_clone_ptr(long arg);
5227 // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
5228 public static native long CResult_AcceptChannelDecodeErrorZ_clone(long orig);
5229 // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_ok(struct LDKAcceptChannelV2 o);
5230 public static native long CResult_AcceptChannelV2DecodeErrorZ_ok(long o);
5231 // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_err(struct LDKDecodeError e);
5232 public static native long CResult_AcceptChannelV2DecodeErrorZ_err(long e);
5233 // bool CResult_AcceptChannelV2DecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR o);
5234 public static native boolean CResult_AcceptChannelV2DecodeErrorZ_is_ok(long o);
5235 // void CResult_AcceptChannelV2DecodeErrorZ_free(struct LDKCResult_AcceptChannelV2DecodeErrorZ _res);
5236 public static native void CResult_AcceptChannelV2DecodeErrorZ_free(long _res);
5237 // uint64_t CResult_AcceptChannelV2DecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR arg);
5238 public static native long CResult_AcceptChannelV2DecodeErrorZ_clone_ptr(long arg);
5239 // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_clone(const struct LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR orig);
5240 public static native long CResult_AcceptChannelV2DecodeErrorZ_clone(long orig);
5241 // struct LDKCResult_StfuDecodeErrorZ CResult_StfuDecodeErrorZ_ok(struct LDKStfu o);
5242 public static native long CResult_StfuDecodeErrorZ_ok(long o);
5243 // struct LDKCResult_StfuDecodeErrorZ CResult_StfuDecodeErrorZ_err(struct LDKDecodeError e);
5244 public static native long CResult_StfuDecodeErrorZ_err(long e);
5245 // bool CResult_StfuDecodeErrorZ_is_ok(const struct LDKCResult_StfuDecodeErrorZ *NONNULL_PTR o);
5246 public static native boolean CResult_StfuDecodeErrorZ_is_ok(long o);
5247 // void CResult_StfuDecodeErrorZ_free(struct LDKCResult_StfuDecodeErrorZ _res);
5248 public static native void CResult_StfuDecodeErrorZ_free(long _res);
5249 // uint64_t CResult_StfuDecodeErrorZ_clone_ptr(LDKCResult_StfuDecodeErrorZ *NONNULL_PTR arg);
5250 public static native long CResult_StfuDecodeErrorZ_clone_ptr(long arg);
5251 // struct LDKCResult_StfuDecodeErrorZ CResult_StfuDecodeErrorZ_clone(const struct LDKCResult_StfuDecodeErrorZ *NONNULL_PTR orig);
5252 public static native long CResult_StfuDecodeErrorZ_clone(long orig);
5253 // struct LDKCResult_SpliceDecodeErrorZ CResult_SpliceDecodeErrorZ_ok(struct LDKSplice o);
5254 public static native long CResult_SpliceDecodeErrorZ_ok(long o);
5255 // struct LDKCResult_SpliceDecodeErrorZ CResult_SpliceDecodeErrorZ_err(struct LDKDecodeError e);
5256 public static native long CResult_SpliceDecodeErrorZ_err(long e);
5257 // bool CResult_SpliceDecodeErrorZ_is_ok(const struct LDKCResult_SpliceDecodeErrorZ *NONNULL_PTR o);
5258 public static native boolean CResult_SpliceDecodeErrorZ_is_ok(long o);
5259 // void CResult_SpliceDecodeErrorZ_free(struct LDKCResult_SpliceDecodeErrorZ _res);
5260 public static native void CResult_SpliceDecodeErrorZ_free(long _res);
5261 // uint64_t CResult_SpliceDecodeErrorZ_clone_ptr(LDKCResult_SpliceDecodeErrorZ *NONNULL_PTR arg);
5262 public static native long CResult_SpliceDecodeErrorZ_clone_ptr(long arg);
5263 // struct LDKCResult_SpliceDecodeErrorZ CResult_SpliceDecodeErrorZ_clone(const struct LDKCResult_SpliceDecodeErrorZ *NONNULL_PTR orig);
5264 public static native long CResult_SpliceDecodeErrorZ_clone(long orig);
5265 // struct LDKCResult_SpliceAckDecodeErrorZ CResult_SpliceAckDecodeErrorZ_ok(struct LDKSpliceAck o);
5266 public static native long CResult_SpliceAckDecodeErrorZ_ok(long o);
5267 // struct LDKCResult_SpliceAckDecodeErrorZ CResult_SpliceAckDecodeErrorZ_err(struct LDKDecodeError e);
5268 public static native long CResult_SpliceAckDecodeErrorZ_err(long e);
5269 // bool CResult_SpliceAckDecodeErrorZ_is_ok(const struct LDKCResult_SpliceAckDecodeErrorZ *NONNULL_PTR o);
5270 public static native boolean CResult_SpliceAckDecodeErrorZ_is_ok(long o);
5271 // void CResult_SpliceAckDecodeErrorZ_free(struct LDKCResult_SpliceAckDecodeErrorZ _res);
5272 public static native void CResult_SpliceAckDecodeErrorZ_free(long _res);
5273 // uint64_t CResult_SpliceAckDecodeErrorZ_clone_ptr(LDKCResult_SpliceAckDecodeErrorZ *NONNULL_PTR arg);
5274 public static native long CResult_SpliceAckDecodeErrorZ_clone_ptr(long arg);
5275 // struct LDKCResult_SpliceAckDecodeErrorZ CResult_SpliceAckDecodeErrorZ_clone(const struct LDKCResult_SpliceAckDecodeErrorZ *NONNULL_PTR orig);
5276 public static native long CResult_SpliceAckDecodeErrorZ_clone(long orig);
5277 // struct LDKCResult_SpliceLockedDecodeErrorZ CResult_SpliceLockedDecodeErrorZ_ok(struct LDKSpliceLocked o);
5278 public static native long CResult_SpliceLockedDecodeErrorZ_ok(long o);
5279 // struct LDKCResult_SpliceLockedDecodeErrorZ CResult_SpliceLockedDecodeErrorZ_err(struct LDKDecodeError e);
5280 public static native long CResult_SpliceLockedDecodeErrorZ_err(long e);
5281 // bool CResult_SpliceLockedDecodeErrorZ_is_ok(const struct LDKCResult_SpliceLockedDecodeErrorZ *NONNULL_PTR o);
5282 public static native boolean CResult_SpliceLockedDecodeErrorZ_is_ok(long o);
5283 // void CResult_SpliceLockedDecodeErrorZ_free(struct LDKCResult_SpliceLockedDecodeErrorZ _res);
5284 public static native void CResult_SpliceLockedDecodeErrorZ_free(long _res);
5285 // uint64_t CResult_SpliceLockedDecodeErrorZ_clone_ptr(LDKCResult_SpliceLockedDecodeErrorZ *NONNULL_PTR arg);
5286 public static native long CResult_SpliceLockedDecodeErrorZ_clone_ptr(long arg);
5287 // struct LDKCResult_SpliceLockedDecodeErrorZ CResult_SpliceLockedDecodeErrorZ_clone(const struct LDKCResult_SpliceLockedDecodeErrorZ *NONNULL_PTR orig);
5288 public static native long CResult_SpliceLockedDecodeErrorZ_clone(long orig);
5289 // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_ok(struct LDKTxAddInput o);
5290 public static native long CResult_TxAddInputDecodeErrorZ_ok(long o);
5291 // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_err(struct LDKDecodeError e);
5292 public static native long CResult_TxAddInputDecodeErrorZ_err(long e);
5293 // bool CResult_TxAddInputDecodeErrorZ_is_ok(const struct LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR o);
5294 public static native boolean CResult_TxAddInputDecodeErrorZ_is_ok(long o);
5295 // void CResult_TxAddInputDecodeErrorZ_free(struct LDKCResult_TxAddInputDecodeErrorZ _res);
5296 public static native void CResult_TxAddInputDecodeErrorZ_free(long _res);
5297 // uint64_t CResult_TxAddInputDecodeErrorZ_clone_ptr(LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR arg);
5298 public static native long CResult_TxAddInputDecodeErrorZ_clone_ptr(long arg);
5299 // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_clone(const struct LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR orig);
5300 public static native long CResult_TxAddInputDecodeErrorZ_clone(long orig);
5301 // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_ok(struct LDKTxAddOutput o);
5302 public static native long CResult_TxAddOutputDecodeErrorZ_ok(long o);
5303 // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_err(struct LDKDecodeError e);
5304 public static native long CResult_TxAddOutputDecodeErrorZ_err(long e);
5305 // bool CResult_TxAddOutputDecodeErrorZ_is_ok(const struct LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR o);
5306 public static native boolean CResult_TxAddOutputDecodeErrorZ_is_ok(long o);
5307 // void CResult_TxAddOutputDecodeErrorZ_free(struct LDKCResult_TxAddOutputDecodeErrorZ _res);
5308 public static native void CResult_TxAddOutputDecodeErrorZ_free(long _res);
5309 // uint64_t CResult_TxAddOutputDecodeErrorZ_clone_ptr(LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR arg);
5310 public static native long CResult_TxAddOutputDecodeErrorZ_clone_ptr(long arg);
5311 // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_clone(const struct LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR orig);
5312 public static native long CResult_TxAddOutputDecodeErrorZ_clone(long orig);
5313 // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_ok(struct LDKTxRemoveInput o);
5314 public static native long CResult_TxRemoveInputDecodeErrorZ_ok(long o);
5315 // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_err(struct LDKDecodeError e);
5316 public static native long CResult_TxRemoveInputDecodeErrorZ_err(long e);
5317 // bool CResult_TxRemoveInputDecodeErrorZ_is_ok(const struct LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR o);
5318 public static native boolean CResult_TxRemoveInputDecodeErrorZ_is_ok(long o);
5319 // void CResult_TxRemoveInputDecodeErrorZ_free(struct LDKCResult_TxRemoveInputDecodeErrorZ _res);
5320 public static native void CResult_TxRemoveInputDecodeErrorZ_free(long _res);
5321 // uint64_t CResult_TxRemoveInputDecodeErrorZ_clone_ptr(LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR arg);
5322 public static native long CResult_TxRemoveInputDecodeErrorZ_clone_ptr(long arg);
5323 // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_clone(const struct LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR orig);
5324 public static native long CResult_TxRemoveInputDecodeErrorZ_clone(long orig);
5325 // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_ok(struct LDKTxRemoveOutput o);
5326 public static native long CResult_TxRemoveOutputDecodeErrorZ_ok(long o);
5327 // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_err(struct LDKDecodeError e);
5328 public static native long CResult_TxRemoveOutputDecodeErrorZ_err(long e);
5329 // bool CResult_TxRemoveOutputDecodeErrorZ_is_ok(const struct LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR o);
5330 public static native boolean CResult_TxRemoveOutputDecodeErrorZ_is_ok(long o);
5331 // void CResult_TxRemoveOutputDecodeErrorZ_free(struct LDKCResult_TxRemoveOutputDecodeErrorZ _res);
5332 public static native void CResult_TxRemoveOutputDecodeErrorZ_free(long _res);
5333 // uint64_t CResult_TxRemoveOutputDecodeErrorZ_clone_ptr(LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR arg);
5334 public static native long CResult_TxRemoveOutputDecodeErrorZ_clone_ptr(long arg);
5335 // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_clone(const struct LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR orig);
5336 public static native long CResult_TxRemoveOutputDecodeErrorZ_clone(long orig);
5337 // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_ok(struct LDKTxComplete o);
5338 public static native long CResult_TxCompleteDecodeErrorZ_ok(long o);
5339 // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_err(struct LDKDecodeError e);
5340 public static native long CResult_TxCompleteDecodeErrorZ_err(long e);
5341 // bool CResult_TxCompleteDecodeErrorZ_is_ok(const struct LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR o);
5342 public static native boolean CResult_TxCompleteDecodeErrorZ_is_ok(long o);
5343 // void CResult_TxCompleteDecodeErrorZ_free(struct LDKCResult_TxCompleteDecodeErrorZ _res);
5344 public static native void CResult_TxCompleteDecodeErrorZ_free(long _res);
5345 // uint64_t CResult_TxCompleteDecodeErrorZ_clone_ptr(LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR arg);
5346 public static native long CResult_TxCompleteDecodeErrorZ_clone_ptr(long arg);
5347 // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_clone(const struct LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR orig);
5348 public static native long CResult_TxCompleteDecodeErrorZ_clone(long orig);
5349 // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_ok(struct LDKTxSignatures o);
5350 public static native long CResult_TxSignaturesDecodeErrorZ_ok(long o);
5351 // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
5352 public static native long CResult_TxSignaturesDecodeErrorZ_err(long e);
5353 // bool CResult_TxSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR o);
5354 public static native boolean CResult_TxSignaturesDecodeErrorZ_is_ok(long o);
5355 // void CResult_TxSignaturesDecodeErrorZ_free(struct LDKCResult_TxSignaturesDecodeErrorZ _res);
5356 public static native void CResult_TxSignaturesDecodeErrorZ_free(long _res);
5357 // uint64_t CResult_TxSignaturesDecodeErrorZ_clone_ptr(LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR arg);
5358 public static native long CResult_TxSignaturesDecodeErrorZ_clone_ptr(long arg);
5359 // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_clone(const struct LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR orig);
5360 public static native long CResult_TxSignaturesDecodeErrorZ_clone(long orig);
5361 // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_ok(struct LDKTxInitRbf o);
5362 public static native long CResult_TxInitRbfDecodeErrorZ_ok(long o);
5363 // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_err(struct LDKDecodeError e);
5364 public static native long CResult_TxInitRbfDecodeErrorZ_err(long e);
5365 // bool CResult_TxInitRbfDecodeErrorZ_is_ok(const struct LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR o);
5366 public static native boolean CResult_TxInitRbfDecodeErrorZ_is_ok(long o);
5367 // void CResult_TxInitRbfDecodeErrorZ_free(struct LDKCResult_TxInitRbfDecodeErrorZ _res);
5368 public static native void CResult_TxInitRbfDecodeErrorZ_free(long _res);
5369 // uint64_t CResult_TxInitRbfDecodeErrorZ_clone_ptr(LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR arg);
5370 public static native long CResult_TxInitRbfDecodeErrorZ_clone_ptr(long arg);
5371 // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_clone(const struct LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR orig);
5372 public static native long CResult_TxInitRbfDecodeErrorZ_clone(long orig);
5373 // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_ok(struct LDKTxAckRbf o);
5374 public static native long CResult_TxAckRbfDecodeErrorZ_ok(long o);
5375 // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_err(struct LDKDecodeError e);
5376 public static native long CResult_TxAckRbfDecodeErrorZ_err(long e);
5377 // bool CResult_TxAckRbfDecodeErrorZ_is_ok(const struct LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR o);
5378 public static native boolean CResult_TxAckRbfDecodeErrorZ_is_ok(long o);
5379 // void CResult_TxAckRbfDecodeErrorZ_free(struct LDKCResult_TxAckRbfDecodeErrorZ _res);
5380 public static native void CResult_TxAckRbfDecodeErrorZ_free(long _res);
5381 // uint64_t CResult_TxAckRbfDecodeErrorZ_clone_ptr(LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR arg);
5382 public static native long CResult_TxAckRbfDecodeErrorZ_clone_ptr(long arg);
5383 // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_clone(const struct LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR orig);
5384 public static native long CResult_TxAckRbfDecodeErrorZ_clone(long orig);
5385 // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_ok(struct LDKTxAbort o);
5386 public static native long CResult_TxAbortDecodeErrorZ_ok(long o);
5387 // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_err(struct LDKDecodeError e);
5388 public static native long CResult_TxAbortDecodeErrorZ_err(long e);
5389 // bool CResult_TxAbortDecodeErrorZ_is_ok(const struct LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR o);
5390 public static native boolean CResult_TxAbortDecodeErrorZ_is_ok(long o);
5391 // void CResult_TxAbortDecodeErrorZ_free(struct LDKCResult_TxAbortDecodeErrorZ _res);
5392 public static native void CResult_TxAbortDecodeErrorZ_free(long _res);
5393 // uint64_t CResult_TxAbortDecodeErrorZ_clone_ptr(LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR arg);
5394 public static native long CResult_TxAbortDecodeErrorZ_clone_ptr(long arg);
5395 // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_clone(const struct LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR orig);
5396 public static native long CResult_TxAbortDecodeErrorZ_clone(long orig);
5397 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
5398 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_ok(long o);
5399 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
5400 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_err(long e);
5401 // bool CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR o);
5402 public static native boolean CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(long o);
5403 // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
5404 public static native void CResult_AnnouncementSignaturesDecodeErrorZ_free(long _res);
5405 // uint64_t CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR arg);
5406 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(long arg);
5407 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
5408 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone(long orig);
5409 // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
5410 public static native long CResult_ChannelReestablishDecodeErrorZ_ok(long o);
5411 // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
5412 public static native long CResult_ChannelReestablishDecodeErrorZ_err(long e);
5413 // bool CResult_ChannelReestablishDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR o);
5414 public static native boolean CResult_ChannelReestablishDecodeErrorZ_is_ok(long o);
5415 // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
5416 public static native void CResult_ChannelReestablishDecodeErrorZ_free(long _res);
5417 // uint64_t CResult_ChannelReestablishDecodeErrorZ_clone_ptr(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR arg);
5418 public static native long CResult_ChannelReestablishDecodeErrorZ_clone_ptr(long arg);
5419 // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
5420 public static native long CResult_ChannelReestablishDecodeErrorZ_clone(long orig);
5421 // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
5422 public static native long CResult_ClosingSignedDecodeErrorZ_ok(long o);
5423 // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
5424 public static native long CResult_ClosingSignedDecodeErrorZ_err(long e);
5425 // bool CResult_ClosingSignedDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR o);
5426 public static native boolean CResult_ClosingSignedDecodeErrorZ_is_ok(long o);
5427 // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
5428 public static native void CResult_ClosingSignedDecodeErrorZ_free(long _res);
5429 // uint64_t CResult_ClosingSignedDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR arg);
5430 public static native long CResult_ClosingSignedDecodeErrorZ_clone_ptr(long arg);
5431 // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
5432 public static native long CResult_ClosingSignedDecodeErrorZ_clone(long orig);
5433 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(struct LDKClosingSignedFeeRange o);
5434 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(long o);
5435 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_err(struct LDKDecodeError e);
5436 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_err(long e);
5437 // bool CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR o);
5438 public static native boolean CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(long o);
5439 // void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ _res);
5440 public static native void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(long _res);
5441 // uint64_t CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR arg);
5442 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(long arg);
5443 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR orig);
5444 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(long orig);
5445 // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
5446 public static native long CResult_CommitmentSignedDecodeErrorZ_ok(long o);
5447 // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
5448 public static native long CResult_CommitmentSignedDecodeErrorZ_err(long e);
5449 // bool CResult_CommitmentSignedDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR o);
5450 public static native boolean CResult_CommitmentSignedDecodeErrorZ_is_ok(long o);
5451 // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
5452 public static native void CResult_CommitmentSignedDecodeErrorZ_free(long _res);
5453 // uint64_t CResult_CommitmentSignedDecodeErrorZ_clone_ptr(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR arg);
5454 public static native long CResult_CommitmentSignedDecodeErrorZ_clone_ptr(long arg);
5455 // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
5456 public static native long CResult_CommitmentSignedDecodeErrorZ_clone(long orig);
5457 // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
5458 public static native long CResult_FundingCreatedDecodeErrorZ_ok(long o);
5459 // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
5460 public static native long CResult_FundingCreatedDecodeErrorZ_err(long e);
5461 // bool CResult_FundingCreatedDecodeErrorZ_is_ok(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR o);
5462 public static native boolean CResult_FundingCreatedDecodeErrorZ_is_ok(long o);
5463 // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
5464 public static native void CResult_FundingCreatedDecodeErrorZ_free(long _res);
5465 // uint64_t CResult_FundingCreatedDecodeErrorZ_clone_ptr(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR arg);
5466 public static native long CResult_FundingCreatedDecodeErrorZ_clone_ptr(long arg);
5467 // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
5468 public static native long CResult_FundingCreatedDecodeErrorZ_clone(long orig);
5469 // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
5470 public static native long CResult_FundingSignedDecodeErrorZ_ok(long o);
5471 // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
5472 public static native long CResult_FundingSignedDecodeErrorZ_err(long e);
5473 // bool CResult_FundingSignedDecodeErrorZ_is_ok(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR o);
5474 public static native boolean CResult_FundingSignedDecodeErrorZ_is_ok(long o);
5475 // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
5476 public static native void CResult_FundingSignedDecodeErrorZ_free(long _res);
5477 // uint64_t CResult_FundingSignedDecodeErrorZ_clone_ptr(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR arg);
5478 public static native long CResult_FundingSignedDecodeErrorZ_clone_ptr(long arg);
5479 // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
5480 public static native long CResult_FundingSignedDecodeErrorZ_clone(long orig);
5481 // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_ok(struct LDKChannelReady o);
5482 public static native long CResult_ChannelReadyDecodeErrorZ_ok(long o);
5483 // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_err(struct LDKDecodeError e);
5484 public static native long CResult_ChannelReadyDecodeErrorZ_err(long e);
5485 // bool CResult_ChannelReadyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR o);
5486 public static native boolean CResult_ChannelReadyDecodeErrorZ_is_ok(long o);
5487 // void CResult_ChannelReadyDecodeErrorZ_free(struct LDKCResult_ChannelReadyDecodeErrorZ _res);
5488 public static native void CResult_ChannelReadyDecodeErrorZ_free(long _res);
5489 // uint64_t CResult_ChannelReadyDecodeErrorZ_clone_ptr(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR arg);
5490 public static native long CResult_ChannelReadyDecodeErrorZ_clone_ptr(long arg);
5491 // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_clone(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR orig);
5492 public static native long CResult_ChannelReadyDecodeErrorZ_clone(long orig);
5493 // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
5494 public static native long CResult_InitDecodeErrorZ_ok(long o);
5495 // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
5496 public static native long CResult_InitDecodeErrorZ_err(long e);
5497 // bool CResult_InitDecodeErrorZ_is_ok(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR o);
5498 public static native boolean CResult_InitDecodeErrorZ_is_ok(long o);
5499 // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
5500 public static native void CResult_InitDecodeErrorZ_free(long _res);
5501 // uint64_t CResult_InitDecodeErrorZ_clone_ptr(LDKCResult_InitDecodeErrorZ *NONNULL_PTR arg);
5502 public static native long CResult_InitDecodeErrorZ_clone_ptr(long arg);
5503 // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
5504 public static native long CResult_InitDecodeErrorZ_clone(long orig);
5505 // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
5506 public static native long CResult_OpenChannelDecodeErrorZ_ok(long o);
5507 // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
5508 public static native long CResult_OpenChannelDecodeErrorZ_err(long e);
5509 // bool CResult_OpenChannelDecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR o);
5510 public static native boolean CResult_OpenChannelDecodeErrorZ_is_ok(long o);
5511 // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
5512 public static native void CResult_OpenChannelDecodeErrorZ_free(long _res);
5513 // uint64_t CResult_OpenChannelDecodeErrorZ_clone_ptr(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR arg);
5514 public static native long CResult_OpenChannelDecodeErrorZ_clone_ptr(long arg);
5515 // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
5516 public static native long CResult_OpenChannelDecodeErrorZ_clone(long orig);
5517 // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_ok(struct LDKOpenChannelV2 o);
5518 public static native long CResult_OpenChannelV2DecodeErrorZ_ok(long o);
5519 // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_err(struct LDKDecodeError e);
5520 public static native long CResult_OpenChannelV2DecodeErrorZ_err(long e);
5521 // bool CResult_OpenChannelV2DecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR o);
5522 public static native boolean CResult_OpenChannelV2DecodeErrorZ_is_ok(long o);
5523 // void CResult_OpenChannelV2DecodeErrorZ_free(struct LDKCResult_OpenChannelV2DecodeErrorZ _res);
5524 public static native void CResult_OpenChannelV2DecodeErrorZ_free(long _res);
5525 // uint64_t CResult_OpenChannelV2DecodeErrorZ_clone_ptr(LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR arg);
5526 public static native long CResult_OpenChannelV2DecodeErrorZ_clone_ptr(long arg);
5527 // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_clone(const struct LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR orig);
5528 public static native long CResult_OpenChannelV2DecodeErrorZ_clone(long orig);
5529 // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
5530 public static native long CResult_RevokeAndACKDecodeErrorZ_ok(long o);
5531 // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
5532 public static native long CResult_RevokeAndACKDecodeErrorZ_err(long e);
5533 // bool CResult_RevokeAndACKDecodeErrorZ_is_ok(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR o);
5534 public static native boolean CResult_RevokeAndACKDecodeErrorZ_is_ok(long o);
5535 // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
5536 public static native void CResult_RevokeAndACKDecodeErrorZ_free(long _res);
5537 // uint64_t CResult_RevokeAndACKDecodeErrorZ_clone_ptr(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR arg);
5538 public static native long CResult_RevokeAndACKDecodeErrorZ_clone_ptr(long arg);
5539 // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
5540 public static native long CResult_RevokeAndACKDecodeErrorZ_clone(long orig);
5541 // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
5542 public static native long CResult_ShutdownDecodeErrorZ_ok(long o);
5543 // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
5544 public static native long CResult_ShutdownDecodeErrorZ_err(long e);
5545 // bool CResult_ShutdownDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR o);
5546 public static native boolean CResult_ShutdownDecodeErrorZ_is_ok(long o);
5547 // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
5548 public static native void CResult_ShutdownDecodeErrorZ_free(long _res);
5549 // uint64_t CResult_ShutdownDecodeErrorZ_clone_ptr(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR arg);
5550 public static native long CResult_ShutdownDecodeErrorZ_clone_ptr(long arg);
5551 // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
5552 public static native long CResult_ShutdownDecodeErrorZ_clone(long orig);
5553 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
5554 public static native long CResult_UpdateFailHTLCDecodeErrorZ_ok(long o);
5555 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
5556 public static native long CResult_UpdateFailHTLCDecodeErrorZ_err(long e);
5557 // bool CResult_UpdateFailHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR o);
5558 public static native boolean CResult_UpdateFailHTLCDecodeErrorZ_is_ok(long o);
5559 // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
5560 public static native void CResult_UpdateFailHTLCDecodeErrorZ_free(long _res);
5561 // uint64_t CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR arg);
5562 public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(long arg);
5563 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
5564 public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone(long orig);
5565 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
5566 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(long o);
5567 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
5568 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(long e);
5569 // bool CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR o);
5570 public static native boolean CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(long o);
5571 // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
5572 public static native void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(long _res);
5573 // uint64_t CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR arg);
5574 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(long arg);
5575 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
5576 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(long orig);
5577 // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
5578 public static native long CResult_UpdateFeeDecodeErrorZ_ok(long o);
5579 // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
5580 public static native long CResult_UpdateFeeDecodeErrorZ_err(long e);
5581 // bool CResult_UpdateFeeDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR o);
5582 public static native boolean CResult_UpdateFeeDecodeErrorZ_is_ok(long o);
5583 // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
5584 public static native void CResult_UpdateFeeDecodeErrorZ_free(long _res);
5585 // uint64_t CResult_UpdateFeeDecodeErrorZ_clone_ptr(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR arg);
5586 public static native long CResult_UpdateFeeDecodeErrorZ_clone_ptr(long arg);
5587 // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
5588 public static native long CResult_UpdateFeeDecodeErrorZ_clone(long orig);
5589 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
5590 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_ok(long o);
5591 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
5592 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_err(long e);
5593 // bool CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR o);
5594 public static native boolean CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(long o);
5595 // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
5596 public static native void CResult_UpdateFulfillHTLCDecodeErrorZ_free(long _res);
5597 // uint64_t CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR arg);
5598 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(long arg);
5599 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
5600 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone(long orig);
5601 // struct LDKCResult_OnionPacketDecodeErrorZ CResult_OnionPacketDecodeErrorZ_ok(struct LDKOnionPacket o);
5602 public static native long CResult_OnionPacketDecodeErrorZ_ok(long o);
5603 // struct LDKCResult_OnionPacketDecodeErrorZ CResult_OnionPacketDecodeErrorZ_err(struct LDKDecodeError e);
5604 public static native long CResult_OnionPacketDecodeErrorZ_err(long e);
5605 // bool CResult_OnionPacketDecodeErrorZ_is_ok(const struct LDKCResult_OnionPacketDecodeErrorZ *NONNULL_PTR o);
5606 public static native boolean CResult_OnionPacketDecodeErrorZ_is_ok(long o);
5607 // void CResult_OnionPacketDecodeErrorZ_free(struct LDKCResult_OnionPacketDecodeErrorZ _res);
5608 public static native void CResult_OnionPacketDecodeErrorZ_free(long _res);
5609 // uint64_t CResult_OnionPacketDecodeErrorZ_clone_ptr(LDKCResult_OnionPacketDecodeErrorZ *NONNULL_PTR arg);
5610 public static native long CResult_OnionPacketDecodeErrorZ_clone_ptr(long arg);
5611 // struct LDKCResult_OnionPacketDecodeErrorZ CResult_OnionPacketDecodeErrorZ_clone(const struct LDKCResult_OnionPacketDecodeErrorZ *NONNULL_PTR orig);
5612 public static native long CResult_OnionPacketDecodeErrorZ_clone(long orig);
5613 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
5614 public static native long CResult_UpdateAddHTLCDecodeErrorZ_ok(long o);
5615 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
5616 public static native long CResult_UpdateAddHTLCDecodeErrorZ_err(long e);
5617 // bool CResult_UpdateAddHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR o);
5618 public static native boolean CResult_UpdateAddHTLCDecodeErrorZ_is_ok(long o);
5619 // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
5620 public static native void CResult_UpdateAddHTLCDecodeErrorZ_free(long _res);
5621 // uint64_t CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR arg);
5622 public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(long arg);
5623 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
5624 public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone(long orig);
5625 // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_ok(struct LDKOnionMessage o);
5626 public static native long CResult_OnionMessageDecodeErrorZ_ok(long o);
5627 // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_err(struct LDKDecodeError e);
5628 public static native long CResult_OnionMessageDecodeErrorZ_err(long e);
5629 // bool CResult_OnionMessageDecodeErrorZ_is_ok(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR o);
5630 public static native boolean CResult_OnionMessageDecodeErrorZ_is_ok(long o);
5631 // void CResult_OnionMessageDecodeErrorZ_free(struct LDKCResult_OnionMessageDecodeErrorZ _res);
5632 public static native void CResult_OnionMessageDecodeErrorZ_free(long _res);
5633 // uint64_t CResult_OnionMessageDecodeErrorZ_clone_ptr(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR arg);
5634 public static native long CResult_OnionMessageDecodeErrorZ_clone_ptr(long arg);
5635 // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_clone(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR orig);
5636 public static native long CResult_OnionMessageDecodeErrorZ_clone(long orig);
5637 // struct LDKCResult_FinalOnionHopDataDecodeErrorZ CResult_FinalOnionHopDataDecodeErrorZ_ok(struct LDKFinalOnionHopData o);
5638 public static native long CResult_FinalOnionHopDataDecodeErrorZ_ok(long o);
5639 // struct LDKCResult_FinalOnionHopDataDecodeErrorZ CResult_FinalOnionHopDataDecodeErrorZ_err(struct LDKDecodeError e);
5640 public static native long CResult_FinalOnionHopDataDecodeErrorZ_err(long e);
5641 // bool CResult_FinalOnionHopDataDecodeErrorZ_is_ok(const struct LDKCResult_FinalOnionHopDataDecodeErrorZ *NONNULL_PTR o);
5642 public static native boolean CResult_FinalOnionHopDataDecodeErrorZ_is_ok(long o);
5643 // void CResult_FinalOnionHopDataDecodeErrorZ_free(struct LDKCResult_FinalOnionHopDataDecodeErrorZ _res);
5644 public static native void CResult_FinalOnionHopDataDecodeErrorZ_free(long _res);
5645 // uint64_t CResult_FinalOnionHopDataDecodeErrorZ_clone_ptr(LDKCResult_FinalOnionHopDataDecodeErrorZ *NONNULL_PTR arg);
5646 public static native long CResult_FinalOnionHopDataDecodeErrorZ_clone_ptr(long arg);
5647 // struct LDKCResult_FinalOnionHopDataDecodeErrorZ CResult_FinalOnionHopDataDecodeErrorZ_clone(const struct LDKCResult_FinalOnionHopDataDecodeErrorZ *NONNULL_PTR orig);
5648 public static native long CResult_FinalOnionHopDataDecodeErrorZ_clone(long orig);
5649 // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
5650 public static native long CResult_PingDecodeErrorZ_ok(long o);
5651 // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
5652 public static native long CResult_PingDecodeErrorZ_err(long e);
5653 // bool CResult_PingDecodeErrorZ_is_ok(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR o);
5654 public static native boolean CResult_PingDecodeErrorZ_is_ok(long o);
5655 // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
5656 public static native void CResult_PingDecodeErrorZ_free(long _res);
5657 // uint64_t CResult_PingDecodeErrorZ_clone_ptr(LDKCResult_PingDecodeErrorZ *NONNULL_PTR arg);
5658 public static native long CResult_PingDecodeErrorZ_clone_ptr(long arg);
5659 // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
5660 public static native long CResult_PingDecodeErrorZ_clone(long orig);
5661 // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
5662 public static native long CResult_PongDecodeErrorZ_ok(long o);
5663 // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
5664 public static native long CResult_PongDecodeErrorZ_err(long e);
5665 // bool CResult_PongDecodeErrorZ_is_ok(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR o);
5666 public static native boolean CResult_PongDecodeErrorZ_is_ok(long o);
5667 // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
5668 public static native void CResult_PongDecodeErrorZ_free(long _res);
5669 // uint64_t CResult_PongDecodeErrorZ_clone_ptr(LDKCResult_PongDecodeErrorZ *NONNULL_PTR arg);
5670 public static native long CResult_PongDecodeErrorZ_clone_ptr(long arg);
5671 // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
5672 public static native long CResult_PongDecodeErrorZ_clone(long orig);
5673 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
5674 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(long o);
5675 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
5676 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(long e);
5677 // bool CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
5678 public static native boolean CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(long o);
5679 // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
5680 public static native void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(long _res);
5681 // uint64_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
5682 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(long arg);
5683 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
5684 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(long orig);
5685 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
5686 public static native long CResult_ChannelAnnouncementDecodeErrorZ_ok(long o);
5687 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
5688 public static native long CResult_ChannelAnnouncementDecodeErrorZ_err(long e);
5689 // bool CResult_ChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
5690 public static native boolean CResult_ChannelAnnouncementDecodeErrorZ_is_ok(long o);
5691 // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
5692 public static native void CResult_ChannelAnnouncementDecodeErrorZ_free(long _res);
5693 // uint64_t CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
5694 public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(long arg);
5695 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
5696 public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone(long orig);
5697 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
5698 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_ok(long o);
5699 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
5700 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_err(long e);
5701 // bool CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR o);
5702 public static native boolean CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(long o);
5703 // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
5704 public static native void CResult_UnsignedChannelUpdateDecodeErrorZ_free(long _res);
5705 // uint64_t CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
5706 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(long arg);
5707 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
5708 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone(long orig);
5709 // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
5710 public static native long CResult_ChannelUpdateDecodeErrorZ_ok(long o);
5711 // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
5712 public static native long CResult_ChannelUpdateDecodeErrorZ_err(long e);
5713 // bool CResult_ChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR o);
5714 public static native boolean CResult_ChannelUpdateDecodeErrorZ_is_ok(long o);
5715 // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
5716 public static native void CResult_ChannelUpdateDecodeErrorZ_free(long _res);
5717 // uint64_t CResult_ChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
5718 public static native long CResult_ChannelUpdateDecodeErrorZ_clone_ptr(long arg);
5719 // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
5720 public static native long CResult_ChannelUpdateDecodeErrorZ_clone(long orig);
5721 // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
5722 public static native long CResult_ErrorMessageDecodeErrorZ_ok(long o);
5723 // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
5724 public static native long CResult_ErrorMessageDecodeErrorZ_err(long e);
5725 // bool CResult_ErrorMessageDecodeErrorZ_is_ok(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR o);
5726 public static native boolean CResult_ErrorMessageDecodeErrorZ_is_ok(long o);
5727 // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
5728 public static native void CResult_ErrorMessageDecodeErrorZ_free(long _res);
5729 // uint64_t CResult_ErrorMessageDecodeErrorZ_clone_ptr(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR arg);
5730 public static native long CResult_ErrorMessageDecodeErrorZ_clone_ptr(long arg);
5731 // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
5732 public static native long CResult_ErrorMessageDecodeErrorZ_clone(long orig);
5733 // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_ok(struct LDKWarningMessage o);
5734 public static native long CResult_WarningMessageDecodeErrorZ_ok(long o);
5735 // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_err(struct LDKDecodeError e);
5736 public static native long CResult_WarningMessageDecodeErrorZ_err(long e);
5737 // bool CResult_WarningMessageDecodeErrorZ_is_ok(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR o);
5738 public static native boolean CResult_WarningMessageDecodeErrorZ_is_ok(long o);
5739 // void CResult_WarningMessageDecodeErrorZ_free(struct LDKCResult_WarningMessageDecodeErrorZ _res);
5740 public static native void CResult_WarningMessageDecodeErrorZ_free(long _res);
5741 // uint64_t CResult_WarningMessageDecodeErrorZ_clone_ptr(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR arg);
5742 public static native long CResult_WarningMessageDecodeErrorZ_clone_ptr(long arg);
5743 // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_clone(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR orig);
5744 public static native long CResult_WarningMessageDecodeErrorZ_clone(long orig);
5745 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
5746 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(long o);
5747 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
5748 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(long e);
5749 // bool CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
5750 public static native boolean CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(long o);
5751 // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
5752 public static native void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(long _res);
5753 // uint64_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
5754 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(long arg);
5755 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
5756 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(long orig);
5757 // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
5758 public static native long CResult_NodeAnnouncementDecodeErrorZ_ok(long o);
5759 // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
5760 public static native long CResult_NodeAnnouncementDecodeErrorZ_err(long e);
5761 // bool CResult_NodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
5762 public static native boolean CResult_NodeAnnouncementDecodeErrorZ_is_ok(long o);
5763 // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
5764 public static native void CResult_NodeAnnouncementDecodeErrorZ_free(long _res);
5765 // uint64_t CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
5766 public static native long CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(long arg);
5767 // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
5768 public static native long CResult_NodeAnnouncementDecodeErrorZ_clone(long orig);
5769 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
5770 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_ok(long o);
5771 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
5772 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_err(long e);
5773 // bool CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR o);
5774 public static native boolean CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(long o);
5775 // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
5776 public static native void CResult_QueryShortChannelIdsDecodeErrorZ_free(long _res);
5777 // uint64_t CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR arg);
5778 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(long arg);
5779 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
5780 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone(long orig);
5781 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
5782 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(long o);
5783 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
5784 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(long e);
5785 // bool CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR o);
5786 public static native boolean CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(long o);
5787 // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
5788 public static native void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(long _res);
5789 // uint64_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR arg);
5790 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(long arg);
5791 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
5792 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(long orig);
5793 // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
5794 public static native long CResult_QueryChannelRangeDecodeErrorZ_ok(long o);
5795 // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
5796 public static native long CResult_QueryChannelRangeDecodeErrorZ_err(long e);
5797 // bool CResult_QueryChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR o);
5798 public static native boolean CResult_QueryChannelRangeDecodeErrorZ_is_ok(long o);
5799 // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
5800 public static native void CResult_QueryChannelRangeDecodeErrorZ_free(long _res);
5801 // uint64_t CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR arg);
5802 public static native long CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(long arg);
5803 // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
5804 public static native long CResult_QueryChannelRangeDecodeErrorZ_clone(long orig);
5805 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
5806 public static native long CResult_ReplyChannelRangeDecodeErrorZ_ok(long o);
5807 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
5808 public static native long CResult_ReplyChannelRangeDecodeErrorZ_err(long e);
5809 // bool CResult_ReplyChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR o);
5810 public static native boolean CResult_ReplyChannelRangeDecodeErrorZ_is_ok(long o);
5811 // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
5812 public static native void CResult_ReplyChannelRangeDecodeErrorZ_free(long _res);
5813 // uint64_t CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR arg);
5814 public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(long arg);
5815 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
5816 public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone(long orig);
5817 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
5818 public static native long CResult_GossipTimestampFilterDecodeErrorZ_ok(long o);
5819 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
5820 public static native long CResult_GossipTimestampFilterDecodeErrorZ_err(long e);
5821 // bool CResult_GossipTimestampFilterDecodeErrorZ_is_ok(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR o);
5822 public static native boolean CResult_GossipTimestampFilterDecodeErrorZ_is_ok(long o);
5823 // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
5824 public static native void CResult_GossipTimestampFilterDecodeErrorZ_free(long _res);
5825 // uint64_t CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR arg);
5826 public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(long arg);
5827 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
5828 public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone(long orig);
5829 // void CVec_PhantomRouteHintsZ_free(struct LDKCVec_PhantomRouteHintsZ _res);
5830 public static native void CVec_PhantomRouteHintsZ_free(long[] _res);
5831 // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_ok(struct LDKBolt11Invoice o);
5832 public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_ok(long o);
5833 // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_err(struct LDKSignOrCreationError e);
5834 public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_err(long e);
5835 // bool CResult_Bolt11InvoiceSignOrCreationErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR o);
5836 public static native boolean CResult_Bolt11InvoiceSignOrCreationErrorZ_is_ok(long o);
5837 // void CResult_Bolt11InvoiceSignOrCreationErrorZ_free(struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ _res);
5838 public static native void CResult_Bolt11InvoiceSignOrCreationErrorZ_free(long _res);
5839 // uint64_t CResult_Bolt11InvoiceSignOrCreationErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR arg);
5840 public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_clone_ptr(long arg);
5841 // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_clone(const struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR orig);
5842 public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_clone(long orig);
5843 // void CVec_FutureZ_free(struct LDKCVec_FutureZ _res);
5844 public static native void CVec_FutureZ_free(long[] _res);
5845 // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_ok(struct LDKOffersMessage o);
5846 public static native long CResult_OffersMessageDecodeErrorZ_ok(long o);
5847 // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_err(struct LDKDecodeError e);
5848 public static native long CResult_OffersMessageDecodeErrorZ_err(long e);
5849 // bool CResult_OffersMessageDecodeErrorZ_is_ok(const struct LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR o);
5850 public static native boolean CResult_OffersMessageDecodeErrorZ_is_ok(long o);
5851 // void CResult_OffersMessageDecodeErrorZ_free(struct LDKCResult_OffersMessageDecodeErrorZ _res);
5852 public static native void CResult_OffersMessageDecodeErrorZ_free(long _res);
5853 // uint64_t CResult_OffersMessageDecodeErrorZ_clone_ptr(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR arg);
5854 public static native long CResult_OffersMessageDecodeErrorZ_clone_ptr(long arg);
5855 // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_clone(const struct LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR orig);
5856 public static native long CResult_OffersMessageDecodeErrorZ_clone(long orig);
5857 // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_some(enum LDKHTLCClaim o);
5858 public static native long COption_HTLCClaimZ_some(HTLCClaim o);
5859 // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_none(void);
5860 public static native long COption_HTLCClaimZ_none();
5861 // void COption_HTLCClaimZ_free(struct LDKCOption_HTLCClaimZ _res);
5862 public static native void COption_HTLCClaimZ_free(long _res);
5863 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o);
5864 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(long o);
5865 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e);
5866 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(long e);
5867 // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o);
5868 public static native boolean CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(long o);
5869 // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res);
5870 public static native void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(long _res);
5871 // uint64_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg);
5872 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(long arg);
5873 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig);
5874 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(long orig);
5875 // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o);
5876 public static native long CResult_TxCreationKeysDecodeErrorZ_ok(long o);
5877 // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e);
5878 public static native long CResult_TxCreationKeysDecodeErrorZ_err(long e);
5879 // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o);
5880 public static native boolean CResult_TxCreationKeysDecodeErrorZ_is_ok(long o);
5881 // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
5882 public static native void CResult_TxCreationKeysDecodeErrorZ_free(long _res);
5883 // uint64_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg);
5884 public static native long CResult_TxCreationKeysDecodeErrorZ_clone_ptr(long arg);
5885 // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig);
5886 public static native long CResult_TxCreationKeysDecodeErrorZ_clone(long orig);
5887 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o);
5888 public static native long CResult_ChannelPublicKeysDecodeErrorZ_ok(long o);
5889 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e);
5890 public static native long CResult_ChannelPublicKeysDecodeErrorZ_err(long e);
5891 // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o);
5892 public static native boolean CResult_ChannelPublicKeysDecodeErrorZ_is_ok(long o);
5893 // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
5894 public static native void CResult_ChannelPublicKeysDecodeErrorZ_free(long _res);
5895 // uint64_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg);
5896 public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(long arg);
5897 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
5898 public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone(long orig);
5899 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o);
5900 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(long o);
5901 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e);
5902 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_err(long e);
5903 // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o);
5904 public static native boolean CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(long o);
5905 // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
5906 public static native void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(long _res);
5907 // uint64_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg);
5908 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(long arg);
5909 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig);
5910 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(long orig);
5911 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o);
5912 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(long o);
5913 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
5914 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(long e);
5915 // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
5916 public static native boolean CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(long o);
5917 // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
5918 public static native void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(long _res);
5919 // uint64_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
5920 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(long arg);
5921 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
5922 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(long orig);
5923 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o);
5924 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_ok(long o);
5925 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
5926 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_err(long e);
5927 // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
5928 public static native boolean CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(long o);
5929 // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
5930 public static native void CResult_ChannelTransactionParametersDecodeErrorZ_free(long _res);
5931 // uint64_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
5932 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(long arg);
5933 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
5934 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone(long orig);
5935 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o);
5936 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_ok(long o);
5937 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
5938 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_err(long e);
5939 // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
5940 public static native boolean CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(long o);
5941 // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
5942 public static native void CResult_HolderCommitmentTransactionDecodeErrorZ_free(long _res);
5943 // uint64_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
5944 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
5945 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
5946 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone(long orig);
5947 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o);
5948 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(long o);
5949 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
5950 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_err(long e);
5951 // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
5952 public static native boolean CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(long o);
5953 // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
5954 public static native void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(long _res);
5955 // uint64_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
5956 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
5957 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
5958 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(long orig);
5959 // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o);
5960 public static native long CResult_TrustedClosingTransactionNoneZ_ok(long o);
5961 // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void);
5962 public static native long CResult_TrustedClosingTransactionNoneZ_err();
5963 // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o);
5964 public static native boolean CResult_TrustedClosingTransactionNoneZ_is_ok(long o);
5965 // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res);
5966 public static native void CResult_TrustedClosingTransactionNoneZ_free(long _res);
5967 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o);
5968 public static native long CResult_CommitmentTransactionDecodeErrorZ_ok(long o);
5969 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
5970 public static native long CResult_CommitmentTransactionDecodeErrorZ_err(long e);
5971 // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
5972 public static native boolean CResult_CommitmentTransactionDecodeErrorZ_is_ok(long o);
5973 // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
5974 public static native void CResult_CommitmentTransactionDecodeErrorZ_free(long _res);
5975 // uint64_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
5976 public static native long CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
5977 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
5978 public static native long CResult_CommitmentTransactionDecodeErrorZ_clone(long orig);
5979 // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
5980 public static native long CResult_TrustedCommitmentTransactionNoneZ_ok(long o);
5981 // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
5982 public static native long CResult_TrustedCommitmentTransactionNoneZ_err();
5983 // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o);
5984 public static native boolean CResult_TrustedCommitmentTransactionNoneZ_is_ok(long o);
5985 // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
5986 public static native void CResult_TrustedCommitmentTransactionNoneZ_free(long _res);
5987 // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_ok(struct LDKCVec_ECDSASignatureZ o);
5988 public static native long CResult_CVec_ECDSASignatureZNoneZ_ok(byte[][] o);
5989 // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_err(void);
5990 public static native long CResult_CVec_ECDSASignatureZNoneZ_err();
5991 // bool CResult_CVec_ECDSASignatureZNoneZ_is_ok(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR o);
5992 public static native boolean CResult_CVec_ECDSASignatureZNoneZ_is_ok(long o);
5993 // void CResult_CVec_ECDSASignatureZNoneZ_free(struct LDKCResult_CVec_ECDSASignatureZNoneZ _res);
5994 public static native void CResult_CVec_ECDSASignatureZNoneZ_free(long _res);
5995 // uint64_t CResult_CVec_ECDSASignatureZNoneZ_clone_ptr(LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR arg);
5996 public static native long CResult_CVec_ECDSASignatureZNoneZ_clone_ptr(long arg);
5997 // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_clone(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR orig);
5998 public static native long CResult_CVec_ECDSASignatureZNoneZ_clone(long orig);
5999 // struct LDKCOption_usizeZ COption_usizeZ_some(uintptr_t o);
6000 public static native long COption_usizeZ_some(long o);
6001 // struct LDKCOption_usizeZ COption_usizeZ_none(void);
6002 public static native long COption_usizeZ_none();
6003 // void COption_usizeZ_free(struct LDKCOption_usizeZ _res);
6004 public static native void COption_usizeZ_free(long _res);
6005 // uint64_t COption_usizeZ_clone_ptr(LDKCOption_usizeZ *NONNULL_PTR arg);
6006 public static native long COption_usizeZ_clone_ptr(long arg);
6007 // struct LDKCOption_usizeZ COption_usizeZ_clone(const struct LDKCOption_usizeZ *NONNULL_PTR orig);
6008 public static native long COption_usizeZ_clone(long orig);
6009 // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o);
6010 public static native long CResult_ShutdownScriptDecodeErrorZ_ok(long o);
6011 // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e);
6012 public static native long CResult_ShutdownScriptDecodeErrorZ_err(long e);
6013 // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o);
6014 public static native boolean CResult_ShutdownScriptDecodeErrorZ_is_ok(long o);
6015 // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res);
6016 public static native void CResult_ShutdownScriptDecodeErrorZ_free(long _res);
6017 // uint64_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg);
6018 public static native long CResult_ShutdownScriptDecodeErrorZ_clone_ptr(long arg);
6019 // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig);
6020 public static native long CResult_ShutdownScriptDecodeErrorZ_clone(long orig);
6021 // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o);
6022 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_ok(long o);
6023 // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e);
6024 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_err(long e);
6025 // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o);
6026 public static native boolean CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(long o);
6027 // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res);
6028 public static native void CResult_ShutdownScriptInvalidShutdownScriptZ_free(long _res);
6029 // uint64_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg);
6030 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(long arg);
6031 // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig);
6032 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_clone(long orig);
6033 // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_ok(struct LDKPaymentPurpose o);
6034 public static native long CResult_PaymentPurposeDecodeErrorZ_ok(long o);
6035 // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_err(struct LDKDecodeError e);
6036 public static native long CResult_PaymentPurposeDecodeErrorZ_err(long e);
6037 // bool CResult_PaymentPurposeDecodeErrorZ_is_ok(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR o);
6038 public static native boolean CResult_PaymentPurposeDecodeErrorZ_is_ok(long o);
6039 // void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDecodeErrorZ _res);
6040 public static native void CResult_PaymentPurposeDecodeErrorZ_free(long _res);
6041 // uint64_t CResult_PaymentPurposeDecodeErrorZ_clone_ptr(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR arg);
6042 public static native long CResult_PaymentPurposeDecodeErrorZ_clone_ptr(long arg);
6043 // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig);
6044 public static native long CResult_PaymentPurposeDecodeErrorZ_clone(long orig);
6045 // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_ok(struct LDKClaimedHTLC o);
6046 public static native long CResult_ClaimedHTLCDecodeErrorZ_ok(long o);
6047 // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
6048 public static native long CResult_ClaimedHTLCDecodeErrorZ_err(long e);
6049 // bool CResult_ClaimedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR o);
6050 public static native boolean CResult_ClaimedHTLCDecodeErrorZ_is_ok(long o);
6051 // void CResult_ClaimedHTLCDecodeErrorZ_free(struct LDKCResult_ClaimedHTLCDecodeErrorZ _res);
6052 public static native void CResult_ClaimedHTLCDecodeErrorZ_free(long _res);
6053 // uint64_t CResult_ClaimedHTLCDecodeErrorZ_clone_ptr(LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR arg);
6054 public static native long CResult_ClaimedHTLCDecodeErrorZ_clone_ptr(long arg);
6055 // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_clone(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR orig);
6056 public static native long CResult_ClaimedHTLCDecodeErrorZ_clone(long orig);
6057 // struct LDKCOption_PathFailureZ COption_PathFailureZ_some(struct LDKPathFailure o);
6058 public static native long COption_PathFailureZ_some(long o);
6059 // struct LDKCOption_PathFailureZ COption_PathFailureZ_none(void);
6060 public static native long COption_PathFailureZ_none();
6061 // void COption_PathFailureZ_free(struct LDKCOption_PathFailureZ _res);
6062 public static native void COption_PathFailureZ_free(long _res);
6063 // uint64_t COption_PathFailureZ_clone_ptr(LDKCOption_PathFailureZ *NONNULL_PTR arg);
6064 public static native long COption_PathFailureZ_clone_ptr(long arg);
6065 // struct LDKCOption_PathFailureZ COption_PathFailureZ_clone(const struct LDKCOption_PathFailureZ *NONNULL_PTR orig);
6066 public static native long COption_PathFailureZ_clone(long orig);
6067 // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_ok(struct LDKCOption_PathFailureZ o);
6068 public static native long CResult_COption_PathFailureZDecodeErrorZ_ok(long o);
6069 // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_err(struct LDKDecodeError e);
6070 public static native long CResult_COption_PathFailureZDecodeErrorZ_err(long e);
6071 // bool CResult_COption_PathFailureZDecodeErrorZ_is_ok(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR o);
6072 public static native boolean CResult_COption_PathFailureZDecodeErrorZ_is_ok(long o);
6073 // void CResult_COption_PathFailureZDecodeErrorZ_free(struct LDKCResult_COption_PathFailureZDecodeErrorZ _res);
6074 public static native void CResult_COption_PathFailureZDecodeErrorZ_free(long _res);
6075 // uint64_t CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR arg);
6076 public static native long CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(long arg);
6077 // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_clone(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR orig);
6078 public static native long CResult_COption_PathFailureZDecodeErrorZ_clone(long orig);
6079 // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o);
6080 public static native long COption_ClosureReasonZ_some(long o);
6081 // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void);
6082 public static native long COption_ClosureReasonZ_none();
6083 // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res);
6084 public static native void COption_ClosureReasonZ_free(long _res);
6085 // uint64_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg);
6086 public static native long COption_ClosureReasonZ_clone_ptr(long arg);
6087 // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig);
6088 public static native long COption_ClosureReasonZ_clone(long orig);
6089 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o);
6090 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_ok(long o);
6091 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e);
6092 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_err(long e);
6093 // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o);
6094 public static native boolean CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(long o);
6095 // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res);
6096 public static native void CResult_COption_ClosureReasonZDecodeErrorZ_free(long _res);
6097 // uint64_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg);
6098 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(long arg);
6099 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig);
6100 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_clone(long orig);
6101 // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_some(struct LDKHTLCDestination o);
6102 public static native long COption_HTLCDestinationZ_some(long o);
6103 // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_none(void);
6104 public static native long COption_HTLCDestinationZ_none();
6105 // void COption_HTLCDestinationZ_free(struct LDKCOption_HTLCDestinationZ _res);
6106 public static native void COption_HTLCDestinationZ_free(long _res);
6107 // uint64_t COption_HTLCDestinationZ_clone_ptr(LDKCOption_HTLCDestinationZ *NONNULL_PTR arg);
6108 public static native long COption_HTLCDestinationZ_clone_ptr(long arg);
6109 // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_clone(const struct LDKCOption_HTLCDestinationZ *NONNULL_PTR orig);
6110 public static native long COption_HTLCDestinationZ_clone(long orig);
6111 // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_ok(struct LDKCOption_HTLCDestinationZ o);
6112 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_ok(long o);
6113 // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_err(struct LDKDecodeError e);
6114 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_err(long e);
6115 // bool CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR o);
6116 public static native boolean CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(long o);
6117 // void CResult_COption_HTLCDestinationZDecodeErrorZ_free(struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ _res);
6118 public static native void CResult_COption_HTLCDestinationZDecodeErrorZ_free(long _res);
6119 // uint64_t CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR arg);
6120 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(long arg);
6121 // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_clone(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR orig);
6122 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_clone(long orig);
6123 // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_ok(enum LDKPaymentFailureReason o);
6124 public static native long CResult_PaymentFailureReasonDecodeErrorZ_ok(PaymentFailureReason o);
6125 // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_err(struct LDKDecodeError e);
6126 public static native long CResult_PaymentFailureReasonDecodeErrorZ_err(long e);
6127 // bool CResult_PaymentFailureReasonDecodeErrorZ_is_ok(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR o);
6128 public static native boolean CResult_PaymentFailureReasonDecodeErrorZ_is_ok(long o);
6129 // void CResult_PaymentFailureReasonDecodeErrorZ_free(struct LDKCResult_PaymentFailureReasonDecodeErrorZ _res);
6130 public static native void CResult_PaymentFailureReasonDecodeErrorZ_free(long _res);
6131 // uint64_t CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR arg);
6132 public static native long CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(long arg);
6133 // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_clone(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR orig);
6134 public static native long CResult_PaymentFailureReasonDecodeErrorZ_clone(long orig);
6135 // struct LDKCOption_U128Z COption_U128Z_some(struct LDKU128 o);
6136 public static native long COption_U128Z_some(byte[] o);
6137 // struct LDKCOption_U128Z COption_U128Z_none(void);
6138 public static native long COption_U128Z_none();
6139 // void COption_U128Z_free(struct LDKCOption_U128Z _res);
6140 public static native void COption_U128Z_free(long _res);
6141 // uint64_t COption_U128Z_clone_ptr(LDKCOption_U128Z *NONNULL_PTR arg);
6142 public static native long COption_U128Z_clone_ptr(long arg);
6143 // struct LDKCOption_U128Z COption_U128Z_clone(const struct LDKCOption_U128Z *NONNULL_PTR orig);
6144 public static native long COption_U128Z_clone(long orig);
6145 // void CVec_ClaimedHTLCZ_free(struct LDKCVec_ClaimedHTLCZ _res);
6146 public static native void CVec_ClaimedHTLCZ_free(long[] _res);
6147 // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_some(enum LDKPaymentFailureReason o);
6148 public static native long COption_PaymentFailureReasonZ_some(PaymentFailureReason o);
6149 // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_none(void);
6150 public static native long COption_PaymentFailureReasonZ_none();
6151 // void COption_PaymentFailureReasonZ_free(struct LDKCOption_PaymentFailureReasonZ _res);
6152 public static native void COption_PaymentFailureReasonZ_free(long _res);
6153 // uint64_t COption_PaymentFailureReasonZ_clone_ptr(LDKCOption_PaymentFailureReasonZ *NONNULL_PTR arg);
6154 public static native long COption_PaymentFailureReasonZ_clone_ptr(long arg);
6155 // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_clone(const struct LDKCOption_PaymentFailureReasonZ *NONNULL_PTR orig);
6156 public static native long COption_PaymentFailureReasonZ_clone(long orig);
6157 // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o);
6158 public static native long COption_EventZ_some(long o);
6159 // struct LDKCOption_EventZ COption_EventZ_none(void);
6160 public static native long COption_EventZ_none();
6161 // void COption_EventZ_free(struct LDKCOption_EventZ _res);
6162 public static native void COption_EventZ_free(long _res);
6163 // uint64_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg);
6164 public static native long COption_EventZ_clone_ptr(long arg);
6165 // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig);
6166 public static native long COption_EventZ_clone(long orig);
6167 // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o);
6168 public static native long CResult_COption_EventZDecodeErrorZ_ok(long o);
6169 // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e);
6170 public static native long CResult_COption_EventZDecodeErrorZ_err(long e);
6171 // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o);
6172 public static native boolean CResult_COption_EventZDecodeErrorZ_is_ok(long o);
6173 // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res);
6174 public static native void CResult_COption_EventZDecodeErrorZ_free(long _res);
6175 // uint64_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg);
6176 public static native long CResult_COption_EventZDecodeErrorZ_clone_ptr(long arg);
6177 // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig);
6178 public static native long CResult_COption_EventZDecodeErrorZ_clone(long orig);
6179 // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_ok(enum LDKSiPrefix o);
6180 public static native long CResult_SiPrefixBolt11ParseErrorZ_ok(SiPrefix o);
6181 // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_err(struct LDKBolt11ParseError e);
6182 public static native long CResult_SiPrefixBolt11ParseErrorZ_err(long e);
6183 // bool CResult_SiPrefixBolt11ParseErrorZ_is_ok(const struct LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR o);
6184 public static native boolean CResult_SiPrefixBolt11ParseErrorZ_is_ok(long o);
6185 // void CResult_SiPrefixBolt11ParseErrorZ_free(struct LDKCResult_SiPrefixBolt11ParseErrorZ _res);
6186 public static native void CResult_SiPrefixBolt11ParseErrorZ_free(long _res);
6187 // uint64_t CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR arg);
6188 public static native long CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(long arg);
6189 // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_clone(const struct LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR orig);
6190 public static native long CResult_SiPrefixBolt11ParseErrorZ_clone(long orig);
6191 // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(struct LDKBolt11Invoice o);
6192 public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(long o);
6193 // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(struct LDKParseOrSemanticError e);
6194 public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(long e);
6195 // bool CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR o);
6196 public static native boolean CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(long o);
6197 // void CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ _res);
6198 public static native void CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(long _res);
6199 // uint64_t CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR arg);
6200 public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(long arg);
6201 // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR orig);
6202 public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(long orig);
6203 // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(struct LDKSignedRawBolt11Invoice o);
6204 public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(long o);
6205 // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(struct LDKBolt11ParseError e);
6206 public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(long e);
6207 // bool CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(const struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR o);
6208 public static native boolean CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(long o);
6209 // void CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ _res);
6210 public static native void CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(long _res);
6211 // uint64_t CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR arg);
6212 public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(long arg);
6213 // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(const struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR orig);
6214 public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(long orig);
6215 // uint64_t C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR arg);
6216 public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(long arg);
6217 // struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR orig);
6218 public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(long orig);
6219 // struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(struct LDKRawBolt11Invoice a, struct LDKThirtyTwoBytes b, struct LDKBolt11InvoiceSignature c);
6220 public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(long a, byte[] b, long c);
6221 // void C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ _res);
6222 public static native void C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(long _res);
6223 // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_ok(struct LDKPayeePubKey o);
6224 public static native long CResult_PayeePubKeySecp256k1ErrorZ_ok(long o);
6225 // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e);
6226 public static native long CResult_PayeePubKeySecp256k1ErrorZ_err(Secp256k1Error e);
6227 // bool CResult_PayeePubKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR o);
6228 public static native boolean CResult_PayeePubKeySecp256k1ErrorZ_is_ok(long o);
6229 // void CResult_PayeePubKeySecp256k1ErrorZ_free(struct LDKCResult_PayeePubKeySecp256k1ErrorZ _res);
6230 public static native void CResult_PayeePubKeySecp256k1ErrorZ_free(long _res);
6231 // uint64_t CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr(LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR arg);
6232 public static native long CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr(long arg);
6233 // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_clone(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR orig);
6234 public static native long CResult_PayeePubKeySecp256k1ErrorZ_clone(long orig);
6235 // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res);
6236 public static native void CVec_PrivateRouteZ_free(long[] _res);
6237 // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o);
6238 public static native long CResult_PositiveTimestampCreationErrorZ_ok(long o);
6239 // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e);
6240 public static native long CResult_PositiveTimestampCreationErrorZ_err(CreationError e);
6241 // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o);
6242 public static native boolean CResult_PositiveTimestampCreationErrorZ_is_ok(long o);
6243 // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res);
6244 public static native void CResult_PositiveTimestampCreationErrorZ_free(long _res);
6245 // uint64_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg);
6246 public static native long CResult_PositiveTimestampCreationErrorZ_clone_ptr(long arg);
6247 // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig);
6248 public static native long CResult_PositiveTimestampCreationErrorZ_clone(long orig);
6249 // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_ok(void);
6250 public static native long CResult_NoneBolt11SemanticErrorZ_ok();
6251 // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_err(enum LDKBolt11SemanticError e);
6252 public static native long CResult_NoneBolt11SemanticErrorZ_err(Bolt11SemanticError e);
6253 // bool CResult_NoneBolt11SemanticErrorZ_is_ok(const struct LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR o);
6254 public static native boolean CResult_NoneBolt11SemanticErrorZ_is_ok(long o);
6255 // void CResult_NoneBolt11SemanticErrorZ_free(struct LDKCResult_NoneBolt11SemanticErrorZ _res);
6256 public static native void CResult_NoneBolt11SemanticErrorZ_free(long _res);
6257 // uint64_t CResult_NoneBolt11SemanticErrorZ_clone_ptr(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR arg);
6258 public static native long CResult_NoneBolt11SemanticErrorZ_clone_ptr(long arg);
6259 // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_clone(const struct LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR orig);
6260 public static native long CResult_NoneBolt11SemanticErrorZ_clone(long orig);
6261 // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(struct LDKBolt11Invoice o);
6262 public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(long o);
6263 // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(enum LDKBolt11SemanticError e);
6264 public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(Bolt11SemanticError e);
6265 // bool CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR o);
6266 public static native boolean CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(long o);
6267 // void CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ _res);
6268 public static native void CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(long _res);
6269 // uint64_t CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR arg);
6270 public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(long arg);
6271 // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR orig);
6272 public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(long orig);
6273 // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o);
6274 public static native long CResult_DescriptionCreationErrorZ_ok(long o);
6275 // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e);
6276 public static native long CResult_DescriptionCreationErrorZ_err(CreationError e);
6277 // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o);
6278 public static native boolean CResult_DescriptionCreationErrorZ_is_ok(long o);
6279 // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res);
6280 public static native void CResult_DescriptionCreationErrorZ_free(long _res);
6281 // uint64_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg);
6282 public static native long CResult_DescriptionCreationErrorZ_clone_ptr(long arg);
6283 // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig);
6284 public static native long CResult_DescriptionCreationErrorZ_clone(long orig);
6285 // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o);
6286 public static native long CResult_PrivateRouteCreationErrorZ_ok(long o);
6287 // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e);
6288 public static native long CResult_PrivateRouteCreationErrorZ_err(CreationError e);
6289 // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o);
6290 public static native boolean CResult_PrivateRouteCreationErrorZ_is_ok(long o);
6291 // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res);
6292 public static native void CResult_PrivateRouteCreationErrorZ_free(long _res);
6293 // uint64_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg);
6294 public static native long CResult_PrivateRouteCreationErrorZ_clone_ptr(long arg);
6295 // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig);
6296 public static native long CResult_PrivateRouteCreationErrorZ_clone(long orig);
6297 // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
6298 public static native long CResult_OutPointDecodeErrorZ_ok(long o);
6299 // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
6300 public static native long CResult_OutPointDecodeErrorZ_err(long e);
6301 // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o);
6302 public static native boolean CResult_OutPointDecodeErrorZ_is_ok(long o);
6303 // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
6304 public static native void CResult_OutPointDecodeErrorZ_free(long _res);
6305 // uint64_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg);
6306 public static native long CResult_OutPointDecodeErrorZ_clone_ptr(long arg);
6307 // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
6308 public static native long CResult_OutPointDecodeErrorZ_clone(long orig);
6309 // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_ok(struct LDKBigSize o);
6310 public static native long CResult_BigSizeDecodeErrorZ_ok(long o);
6311 // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_err(struct LDKDecodeError e);
6312 public static native long CResult_BigSizeDecodeErrorZ_err(long e);
6313 // bool CResult_BigSizeDecodeErrorZ_is_ok(const struct LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR o);
6314 public static native boolean CResult_BigSizeDecodeErrorZ_is_ok(long o);
6315 // void CResult_BigSizeDecodeErrorZ_free(struct LDKCResult_BigSizeDecodeErrorZ _res);
6316 public static native void CResult_BigSizeDecodeErrorZ_free(long _res);
6317 // uint64_t CResult_BigSizeDecodeErrorZ_clone_ptr(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR arg);
6318 public static native long CResult_BigSizeDecodeErrorZ_clone_ptr(long arg);
6319 // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_clone(const struct LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR orig);
6320 public static native long CResult_BigSizeDecodeErrorZ_clone(long orig);
6321 // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_ok(struct LDKHostname o);
6322 public static native long CResult_HostnameDecodeErrorZ_ok(long o);
6323 // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_err(struct LDKDecodeError e);
6324 public static native long CResult_HostnameDecodeErrorZ_err(long e);
6325 // bool CResult_HostnameDecodeErrorZ_is_ok(const struct LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR o);
6326 public static native boolean CResult_HostnameDecodeErrorZ_is_ok(long o);
6327 // void CResult_HostnameDecodeErrorZ_free(struct LDKCResult_HostnameDecodeErrorZ _res);
6328 public static native void CResult_HostnameDecodeErrorZ_free(long _res);
6329 // uint64_t CResult_HostnameDecodeErrorZ_clone_ptr(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR arg);
6330 public static native long CResult_HostnameDecodeErrorZ_clone_ptr(long arg);
6331 // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_clone(const struct LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR orig);
6332 public static native long CResult_HostnameDecodeErrorZ_clone(long orig);
6333 // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_ok(struct LDKTransactionU16LenLimited o);
6334 public static native long CResult_TransactionU16LenLimitedNoneZ_ok(long o);
6335 // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_err(void);
6336 public static native long CResult_TransactionU16LenLimitedNoneZ_err();
6337 // bool CResult_TransactionU16LenLimitedNoneZ_is_ok(const struct LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR o);
6338 public static native boolean CResult_TransactionU16LenLimitedNoneZ_is_ok(long o);
6339 // void CResult_TransactionU16LenLimitedNoneZ_free(struct LDKCResult_TransactionU16LenLimitedNoneZ _res);
6340 public static native void CResult_TransactionU16LenLimitedNoneZ_free(long _res);
6341 // uint64_t CResult_TransactionU16LenLimitedNoneZ_clone_ptr(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR arg);
6342 public static native long CResult_TransactionU16LenLimitedNoneZ_clone_ptr(long arg);
6343 // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_clone(const struct LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR orig);
6344 public static native long CResult_TransactionU16LenLimitedNoneZ_clone(long orig);
6345 // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_ok(struct LDKTransactionU16LenLimited o);
6346 public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_ok(long o);
6347 // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_err(struct LDKDecodeError e);
6348 public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_err(long e);
6349 // bool CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(const struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR o);
6350 public static native boolean CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(long o);
6351 // void CResult_TransactionU16LenLimitedDecodeErrorZ_free(struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ _res);
6352 public static native void CResult_TransactionU16LenLimitedDecodeErrorZ_free(long _res);
6353 // uint64_t CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR arg);
6354 public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(long arg);
6355 // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_clone(const struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR orig);
6356 public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_clone(long orig);
6357 // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_ok(struct LDKUntrustedString o);
6358 public static native long CResult_UntrustedStringDecodeErrorZ_ok(long o);
6359 // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_err(struct LDKDecodeError e);
6360 public static native long CResult_UntrustedStringDecodeErrorZ_err(long e);
6361 // bool CResult_UntrustedStringDecodeErrorZ_is_ok(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR o);
6362 public static native boolean CResult_UntrustedStringDecodeErrorZ_is_ok(long o);
6363 // void CResult_UntrustedStringDecodeErrorZ_free(struct LDKCResult_UntrustedStringDecodeErrorZ _res);
6364 public static native void CResult_UntrustedStringDecodeErrorZ_free(long _res);
6365 // uint64_t CResult_UntrustedStringDecodeErrorZ_clone_ptr(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR arg);
6366 public static native long CResult_UntrustedStringDecodeErrorZ_clone_ptr(long arg);
6367 // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_clone(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR orig);
6368 public static native long CResult_UntrustedStringDecodeErrorZ_clone(long orig);
6369 // uint64_t C2Tuple__u832u16Z_clone_ptr(LDKC2Tuple__u832u16Z *NONNULL_PTR arg);
6370 public static native long C2Tuple__u832u16Z_clone_ptr(long arg);
6371 // struct LDKC2Tuple__u832u16Z C2Tuple__u832u16Z_clone(const struct LDKC2Tuple__u832u16Z *NONNULL_PTR orig);
6372 public static native long C2Tuple__u832u16Z_clone(long orig);
6373 // struct LDKC2Tuple__u832u16Z C2Tuple__u832u16Z_new(struct LDKThirtyTwoBytes a, uint16_t b);
6374 public static native long C2Tuple__u832u16Z_new(byte[] a, short b);
6375 // void C2Tuple__u832u16Z_free(struct LDKC2Tuple__u832u16Z _res);
6376 public static native void C2Tuple__u832u16Z_free(long _res);
6377 // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_ok(struct LDKPaymentRelay o);
6378 public static native long CResult_PaymentRelayDecodeErrorZ_ok(long o);
6379 // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_err(struct LDKDecodeError e);
6380 public static native long CResult_PaymentRelayDecodeErrorZ_err(long e);
6381 // bool CResult_PaymentRelayDecodeErrorZ_is_ok(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR o);
6382 public static native boolean CResult_PaymentRelayDecodeErrorZ_is_ok(long o);
6383 // void CResult_PaymentRelayDecodeErrorZ_free(struct LDKCResult_PaymentRelayDecodeErrorZ _res);
6384 public static native void CResult_PaymentRelayDecodeErrorZ_free(long _res);
6385 // uint64_t CResult_PaymentRelayDecodeErrorZ_clone_ptr(LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR arg);
6386 public static native long CResult_PaymentRelayDecodeErrorZ_clone_ptr(long arg);
6387 // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_clone(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR orig);
6388 public static native long CResult_PaymentRelayDecodeErrorZ_clone(long orig);
6389 // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_ok(struct LDKPaymentConstraints o);
6390 public static native long CResult_PaymentConstraintsDecodeErrorZ_ok(long o);
6391 // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_err(struct LDKDecodeError e);
6392 public static native long CResult_PaymentConstraintsDecodeErrorZ_err(long e);
6393 // bool CResult_PaymentConstraintsDecodeErrorZ_is_ok(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR o);
6394 public static native boolean CResult_PaymentConstraintsDecodeErrorZ_is_ok(long o);
6395 // void CResult_PaymentConstraintsDecodeErrorZ_free(struct LDKCResult_PaymentConstraintsDecodeErrorZ _res);
6396 public static native void CResult_PaymentConstraintsDecodeErrorZ_free(long _res);
6397 // uint64_t CResult_PaymentConstraintsDecodeErrorZ_clone_ptr(LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR arg);
6398 public static native long CResult_PaymentConstraintsDecodeErrorZ_clone_ptr(long arg);
6399 // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_clone(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR orig);
6400 public static native long CResult_PaymentConstraintsDecodeErrorZ_clone(long orig);
6401 // uint64_t C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone_ptr(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR arg);
6402 public static native long C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone_ptr(long arg);
6403 // struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone(const struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR orig);
6404 public static native long C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone(long orig);
6405 // struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_new(struct LDKThirtyTwoBytes a, struct LDKRecipientOnionFields b, struct LDKRouteParameters c);
6406 public static native long C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_new(byte[] a, long b, long c);
6407 // void C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_free(struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ _res);
6408 public static native void C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_free(long _res);
6409 // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_ok(struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ o);
6410 public static native long CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_ok(long o);
6411 // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_err(void);
6412 public static native long CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_err();
6413 // bool CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_is_ok(const struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR o);
6414 public static native boolean CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_is_ok(long o);
6415 // void CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_free(struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ _res);
6416 public static native void CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_free(long _res);
6417 // uint64_t CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone_ptr(LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR arg);
6418 public static native long CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone_ptr(long arg);
6419 // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone(const struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR orig);
6420 public static native long CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone(long orig);
6421 // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_ok(struct LDKStr o);
6422 public static native long CResult_StrSecp256k1ErrorZ_ok(String o);
6423 // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_err(enum LDKSecp256k1Error e);
6424 public static native long CResult_StrSecp256k1ErrorZ_err(Secp256k1Error e);
6425 // bool CResult_StrSecp256k1ErrorZ_is_ok(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR o);
6426 public static native boolean CResult_StrSecp256k1ErrorZ_is_ok(long o);
6427 // void CResult_StrSecp256k1ErrorZ_free(struct LDKCResult_StrSecp256k1ErrorZ _res);
6428 public static native void CResult_StrSecp256k1ErrorZ_free(long _res);
6429 // uint64_t CResult_StrSecp256k1ErrorZ_clone_ptr(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR arg);
6430 public static native long CResult_StrSecp256k1ErrorZ_clone_ptr(long arg);
6431 // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_clone(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR orig);
6432 public static native long CResult_StrSecp256k1ErrorZ_clone(long orig);
6433 // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_ok(struct LDKTxOut o);
6434 public static native long CResult_TxOutUtxoLookupErrorZ_ok(long o);
6435 // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_err(enum LDKUtxoLookupError e);
6436 public static native long CResult_TxOutUtxoLookupErrorZ_err(UtxoLookupError e);
6437 // bool CResult_TxOutUtxoLookupErrorZ_is_ok(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR o);
6438 public static native boolean CResult_TxOutUtxoLookupErrorZ_is_ok(long o);
6439 // void CResult_TxOutUtxoLookupErrorZ_free(struct LDKCResult_TxOutUtxoLookupErrorZ _res);
6440 public static native void CResult_TxOutUtxoLookupErrorZ_free(long _res);
6441 // uint64_t CResult_TxOutUtxoLookupErrorZ_clone_ptr(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR arg);
6442 public static native long CResult_TxOutUtxoLookupErrorZ_clone_ptr(long arg);
6443 // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_clone(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR orig);
6444 public static native long CResult_TxOutUtxoLookupErrorZ_clone(long orig);
6445 // uint64_t C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone_ptr(LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR arg);
6446 public static native long C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone_ptr(long arg);
6447 // struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone(const struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR orig);
6448 public static native long C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone(long orig);
6449 // struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_new(struct LDKPublicKey a, struct LDKOnionMessage b, struct LDKCOption_CVec_SocketAddressZZ c);
6450 public static native long C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_new(byte[] a, long b, long c);
6451 // void C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_free(struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ _res);
6452 public static native void C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_free(long _res);
6453 // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_ok(struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ o);
6454 public static native long CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_ok(long o);
6455 // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_err(struct LDKSendError e);
6456 public static native long CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_err(long e);
6457 // bool CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_is_ok(const struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ *NONNULL_PTR o);
6458 public static native boolean CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_is_ok(long o);
6459 // void CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_free(struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ _res);
6460 public static native void CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_free(long _res);
6461 // struct LDKCResult_PeeledOnionNoneZ CResult_PeeledOnionNoneZ_ok(struct LDKPeeledOnion o);
6462 public static native long CResult_PeeledOnionNoneZ_ok(long o);
6463 // struct LDKCResult_PeeledOnionNoneZ CResult_PeeledOnionNoneZ_err(void);
6464 public static native long CResult_PeeledOnionNoneZ_err();
6465 // bool CResult_PeeledOnionNoneZ_is_ok(const struct LDKCResult_PeeledOnionNoneZ *NONNULL_PTR o);
6466 public static native boolean CResult_PeeledOnionNoneZ_is_ok(long o);
6467 // void CResult_PeeledOnionNoneZ_free(struct LDKCResult_PeeledOnionNoneZ _res);
6468 public static native void CResult_PeeledOnionNoneZ_free(long _res);
6469 // struct LDKCResult_SendSuccessSendErrorZ CResult_SendSuccessSendErrorZ_ok(struct LDKSendSuccess o);
6470 public static native long CResult_SendSuccessSendErrorZ_ok(long o);
6471 // struct LDKCResult_SendSuccessSendErrorZ CResult_SendSuccessSendErrorZ_err(struct LDKSendError e);
6472 public static native long CResult_SendSuccessSendErrorZ_err(long e);
6473 // bool CResult_SendSuccessSendErrorZ_is_ok(const struct LDKCResult_SendSuccessSendErrorZ *NONNULL_PTR o);
6474 public static native boolean CResult_SendSuccessSendErrorZ_is_ok(long o);
6475 // void CResult_SendSuccessSendErrorZ_free(struct LDKCResult_SendSuccessSendErrorZ _res);
6476 public static native void CResult_SendSuccessSendErrorZ_free(long _res);
6477 // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_ok(struct LDKBlindedPath o);
6478 public static native long CResult_BlindedPathNoneZ_ok(long o);
6479 // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_err(void);
6480 public static native long CResult_BlindedPathNoneZ_err();
6481 // bool CResult_BlindedPathNoneZ_is_ok(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR o);
6482 public static native boolean CResult_BlindedPathNoneZ_is_ok(long o);
6483 // void CResult_BlindedPathNoneZ_free(struct LDKCResult_BlindedPathNoneZ _res);
6484 public static native void CResult_BlindedPathNoneZ_free(long _res);
6485 // uint64_t CResult_BlindedPathNoneZ_clone_ptr(LDKCResult_BlindedPathNoneZ *NONNULL_PTR arg);
6486 public static native long CResult_BlindedPathNoneZ_clone_ptr(long arg);
6487 // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_clone(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR orig);
6488 public static native long CResult_BlindedPathNoneZ_clone(long orig);
6489 // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(struct LDKC2Tuple_BlindedPayInfoBlindedPathZ o);
6490 public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(long o);
6491 // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err(void);
6492 public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err();
6493 // bool CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR o);
6494 public static native boolean CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(long o);
6495 // void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ _res);
6496 public static native void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(long _res);
6497 // uint64_t CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr(LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR arg);
6498 public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr(long arg);
6499 // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR orig);
6500 public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(long orig);
6501 // void CVec_ForwardNodeZ_free(struct LDKCVec_ForwardNodeZ _res);
6502 public static native void CVec_ForwardNodeZ_free(long[] _res);
6503 // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_ok(struct LDKBlindedPath o);
6504 public static native long CResult_BlindedPathDecodeErrorZ_ok(long o);
6505 // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_err(struct LDKDecodeError e);
6506 public static native long CResult_BlindedPathDecodeErrorZ_err(long e);
6507 // bool CResult_BlindedPathDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR o);
6508 public static native boolean CResult_BlindedPathDecodeErrorZ_is_ok(long o);
6509 // void CResult_BlindedPathDecodeErrorZ_free(struct LDKCResult_BlindedPathDecodeErrorZ _res);
6510 public static native void CResult_BlindedPathDecodeErrorZ_free(long _res);
6511 // uint64_t CResult_BlindedPathDecodeErrorZ_clone_ptr(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR arg);
6512 public static native long CResult_BlindedPathDecodeErrorZ_clone_ptr(long arg);
6513 // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_clone(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR orig);
6514 public static native long CResult_BlindedPathDecodeErrorZ_clone(long orig);
6515 // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_ok(struct LDKBlindedHop o);
6516 public static native long CResult_BlindedHopDecodeErrorZ_ok(long o);
6517 // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_err(struct LDKDecodeError e);
6518 public static native long CResult_BlindedHopDecodeErrorZ_err(long e);
6519 // bool CResult_BlindedHopDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR o);
6520 public static native boolean CResult_BlindedHopDecodeErrorZ_is_ok(long o);
6521 // void CResult_BlindedHopDecodeErrorZ_free(struct LDKCResult_BlindedHopDecodeErrorZ _res);
6522 public static native void CResult_BlindedHopDecodeErrorZ_free(long _res);
6523 // uint64_t CResult_BlindedHopDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR arg);
6524 public static native long CResult_BlindedHopDecodeErrorZ_clone_ptr(long arg);
6525 // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_clone(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR orig);
6526 public static native long CResult_BlindedHopDecodeErrorZ_clone(long orig);
6527 // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_ok(struct LDKInvoiceError o);
6528 public static native long CResult_InvoiceErrorDecodeErrorZ_ok(long o);
6529 // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_err(struct LDKDecodeError e);
6530 public static native long CResult_InvoiceErrorDecodeErrorZ_err(long e);
6531 // bool CResult_InvoiceErrorDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR o);
6532 public static native boolean CResult_InvoiceErrorDecodeErrorZ_is_ok(long o);
6533 // void CResult_InvoiceErrorDecodeErrorZ_free(struct LDKCResult_InvoiceErrorDecodeErrorZ _res);
6534 public static native void CResult_InvoiceErrorDecodeErrorZ_free(long _res);
6535 // uint64_t CResult_InvoiceErrorDecodeErrorZ_clone_ptr(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR arg);
6536 public static native long CResult_InvoiceErrorDecodeErrorZ_clone_ptr(long arg);
6537 // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_clone(const struct LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR orig);
6538 public static native long CResult_InvoiceErrorDecodeErrorZ_clone(long orig);
6539 // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ CResult_DelayedPaymentBasepointDecodeErrorZ_ok(struct LDKDelayedPaymentBasepoint o);
6540 public static native long CResult_DelayedPaymentBasepointDecodeErrorZ_ok(long o);
6541 // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ CResult_DelayedPaymentBasepointDecodeErrorZ_err(struct LDKDecodeError e);
6542 public static native long CResult_DelayedPaymentBasepointDecodeErrorZ_err(long e);
6543 // bool CResult_DelayedPaymentBasepointDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR o);
6544 public static native boolean CResult_DelayedPaymentBasepointDecodeErrorZ_is_ok(long o);
6545 // void CResult_DelayedPaymentBasepointDecodeErrorZ_free(struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ _res);
6546 public static native void CResult_DelayedPaymentBasepointDecodeErrorZ_free(long _res);
6547 // uint64_t CResult_DelayedPaymentBasepointDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR arg);
6548 public static native long CResult_DelayedPaymentBasepointDecodeErrorZ_clone_ptr(long arg);
6549 // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ CResult_DelayedPaymentBasepointDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR orig);
6550 public static native long CResult_DelayedPaymentBasepointDecodeErrorZ_clone(long orig);
6551 // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ CResult_DelayedPaymentKeyDecodeErrorZ_ok(struct LDKDelayedPaymentKey o);
6552 public static native long CResult_DelayedPaymentKeyDecodeErrorZ_ok(long o);
6553 // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ CResult_DelayedPaymentKeyDecodeErrorZ_err(struct LDKDecodeError e);
6554 public static native long CResult_DelayedPaymentKeyDecodeErrorZ_err(long e);
6555 // bool CResult_DelayedPaymentKeyDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR o);
6556 public static native boolean CResult_DelayedPaymentKeyDecodeErrorZ_is_ok(long o);
6557 // void CResult_DelayedPaymentKeyDecodeErrorZ_free(struct LDKCResult_DelayedPaymentKeyDecodeErrorZ _res);
6558 public static native void CResult_DelayedPaymentKeyDecodeErrorZ_free(long _res);
6559 // uint64_t CResult_DelayedPaymentKeyDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR arg);
6560 public static native long CResult_DelayedPaymentKeyDecodeErrorZ_clone_ptr(long arg);
6561 // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ CResult_DelayedPaymentKeyDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR orig);
6562 public static native long CResult_DelayedPaymentKeyDecodeErrorZ_clone(long orig);
6563 // struct LDKCResult_HtlcBasepointDecodeErrorZ CResult_HtlcBasepointDecodeErrorZ_ok(struct LDKHtlcBasepoint o);
6564 public static native long CResult_HtlcBasepointDecodeErrorZ_ok(long o);
6565 // struct LDKCResult_HtlcBasepointDecodeErrorZ CResult_HtlcBasepointDecodeErrorZ_err(struct LDKDecodeError e);
6566 public static native long CResult_HtlcBasepointDecodeErrorZ_err(long e);
6567 // bool CResult_HtlcBasepointDecodeErrorZ_is_ok(const struct LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR o);
6568 public static native boolean CResult_HtlcBasepointDecodeErrorZ_is_ok(long o);
6569 // void CResult_HtlcBasepointDecodeErrorZ_free(struct LDKCResult_HtlcBasepointDecodeErrorZ _res);
6570 public static native void CResult_HtlcBasepointDecodeErrorZ_free(long _res);
6571 // uint64_t CResult_HtlcBasepointDecodeErrorZ_clone_ptr(LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR arg);
6572 public static native long CResult_HtlcBasepointDecodeErrorZ_clone_ptr(long arg);
6573 // struct LDKCResult_HtlcBasepointDecodeErrorZ CResult_HtlcBasepointDecodeErrorZ_clone(const struct LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR orig);
6574 public static native long CResult_HtlcBasepointDecodeErrorZ_clone(long orig);
6575 // struct LDKCResult_HtlcKeyDecodeErrorZ CResult_HtlcKeyDecodeErrorZ_ok(struct LDKHtlcKey o);
6576 public static native long CResult_HtlcKeyDecodeErrorZ_ok(long o);
6577 // struct LDKCResult_HtlcKeyDecodeErrorZ CResult_HtlcKeyDecodeErrorZ_err(struct LDKDecodeError e);
6578 public static native long CResult_HtlcKeyDecodeErrorZ_err(long e);
6579 // bool CResult_HtlcKeyDecodeErrorZ_is_ok(const struct LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR o);
6580 public static native boolean CResult_HtlcKeyDecodeErrorZ_is_ok(long o);
6581 // void CResult_HtlcKeyDecodeErrorZ_free(struct LDKCResult_HtlcKeyDecodeErrorZ _res);
6582 public static native void CResult_HtlcKeyDecodeErrorZ_free(long _res);
6583 // uint64_t CResult_HtlcKeyDecodeErrorZ_clone_ptr(LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR arg);
6584 public static native long CResult_HtlcKeyDecodeErrorZ_clone_ptr(long arg);
6585 // struct LDKCResult_HtlcKeyDecodeErrorZ CResult_HtlcKeyDecodeErrorZ_clone(const struct LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR orig);
6586 public static native long CResult_HtlcKeyDecodeErrorZ_clone(long orig);
6587 // struct LDKCResult_RevocationBasepointDecodeErrorZ CResult_RevocationBasepointDecodeErrorZ_ok(struct LDKRevocationBasepoint o);
6588 public static native long CResult_RevocationBasepointDecodeErrorZ_ok(long o);
6589 // struct LDKCResult_RevocationBasepointDecodeErrorZ CResult_RevocationBasepointDecodeErrorZ_err(struct LDKDecodeError e);
6590 public static native long CResult_RevocationBasepointDecodeErrorZ_err(long e);
6591 // bool CResult_RevocationBasepointDecodeErrorZ_is_ok(const struct LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR o);
6592 public static native boolean CResult_RevocationBasepointDecodeErrorZ_is_ok(long o);
6593 // void CResult_RevocationBasepointDecodeErrorZ_free(struct LDKCResult_RevocationBasepointDecodeErrorZ _res);
6594 public static native void CResult_RevocationBasepointDecodeErrorZ_free(long _res);
6595 // uint64_t CResult_RevocationBasepointDecodeErrorZ_clone_ptr(LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR arg);
6596 public static native long CResult_RevocationBasepointDecodeErrorZ_clone_ptr(long arg);
6597 // struct LDKCResult_RevocationBasepointDecodeErrorZ CResult_RevocationBasepointDecodeErrorZ_clone(const struct LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR orig);
6598 public static native long CResult_RevocationBasepointDecodeErrorZ_clone(long orig);
6599 // struct LDKCResult_RevocationKeyDecodeErrorZ CResult_RevocationKeyDecodeErrorZ_ok(struct LDKRevocationKey o);
6600 public static native long CResult_RevocationKeyDecodeErrorZ_ok(long o);
6601 // struct LDKCResult_RevocationKeyDecodeErrorZ CResult_RevocationKeyDecodeErrorZ_err(struct LDKDecodeError e);
6602 public static native long CResult_RevocationKeyDecodeErrorZ_err(long e);
6603 // bool CResult_RevocationKeyDecodeErrorZ_is_ok(const struct LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR o);
6604 public static native boolean CResult_RevocationKeyDecodeErrorZ_is_ok(long o);
6605 // void CResult_RevocationKeyDecodeErrorZ_free(struct LDKCResult_RevocationKeyDecodeErrorZ _res);
6606 public static native void CResult_RevocationKeyDecodeErrorZ_free(long _res);
6607 // uint64_t CResult_RevocationKeyDecodeErrorZ_clone_ptr(LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR arg);
6608 public static native long CResult_RevocationKeyDecodeErrorZ_clone_ptr(long arg);
6609 // struct LDKCResult_RevocationKeyDecodeErrorZ CResult_RevocationKeyDecodeErrorZ_clone(const struct LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR orig);
6610 public static native long CResult_RevocationKeyDecodeErrorZ_clone(long orig);
6611 // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o);
6612 public static native long COption_FilterZ_some(long o);
6613 // struct LDKCOption_FilterZ COption_FilterZ_none(void);
6614 public static native long COption_FilterZ_none();
6615 // void COption_FilterZ_free(struct LDKCOption_FilterZ _res);
6616 public static native void COption_FilterZ_free(long _res);
6617 // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o);
6618 public static native long CResult_LockedChannelMonitorNoneZ_ok(long o);
6619 // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void);
6620 public static native long CResult_LockedChannelMonitorNoneZ_err();
6621 // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o);
6622 public static native boolean CResult_LockedChannelMonitorNoneZ_is_ok(long o);
6623 // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res);
6624 public static native void CResult_LockedChannelMonitorNoneZ_free(long _res);
6625 // void CVec_OutPointZ_free(struct LDKCVec_OutPointZ _res);
6626 public static native void CVec_OutPointZ_free(long[] _res);
6627 // void CVec_MonitorUpdateIdZ_free(struct LDKCVec_MonitorUpdateIdZ _res);
6628 public static native void CVec_MonitorUpdateIdZ_free(long[] _res);
6629 // uint64_t C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR arg);
6630 public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(long arg);
6631 // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(const struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR orig);
6632 public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(long orig);
6633 // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorUpdateIdZ b);
6634 public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(long a, long[] b);
6635 // void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ _res);
6636 public static native void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(long _res);
6637 // void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ _res);
6638 public static native void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(long[] _res);
6639 // void APIError_free(struct LDKAPIError this_ptr);
6640 public static native void APIError_free(long this_ptr);
6641 // uint64_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg);
6642 public static native long APIError_clone_ptr(long arg);
6643 // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
6644 public static native long APIError_clone(long orig);
6645 // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err);
6646 public static native long APIError_apimisuse_error(String err);
6647 // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate);
6648 public static native long APIError_fee_rate_too_high(String err, int feerate);
6649 // struct LDKAPIError APIError_invalid_route(struct LDKStr err);
6650 public static native long APIError_invalid_route(String err);
6651 // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err);
6652 public static native long APIError_channel_unavailable(String err);
6653 // struct LDKAPIError APIError_monitor_update_in_progress(void);
6654 public static native long APIError_monitor_update_in_progress();
6655 // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script);
6656 public static native long APIError_incompatible_shutdown_script(long script);
6657 // bool APIError_eq(const struct LDKAPIError *NONNULL_PTR a, const struct LDKAPIError *NONNULL_PTR b);
6658 public static native boolean APIError_eq(long a, long b);
6659 // struct LDKCVec_u8Z APIError_write(const struct LDKAPIError *NONNULL_PTR obj);
6660 public static native byte[] APIError_write(long obj);
6661 // struct LDKCResult_COption_APIErrorZDecodeErrorZ APIError_read(struct LDKu8slice ser);
6662 public static native long APIError_read(byte[] ser);
6663 // void BigSize_free(struct LDKBigSize this_obj);
6664 public static native void BigSize_free(long this_obj);
6665 // uint64_t BigSize_get_a(const struct LDKBigSize *NONNULL_PTR this_ptr);
6666 public static native long BigSize_get_a(long this_ptr);
6667 // void BigSize_set_a(struct LDKBigSize *NONNULL_PTR this_ptr, uint64_t val);
6668 public static native void BigSize_set_a(long this_ptr, long val);
6669 // MUST_USE_RES struct LDKBigSize BigSize_new(uint64_t a_arg);
6670 public static native long BigSize_new(long a_arg);
6671 // uint64_t BigSize_clone_ptr(LDKBigSize *NONNULL_PTR arg);
6672 public static native long BigSize_clone_ptr(long arg);
6673 // struct LDKBigSize BigSize_clone(const struct LDKBigSize *NONNULL_PTR orig);
6674 public static native long BigSize_clone(long orig);
6675 // uint64_t BigSize_hash(const struct LDKBigSize *NONNULL_PTR o);
6676 public static native long BigSize_hash(long o);
6677 // bool BigSize_eq(const struct LDKBigSize *NONNULL_PTR a, const struct LDKBigSize *NONNULL_PTR b);
6678 public static native boolean BigSize_eq(long a, long b);
6679 // struct LDKCVec_u8Z BigSize_write(const struct LDKBigSize *NONNULL_PTR obj);
6680 public static native byte[] BigSize_write(long obj);
6681 // struct LDKCResult_BigSizeDecodeErrorZ BigSize_read(struct LDKu8slice ser);
6682 public static native long BigSize_read(byte[] ser);
6683 // void Hostname_free(struct LDKHostname this_obj);
6684 public static native void Hostname_free(long this_obj);
6685 // uint64_t Hostname_clone_ptr(LDKHostname *NONNULL_PTR arg);
6686 public static native long Hostname_clone_ptr(long arg);
6687 // struct LDKHostname Hostname_clone(const struct LDKHostname *NONNULL_PTR orig);
6688 public static native long Hostname_clone(long orig);
6689 // uint64_t Hostname_hash(const struct LDKHostname *NONNULL_PTR o);
6690 public static native long Hostname_hash(long o);
6691 // bool Hostname_eq(const struct LDKHostname *NONNULL_PTR a, const struct LDKHostname *NONNULL_PTR b);
6692 public static native boolean Hostname_eq(long a, long b);
6693 // MUST_USE_RES uint8_t Hostname_len(const struct LDKHostname *NONNULL_PTR this_arg);
6694 public static native byte Hostname_len(long this_arg);
6695 // struct LDKCVec_u8Z Hostname_write(const struct LDKHostname *NONNULL_PTR obj);
6696 public static native byte[] Hostname_write(long obj);
6697 // struct LDKCResult_HostnameDecodeErrorZ Hostname_read(struct LDKu8slice ser);
6698 public static native long Hostname_read(byte[] ser);
6699 // void TransactionU16LenLimited_free(struct LDKTransactionU16LenLimited this_obj);
6700 public static native void TransactionU16LenLimited_free(long this_obj);
6701 // uint64_t TransactionU16LenLimited_clone_ptr(LDKTransactionU16LenLimited *NONNULL_PTR arg);
6702 public static native long TransactionU16LenLimited_clone_ptr(long arg);
6703 // struct LDKTransactionU16LenLimited TransactionU16LenLimited_clone(const struct LDKTransactionU16LenLimited *NONNULL_PTR orig);
6704 public static native long TransactionU16LenLimited_clone(long orig);
6705 // uint64_t TransactionU16LenLimited_hash(const struct LDKTransactionU16LenLimited *NONNULL_PTR o);
6706 public static native long TransactionU16LenLimited_hash(long o);
6707 // bool TransactionU16LenLimited_eq(const struct LDKTransactionU16LenLimited *NONNULL_PTR a, const struct LDKTransactionU16LenLimited *NONNULL_PTR b);
6708 public static native boolean TransactionU16LenLimited_eq(long a, long b);
6709 // MUST_USE_RES struct LDKCResult_TransactionU16LenLimitedNoneZ TransactionU16LenLimited_new(struct LDKTransaction transaction);
6710 public static native long TransactionU16LenLimited_new(byte[] transaction);
6711 // MUST_USE_RES struct LDKTransaction TransactionU16LenLimited_into_transaction(struct LDKTransactionU16LenLimited this_arg);
6712 public static native byte[] TransactionU16LenLimited_into_transaction(long this_arg);
6713 // struct LDKCVec_u8Z TransactionU16LenLimited_write(const struct LDKTransactionU16LenLimited *NONNULL_PTR obj);
6714 public static native byte[] TransactionU16LenLimited_write(long obj);
6715 // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ TransactionU16LenLimited_read(struct LDKu8slice ser);
6716 public static native long TransactionU16LenLimited_read(byte[] ser);
6717 // struct LDKCResult_StrSecp256k1ErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]);
6718 public static native long sign(byte[] msg, byte[] sk);
6719 // struct LDKCResult_PublicKeySecp256k1ErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig);
6720 public static native long recover_pk(byte[] msg, String sig);
6721 // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk);
6722 public static native boolean verify(byte[] msg, String sig, byte[] pk);
6723 // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z data_without_signature);
6724 public static native byte[] construct_invoice_preimage(byte[] hrp_bytes, byte[] data_without_signature);
6725 // void KVStore_free(struct LDKKVStore this_ptr);
6726 public static native void KVStore_free(long this_ptr);
6727 // void Persister_free(struct LDKPersister this_ptr);
6728 public static native void Persister_free(long this_ptr);
6729 // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ read_channel_monitors(struct LDKKVStore kv_store, struct LDKEntropySource entropy_source, struct LDKSignerProvider signer_provider);
6730 public static native long read_channel_monitors(long kv_store, long entropy_source, long signer_provider);
6731 // void MonitorUpdatingPersister_free(struct LDKMonitorUpdatingPersister this_obj);
6732 public static native void MonitorUpdatingPersister_free(long this_obj);
6733 // 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);
6734 public static native long MonitorUpdatingPersister_new(long kv_store, long logger, long maximum_pending_updates, long entropy_source, long signer_provider);
6735 // 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);
6736 public static native long MonitorUpdatingPersister_read_all_channel_monitors_with_updates(long this_arg, long broadcaster, long fee_estimator);
6737 // 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);
6738 public static native long MonitorUpdatingPersister_read_channel_monitor_with_updates(long this_arg, long broadcaster, long fee_estimator, String monitor_key);
6739 // MUST_USE_RES struct LDKCResult_NoneIOErrorZ MonitorUpdatingPersister_cleanup_stale_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, bool lazy);
6740 public static native long MonitorUpdatingPersister_cleanup_stale_updates(long this_arg, boolean lazy);
6741 // struct LDKPersist MonitorUpdatingPersister_as_Persist(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg);
6742 public static native long MonitorUpdatingPersister_as_Persist(long this_arg);
6743 // void UntrustedString_free(struct LDKUntrustedString this_obj);
6744 public static native void UntrustedString_free(long this_obj);
6745 // struct LDKStr UntrustedString_get_a(const struct LDKUntrustedString *NONNULL_PTR this_ptr);
6746 public static native String UntrustedString_get_a(long this_ptr);
6747 // void UntrustedString_set_a(struct LDKUntrustedString *NONNULL_PTR this_ptr, struct LDKStr val);
6748 public static native void UntrustedString_set_a(long this_ptr, String val);
6749 // MUST_USE_RES struct LDKUntrustedString UntrustedString_new(struct LDKStr a_arg);
6750 public static native long UntrustedString_new(String a_arg);
6751 // uint64_t UntrustedString_clone_ptr(LDKUntrustedString *NONNULL_PTR arg);
6752 public static native long UntrustedString_clone_ptr(long arg);
6753 // struct LDKUntrustedString UntrustedString_clone(const struct LDKUntrustedString *NONNULL_PTR orig);
6754 public static native long UntrustedString_clone(long orig);
6755 // bool UntrustedString_eq(const struct LDKUntrustedString *NONNULL_PTR a, const struct LDKUntrustedString *NONNULL_PTR b);
6756 public static native boolean UntrustedString_eq(long a, long b);
6757 // uint64_t UntrustedString_hash(const struct LDKUntrustedString *NONNULL_PTR o);
6758 public static native long UntrustedString_hash(long o);
6759 // struct LDKCVec_u8Z UntrustedString_write(const struct LDKUntrustedString *NONNULL_PTR obj);
6760 public static native byte[] UntrustedString_write(long obj);
6761 // struct LDKCResult_UntrustedStringDecodeErrorZ UntrustedString_read(struct LDKu8slice ser);
6762 public static native long UntrustedString_read(byte[] ser);
6763 // void PrintableString_free(struct LDKPrintableString this_obj);
6764 public static native void PrintableString_free(long this_obj);
6765 // struct LDKStr PrintableString_get_a(const struct LDKPrintableString *NONNULL_PTR this_ptr);
6766 public static native String PrintableString_get_a(long this_ptr);
6767 // void PrintableString_set_a(struct LDKPrintableString *NONNULL_PTR this_ptr, struct LDKStr val);
6768 public static native void PrintableString_set_a(long this_ptr, String val);
6769 // MUST_USE_RES struct LDKPrintableString PrintableString_new(struct LDKStr a_arg);
6770 public static native long PrintableString_new(String a_arg);
6771 // void FutureCallback_free(struct LDKFutureCallback this_ptr);
6772 public static native void FutureCallback_free(long this_ptr);
6773 // void Future_free(struct LDKFuture this_obj);
6774 public static native void Future_free(long this_obj);
6775 // uint64_t Future_clone_ptr(LDKFuture *NONNULL_PTR arg);
6776 public static native long Future_clone_ptr(long arg);
6777 // struct LDKFuture Future_clone(const struct LDKFuture *NONNULL_PTR orig);
6778 public static native long Future_clone(long orig);
6779 // void Future_register_callback_fn(const struct LDKFuture *NONNULL_PTR this_arg, struct LDKFutureCallback callback);
6780 public static native void Future_register_callback_fn(long this_arg, long callback);
6781 // void Future_wait(struct LDKFuture this_arg);
6782 public static native void Future_wait(long this_arg);
6783 // MUST_USE_RES bool Future_wait_timeout(struct LDKFuture this_arg, uint64_t max_wait);
6784 public static native boolean Future_wait_timeout(long this_arg, long max_wait);
6785 // void Sleeper_free(struct LDKSleeper this_obj);
6786 public static native void Sleeper_free(long this_obj);
6787 // MUST_USE_RES struct LDKSleeper Sleeper_from_single_future(struct LDKFuture future);
6788 public static native long Sleeper_from_single_future(long future);
6789 // MUST_USE_RES struct LDKSleeper Sleeper_from_two_futures(struct LDKFuture fut_a, struct LDKFuture fut_b);
6790 public static native long Sleeper_from_two_futures(long fut_a, long fut_b);
6791 // MUST_USE_RES struct LDKSleeper Sleeper_new(struct LDKCVec_FutureZ futures);
6792 public static native long Sleeper_new(long[] futures);
6793 // void Sleeper_wait(const struct LDKSleeper *NONNULL_PTR this_arg);
6794 public static native void Sleeper_wait(long this_arg);
6795 // MUST_USE_RES bool Sleeper_wait_timeout(const struct LDKSleeper *NONNULL_PTR this_arg, uint64_t max_wait);
6796 public static native boolean Sleeper_wait_timeout(long this_arg, long max_wait);
6797 // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
6798 public static native Level Level_clone(long orig);
6799 // enum LDKLevel Level_gossip(void);
6800 public static native Level Level_gossip();
6801 // enum LDKLevel Level_trace(void);
6802 public static native Level Level_trace();
6803 // enum LDKLevel Level_debug(void);
6804 public static native Level Level_debug();
6805 // enum LDKLevel Level_info(void);
6806 public static native Level Level_info();
6807 // enum LDKLevel Level_warn(void);
6808 public static native Level Level_warn();
6809 // enum LDKLevel Level_error(void);
6810 public static native Level Level_error();
6811 // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b);
6812 public static native boolean Level_eq(long a, long b);
6813 // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o);
6814 public static native long Level_hash(long o);
6815 // MUST_USE_RES enum LDKLevel Level_max(void);
6816 public static native Level Level_max();
6817 // void Record_free(struct LDKRecord this_obj);
6818 public static native void Record_free(long this_obj);
6819 // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr);
6820 public static native Level Record_get_level(long this_ptr);
6821 // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val);
6822 public static native void Record_set_level(long this_ptr, Level val);
6823 // struct LDKPublicKey Record_get_peer_id(const struct LDKRecord *NONNULL_PTR this_ptr);
6824 public static native byte[] Record_get_peer_id(long this_ptr);
6825 // void Record_set_peer_id(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6826 public static native void Record_set_peer_id(long this_ptr, byte[] val);
6827 // struct LDKCOption_ThirtyTwoBytesZ Record_get_channel_id(const struct LDKRecord *NONNULL_PTR this_ptr);
6828 public static native long Record_get_channel_id(long this_ptr);
6829 // void Record_set_channel_id(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val);
6830 public static native void Record_set_channel_id(long this_ptr, long val);
6831 // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr);
6832 public static native String Record_get_args(long this_ptr);
6833 // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
6834 public static native void Record_set_args(long this_ptr, String val);
6835 // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr);
6836 public static native String Record_get_module_path(long this_ptr);
6837 // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
6838 public static native void Record_set_module_path(long this_ptr, String val);
6839 // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr);
6840 public static native String Record_get_file(long this_ptr);
6841 // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
6842 public static native void Record_set_file(long this_ptr, String val);
6843 // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr);
6844 public static native int Record_get_line(long this_ptr);
6845 // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val);
6846 public static native void Record_set_line(long this_ptr, int val);
6847 // MUST_USE_RES struct LDKRecord Record_new(enum LDKLevel level_arg, struct LDKPublicKey peer_id_arg, struct LDKCOption_ThirtyTwoBytesZ channel_id_arg, struct LDKStr args_arg, struct LDKStr module_path_arg, struct LDKStr file_arg, uint32_t line_arg);
6848 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);
6849 // uint64_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg);
6850 public static native long Record_clone_ptr(long arg);
6851 // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig);
6852 public static native long Record_clone(long orig);
6853 // void Logger_free(struct LDKLogger this_ptr);
6854 public static native void Logger_free(long this_ptr);
6855 // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj);
6856 public static native void ChannelHandshakeConfig_free(long this_obj);
6857 // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6858 public static native int ChannelHandshakeConfig_get_minimum_depth(long this_ptr);
6859 // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
6860 public static native void ChannelHandshakeConfig_set_minimum_depth(long this_ptr, int val);
6861 // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6862 public static native short ChannelHandshakeConfig_get_our_to_self_delay(long this_ptr);
6863 // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
6864 public static native void ChannelHandshakeConfig_set_our_to_self_delay(long this_ptr, short val);
6865 // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6866 public static native long ChannelHandshakeConfig_get_our_htlc_minimum_msat(long this_ptr);
6867 // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
6868 public static native void ChannelHandshakeConfig_set_our_htlc_minimum_msat(long this_ptr, long val);
6869 // uint8_t ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6870 public static native byte ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(long this_ptr);
6871 // void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint8_t val);
6872 public static native void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(long this_ptr, byte val);
6873 // bool ChannelHandshakeConfig_get_negotiate_scid_privacy(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6874 public static native boolean ChannelHandshakeConfig_get_negotiate_scid_privacy(long this_ptr);
6875 // void ChannelHandshakeConfig_set_negotiate_scid_privacy(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
6876 public static native void ChannelHandshakeConfig_set_negotiate_scid_privacy(long this_ptr, boolean val);
6877 // bool ChannelHandshakeConfig_get_announced_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6878 public static native boolean ChannelHandshakeConfig_get_announced_channel(long this_ptr);
6879 // void ChannelHandshakeConfig_set_announced_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
6880 public static native void ChannelHandshakeConfig_set_announced_channel(long this_ptr, boolean val);
6881 // bool ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6882 public static native boolean ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(long this_ptr);
6883 // void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
6884 public static native void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(long this_ptr, boolean val);
6885 // uint32_t ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6886 public static native int ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(long this_ptr);
6887 // void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
6888 public static native void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(long this_ptr, int val);
6889 // bool ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6890 public static native boolean ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(long this_ptr);
6891 // void ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
6892 public static native void ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(long this_ptr, boolean val);
6893 // uint16_t ChannelHandshakeConfig_get_our_max_accepted_htlcs(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
6894 public static native short ChannelHandshakeConfig_get_our_max_accepted_htlcs(long this_ptr);
6895 // void ChannelHandshakeConfig_set_our_max_accepted_htlcs(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
6896 public static native void ChannelHandshakeConfig_set_our_max_accepted_htlcs(long this_ptr, short val);
6897 // 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);
6898 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);
6899 // uint64_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg);
6900 public static native long ChannelHandshakeConfig_clone_ptr(long arg);
6901 // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
6902 public static native long ChannelHandshakeConfig_clone(long orig);
6903 // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
6904 public static native long ChannelHandshakeConfig_default();
6905 // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj);
6906 public static native void ChannelHandshakeLimits_free(long this_obj);
6907 // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6908 public static native long ChannelHandshakeLimits_get_min_funding_satoshis(long this_ptr);
6909 // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
6910 public static native void ChannelHandshakeLimits_set_min_funding_satoshis(long this_ptr, long val);
6911 // uint64_t ChannelHandshakeLimits_get_max_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6912 public static native long ChannelHandshakeLimits_get_max_funding_satoshis(long this_ptr);
6913 // void ChannelHandshakeLimits_set_max_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
6914 public static native void ChannelHandshakeLimits_set_max_funding_satoshis(long this_ptr, long val);
6915 // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6916 public static native long ChannelHandshakeLimits_get_max_htlc_minimum_msat(long this_ptr);
6917 // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
6918 public static native void ChannelHandshakeLimits_set_max_htlc_minimum_msat(long this_ptr, long val);
6919 // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6920 public static native long ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(long this_ptr);
6921 // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
6922 public static native void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(long this_ptr, long val);
6923 // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6924 public static native long ChannelHandshakeLimits_get_max_channel_reserve_satoshis(long this_ptr);
6925 // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
6926 public static native void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(long this_ptr, long val);
6927 // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6928 public static native short ChannelHandshakeLimits_get_min_max_accepted_htlcs(long this_ptr);
6929 // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
6930 public static native void ChannelHandshakeLimits_set_min_max_accepted_htlcs(long this_ptr, short val);
6931 // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6932 public static native int ChannelHandshakeLimits_get_max_minimum_depth(long this_ptr);
6933 // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
6934 public static native void ChannelHandshakeLimits_set_max_minimum_depth(long this_ptr, int val);
6935 // bool ChannelHandshakeLimits_get_trust_own_funding_0conf(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6936 public static native boolean ChannelHandshakeLimits_get_trust_own_funding_0conf(long this_ptr);
6937 // void ChannelHandshakeLimits_set_trust_own_funding_0conf(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
6938 public static native void ChannelHandshakeLimits_set_trust_own_funding_0conf(long this_ptr, boolean val);
6939 // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6940 public static native boolean ChannelHandshakeLimits_get_force_announced_channel_preference(long this_ptr);
6941 // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
6942 public static native void ChannelHandshakeLimits_set_force_announced_channel_preference(long this_ptr, boolean val);
6943 // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
6944 public static native short ChannelHandshakeLimits_get_their_to_self_delay(long this_ptr);
6945 // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
6946 public static native void ChannelHandshakeLimits_set_their_to_self_delay(long this_ptr, short val);
6947 // 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);
6948 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);
6949 // uint64_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg);
6950 public static native long ChannelHandshakeLimits_clone_ptr(long arg);
6951 // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
6952 public static native long ChannelHandshakeLimits_clone(long orig);
6953 // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
6954 public static native long ChannelHandshakeLimits_default();
6955 // void MaxDustHTLCExposure_free(struct LDKMaxDustHTLCExposure this_ptr);
6956 public static native void MaxDustHTLCExposure_free(long this_ptr);
6957 // uint64_t MaxDustHTLCExposure_clone_ptr(LDKMaxDustHTLCExposure *NONNULL_PTR arg);
6958 public static native long MaxDustHTLCExposure_clone_ptr(long arg);
6959 // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_clone(const struct LDKMaxDustHTLCExposure *NONNULL_PTR orig);
6960 public static native long MaxDustHTLCExposure_clone(long orig);
6961 // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_fixed_limit_msat(uint64_t a);
6962 public static native long MaxDustHTLCExposure_fixed_limit_msat(long a);
6963 // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_fee_rate_multiplier(uint64_t a);
6964 public static native long MaxDustHTLCExposure_fee_rate_multiplier(long a);
6965 // bool MaxDustHTLCExposure_eq(const struct LDKMaxDustHTLCExposure *NONNULL_PTR a, const struct LDKMaxDustHTLCExposure *NONNULL_PTR b);
6966 public static native boolean MaxDustHTLCExposure_eq(long a, long b);
6967 // struct LDKCVec_u8Z MaxDustHTLCExposure_write(const struct LDKMaxDustHTLCExposure *NONNULL_PTR obj);
6968 public static native byte[] MaxDustHTLCExposure_write(long obj);
6969 // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ MaxDustHTLCExposure_read(struct LDKu8slice ser);
6970 public static native long MaxDustHTLCExposure_read(byte[] ser);
6971 // void ChannelConfig_free(struct LDKChannelConfig this_obj);
6972 public static native void ChannelConfig_free(long this_obj);
6973 // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6974 public static native int ChannelConfig_get_forwarding_fee_proportional_millionths(long this_ptr);
6975 // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
6976 public static native void ChannelConfig_set_forwarding_fee_proportional_millionths(long this_ptr, int val);
6977 // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6978 public static native int ChannelConfig_get_forwarding_fee_base_msat(long this_ptr);
6979 // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
6980 public static native void ChannelConfig_set_forwarding_fee_base_msat(long this_ptr, int val);
6981 // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6982 public static native short ChannelConfig_get_cltv_expiry_delta(long this_ptr);
6983 // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val);
6984 public static native void ChannelConfig_set_cltv_expiry_delta(long this_ptr, short val);
6985 // struct LDKMaxDustHTLCExposure ChannelConfig_get_max_dust_htlc_exposure(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6986 public static native long ChannelConfig_get_max_dust_htlc_exposure(long this_ptr);
6987 // void ChannelConfig_set_max_dust_htlc_exposure(struct LDKChannelConfig *NONNULL_PTR this_ptr, struct LDKMaxDustHTLCExposure val);
6988 public static native void ChannelConfig_set_max_dust_htlc_exposure(long this_ptr, long val);
6989 // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6990 public static native long ChannelConfig_get_force_close_avoidance_max_fee_satoshis(long this_ptr);
6991 // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
6992 public static native void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(long this_ptr, long val);
6993 // bool ChannelConfig_get_accept_underpaying_htlcs(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
6994 public static native boolean ChannelConfig_get_accept_underpaying_htlcs(long this_ptr);
6995 // void ChannelConfig_set_accept_underpaying_htlcs(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val);
6996 public static native void ChannelConfig_set_accept_underpaying_htlcs(long this_ptr, boolean val);
6997 // 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);
6998 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);
6999 // uint64_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg);
7000 public static native long ChannelConfig_clone_ptr(long arg);
7001 // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
7002 public static native long ChannelConfig_clone(long orig);
7003 // bool ChannelConfig_eq(const struct LDKChannelConfig *NONNULL_PTR a, const struct LDKChannelConfig *NONNULL_PTR b);
7004 public static native boolean ChannelConfig_eq(long a, long b);
7005 // void ChannelConfig_apply(struct LDKChannelConfig *NONNULL_PTR this_arg, const struct LDKChannelConfigUpdate *NONNULL_PTR update);
7006 public static native void ChannelConfig_apply(long this_arg, long update);
7007 // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
7008 public static native long ChannelConfig_default();
7009 // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
7010 public static native byte[] ChannelConfig_write(long obj);
7011 // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser);
7012 public static native long ChannelConfig_read(byte[] ser);
7013 // void ChannelConfigUpdate_free(struct LDKChannelConfigUpdate this_obj);
7014 public static native void ChannelConfigUpdate_free(long this_obj);
7015 // struct LDKCOption_u32Z ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
7016 public static native long ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(long this_ptr);
7017 // void ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
7018 public static native void ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(long this_ptr, long val);
7019 // struct LDKCOption_u32Z ChannelConfigUpdate_get_forwarding_fee_base_msat(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
7020 public static native long ChannelConfigUpdate_get_forwarding_fee_base_msat(long this_ptr);
7021 // void ChannelConfigUpdate_set_forwarding_fee_base_msat(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
7022 public static native void ChannelConfigUpdate_set_forwarding_fee_base_msat(long this_ptr, long val);
7023 // struct LDKCOption_u16Z ChannelConfigUpdate_get_cltv_expiry_delta(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
7024 public static native long ChannelConfigUpdate_get_cltv_expiry_delta(long this_ptr);
7025 // void ChannelConfigUpdate_set_cltv_expiry_delta(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
7026 public static native void ChannelConfigUpdate_set_cltv_expiry_delta(long this_ptr, long val);
7027 // struct LDKCOption_MaxDustHTLCExposureZ ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
7028 public static native long ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(long this_ptr);
7029 // void ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_MaxDustHTLCExposureZ val);
7030 public static native void ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(long this_ptr, long val);
7031 // struct LDKCOption_u64Z ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
7032 public static native long ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(long this_ptr);
7033 // void ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7034 public static native void ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(long this_ptr, long val);
7035 // 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);
7036 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);
7037 // MUST_USE_RES struct LDKChannelConfigUpdate ChannelConfigUpdate_default(void);
7038 public static native long ChannelConfigUpdate_default();
7039 // void UserConfig_free(struct LDKUserConfig this_obj);
7040 public static native void UserConfig_free(long this_obj);
7041 // struct LDKChannelHandshakeConfig UserConfig_get_channel_handshake_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
7042 public static native long UserConfig_get_channel_handshake_config(long this_ptr);
7043 // void UserConfig_set_channel_handshake_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
7044 public static native void UserConfig_set_channel_handshake_config(long this_ptr, long val);
7045 // struct LDKChannelHandshakeLimits UserConfig_get_channel_handshake_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
7046 public static native long UserConfig_get_channel_handshake_limits(long this_ptr);
7047 // void UserConfig_set_channel_handshake_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
7048 public static native void UserConfig_set_channel_handshake_limits(long this_ptr, long val);
7049 // struct LDKChannelConfig UserConfig_get_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
7050 public static native long UserConfig_get_channel_config(long this_ptr);
7051 // void UserConfig_set_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
7052 public static native void UserConfig_set_channel_config(long this_ptr, long val);
7053 // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
7054 public static native boolean UserConfig_get_accept_forwards_to_priv_channels(long this_ptr);
7055 // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
7056 public static native void UserConfig_set_accept_forwards_to_priv_channels(long this_ptr, boolean val);
7057 // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
7058 public static native boolean UserConfig_get_accept_inbound_channels(long this_ptr);
7059 // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
7060 public static native void UserConfig_set_accept_inbound_channels(long this_ptr, boolean val);
7061 // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
7062 public static native boolean UserConfig_get_manually_accept_inbound_channels(long this_ptr);
7063 // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
7064 public static native void UserConfig_set_manually_accept_inbound_channels(long this_ptr, boolean val);
7065 // bool UserConfig_get_accept_intercept_htlcs(const struct LDKUserConfig *NONNULL_PTR this_ptr);
7066 public static native boolean UserConfig_get_accept_intercept_htlcs(long this_ptr);
7067 // void UserConfig_set_accept_intercept_htlcs(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
7068 public static native void UserConfig_set_accept_intercept_htlcs(long this_ptr, boolean val);
7069 // bool UserConfig_get_accept_mpp_keysend(const struct LDKUserConfig *NONNULL_PTR this_ptr);
7070 public static native boolean UserConfig_get_accept_mpp_keysend(long this_ptr);
7071 // void UserConfig_set_accept_mpp_keysend(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
7072 public static native void UserConfig_set_accept_mpp_keysend(long this_ptr, boolean val);
7073 // 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);
7074 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);
7075 // uint64_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg);
7076 public static native long UserConfig_clone_ptr(long arg);
7077 // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
7078 public static native long UserConfig_clone(long orig);
7079 // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
7080 public static native long UserConfig_default();
7081 // void BestBlock_free(struct LDKBestBlock this_obj);
7082 public static native void BestBlock_free(long this_obj);
7083 // uint64_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg);
7084 public static native long BestBlock_clone_ptr(long arg);
7085 // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig);
7086 public static native long BestBlock_clone(long orig);
7087 // bool BestBlock_eq(const struct LDKBestBlock *NONNULL_PTR a, const struct LDKBestBlock *NONNULL_PTR b);
7088 public static native boolean BestBlock_eq(long a, long b);
7089 // MUST_USE_RES struct LDKBestBlock BestBlock_from_network(enum LDKNetwork network);
7090 public static native long BestBlock_from_network(Network network);
7091 // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash, uint32_t height);
7092 public static native long BestBlock_new(byte[] block_hash, int height);
7093 // MUST_USE_RES struct LDKThirtyTwoBytes BestBlock_block_hash(const struct LDKBestBlock *NONNULL_PTR this_arg);
7094 public static native byte[] BestBlock_block_hash(long this_arg);
7095 // MUST_USE_RES uint32_t BestBlock_height(const struct LDKBestBlock *NONNULL_PTR this_arg);
7096 public static native int BestBlock_height(long this_arg);
7097 // void Listen_free(struct LDKListen this_ptr);
7098 public static native void Listen_free(long this_ptr);
7099 // void Confirm_free(struct LDKConfirm this_ptr);
7100 public static native void Confirm_free(long this_ptr);
7101 // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR orig);
7102 public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(long orig);
7103 // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed(void);
7104 public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed();
7105 // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress(void);
7106 public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress();
7107 // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_unrecoverable_error(void);
7108 public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_unrecoverable_error();
7109 // bool ChannelMonitorUpdateStatus_eq(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR a, const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR b);
7110 public static native boolean ChannelMonitorUpdateStatus_eq(long a, long b);
7111 // void Watch_free(struct LDKWatch this_ptr);
7112 public static native void Watch_free(long this_ptr);
7113 // void Filter_free(struct LDKFilter this_ptr);
7114 public static native void Filter_free(long this_ptr);
7115 // void WatchedOutput_free(struct LDKWatchedOutput this_obj);
7116 public static native void WatchedOutput_free(long this_obj);
7117 // struct LDKCOption_ThirtyTwoBytesZ WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
7118 public static native long WatchedOutput_get_block_hash(long this_ptr);
7119 // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val);
7120 public static native void WatchedOutput_set_block_hash(long this_ptr, long val);
7121 // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
7122 public static native long WatchedOutput_get_outpoint(long this_ptr);
7123 // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
7124 public static native void WatchedOutput_set_outpoint(long this_ptr, long val);
7125 // struct LDKCVec_u8Z WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
7126 public static native byte[] WatchedOutput_get_script_pubkey(long this_ptr);
7127 // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
7128 public static native void WatchedOutput_set_script_pubkey(long this_ptr, byte[] val);
7129 // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKCOption_ThirtyTwoBytesZ block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg);
7130 public static native long WatchedOutput_new(long block_hash_arg, long outpoint_arg, byte[] script_pubkey_arg);
7131 // uint64_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg);
7132 public static native long WatchedOutput_clone_ptr(long arg);
7133 // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig);
7134 public static native long WatchedOutput_clone(long orig);
7135 // bool WatchedOutput_eq(const struct LDKWatchedOutput *NONNULL_PTR a, const struct LDKWatchedOutput *NONNULL_PTR b);
7136 public static native boolean WatchedOutput_eq(long a, long b);
7137 // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o);
7138 public static native long WatchedOutput_hash(long o);
7139 // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
7140 public static native void BroadcasterInterface_free(long this_ptr);
7141 // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
7142 public static native ConfirmationTarget ConfirmationTarget_clone(long orig);
7143 // enum LDKConfirmationTarget ConfirmationTarget_on_chain_sweep(void);
7144 public static native ConfirmationTarget ConfirmationTarget_on_chain_sweep();
7145 // enum LDKConfirmationTarget ConfirmationTarget_min_allowed_anchor_channel_remote_fee(void);
7146 public static native ConfirmationTarget ConfirmationTarget_min_allowed_anchor_channel_remote_fee();
7147 // enum LDKConfirmationTarget ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee(void);
7148 public static native ConfirmationTarget ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee();
7149 // enum LDKConfirmationTarget ConfirmationTarget_anchor_channel_fee(void);
7150 public static native ConfirmationTarget ConfirmationTarget_anchor_channel_fee();
7151 // enum LDKConfirmationTarget ConfirmationTarget_non_anchor_channel_fee(void);
7152 public static native ConfirmationTarget ConfirmationTarget_non_anchor_channel_fee();
7153 // enum LDKConfirmationTarget ConfirmationTarget_channel_close_minimum(void);
7154 public static native ConfirmationTarget ConfirmationTarget_channel_close_minimum();
7155 // uint64_t ConfirmationTarget_hash(const enum LDKConfirmationTarget *NONNULL_PTR o);
7156 public static native long ConfirmationTarget_hash(long o);
7157 // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b);
7158 public static native boolean ConfirmationTarget_eq(long a, long b);
7159 // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
7160 public static native void FeeEstimator_free(long this_ptr);
7161 // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj);
7162 public static native void MonitorUpdateId_free(long this_obj);
7163 // uint64_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg);
7164 public static native long MonitorUpdateId_clone_ptr(long arg);
7165 // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig);
7166 public static native long MonitorUpdateId_clone(long orig);
7167 // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o);
7168 public static native long MonitorUpdateId_hash(long o);
7169 // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b);
7170 public static native boolean MonitorUpdateId_eq(long a, long b);
7171 // void Persist_free(struct LDKPersist this_ptr);
7172 public static native void Persist_free(long this_ptr);
7173 // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj);
7174 public static native void LockedChannelMonitor_free(long this_obj);
7175 // void ChainMonitor_free(struct LDKChainMonitor this_obj);
7176 public static native void ChainMonitor_free(long this_obj);
7177 // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
7178 public static native long ChainMonitor_new(long chain_source, long broadcaster, long logger, long feeest, long persister);
7179 // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels);
7180 public static native long[] ChainMonitor_get_claimable_balances(long this_arg, long[] ignored_channels);
7181 // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo);
7182 public static native long ChainMonitor_get_monitor(long this_arg, long funding_txo);
7183 // MUST_USE_RES struct LDKCVec_OutPointZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg);
7184 public static native long[] ChainMonitor_list_monitors(long this_arg);
7185 // MUST_USE_RES struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ ChainMonitor_list_pending_monitor_updates(const struct LDKChainMonitor *NONNULL_PTR this_arg);
7186 public static native long[] ChainMonitor_list_pending_monitor_updates(long this_arg);
7187 // 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);
7188 public static native long ChainMonitor_channel_monitor_updated(long this_arg, long funding_txo, long completed_update_id);
7189 // MUST_USE_RES struct LDKFuture ChainMonitor_get_update_future(const struct LDKChainMonitor *NONNULL_PTR this_arg);
7190 public static native long ChainMonitor_get_update_future(long this_arg);
7191 // void ChainMonitor_rebroadcast_pending_claims(const struct LDKChainMonitor *NONNULL_PTR this_arg);
7192 public static native void ChainMonitor_rebroadcast_pending_claims(long this_arg);
7193 // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg);
7194 public static native long ChainMonitor_as_Listen(long this_arg);
7195 // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg);
7196 public static native long ChainMonitor_as_Confirm(long this_arg);
7197 // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
7198 public static native long ChainMonitor_as_Watch(long this_arg);
7199 // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
7200 public static native long ChainMonitor_as_EventsProvider(long this_arg);
7201 // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj);
7202 public static native void ChannelMonitorUpdate_free(long this_obj);
7203 // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
7204 public static native long ChannelMonitorUpdate_get_update_id(long this_ptr);
7205 // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
7206 public static native void ChannelMonitorUpdate_set_update_id(long this_ptr, long val);
7207 // uint64_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg);
7208 public static native long ChannelMonitorUpdate_clone_ptr(long arg);
7209 // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
7210 public static native long ChannelMonitorUpdate_clone(long orig);
7211 // bool ChannelMonitorUpdate_eq(const struct LDKChannelMonitorUpdate *NONNULL_PTR a, const struct LDKChannelMonitorUpdate *NONNULL_PTR b);
7212 public static native boolean ChannelMonitorUpdate_eq(long a, long b);
7213 // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
7214 public static native byte[] ChannelMonitorUpdate_write(long obj);
7215 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
7216 public static native long ChannelMonitorUpdate_read(byte[] ser);
7217 // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
7218 public static native void MonitorEvent_free(long this_ptr);
7219 // uint64_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg);
7220 public static native long MonitorEvent_clone_ptr(long arg);
7221 // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
7222 public static native long MonitorEvent_clone(long orig);
7223 // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a);
7224 public static native long MonitorEvent_htlcevent(long a);
7225 // struct LDKMonitorEvent MonitorEvent_holder_force_closed(struct LDKOutPoint a);
7226 public static native long MonitorEvent_holder_force_closed(long a);
7227 // struct LDKMonitorEvent MonitorEvent_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id);
7228 public static native long MonitorEvent_completed(long funding_txo, long monitor_update_id);
7229 // bool MonitorEvent_eq(const struct LDKMonitorEvent *NONNULL_PTR a, const struct LDKMonitorEvent *NONNULL_PTR b);
7230 public static native boolean MonitorEvent_eq(long a, long b);
7231 // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj);
7232 public static native byte[] MonitorEvent_write(long obj);
7233 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser);
7234 public static native long MonitorEvent_read(byte[] ser);
7235 // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj);
7236 public static native void HTLCUpdate_free(long this_obj);
7237 // uint64_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg);
7238 public static native long HTLCUpdate_clone_ptr(long arg);
7239 // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
7240 public static native long HTLCUpdate_clone(long orig);
7241 // bool HTLCUpdate_eq(const struct LDKHTLCUpdate *NONNULL_PTR a, const struct LDKHTLCUpdate *NONNULL_PTR b);
7242 public static native boolean HTLCUpdate_eq(long a, long b);
7243 // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
7244 public static native byte[] HTLCUpdate_write(long obj);
7245 // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser);
7246 public static native long HTLCUpdate_read(byte[] ser);
7247 // void Balance_free(struct LDKBalance this_ptr);
7248 public static native void Balance_free(long this_ptr);
7249 // uint64_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg);
7250 public static native long Balance_clone_ptr(long arg);
7251 // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig);
7252 public static native long Balance_clone(long orig);
7253 // struct LDKBalance Balance_claimable_on_channel_close(uint64_t amount_satoshis);
7254 public static native long Balance_claimable_on_channel_close(long amount_satoshis);
7255 // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t amount_satoshis, uint32_t confirmation_height);
7256 public static native long Balance_claimable_awaiting_confirmations(long amount_satoshis, int confirmation_height);
7257 // struct LDKBalance Balance_contentious_claimable(uint64_t amount_satoshis, uint32_t timeout_height, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_preimage);
7258 public static native long Balance_contentious_claimable(long amount_satoshis, int timeout_height, byte[] payment_hash, byte[] payment_preimage);
7259 // struct LDKBalance Balance_maybe_timeout_claimable_htlc(uint64_t amount_satoshis, uint32_t claimable_height, struct LDKThirtyTwoBytes payment_hash);
7260 public static native long Balance_maybe_timeout_claimable_htlc(long amount_satoshis, int claimable_height, byte[] payment_hash);
7261 // struct LDKBalance Balance_maybe_preimage_claimable_htlc(uint64_t amount_satoshis, uint32_t expiry_height, struct LDKThirtyTwoBytes payment_hash);
7262 public static native long Balance_maybe_preimage_claimable_htlc(long amount_satoshis, int expiry_height, byte[] payment_hash);
7263 // struct LDKBalance Balance_counterparty_revoked_output_claimable(uint64_t amount_satoshis);
7264 public static native long Balance_counterparty_revoked_output_claimable(long amount_satoshis);
7265 // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b);
7266 public static native boolean Balance_eq(long a, long b);
7267 // MUST_USE_RES uint64_t Balance_claimable_amount_satoshis(const struct LDKBalance *NONNULL_PTR this_arg);
7268 public static native long Balance_claimable_amount_satoshis(long this_arg);
7269 // void ChannelMonitor_free(struct LDKChannelMonitor this_obj);
7270 public static native void ChannelMonitor_free(long this_obj);
7271 // uint64_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg);
7272 public static native long ChannelMonitor_clone_ptr(long arg);
7273 // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig);
7274 public static native long ChannelMonitor_clone(long orig);
7275 // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
7276 public static native byte[] ChannelMonitor_write(long obj);
7277 // 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);
7278 public static native long ChannelMonitor_update_monitor(long this_arg, long updates, long broadcaster, long fee_estimator, long logger);
7279 // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
7280 public static native long ChannelMonitor_get_latest_update_id(long this_arg);
7281 // MUST_USE_RES struct LDKC2Tuple_OutPointCVec_u8ZZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
7282 public static native long ChannelMonitor_get_funding_txo(long this_arg);
7283 // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
7284 public static native long[] ChannelMonitor_get_outputs_to_watch(long this_arg);
7285 // 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);
7286 public static native void ChannelMonitor_load_outputs_to_watch(long this_arg, long filter, long logger);
7287 // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
7288 public static native long[] ChannelMonitor_get_and_clear_pending_monitor_events(long this_arg);
7289 // void ChannelMonitor_process_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKEventHandler *NONNULL_PTR handler);
7290 public static native void ChannelMonitor_process_pending_events(long this_arg, long handler);
7291 // MUST_USE_RES struct LDKCommitmentTransaction ChannelMonitor_initial_counterparty_commitment_tx(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
7292 public static native long ChannelMonitor_initial_counterparty_commitment_tx(long this_arg);
7293 // 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);
7294 public static native long[] ChannelMonitor_counterparty_commitment_txs_from_update(long this_arg, long update);
7295 // 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);
7296 public static native long ChannelMonitor_sign_to_local_justice_tx(long this_arg, byte[] justice_tx, long input_idx, long value, long commitment_number);
7297 // MUST_USE_RES struct LDKPublicKey ChannelMonitor_get_counterparty_node_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
7298 public static native byte[] ChannelMonitor_get_counterparty_node_id(long this_arg);
7299 // MUST_USE_RES struct LDKCVec_TransactionZ ChannelMonitor_get_latest_holder_commitment_txn(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKLogger *NONNULL_PTR logger);
7300 public static native byte[][] ChannelMonitor_get_latest_holder_commitment_txn(long this_arg, long logger);
7301 // 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);
7302 public static native long[] ChannelMonitor_block_connected(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
7303 // 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);
7304 public static native void ChannelMonitor_block_disconnected(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
7305 // 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);
7306 public static native long[] ChannelMonitor_transactions_confirmed(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
7307 // 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);
7308 public static native void ChannelMonitor_transaction_unconfirmed(long this_arg, byte[] txid, long broadcaster, long fee_estimator, long logger);
7309 // 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);
7310 public static native long[] ChannelMonitor_best_block_updated(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
7311 // MUST_USE_RES struct LDKCVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
7312 public static native long[] ChannelMonitor_get_relevant_txids(long this_arg);
7313 // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
7314 public static native long ChannelMonitor_current_best_block(long this_arg);
7315 // 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);
7316 public static native void ChannelMonitor_rebroadcast_pending_claims(long this_arg, long broadcaster, long fee_estimator, long logger);
7317 // MUST_USE_RES struct LDKCVec_SpendableOutputDescriptorZ ChannelMonitor_get_spendable_outputs(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKTransaction tx, uint32_t confirmation_height);
7318 public static native long[] ChannelMonitor_get_spendable_outputs(long this_arg, byte[] tx, int confirmation_height);
7319 // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
7320 public static native long[] ChannelMonitor_get_claimable_balances(long this_arg);
7321 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKEntropySource *NONNULL_PTR arg_a, const struct LDKSignerProvider *NONNULL_PTR arg_b);
7322 public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(byte[] ser, long arg_a, long arg_b);
7323 // void OutPoint_free(struct LDKOutPoint this_obj);
7324 public static native void OutPoint_free(long this_obj);
7325 // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
7326 public static native byte[] OutPoint_get_txid(long this_ptr);
7327 // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7328 public static native void OutPoint_set_txid(long this_ptr, byte[] val);
7329 // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
7330 public static native short OutPoint_get_index(long this_ptr);
7331 // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
7332 public static native void OutPoint_set_index(long this_ptr, short val);
7333 // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
7334 public static native long OutPoint_new(byte[] txid_arg, short index_arg);
7335 // uint64_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg);
7336 public static native long OutPoint_clone_ptr(long arg);
7337 // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
7338 public static native long OutPoint_clone(long orig);
7339 // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b);
7340 public static native boolean OutPoint_eq(long a, long b);
7341 // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o);
7342 public static native long OutPoint_hash(long o);
7343 // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg);
7344 public static native byte[] OutPoint_to_channel_id(long this_arg);
7345 // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
7346 public static native byte[] OutPoint_write(long obj);
7347 // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser);
7348 public static native long OutPoint_read(byte[] ser);
7349 // void InboundHTLCErr_free(struct LDKInboundHTLCErr this_obj);
7350 public static native void InboundHTLCErr_free(long this_obj);
7351 // uint16_t InboundHTLCErr_get_err_code(const struct LDKInboundHTLCErr *NONNULL_PTR this_ptr);
7352 public static native short InboundHTLCErr_get_err_code(long this_ptr);
7353 // void InboundHTLCErr_set_err_code(struct LDKInboundHTLCErr *NONNULL_PTR this_ptr, uint16_t val);
7354 public static native void InboundHTLCErr_set_err_code(long this_ptr, short val);
7355 // struct LDKCVec_u8Z InboundHTLCErr_get_err_data(const struct LDKInboundHTLCErr *NONNULL_PTR this_ptr);
7356 public static native byte[] InboundHTLCErr_get_err_data(long this_ptr);
7357 // void InboundHTLCErr_set_err_data(struct LDKInboundHTLCErr *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
7358 public static native void InboundHTLCErr_set_err_data(long this_ptr, byte[] val);
7359 // struct LDKStr InboundHTLCErr_get_msg(const struct LDKInboundHTLCErr *NONNULL_PTR this_ptr);
7360 public static native String InboundHTLCErr_get_msg(long this_ptr);
7361 // void InboundHTLCErr_set_msg(struct LDKInboundHTLCErr *NONNULL_PTR this_ptr, struct LDKStr val);
7362 public static native void InboundHTLCErr_set_msg(long this_ptr, String val);
7363 // MUST_USE_RES struct LDKInboundHTLCErr InboundHTLCErr_new(uint16_t err_code_arg, struct LDKCVec_u8Z err_data_arg, struct LDKStr msg_arg);
7364 public static native long InboundHTLCErr_new(short err_code_arg, byte[] err_data_arg, String msg_arg);
7365 // 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);
7366 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);
7367 // void PendingHTLCRouting_free(struct LDKPendingHTLCRouting this_ptr);
7368 public static native void PendingHTLCRouting_free(long this_ptr);
7369 // uint64_t PendingHTLCRouting_clone_ptr(LDKPendingHTLCRouting *NONNULL_PTR arg);
7370 public static native long PendingHTLCRouting_clone_ptr(long arg);
7371 // struct LDKPendingHTLCRouting PendingHTLCRouting_clone(const struct LDKPendingHTLCRouting *NONNULL_PTR orig);
7372 public static native long PendingHTLCRouting_clone(long orig);
7373 // struct LDKPendingHTLCRouting PendingHTLCRouting_forward(struct LDKOnionPacket onion_packet, uint64_t short_channel_id, struct LDKBlindedForward blinded);
7374 public static native long PendingHTLCRouting_forward(long onion_packet, long short_channel_id, long blinded);
7375 // struct LDKPendingHTLCRouting PendingHTLCRouting_receive(struct LDKFinalOnionHopData payment_data, struct LDKCOption_CVec_u8ZZ payment_metadata, uint32_t incoming_cltv_expiry, struct LDKThirtyTwoBytes phantom_shared_secret, struct LDKCVec_C2Tuple_u64CVec_u8ZZZ custom_tlvs, bool requires_blinded_error);
7376 public static native long PendingHTLCRouting_receive(long payment_data, long payment_metadata, int incoming_cltv_expiry, byte[] phantom_shared_secret, long[] custom_tlvs, boolean requires_blinded_error);
7377 // 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);
7378 public static native long PendingHTLCRouting_receive_keysend(long payment_data, byte[] payment_preimage, long payment_metadata, int incoming_cltv_expiry, long[] custom_tlvs);
7379 // void BlindedForward_free(struct LDKBlindedForward this_obj);
7380 public static native void BlindedForward_free(long this_obj);
7381 // struct LDKPublicKey BlindedForward_get_inbound_blinding_point(const struct LDKBlindedForward *NONNULL_PTR this_ptr);
7382 public static native byte[] BlindedForward_get_inbound_blinding_point(long this_ptr);
7383 // void BlindedForward_set_inbound_blinding_point(struct LDKBlindedForward *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7384 public static native void BlindedForward_set_inbound_blinding_point(long this_ptr, byte[] val);
7385 // enum LDKBlindedFailure BlindedForward_get_failure(const struct LDKBlindedForward *NONNULL_PTR this_ptr);
7386 public static native BlindedFailure BlindedForward_get_failure(long this_ptr);
7387 // void BlindedForward_set_failure(struct LDKBlindedForward *NONNULL_PTR this_ptr, enum LDKBlindedFailure val);
7388 public static native void BlindedForward_set_failure(long this_ptr, BlindedFailure val);
7389 // MUST_USE_RES struct LDKBlindedForward BlindedForward_new(struct LDKPublicKey inbound_blinding_point_arg, enum LDKBlindedFailure failure_arg);
7390 public static native long BlindedForward_new(byte[] inbound_blinding_point_arg, BlindedFailure failure_arg);
7391 // uint64_t BlindedForward_clone_ptr(LDKBlindedForward *NONNULL_PTR arg);
7392 public static native long BlindedForward_clone_ptr(long arg);
7393 // struct LDKBlindedForward BlindedForward_clone(const struct LDKBlindedForward *NONNULL_PTR orig);
7394 public static native long BlindedForward_clone(long orig);
7395 // uint64_t BlindedForward_hash(const struct LDKBlindedForward *NONNULL_PTR o);
7396 public static native long BlindedForward_hash(long o);
7397 // bool BlindedForward_eq(const struct LDKBlindedForward *NONNULL_PTR a, const struct LDKBlindedForward *NONNULL_PTR b);
7398 public static native boolean BlindedForward_eq(long a, long b);
7399 // void PendingHTLCInfo_free(struct LDKPendingHTLCInfo this_obj);
7400 public static native void PendingHTLCInfo_free(long this_obj);
7401 // struct LDKPendingHTLCRouting PendingHTLCInfo_get_routing(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr);
7402 public static native long PendingHTLCInfo_get_routing(long this_ptr);
7403 // void PendingHTLCInfo_set_routing(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKPendingHTLCRouting val);
7404 public static native void PendingHTLCInfo_set_routing(long this_ptr, long val);
7405 // const uint8_t (*PendingHTLCInfo_get_incoming_shared_secret(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr))[32];
7406 public static native byte[] PendingHTLCInfo_get_incoming_shared_secret(long this_ptr);
7407 // void PendingHTLCInfo_set_incoming_shared_secret(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7408 public static native void PendingHTLCInfo_set_incoming_shared_secret(long this_ptr, byte[] val);
7409 // const uint8_t (*PendingHTLCInfo_get_payment_hash(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr))[32];
7410 public static native byte[] PendingHTLCInfo_get_payment_hash(long this_ptr);
7411 // void PendingHTLCInfo_set_payment_hash(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7412 public static native void PendingHTLCInfo_set_payment_hash(long this_ptr, byte[] val);
7413 // struct LDKCOption_u64Z PendingHTLCInfo_get_incoming_amt_msat(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr);
7414 public static native long PendingHTLCInfo_get_incoming_amt_msat(long this_ptr);
7415 // void PendingHTLCInfo_set_incoming_amt_msat(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7416 public static native void PendingHTLCInfo_set_incoming_amt_msat(long this_ptr, long val);
7417 // uint64_t PendingHTLCInfo_get_outgoing_amt_msat(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr);
7418 public static native long PendingHTLCInfo_get_outgoing_amt_msat(long this_ptr);
7419 // void PendingHTLCInfo_set_outgoing_amt_msat(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, uint64_t val);
7420 public static native void PendingHTLCInfo_set_outgoing_amt_msat(long this_ptr, long val);
7421 // uint32_t PendingHTLCInfo_get_outgoing_cltv_value(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr);
7422 public static native int PendingHTLCInfo_get_outgoing_cltv_value(long this_ptr);
7423 // void PendingHTLCInfo_set_outgoing_cltv_value(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, uint32_t val);
7424 public static native void PendingHTLCInfo_set_outgoing_cltv_value(long this_ptr, int val);
7425 // struct LDKCOption_u64Z PendingHTLCInfo_get_skimmed_fee_msat(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr);
7426 public static native long PendingHTLCInfo_get_skimmed_fee_msat(long this_ptr);
7427 // void PendingHTLCInfo_set_skimmed_fee_msat(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7428 public static native void PendingHTLCInfo_set_skimmed_fee_msat(long this_ptr, long val);
7429 // 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);
7430 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);
7431 // uint64_t PendingHTLCInfo_clone_ptr(LDKPendingHTLCInfo *NONNULL_PTR arg);
7432 public static native long PendingHTLCInfo_clone_ptr(long arg);
7433 // struct LDKPendingHTLCInfo PendingHTLCInfo_clone(const struct LDKPendingHTLCInfo *NONNULL_PTR orig);
7434 public static native long PendingHTLCInfo_clone(long orig);
7435 // enum LDKBlindedFailure BlindedFailure_clone(const enum LDKBlindedFailure *NONNULL_PTR orig);
7436 public static native BlindedFailure BlindedFailure_clone(long orig);
7437 // enum LDKBlindedFailure BlindedFailure_from_introduction_node(void);
7438 public static native BlindedFailure BlindedFailure_from_introduction_node();
7439 // enum LDKBlindedFailure BlindedFailure_from_blinded_node(void);
7440 public static native BlindedFailure BlindedFailure_from_blinded_node();
7441 // uint64_t BlindedFailure_hash(const enum LDKBlindedFailure *NONNULL_PTR o);
7442 public static native long BlindedFailure_hash(long o);
7443 // bool BlindedFailure_eq(const enum LDKBlindedFailure *NONNULL_PTR a, const enum LDKBlindedFailure *NONNULL_PTR b);
7444 public static native boolean BlindedFailure_eq(long a, long b);
7445 // void FailureCode_free(struct LDKFailureCode this_ptr);
7446 public static native void FailureCode_free(long this_ptr);
7447 // uint64_t FailureCode_clone_ptr(LDKFailureCode *NONNULL_PTR arg);
7448 public static native long FailureCode_clone_ptr(long arg);
7449 // struct LDKFailureCode FailureCode_clone(const struct LDKFailureCode *NONNULL_PTR orig);
7450 public static native long FailureCode_clone(long orig);
7451 // struct LDKFailureCode FailureCode_temporary_node_failure(void);
7452 public static native long FailureCode_temporary_node_failure();
7453 // struct LDKFailureCode FailureCode_required_node_feature_missing(void);
7454 public static native long FailureCode_required_node_feature_missing();
7455 // struct LDKFailureCode FailureCode_incorrect_or_unknown_payment_details(void);
7456 public static native long FailureCode_incorrect_or_unknown_payment_details();
7457 // struct LDKFailureCode FailureCode_invalid_onion_payload(struct LDKCOption_C2Tuple_u64u16ZZ a);
7458 public static native long FailureCode_invalid_onion_payload(long a);
7459 // void ChannelManager_free(struct LDKChannelManager this_obj);
7460 public static native void ChannelManager_free(long this_obj);
7461 // void ChainParameters_free(struct LDKChainParameters this_obj);
7462 public static native void ChainParameters_free(long this_obj);
7463 // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr);
7464 public static native Network ChainParameters_get_network(long this_ptr);
7465 // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val);
7466 public static native void ChainParameters_set_network(long this_ptr, Network val);
7467 // struct LDKBestBlock ChainParameters_get_best_block(const struct LDKChainParameters *NONNULL_PTR this_ptr);
7468 public static native long ChainParameters_get_best_block(long this_ptr);
7469 // void ChainParameters_set_best_block(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKBestBlock val);
7470 public static native void ChainParameters_set_best_block(long this_ptr, long val);
7471 // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKBestBlock best_block_arg);
7472 public static native long ChainParameters_new(Network network_arg, long best_block_arg);
7473 // uint64_t ChainParameters_clone_ptr(LDKChainParameters *NONNULL_PTR arg);
7474 public static native long ChainParameters_clone_ptr(long arg);
7475 // struct LDKChainParameters ChainParameters_clone(const struct LDKChainParameters *NONNULL_PTR orig);
7476 public static native long ChainParameters_clone(long orig);
7477 // void CounterpartyForwardingInfo_free(struct LDKCounterpartyForwardingInfo this_obj);
7478 public static native void CounterpartyForwardingInfo_free(long this_obj);
7479 // uint32_t CounterpartyForwardingInfo_get_fee_base_msat(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
7480 public static native int CounterpartyForwardingInfo_get_fee_base_msat(long this_ptr);
7481 // void CounterpartyForwardingInfo_set_fee_base_msat(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
7482 public static native void CounterpartyForwardingInfo_set_fee_base_msat(long this_ptr, int val);
7483 // uint32_t CounterpartyForwardingInfo_get_fee_proportional_millionths(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
7484 public static native int CounterpartyForwardingInfo_get_fee_proportional_millionths(long this_ptr);
7485 // void CounterpartyForwardingInfo_set_fee_proportional_millionths(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
7486 public static native void CounterpartyForwardingInfo_set_fee_proportional_millionths(long this_ptr, int val);
7487 // uint16_t CounterpartyForwardingInfo_get_cltv_expiry_delta(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
7488 public static native short CounterpartyForwardingInfo_get_cltv_expiry_delta(long this_ptr);
7489 // void CounterpartyForwardingInfo_set_cltv_expiry_delta(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint16_t val);
7490 public static native void CounterpartyForwardingInfo_set_cltv_expiry_delta(long this_ptr, short val);
7491 // 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);
7492 public static native long CounterpartyForwardingInfo_new(int fee_base_msat_arg, int fee_proportional_millionths_arg, short cltv_expiry_delta_arg);
7493 // uint64_t CounterpartyForwardingInfo_clone_ptr(LDKCounterpartyForwardingInfo *NONNULL_PTR arg);
7494 public static native long CounterpartyForwardingInfo_clone_ptr(long arg);
7495 // struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_clone(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR orig);
7496 public static native long CounterpartyForwardingInfo_clone(long orig);
7497 // void ChannelCounterparty_free(struct LDKChannelCounterparty this_obj);
7498 public static native void ChannelCounterparty_free(long this_obj);
7499 // struct LDKPublicKey ChannelCounterparty_get_node_id(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
7500 public static native byte[] ChannelCounterparty_get_node_id(long this_ptr);
7501 // void ChannelCounterparty_set_node_id(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7502 public static native void ChannelCounterparty_set_node_id(long this_ptr, byte[] val);
7503 // struct LDKInitFeatures ChannelCounterparty_get_features(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
7504 public static native long ChannelCounterparty_get_features(long this_ptr);
7505 // void ChannelCounterparty_set_features(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
7506 public static native void ChannelCounterparty_set_features(long this_ptr, long val);
7507 // uint64_t ChannelCounterparty_get_unspendable_punishment_reserve(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
7508 public static native long ChannelCounterparty_get_unspendable_punishment_reserve(long this_ptr);
7509 // void ChannelCounterparty_set_unspendable_punishment_reserve(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, uint64_t val);
7510 public static native void ChannelCounterparty_set_unspendable_punishment_reserve(long this_ptr, long val);
7511 // struct LDKCounterpartyForwardingInfo ChannelCounterparty_get_forwarding_info(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
7512 public static native long ChannelCounterparty_get_forwarding_info(long this_ptr);
7513 // void ChannelCounterparty_set_forwarding_info(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCounterpartyForwardingInfo val);
7514 public static native void ChannelCounterparty_set_forwarding_info(long this_ptr, long val);
7515 // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_minimum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
7516 public static native long ChannelCounterparty_get_outbound_htlc_minimum_msat(long this_ptr);
7517 // void ChannelCounterparty_set_outbound_htlc_minimum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7518 public static native void ChannelCounterparty_set_outbound_htlc_minimum_msat(long this_ptr, long val);
7519 // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_maximum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
7520 public static native long ChannelCounterparty_get_outbound_htlc_maximum_msat(long this_ptr);
7521 // void ChannelCounterparty_set_outbound_htlc_maximum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7522 public static native void ChannelCounterparty_set_outbound_htlc_maximum_msat(long this_ptr, long val);
7523 // 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);
7524 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);
7525 // uint64_t ChannelCounterparty_clone_ptr(LDKChannelCounterparty *NONNULL_PTR arg);
7526 public static native long ChannelCounterparty_clone_ptr(long arg);
7527 // struct LDKChannelCounterparty ChannelCounterparty_clone(const struct LDKChannelCounterparty *NONNULL_PTR orig);
7528 public static native long ChannelCounterparty_clone(long orig);
7529 // void ChannelDetails_free(struct LDKChannelDetails this_obj);
7530 public static native void ChannelDetails_free(long this_obj);
7531 // const uint8_t (*ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr))[32];
7532 public static native byte[] ChannelDetails_get_channel_id(long this_ptr);
7533 // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7534 public static native void ChannelDetails_set_channel_id(long this_ptr, byte[] val);
7535 // struct LDKChannelCounterparty ChannelDetails_get_counterparty(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7536 public static native long ChannelDetails_get_counterparty(long this_ptr);
7537 // void ChannelDetails_set_counterparty(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelCounterparty val);
7538 public static native void ChannelDetails_set_counterparty(long this_ptr, long val);
7539 // struct LDKOutPoint ChannelDetails_get_funding_txo(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7540 public static native long ChannelDetails_get_funding_txo(long this_ptr);
7541 // void ChannelDetails_set_funding_txo(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKOutPoint val);
7542 public static native void ChannelDetails_set_funding_txo(long this_ptr, long val);
7543 // struct LDKChannelTypeFeatures ChannelDetails_get_channel_type(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7544 public static native long ChannelDetails_get_channel_type(long this_ptr);
7545 // void ChannelDetails_set_channel_type(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
7546 public static native void ChannelDetails_set_channel_type(long this_ptr, long val);
7547 // struct LDKCOption_u64Z ChannelDetails_get_short_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7548 public static native long ChannelDetails_get_short_channel_id(long this_ptr);
7549 // void ChannelDetails_set_short_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7550 public static native void ChannelDetails_set_short_channel_id(long this_ptr, long val);
7551 // struct LDKCOption_u64Z ChannelDetails_get_outbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7552 public static native long ChannelDetails_get_outbound_scid_alias(long this_ptr);
7553 // void ChannelDetails_set_outbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7554 public static native void ChannelDetails_set_outbound_scid_alias(long this_ptr, long val);
7555 // struct LDKCOption_u64Z ChannelDetails_get_inbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7556 public static native long ChannelDetails_get_inbound_scid_alias(long this_ptr);
7557 // void ChannelDetails_set_inbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7558 public static native void ChannelDetails_set_inbound_scid_alias(long this_ptr, long val);
7559 // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7560 public static native long ChannelDetails_get_channel_value_satoshis(long this_ptr);
7561 // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
7562 public static native void ChannelDetails_set_channel_value_satoshis(long this_ptr, long val);
7563 // struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7564 public static native long ChannelDetails_get_unspendable_punishment_reserve(long this_ptr);
7565 // void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7566 public static native void ChannelDetails_set_unspendable_punishment_reserve(long this_ptr, long val);
7567 // struct LDKU128 ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7568 public static native byte[] ChannelDetails_get_user_channel_id(long this_ptr);
7569 // void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKU128 val);
7570 public static native void ChannelDetails_set_user_channel_id(long this_ptr, byte[] val);
7571 // struct LDKCOption_u32Z ChannelDetails_get_feerate_sat_per_1000_weight(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7572 public static native long ChannelDetails_get_feerate_sat_per_1000_weight(long this_ptr);
7573 // void ChannelDetails_set_feerate_sat_per_1000_weight(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
7574 public static native void ChannelDetails_set_feerate_sat_per_1000_weight(long this_ptr, long val);
7575 // uint64_t ChannelDetails_get_balance_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7576 public static native long ChannelDetails_get_balance_msat(long this_ptr);
7577 // void ChannelDetails_set_balance_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
7578 public static native void ChannelDetails_set_balance_msat(long this_ptr, long val);
7579 // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7580 public static native long ChannelDetails_get_outbound_capacity_msat(long this_ptr);
7581 // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
7582 public static native void ChannelDetails_set_outbound_capacity_msat(long this_ptr, long val);
7583 // uint64_t ChannelDetails_get_next_outbound_htlc_limit_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7584 public static native long ChannelDetails_get_next_outbound_htlc_limit_msat(long this_ptr);
7585 // void ChannelDetails_set_next_outbound_htlc_limit_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
7586 public static native void ChannelDetails_set_next_outbound_htlc_limit_msat(long this_ptr, long val);
7587 // uint64_t ChannelDetails_get_next_outbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7588 public static native long ChannelDetails_get_next_outbound_htlc_minimum_msat(long this_ptr);
7589 // void ChannelDetails_set_next_outbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
7590 public static native void ChannelDetails_set_next_outbound_htlc_minimum_msat(long this_ptr, long val);
7591 // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7592 public static native long ChannelDetails_get_inbound_capacity_msat(long this_ptr);
7593 // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
7594 public static native void ChannelDetails_set_inbound_capacity_msat(long this_ptr, long val);
7595 // struct LDKCOption_u32Z ChannelDetails_get_confirmations_required(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7596 public static native long ChannelDetails_get_confirmations_required(long this_ptr);
7597 // void ChannelDetails_set_confirmations_required(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
7598 public static native void ChannelDetails_set_confirmations_required(long this_ptr, long val);
7599 // struct LDKCOption_u32Z ChannelDetails_get_confirmations(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7600 public static native long ChannelDetails_get_confirmations(long this_ptr);
7601 // void ChannelDetails_set_confirmations(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
7602 public static native void ChannelDetails_set_confirmations(long this_ptr, long val);
7603 // struct LDKCOption_u16Z ChannelDetails_get_force_close_spend_delay(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7604 public static native long ChannelDetails_get_force_close_spend_delay(long this_ptr);
7605 // void ChannelDetails_set_force_close_spend_delay(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
7606 public static native void ChannelDetails_set_force_close_spend_delay(long this_ptr, long val);
7607 // bool ChannelDetails_get_is_outbound(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7608 public static native boolean ChannelDetails_get_is_outbound(long this_ptr);
7609 // void ChannelDetails_set_is_outbound(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
7610 public static native void ChannelDetails_set_is_outbound(long this_ptr, boolean val);
7611 // bool ChannelDetails_get_is_channel_ready(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7612 public static native boolean ChannelDetails_get_is_channel_ready(long this_ptr);
7613 // void ChannelDetails_set_is_channel_ready(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
7614 public static native void ChannelDetails_set_is_channel_ready(long this_ptr, boolean val);
7615 // struct LDKCOption_ChannelShutdownStateZ ChannelDetails_get_channel_shutdown_state(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7616 public static native long ChannelDetails_get_channel_shutdown_state(long this_ptr);
7617 // void ChannelDetails_set_channel_shutdown_state(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_ChannelShutdownStateZ val);
7618 public static native void ChannelDetails_set_channel_shutdown_state(long this_ptr, long val);
7619 // bool ChannelDetails_get_is_usable(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7620 public static native boolean ChannelDetails_get_is_usable(long this_ptr);
7621 // void ChannelDetails_set_is_usable(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
7622 public static native void ChannelDetails_set_is_usable(long this_ptr, boolean val);
7623 // bool ChannelDetails_get_is_public(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7624 public static native boolean ChannelDetails_get_is_public(long this_ptr);
7625 // void ChannelDetails_set_is_public(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
7626 public static native void ChannelDetails_set_is_public(long this_ptr, boolean val);
7627 // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7628 public static native long ChannelDetails_get_inbound_htlc_minimum_msat(long this_ptr);
7629 // void ChannelDetails_set_inbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7630 public static native void ChannelDetails_set_inbound_htlc_minimum_msat(long this_ptr, long val);
7631 // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_maximum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7632 public static native long ChannelDetails_get_inbound_htlc_maximum_msat(long this_ptr);
7633 // void ChannelDetails_set_inbound_htlc_maximum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
7634 public static native void ChannelDetails_set_inbound_htlc_maximum_msat(long this_ptr, long val);
7635 // struct LDKChannelConfig ChannelDetails_get_config(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
7636 public static native long ChannelDetails_get_config(long this_ptr);
7637 // void ChannelDetails_set_config(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
7638 public static native void ChannelDetails_set_config(long this_ptr, long val);
7639 // MUST_USE_RES struct LDKChannelDetails ChannelDetails_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKChannelCounterparty counterparty_arg, struct LDKOutPoint funding_txo_arg, struct LDKChannelTypeFeatures channel_type_arg, struct LDKCOption_u64Z short_channel_id_arg, struct LDKCOption_u64Z outbound_scid_alias_arg, struct LDKCOption_u64Z inbound_scid_alias_arg, uint64_t channel_value_satoshis_arg, struct LDKCOption_u64Z unspendable_punishment_reserve_arg, struct LDKU128 user_channel_id_arg, struct LDKCOption_u32Z feerate_sat_per_1000_weight_arg, uint64_t balance_msat_arg, uint64_t outbound_capacity_msat_arg, uint64_t next_outbound_htlc_limit_msat_arg, uint64_t next_outbound_htlc_minimum_msat_arg, uint64_t inbound_capacity_msat_arg, struct LDKCOption_u32Z confirmations_required_arg, struct LDKCOption_u32Z confirmations_arg, struct LDKCOption_u16Z force_close_spend_delay_arg, bool is_outbound_arg, bool is_channel_ready_arg, struct LDKCOption_ChannelShutdownStateZ channel_shutdown_state_arg, bool is_usable_arg, bool is_public_arg, struct LDKCOption_u64Z inbound_htlc_minimum_msat_arg, struct LDKCOption_u64Z inbound_htlc_maximum_msat_arg, struct LDKChannelConfig config_arg);
7640 public static native long ChannelDetails_new(byte[] channel_id_arg, long counterparty_arg, long funding_txo_arg, long channel_type_arg, long short_channel_id_arg, long outbound_scid_alias_arg, long inbound_scid_alias_arg, long channel_value_satoshis_arg, long unspendable_punishment_reserve_arg, byte[] user_channel_id_arg, long feerate_sat_per_1000_weight_arg, long balance_msat_arg, long outbound_capacity_msat_arg, long next_outbound_htlc_limit_msat_arg, long next_outbound_htlc_minimum_msat_arg, long inbound_capacity_msat_arg, long confirmations_required_arg, long confirmations_arg, long force_close_spend_delay_arg, boolean is_outbound_arg, boolean is_channel_ready_arg, long channel_shutdown_state_arg, boolean is_usable_arg, boolean is_public_arg, long inbound_htlc_minimum_msat_arg, long inbound_htlc_maximum_msat_arg, long config_arg);
7641 // uint64_t ChannelDetails_clone_ptr(LDKChannelDetails *NONNULL_PTR arg);
7642 public static native long ChannelDetails_clone_ptr(long arg);
7643 // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig);
7644 public static native long ChannelDetails_clone(long orig);
7645 // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_inbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
7646 public static native long ChannelDetails_get_inbound_payment_scid(long this_arg);
7647 // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_outbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
7648 public static native long ChannelDetails_get_outbound_payment_scid(long this_arg);
7649 // enum LDKChannelShutdownState ChannelShutdownState_clone(const enum LDKChannelShutdownState *NONNULL_PTR orig);
7650 public static native ChannelShutdownState ChannelShutdownState_clone(long orig);
7651 // enum LDKChannelShutdownState ChannelShutdownState_not_shutting_down(void);
7652 public static native ChannelShutdownState ChannelShutdownState_not_shutting_down();
7653 // enum LDKChannelShutdownState ChannelShutdownState_shutdown_initiated(void);
7654 public static native ChannelShutdownState ChannelShutdownState_shutdown_initiated();
7655 // enum LDKChannelShutdownState ChannelShutdownState_resolving_htlcs(void);
7656 public static native ChannelShutdownState ChannelShutdownState_resolving_htlcs();
7657 // enum LDKChannelShutdownState ChannelShutdownState_negotiating_closing_fee(void);
7658 public static native ChannelShutdownState ChannelShutdownState_negotiating_closing_fee();
7659 // enum LDKChannelShutdownState ChannelShutdownState_shutdown_complete(void);
7660 public static native ChannelShutdownState ChannelShutdownState_shutdown_complete();
7661 // bool ChannelShutdownState_eq(const enum LDKChannelShutdownState *NONNULL_PTR a, const enum LDKChannelShutdownState *NONNULL_PTR b);
7662 public static native boolean ChannelShutdownState_eq(long a, long b);
7663 // void RecentPaymentDetails_free(struct LDKRecentPaymentDetails this_ptr);
7664 public static native void RecentPaymentDetails_free(long this_ptr);
7665 // uint64_t RecentPaymentDetails_clone_ptr(LDKRecentPaymentDetails *NONNULL_PTR arg);
7666 public static native long RecentPaymentDetails_clone_ptr(long arg);
7667 // struct LDKRecentPaymentDetails RecentPaymentDetails_clone(const struct LDKRecentPaymentDetails *NONNULL_PTR orig);
7668 public static native long RecentPaymentDetails_clone(long orig);
7669 // struct LDKRecentPaymentDetails RecentPaymentDetails_awaiting_invoice(struct LDKThirtyTwoBytes payment_id);
7670 public static native long RecentPaymentDetails_awaiting_invoice(byte[] payment_id);
7671 // struct LDKRecentPaymentDetails RecentPaymentDetails_pending(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, uint64_t total_msat);
7672 public static native long RecentPaymentDetails_pending(byte[] payment_id, byte[] payment_hash, long total_msat);
7673 // struct LDKRecentPaymentDetails RecentPaymentDetails_fulfilled(struct LDKThirtyTwoBytes payment_id, struct LDKCOption_ThirtyTwoBytesZ payment_hash);
7674 public static native long RecentPaymentDetails_fulfilled(byte[] payment_id, long payment_hash);
7675 // struct LDKRecentPaymentDetails RecentPaymentDetails_abandoned(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash);
7676 public static native long RecentPaymentDetails_abandoned(byte[] payment_id, byte[] payment_hash);
7677 // void PhantomRouteHints_free(struct LDKPhantomRouteHints this_obj);
7678 public static native void PhantomRouteHints_free(long this_obj);
7679 // struct LDKCVec_ChannelDetailsZ PhantomRouteHints_get_channels(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
7680 public static native long[] PhantomRouteHints_get_channels(long this_ptr);
7681 // void PhantomRouteHints_set_channels(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKCVec_ChannelDetailsZ val);
7682 public static native void PhantomRouteHints_set_channels(long this_ptr, long[] val);
7683 // uint64_t PhantomRouteHints_get_phantom_scid(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
7684 public static native long PhantomRouteHints_get_phantom_scid(long this_ptr);
7685 // void PhantomRouteHints_set_phantom_scid(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, uint64_t val);
7686 public static native void PhantomRouteHints_set_phantom_scid(long this_ptr, long val);
7687 // struct LDKPublicKey PhantomRouteHints_get_real_node_pubkey(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
7688 public static native byte[] PhantomRouteHints_get_real_node_pubkey(long this_ptr);
7689 // void PhantomRouteHints_set_real_node_pubkey(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7690 public static native void PhantomRouteHints_set_real_node_pubkey(long this_ptr, byte[] val);
7691 // MUST_USE_RES struct LDKPhantomRouteHints PhantomRouteHints_new(struct LDKCVec_ChannelDetailsZ channels_arg, uint64_t phantom_scid_arg, struct LDKPublicKey real_node_pubkey_arg);
7692 public static native long PhantomRouteHints_new(long[] channels_arg, long phantom_scid_arg, byte[] real_node_pubkey_arg);
7693 // uint64_t PhantomRouteHints_clone_ptr(LDKPhantomRouteHints *NONNULL_PTR arg);
7694 public static native long PhantomRouteHints_clone_ptr(long arg);
7695 // struct LDKPhantomRouteHints PhantomRouteHints_clone(const struct LDKPhantomRouteHints *NONNULL_PTR orig);
7696 public static native long PhantomRouteHints_clone(long orig);
7697 // 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);
7698 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);
7699 // MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configuration(const struct LDKChannelManager *NONNULL_PTR this_arg);
7700 public static native long ChannelManager_get_current_default_configuration(long this_arg);
7701 // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesAPIErrorZ ChannelManager_create_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey their_network_key, uint64_t channel_value_satoshis, uint64_t push_msat, struct LDKU128 user_channel_id, struct LDKCOption_ThirtyTwoBytesZ temporary_channel_id, struct LDKUserConfig override_config);
7702 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);
7703 // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
7704 public static native long[] ChannelManager_list_channels(long this_arg);
7705 // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
7706 public static native long[] ChannelManager_list_usable_channels(long this_arg);
7707 // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels_with_counterparty(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id);
7708 public static native long[] ChannelManager_list_channels_with_counterparty(long this_arg, byte[] counterparty_node_id);
7709 // MUST_USE_RES struct LDKCVec_RecentPaymentDetailsZ ChannelManager_list_recent_payments(const struct LDKChannelManager *NONNULL_PTR this_arg);
7710 public static native long[] ChannelManager_list_recent_payments(long this_arg);
7711 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id);
7712 public static native long ChannelManager_close_channel(long this_arg, byte[] channel_id, byte[] counterparty_node_id);
7713 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel_with_feerate_and_script(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id, struct LDKCOption_u32Z target_feerate_sats_per_1000_weight, struct LDKShutdownScript shutdown_script);
7714 public static native long ChannelManager_close_channel_with_feerate_and_script(long this_arg, byte[] channel_id, byte[] counterparty_node_id, long target_feerate_sats_per_1000_weight, long shutdown_script);
7715 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id);
7716 public static native long ChannelManager_force_close_broadcasting_latest_txn(long this_arg, byte[] channel_id, byte[] counterparty_node_id);
7717 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id);
7718 public static native long ChannelManager_force_close_without_broadcasting_txn(long this_arg, byte[] channel_id, byte[] counterparty_node_id);
7719 // void ChannelManager_force_close_all_channels_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
7720 public static native void ChannelManager_force_close_all_channels_broadcasting_latest_txn(long this_arg);
7721 // void ChannelManager_force_close_all_channels_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
7722 public static native void ChannelManager_force_close_all_channels_without_broadcasting_txn(long this_arg);
7723 // 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);
7724 public static native long ChannelManager_send_payment_with_route(long this_arg, long route, byte[] payment_hash, long recipient_onion, byte[] payment_id);
7725 // 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);
7726 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);
7727 // void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id);
7728 public static native void ChannelManager_abandon_payment(long this_arg, byte[] payment_id);
7729 // 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);
7730 public static native long ChannelManager_send_spontaneous_payment(long this_arg, long route, long payment_preimage, long recipient_onion, byte[] payment_id);
7731 // 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);
7732 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);
7733 // MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ ChannelManager_send_probe(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPath path);
7734 public static native long ChannelManager_send_probe(long this_arg, long path);
7735 // 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);
7736 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);
7737 // 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);
7738 public static native long ChannelManager_send_preflight_probes(long this_arg, long route_params, long liquidity_limit_multiplier);
7739 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKPublicKey counterparty_node_id, struct LDKTransaction funding_transaction);
7740 public static native long ChannelManager_funding_transaction_generated(long this_arg, byte[] temporary_channel_id, byte[] counterparty_node_id, byte[] funding_transaction);
7741 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_batch_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ temporary_channels, struct LDKTransaction funding_transaction);
7742 public static native long ChannelManager_batch_funding_transaction_generated(long this_arg, long[] temporary_channels, byte[] funding_transaction);
7743 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_update_partial_channel_config(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id, struct LDKCVec_ThirtyTwoBytesZ channel_ids, const struct LDKChannelConfigUpdate *NONNULL_PTR config_update);
7744 public static native long ChannelManager_update_partial_channel_config(long this_arg, byte[] counterparty_node_id, byte[][] channel_ids, long config_update);
7745 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_update_channel_config(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id, struct LDKCVec_ThirtyTwoBytesZ channel_ids, const struct LDKChannelConfig *NONNULL_PTR config);
7746 public static native long ChannelManager_update_channel_config(long this_arg, byte[] counterparty_node_id, byte[][] channel_ids, long config);
7747 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_forward_intercepted_htlc(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes intercept_id, const uint8_t (*next_hop_channel_id)[32], struct LDKPublicKey next_node_id, uint64_t amt_to_forward_msat);
7748 public static native long ChannelManager_forward_intercepted_htlc(long this_arg, byte[] intercept_id, byte[] next_hop_channel_id, byte[] next_node_id, long amt_to_forward_msat);
7749 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_fail_intercepted_htlc(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes intercept_id);
7750 public static native long ChannelManager_fail_intercepted_htlc(long this_arg, byte[] intercept_id);
7751 // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg);
7752 public static native void ChannelManager_process_pending_htlc_forwards(long this_arg);
7753 // void ChannelManager_timer_tick_occurred(const struct LDKChannelManager *NONNULL_PTR this_arg);
7754 public static native void ChannelManager_timer_tick_occurred(long this_arg);
7755 // void ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
7756 public static native void ChannelManager_fail_htlc_backwards(long this_arg, byte[] payment_hash);
7757 // void ChannelManager_fail_htlc_backwards_with_reason(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32], struct LDKFailureCode failure_code);
7758 public static native void ChannelManager_fail_htlc_backwards_with_reason(long this_arg, byte[] payment_hash, long failure_code);
7759 // void ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage);
7760 public static native void ChannelManager_claim_funds(long this_arg, byte[] payment_preimage);
7761 // void ChannelManager_claim_funds_with_known_custom_tlvs(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage);
7762 public static native void ChannelManager_claim_funds_with_known_custom_tlvs(long this_arg, byte[] payment_preimage);
7763 // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg);
7764 public static native byte[] ChannelManager_get_our_node_id(long this_arg);
7765 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKPublicKey counterparty_node_id, struct LDKU128 user_channel_id);
7766 public static native long ChannelManager_accept_inbound_channel(long this_arg, byte[] temporary_channel_id, byte[] counterparty_node_id, byte[] user_channel_id);
7767 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKPublicKey counterparty_node_id, struct LDKU128 user_channel_id);
7768 public static native long ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(long this_arg, byte[] temporary_channel_id, byte[] counterparty_node_id, byte[] user_channel_id);
7769 // 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);
7770 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);
7771 // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ ChannelManager_request_refund_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRefund *NONNULL_PTR refund);
7772 public static native long ChannelManager_request_refund_payment(long this_arg, long refund);
7773 // 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);
7774 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);
7775 // 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);
7776 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);
7777 // 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);
7778 public static native long ChannelManager_get_payment_preimage(long this_arg, byte[] payment_hash, byte[] payment_secret);
7779 // MUST_USE_RES uint64_t ChannelManager_get_phantom_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
7780 public static native long ChannelManager_get_phantom_scid(long this_arg);
7781 // MUST_USE_RES struct LDKPhantomRouteHints ChannelManager_get_phantom_route_hints(const struct LDKChannelManager *NONNULL_PTR this_arg);
7782 public static native long ChannelManager_get_phantom_route_hints(long this_arg);
7783 // MUST_USE_RES uint64_t ChannelManager_get_intercept_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
7784 public static native long ChannelManager_get_intercept_scid(long this_arg);
7785 // MUST_USE_RES struct LDKInFlightHtlcs ChannelManager_compute_inflight_htlcs(const struct LDKChannelManager *NONNULL_PTR this_arg);
7786 public static native long ChannelManager_compute_inflight_htlcs(long this_arg);
7787 // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
7788 public static native long ChannelManager_as_MessageSendEventsProvider(long this_arg);
7789 // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
7790 public static native long ChannelManager_as_EventsProvider(long this_arg);
7791 // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg);
7792 public static native long ChannelManager_as_Listen(long this_arg);
7793 // struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg);
7794 public static native long ChannelManager_as_Confirm(long this_arg);
7795 // MUST_USE_RES struct LDKFuture ChannelManager_get_event_or_persistence_needed_future(const struct LDKChannelManager *NONNULL_PTR this_arg);
7796 public static native long ChannelManager_get_event_or_persistence_needed_future(long this_arg);
7797 // MUST_USE_RES bool ChannelManager_get_and_clear_needs_persistence(const struct LDKChannelManager *NONNULL_PTR this_arg);
7798 public static native boolean ChannelManager_get_and_clear_needs_persistence(long this_arg);
7799 // MUST_USE_RES struct LDKBestBlock ChannelManager_current_best_block(const struct LDKChannelManager *NONNULL_PTR this_arg);
7800 public static native long ChannelManager_current_best_block(long this_arg);
7801 // MUST_USE_RES struct LDKNodeFeatures ChannelManager_node_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
7802 public static native long ChannelManager_node_features(long this_arg);
7803 // MUST_USE_RES struct LDKChannelFeatures ChannelManager_channel_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
7804 public static native long ChannelManager_channel_features(long this_arg);
7805 // MUST_USE_RES struct LDKChannelTypeFeatures ChannelManager_channel_type_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
7806 public static native long ChannelManager_channel_type_features(long this_arg);
7807 // MUST_USE_RES struct LDKInitFeatures ChannelManager_init_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
7808 public static native long ChannelManager_init_features(long this_arg);
7809 // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
7810 public static native long ChannelManager_as_ChannelMessageHandler(long this_arg);
7811 // struct LDKOffersMessageHandler ChannelManager_as_OffersMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
7812 public static native long ChannelManager_as_OffersMessageHandler(long this_arg);
7813 // struct LDKInitFeatures provided_init_features(const struct LDKUserConfig *NONNULL_PTR config);
7814 public static native long provided_init_features(long config);
7815 // struct LDKCVec_u8Z CounterpartyForwardingInfo_write(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR obj);
7816 public static native byte[] CounterpartyForwardingInfo_write(long obj);
7817 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CounterpartyForwardingInfo_read(struct LDKu8slice ser);
7818 public static native long CounterpartyForwardingInfo_read(byte[] ser);
7819 // struct LDKCVec_u8Z ChannelCounterparty_write(const struct LDKChannelCounterparty *NONNULL_PTR obj);
7820 public static native byte[] ChannelCounterparty_write(long obj);
7821 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ ChannelCounterparty_read(struct LDKu8slice ser);
7822 public static native long ChannelCounterparty_read(byte[] ser);
7823 // struct LDKCVec_u8Z ChannelDetails_write(const struct LDKChannelDetails *NONNULL_PTR obj);
7824 public static native byte[] ChannelDetails_write(long obj);
7825 // struct LDKCResult_ChannelDetailsDecodeErrorZ ChannelDetails_read(struct LDKu8slice ser);
7826 public static native long ChannelDetails_read(byte[] ser);
7827 // struct LDKCVec_u8Z PhantomRouteHints_write(const struct LDKPhantomRouteHints *NONNULL_PTR obj);
7828 public static native byte[] PhantomRouteHints_write(long obj);
7829 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ PhantomRouteHints_read(struct LDKu8slice ser);
7830 public static native long PhantomRouteHints_read(byte[] ser);
7831 // struct LDKCVec_u8Z BlindedForward_write(const struct LDKBlindedForward *NONNULL_PTR obj);
7832 public static native byte[] BlindedForward_write(long obj);
7833 // struct LDKCResult_BlindedForwardDecodeErrorZ BlindedForward_read(struct LDKu8slice ser);
7834 public static native long BlindedForward_read(byte[] ser);
7835 // struct LDKCVec_u8Z PendingHTLCRouting_write(const struct LDKPendingHTLCRouting *NONNULL_PTR obj);
7836 public static native byte[] PendingHTLCRouting_write(long obj);
7837 // struct LDKCResult_PendingHTLCRoutingDecodeErrorZ PendingHTLCRouting_read(struct LDKu8slice ser);
7838 public static native long PendingHTLCRouting_read(byte[] ser);
7839 // struct LDKCVec_u8Z PendingHTLCInfo_write(const struct LDKPendingHTLCInfo *NONNULL_PTR obj);
7840 public static native byte[] PendingHTLCInfo_write(long obj);
7841 // struct LDKCResult_PendingHTLCInfoDecodeErrorZ PendingHTLCInfo_read(struct LDKu8slice ser);
7842 public static native long PendingHTLCInfo_read(byte[] ser);
7843 // struct LDKCVec_u8Z BlindedFailure_write(const enum LDKBlindedFailure *NONNULL_PTR obj);
7844 public static native byte[] BlindedFailure_write(long obj);
7845 // struct LDKCResult_BlindedFailureDecodeErrorZ BlindedFailure_read(struct LDKu8slice ser);
7846 public static native long BlindedFailure_read(byte[] ser);
7847 // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj);
7848 public static native byte[] ChannelManager_write(long obj);
7849 // struct LDKCVec_u8Z ChannelShutdownState_write(const enum LDKChannelShutdownState *NONNULL_PTR obj);
7850 public static native byte[] ChannelShutdownState_write(long obj);
7851 // struct LDKCResult_ChannelShutdownStateDecodeErrorZ ChannelShutdownState_read(struct LDKu8slice ser);
7852 public static native long ChannelShutdownState_read(byte[] ser);
7853 // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj);
7854 public static native void ChannelManagerReadArgs_free(long this_obj);
7855 // const struct LDKEntropySource *ChannelManagerReadArgs_get_entropy_source(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7856 public static native long ChannelManagerReadArgs_get_entropy_source(long this_ptr);
7857 // void ChannelManagerReadArgs_set_entropy_source(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKEntropySource val);
7858 public static native void ChannelManagerReadArgs_set_entropy_source(long this_ptr, long val);
7859 // const struct LDKNodeSigner *ChannelManagerReadArgs_get_node_signer(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7860 public static native long ChannelManagerReadArgs_get_node_signer(long this_ptr);
7861 // void ChannelManagerReadArgs_set_node_signer(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKNodeSigner val);
7862 public static native void ChannelManagerReadArgs_set_node_signer(long this_ptr, long val);
7863 // const struct LDKSignerProvider *ChannelManagerReadArgs_get_signer_provider(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7864 public static native long ChannelManagerReadArgs_get_signer_provider(long this_ptr);
7865 // void ChannelManagerReadArgs_set_signer_provider(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKSignerProvider val);
7866 public static native void ChannelManagerReadArgs_set_signer_provider(long this_ptr, long val);
7867 // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7868 public static native long ChannelManagerReadArgs_get_fee_estimator(long this_ptr);
7869 // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val);
7870 public static native void ChannelManagerReadArgs_set_fee_estimator(long this_ptr, long val);
7871 // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7872 public static native long ChannelManagerReadArgs_get_chain_monitor(long this_ptr);
7873 // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val);
7874 public static native void ChannelManagerReadArgs_set_chain_monitor(long this_ptr, long val);
7875 // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7876 public static native long ChannelManagerReadArgs_get_tx_broadcaster(long this_ptr);
7877 // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val);
7878 public static native void ChannelManagerReadArgs_set_tx_broadcaster(long this_ptr, long val);
7879 // const struct LDKRouter *ChannelManagerReadArgs_get_router(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7880 public static native long ChannelManagerReadArgs_get_router(long this_ptr);
7881 // void ChannelManagerReadArgs_set_router(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKRouter val);
7882 public static native void ChannelManagerReadArgs_set_router(long this_ptr, long val);
7883 // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7884 public static native long ChannelManagerReadArgs_get_logger(long this_ptr);
7885 // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val);
7886 public static native void ChannelManagerReadArgs_set_logger(long this_ptr, long val);
7887 // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
7888 public static native long ChannelManagerReadArgs_get_default_config(long this_ptr);
7889 // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val);
7890 public static native void ChannelManagerReadArgs_set_default_config(long this_ptr, long val);
7891 // 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);
7892 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);
7893 // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg);
7894 public static native long C2Tuple_ThirtyTwoBytesChannelManagerZ_read(byte[] ser, long arg);
7895 // void DelayedPaymentBasepoint_free(struct LDKDelayedPaymentBasepoint this_obj);
7896 public static native void DelayedPaymentBasepoint_free(long this_obj);
7897 // struct LDKPublicKey DelayedPaymentBasepoint_get_a(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR this_ptr);
7898 public static native byte[] DelayedPaymentBasepoint_get_a(long this_ptr);
7899 // void DelayedPaymentBasepoint_set_a(struct LDKDelayedPaymentBasepoint *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7900 public static native void DelayedPaymentBasepoint_set_a(long this_ptr, byte[] val);
7901 // MUST_USE_RES struct LDKDelayedPaymentBasepoint DelayedPaymentBasepoint_new(struct LDKPublicKey a_arg);
7902 public static native long DelayedPaymentBasepoint_new(byte[] a_arg);
7903 // bool DelayedPaymentBasepoint_eq(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR a, const struct LDKDelayedPaymentBasepoint *NONNULL_PTR b);
7904 public static native boolean DelayedPaymentBasepoint_eq(long a, long b);
7905 // uint64_t DelayedPaymentBasepoint_clone_ptr(LDKDelayedPaymentBasepoint *NONNULL_PTR arg);
7906 public static native long DelayedPaymentBasepoint_clone_ptr(long arg);
7907 // struct LDKDelayedPaymentBasepoint DelayedPaymentBasepoint_clone(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR orig);
7908 public static native long DelayedPaymentBasepoint_clone(long orig);
7909 // uint64_t DelayedPaymentBasepoint_hash(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR o);
7910 public static native long DelayedPaymentBasepoint_hash(long o);
7911 // MUST_USE_RES struct LDKPublicKey DelayedPaymentBasepoint_to_public_key(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR this_arg);
7912 public static native byte[] DelayedPaymentBasepoint_to_public_key(long this_arg);
7913 // struct LDKCVec_u8Z DelayedPaymentBasepoint_write(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR obj);
7914 public static native byte[] DelayedPaymentBasepoint_write(long obj);
7915 // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ DelayedPaymentBasepoint_read(struct LDKu8slice ser);
7916 public static native long DelayedPaymentBasepoint_read(byte[] ser);
7917 // void DelayedPaymentKey_free(struct LDKDelayedPaymentKey this_obj);
7918 public static native void DelayedPaymentKey_free(long this_obj);
7919 // struct LDKPublicKey DelayedPaymentKey_get_a(const struct LDKDelayedPaymentKey *NONNULL_PTR this_ptr);
7920 public static native byte[] DelayedPaymentKey_get_a(long this_ptr);
7921 // void DelayedPaymentKey_set_a(struct LDKDelayedPaymentKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7922 public static native void DelayedPaymentKey_set_a(long this_ptr, byte[] val);
7923 // MUST_USE_RES struct LDKDelayedPaymentKey DelayedPaymentKey_new(struct LDKPublicKey a_arg);
7924 public static native long DelayedPaymentKey_new(byte[] a_arg);
7925 // bool DelayedPaymentKey_eq(const struct LDKDelayedPaymentKey *NONNULL_PTR a, const struct LDKDelayedPaymentKey *NONNULL_PTR b);
7926 public static native boolean DelayedPaymentKey_eq(long a, long b);
7927 // uint64_t DelayedPaymentKey_clone_ptr(LDKDelayedPaymentKey *NONNULL_PTR arg);
7928 public static native long DelayedPaymentKey_clone_ptr(long arg);
7929 // struct LDKDelayedPaymentKey DelayedPaymentKey_clone(const struct LDKDelayedPaymentKey *NONNULL_PTR orig);
7930 public static native long DelayedPaymentKey_clone(long orig);
7931 // MUST_USE_RES struct LDKDelayedPaymentKey DelayedPaymentKey_from_basepoint(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR countersignatory_basepoint, struct LDKPublicKey per_commitment_point);
7932 public static native long DelayedPaymentKey_from_basepoint(long countersignatory_basepoint, byte[] per_commitment_point);
7933 // MUST_USE_RES struct LDKDelayedPaymentKey DelayedPaymentKey_from_secret_key(const uint8_t (*sk)[32]);
7934 public static native long DelayedPaymentKey_from_secret_key(byte[] sk);
7935 // MUST_USE_RES struct LDKPublicKey DelayedPaymentKey_to_public_key(const struct LDKDelayedPaymentKey *NONNULL_PTR this_arg);
7936 public static native byte[] DelayedPaymentKey_to_public_key(long this_arg);
7937 // struct LDKCVec_u8Z DelayedPaymentKey_write(const struct LDKDelayedPaymentKey *NONNULL_PTR obj);
7938 public static native byte[] DelayedPaymentKey_write(long obj);
7939 // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ DelayedPaymentKey_read(struct LDKu8slice ser);
7940 public static native long DelayedPaymentKey_read(byte[] ser);
7941 // void HtlcBasepoint_free(struct LDKHtlcBasepoint this_obj);
7942 public static native void HtlcBasepoint_free(long this_obj);
7943 // struct LDKPublicKey HtlcBasepoint_get_a(const struct LDKHtlcBasepoint *NONNULL_PTR this_ptr);
7944 public static native byte[] HtlcBasepoint_get_a(long this_ptr);
7945 // void HtlcBasepoint_set_a(struct LDKHtlcBasepoint *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7946 public static native void HtlcBasepoint_set_a(long this_ptr, byte[] val);
7947 // MUST_USE_RES struct LDKHtlcBasepoint HtlcBasepoint_new(struct LDKPublicKey a_arg);
7948 public static native long HtlcBasepoint_new(byte[] a_arg);
7949 // bool HtlcBasepoint_eq(const struct LDKHtlcBasepoint *NONNULL_PTR a, const struct LDKHtlcBasepoint *NONNULL_PTR b);
7950 public static native boolean HtlcBasepoint_eq(long a, long b);
7951 // uint64_t HtlcBasepoint_clone_ptr(LDKHtlcBasepoint *NONNULL_PTR arg);
7952 public static native long HtlcBasepoint_clone_ptr(long arg);
7953 // struct LDKHtlcBasepoint HtlcBasepoint_clone(const struct LDKHtlcBasepoint *NONNULL_PTR orig);
7954 public static native long HtlcBasepoint_clone(long orig);
7955 // uint64_t HtlcBasepoint_hash(const struct LDKHtlcBasepoint *NONNULL_PTR o);
7956 public static native long HtlcBasepoint_hash(long o);
7957 // MUST_USE_RES struct LDKPublicKey HtlcBasepoint_to_public_key(const struct LDKHtlcBasepoint *NONNULL_PTR this_arg);
7958 public static native byte[] HtlcBasepoint_to_public_key(long this_arg);
7959 // struct LDKCVec_u8Z HtlcBasepoint_write(const struct LDKHtlcBasepoint *NONNULL_PTR obj);
7960 public static native byte[] HtlcBasepoint_write(long obj);
7961 // struct LDKCResult_HtlcBasepointDecodeErrorZ HtlcBasepoint_read(struct LDKu8slice ser);
7962 public static native long HtlcBasepoint_read(byte[] ser);
7963 // void HtlcKey_free(struct LDKHtlcKey this_obj);
7964 public static native void HtlcKey_free(long this_obj);
7965 // struct LDKPublicKey HtlcKey_get_a(const struct LDKHtlcKey *NONNULL_PTR this_ptr);
7966 public static native byte[] HtlcKey_get_a(long this_ptr);
7967 // void HtlcKey_set_a(struct LDKHtlcKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7968 public static native void HtlcKey_set_a(long this_ptr, byte[] val);
7969 // MUST_USE_RES struct LDKHtlcKey HtlcKey_new(struct LDKPublicKey a_arg);
7970 public static native long HtlcKey_new(byte[] a_arg);
7971 // bool HtlcKey_eq(const struct LDKHtlcKey *NONNULL_PTR a, const struct LDKHtlcKey *NONNULL_PTR b);
7972 public static native boolean HtlcKey_eq(long a, long b);
7973 // uint64_t HtlcKey_clone_ptr(LDKHtlcKey *NONNULL_PTR arg);
7974 public static native long HtlcKey_clone_ptr(long arg);
7975 // struct LDKHtlcKey HtlcKey_clone(const struct LDKHtlcKey *NONNULL_PTR orig);
7976 public static native long HtlcKey_clone(long orig);
7977 // MUST_USE_RES struct LDKHtlcKey HtlcKey_from_basepoint(const struct LDKHtlcBasepoint *NONNULL_PTR countersignatory_basepoint, struct LDKPublicKey per_commitment_point);
7978 public static native long HtlcKey_from_basepoint(long countersignatory_basepoint, byte[] per_commitment_point);
7979 // MUST_USE_RES struct LDKHtlcKey HtlcKey_from_secret_key(const uint8_t (*sk)[32]);
7980 public static native long HtlcKey_from_secret_key(byte[] sk);
7981 // MUST_USE_RES struct LDKPublicKey HtlcKey_to_public_key(const struct LDKHtlcKey *NONNULL_PTR this_arg);
7982 public static native byte[] HtlcKey_to_public_key(long this_arg);
7983 // struct LDKCVec_u8Z HtlcKey_write(const struct LDKHtlcKey *NONNULL_PTR obj);
7984 public static native byte[] HtlcKey_write(long obj);
7985 // struct LDKCResult_HtlcKeyDecodeErrorZ HtlcKey_read(struct LDKu8slice ser);
7986 public static native long HtlcKey_read(byte[] ser);
7987 // void RevocationBasepoint_free(struct LDKRevocationBasepoint this_obj);
7988 public static native void RevocationBasepoint_free(long this_obj);
7989 // struct LDKPublicKey RevocationBasepoint_get_a(const struct LDKRevocationBasepoint *NONNULL_PTR this_ptr);
7990 public static native byte[] RevocationBasepoint_get_a(long this_ptr);
7991 // void RevocationBasepoint_set_a(struct LDKRevocationBasepoint *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7992 public static native void RevocationBasepoint_set_a(long this_ptr, byte[] val);
7993 // MUST_USE_RES struct LDKRevocationBasepoint RevocationBasepoint_new(struct LDKPublicKey a_arg);
7994 public static native long RevocationBasepoint_new(byte[] a_arg);
7995 // bool RevocationBasepoint_eq(const struct LDKRevocationBasepoint *NONNULL_PTR a, const struct LDKRevocationBasepoint *NONNULL_PTR b);
7996 public static native boolean RevocationBasepoint_eq(long a, long b);
7997 // uint64_t RevocationBasepoint_clone_ptr(LDKRevocationBasepoint *NONNULL_PTR arg);
7998 public static native long RevocationBasepoint_clone_ptr(long arg);
7999 // struct LDKRevocationBasepoint RevocationBasepoint_clone(const struct LDKRevocationBasepoint *NONNULL_PTR orig);
8000 public static native long RevocationBasepoint_clone(long orig);
8001 // uint64_t RevocationBasepoint_hash(const struct LDKRevocationBasepoint *NONNULL_PTR o);
8002 public static native long RevocationBasepoint_hash(long o);
8003 // MUST_USE_RES struct LDKPublicKey RevocationBasepoint_to_public_key(const struct LDKRevocationBasepoint *NONNULL_PTR this_arg);
8004 public static native byte[] RevocationBasepoint_to_public_key(long this_arg);
8005 // struct LDKCVec_u8Z RevocationBasepoint_write(const struct LDKRevocationBasepoint *NONNULL_PTR obj);
8006 public static native byte[] RevocationBasepoint_write(long obj);
8007 // struct LDKCResult_RevocationBasepointDecodeErrorZ RevocationBasepoint_read(struct LDKu8slice ser);
8008 public static native long RevocationBasepoint_read(byte[] ser);
8009 // void RevocationKey_free(struct LDKRevocationKey this_obj);
8010 public static native void RevocationKey_free(long this_obj);
8011 // struct LDKPublicKey RevocationKey_get_a(const struct LDKRevocationKey *NONNULL_PTR this_ptr);
8012 public static native byte[] RevocationKey_get_a(long this_ptr);
8013 // void RevocationKey_set_a(struct LDKRevocationKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8014 public static native void RevocationKey_set_a(long this_ptr, byte[] val);
8015 // MUST_USE_RES struct LDKRevocationKey RevocationKey_new(struct LDKPublicKey a_arg);
8016 public static native long RevocationKey_new(byte[] a_arg);
8017 // bool RevocationKey_eq(const struct LDKRevocationKey *NONNULL_PTR a, const struct LDKRevocationKey *NONNULL_PTR b);
8018 public static native boolean RevocationKey_eq(long a, long b);
8019 // uint64_t RevocationKey_clone_ptr(LDKRevocationKey *NONNULL_PTR arg);
8020 public static native long RevocationKey_clone_ptr(long arg);
8021 // struct LDKRevocationKey RevocationKey_clone(const struct LDKRevocationKey *NONNULL_PTR orig);
8022 public static native long RevocationKey_clone(long orig);
8023 // uint64_t RevocationKey_hash(const struct LDKRevocationKey *NONNULL_PTR o);
8024 public static native long RevocationKey_hash(long o);
8025 // MUST_USE_RES struct LDKRevocationKey RevocationKey_from_basepoint(const struct LDKRevocationBasepoint *NONNULL_PTR countersignatory_basepoint, struct LDKPublicKey per_commitment_point);
8026 public static native long RevocationKey_from_basepoint(long countersignatory_basepoint, byte[] per_commitment_point);
8027 // MUST_USE_RES struct LDKPublicKey RevocationKey_to_public_key(const struct LDKRevocationKey *NONNULL_PTR this_arg);
8028 public static native byte[] RevocationKey_to_public_key(long this_arg);
8029 // struct LDKCVec_u8Z RevocationKey_write(const struct LDKRevocationKey *NONNULL_PTR obj);
8030 public static native byte[] RevocationKey_write(long obj);
8031 // struct LDKCResult_RevocationKeyDecodeErrorZ RevocationKey_read(struct LDKu8slice ser);
8032 public static native long RevocationKey_read(byte[] ser);
8033 // void ExpandedKey_free(struct LDKExpandedKey this_obj);
8034 public static native void ExpandedKey_free(long this_obj);
8035 // MUST_USE_RES struct LDKExpandedKey ExpandedKey_new(const uint8_t (*key_material)[32]);
8036 public static native long ExpandedKey_new(byte[] key_material);
8037 // 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);
8038 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);
8039 // 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);
8040 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);
8041 // void DecodeError_free(struct LDKDecodeError this_ptr);
8042 public static native void DecodeError_free(long this_ptr);
8043 // uint64_t DecodeError_clone_ptr(LDKDecodeError *NONNULL_PTR arg);
8044 public static native long DecodeError_clone_ptr(long arg);
8045 // struct LDKDecodeError DecodeError_clone(const struct LDKDecodeError *NONNULL_PTR orig);
8046 public static native long DecodeError_clone(long orig);
8047 // struct LDKDecodeError DecodeError_unknown_version(void);
8048 public static native long DecodeError_unknown_version();
8049 // struct LDKDecodeError DecodeError_unknown_required_feature(void);
8050 public static native long DecodeError_unknown_required_feature();
8051 // struct LDKDecodeError DecodeError_invalid_value(void);
8052 public static native long DecodeError_invalid_value();
8053 // struct LDKDecodeError DecodeError_short_read(void);
8054 public static native long DecodeError_short_read();
8055 // struct LDKDecodeError DecodeError_bad_length_descriptor(void);
8056 public static native long DecodeError_bad_length_descriptor();
8057 // struct LDKDecodeError DecodeError_io(enum LDKIOError a);
8058 public static native long DecodeError_io(IOError a);
8059 // struct LDKDecodeError DecodeError_unsupported_compression(void);
8060 public static native long DecodeError_unsupported_compression();
8061 // uint64_t DecodeError_hash(const struct LDKDecodeError *NONNULL_PTR o);
8062 public static native long DecodeError_hash(long o);
8063 // bool DecodeError_eq(const struct LDKDecodeError *NONNULL_PTR a, const struct LDKDecodeError *NONNULL_PTR b);
8064 public static native boolean DecodeError_eq(long a, long b);
8065 // void Init_free(struct LDKInit this_obj);
8066 public static native void Init_free(long this_obj);
8067 // struct LDKInitFeatures Init_get_features(const struct LDKInit *NONNULL_PTR this_ptr);
8068 public static native long Init_get_features(long this_ptr);
8069 // void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
8070 public static native void Init_set_features(long this_ptr, long val);
8071 // struct LDKCOption_CVec_ThirtyTwoBytesZZ Init_get_networks(const struct LDKInit *NONNULL_PTR this_ptr);
8072 public static native long Init_get_networks(long this_ptr);
8073 // void Init_set_networks(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_CVec_ThirtyTwoBytesZZ val);
8074 public static native void Init_set_networks(long this_ptr, long val);
8075 // struct LDKCOption_SocketAddressZ Init_get_remote_network_address(const struct LDKInit *NONNULL_PTR this_ptr);
8076 public static native long Init_get_remote_network_address(long this_ptr);
8077 // void Init_set_remote_network_address(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_SocketAddressZ val);
8078 public static native void Init_set_remote_network_address(long this_ptr, long val);
8079 // MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg, struct LDKCOption_CVec_ThirtyTwoBytesZZ networks_arg, struct LDKCOption_SocketAddressZ remote_network_address_arg);
8080 public static native long Init_new(long features_arg, long networks_arg, long remote_network_address_arg);
8081 // uint64_t Init_clone_ptr(LDKInit *NONNULL_PTR arg);
8082 public static native long Init_clone_ptr(long arg);
8083 // struct LDKInit Init_clone(const struct LDKInit *NONNULL_PTR orig);
8084 public static native long Init_clone(long orig);
8085 // uint64_t Init_hash(const struct LDKInit *NONNULL_PTR o);
8086 public static native long Init_hash(long o);
8087 // bool Init_eq(const struct LDKInit *NONNULL_PTR a, const struct LDKInit *NONNULL_PTR b);
8088 public static native boolean Init_eq(long a, long b);
8089 // void ErrorMessage_free(struct LDKErrorMessage this_obj);
8090 public static native void ErrorMessage_free(long this_obj);
8091 // const uint8_t (*ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr))[32];
8092 public static native byte[] ErrorMessage_get_channel_id(long this_ptr);
8093 // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8094 public static native void ErrorMessage_set_channel_id(long this_ptr, byte[] val);
8095 // struct LDKStr ErrorMessage_get_data(const struct LDKErrorMessage *NONNULL_PTR this_ptr);
8096 public static native String ErrorMessage_get_data(long this_ptr);
8097 // void ErrorMessage_set_data(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKStr val);
8098 public static native void ErrorMessage_set_data(long this_ptr, String val);
8099 // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
8100 public static native long ErrorMessage_new(byte[] channel_id_arg, String data_arg);
8101 // uint64_t ErrorMessage_clone_ptr(LDKErrorMessage *NONNULL_PTR arg);
8102 public static native long ErrorMessage_clone_ptr(long arg);
8103 // struct LDKErrorMessage ErrorMessage_clone(const struct LDKErrorMessage *NONNULL_PTR orig);
8104 public static native long ErrorMessage_clone(long orig);
8105 // uint64_t ErrorMessage_hash(const struct LDKErrorMessage *NONNULL_PTR o);
8106 public static native long ErrorMessage_hash(long o);
8107 // bool ErrorMessage_eq(const struct LDKErrorMessage *NONNULL_PTR a, const struct LDKErrorMessage *NONNULL_PTR b);
8108 public static native boolean ErrorMessage_eq(long a, long b);
8109 // void WarningMessage_free(struct LDKWarningMessage this_obj);
8110 public static native void WarningMessage_free(long this_obj);
8111 // const uint8_t (*WarningMessage_get_channel_id(const struct LDKWarningMessage *NONNULL_PTR this_ptr))[32];
8112 public static native byte[] WarningMessage_get_channel_id(long this_ptr);
8113 // void WarningMessage_set_channel_id(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8114 public static native void WarningMessage_set_channel_id(long this_ptr, byte[] val);
8115 // struct LDKStr WarningMessage_get_data(const struct LDKWarningMessage *NONNULL_PTR this_ptr);
8116 public static native String WarningMessage_get_data(long this_ptr);
8117 // void WarningMessage_set_data(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKStr val);
8118 public static native void WarningMessage_set_data(long this_ptr, String val);
8119 // MUST_USE_RES struct LDKWarningMessage WarningMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
8120 public static native long WarningMessage_new(byte[] channel_id_arg, String data_arg);
8121 // uint64_t WarningMessage_clone_ptr(LDKWarningMessage *NONNULL_PTR arg);
8122 public static native long WarningMessage_clone_ptr(long arg);
8123 // struct LDKWarningMessage WarningMessage_clone(const struct LDKWarningMessage *NONNULL_PTR orig);
8124 public static native long WarningMessage_clone(long orig);
8125 // uint64_t WarningMessage_hash(const struct LDKWarningMessage *NONNULL_PTR o);
8126 public static native long WarningMessage_hash(long o);
8127 // bool WarningMessage_eq(const struct LDKWarningMessage *NONNULL_PTR a, const struct LDKWarningMessage *NONNULL_PTR b);
8128 public static native boolean WarningMessage_eq(long a, long b);
8129 // void Ping_free(struct LDKPing this_obj);
8130 public static native void Ping_free(long this_obj);
8131 // uint16_t Ping_get_ponglen(const struct LDKPing *NONNULL_PTR this_ptr);
8132 public static native short Ping_get_ponglen(long this_ptr);
8133 // void Ping_set_ponglen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
8134 public static native void Ping_set_ponglen(long this_ptr, short val);
8135 // uint16_t Ping_get_byteslen(const struct LDKPing *NONNULL_PTR this_ptr);
8136 public static native short Ping_get_byteslen(long this_ptr);
8137 // void Ping_set_byteslen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
8138 public static native void Ping_set_byteslen(long this_ptr, short val);
8139 // MUST_USE_RES struct LDKPing Ping_new(uint16_t ponglen_arg, uint16_t byteslen_arg);
8140 public static native long Ping_new(short ponglen_arg, short byteslen_arg);
8141 // uint64_t Ping_clone_ptr(LDKPing *NONNULL_PTR arg);
8142 public static native long Ping_clone_ptr(long arg);
8143 // struct LDKPing Ping_clone(const struct LDKPing *NONNULL_PTR orig);
8144 public static native long Ping_clone(long orig);
8145 // uint64_t Ping_hash(const struct LDKPing *NONNULL_PTR o);
8146 public static native long Ping_hash(long o);
8147 // bool Ping_eq(const struct LDKPing *NONNULL_PTR a, const struct LDKPing *NONNULL_PTR b);
8148 public static native boolean Ping_eq(long a, long b);
8149 // void Pong_free(struct LDKPong this_obj);
8150 public static native void Pong_free(long this_obj);
8151 // uint16_t Pong_get_byteslen(const struct LDKPong *NONNULL_PTR this_ptr);
8152 public static native short Pong_get_byteslen(long this_ptr);
8153 // void Pong_set_byteslen(struct LDKPong *NONNULL_PTR this_ptr, uint16_t val);
8154 public static native void Pong_set_byteslen(long this_ptr, short val);
8155 // MUST_USE_RES struct LDKPong Pong_new(uint16_t byteslen_arg);
8156 public static native long Pong_new(short byteslen_arg);
8157 // uint64_t Pong_clone_ptr(LDKPong *NONNULL_PTR arg);
8158 public static native long Pong_clone_ptr(long arg);
8159 // struct LDKPong Pong_clone(const struct LDKPong *NONNULL_PTR orig);
8160 public static native long Pong_clone(long orig);
8161 // uint64_t Pong_hash(const struct LDKPong *NONNULL_PTR o);
8162 public static native long Pong_hash(long o);
8163 // bool Pong_eq(const struct LDKPong *NONNULL_PTR a, const struct LDKPong *NONNULL_PTR b);
8164 public static native boolean Pong_eq(long a, long b);
8165 // void OpenChannel_free(struct LDKOpenChannel this_obj);
8166 public static native void OpenChannel_free(long this_obj);
8167 // const uint8_t (*OpenChannel_get_chain_hash(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
8168 public static native byte[] OpenChannel_get_chain_hash(long this_ptr);
8169 // void OpenChannel_set_chain_hash(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8170 public static native void OpenChannel_set_chain_hash(long this_ptr, byte[] val);
8171 // const uint8_t (*OpenChannel_get_temporary_channel_id(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
8172 public static native byte[] OpenChannel_get_temporary_channel_id(long this_ptr);
8173 // void OpenChannel_set_temporary_channel_id(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8174 public static native void OpenChannel_set_temporary_channel_id(long this_ptr, byte[] val);
8175 // uint64_t OpenChannel_get_funding_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8176 public static native long OpenChannel_get_funding_satoshis(long this_ptr);
8177 // void OpenChannel_set_funding_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
8178 public static native void OpenChannel_set_funding_satoshis(long this_ptr, long val);
8179 // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8180 public static native long OpenChannel_get_push_msat(long this_ptr);
8181 // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
8182 public static native void OpenChannel_set_push_msat(long this_ptr, long val);
8183 // uint64_t OpenChannel_get_dust_limit_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8184 public static native long OpenChannel_get_dust_limit_satoshis(long this_ptr);
8185 // void OpenChannel_set_dust_limit_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
8186 public static native void OpenChannel_set_dust_limit_satoshis(long this_ptr, long val);
8187 // uint64_t OpenChannel_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8188 public static native long OpenChannel_get_max_htlc_value_in_flight_msat(long this_ptr);
8189 // void OpenChannel_set_max_htlc_value_in_flight_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
8190 public static native void OpenChannel_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
8191 // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8192 public static native long OpenChannel_get_channel_reserve_satoshis(long this_ptr);
8193 // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
8194 public static native void OpenChannel_set_channel_reserve_satoshis(long this_ptr, long val);
8195 // uint64_t OpenChannel_get_htlc_minimum_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8196 public static native long OpenChannel_get_htlc_minimum_msat(long this_ptr);
8197 // void OpenChannel_set_htlc_minimum_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
8198 public static native void OpenChannel_set_htlc_minimum_msat(long this_ptr, long val);
8199 // uint32_t OpenChannel_get_feerate_per_kw(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8200 public static native int OpenChannel_get_feerate_per_kw(long this_ptr);
8201 // void OpenChannel_set_feerate_per_kw(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint32_t val);
8202 public static native void OpenChannel_set_feerate_per_kw(long this_ptr, int val);
8203 // uint16_t OpenChannel_get_to_self_delay(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8204 public static native short OpenChannel_get_to_self_delay(long this_ptr);
8205 // void OpenChannel_set_to_self_delay(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
8206 public static native void OpenChannel_set_to_self_delay(long this_ptr, short val);
8207 // uint16_t OpenChannel_get_max_accepted_htlcs(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8208 public static native short OpenChannel_get_max_accepted_htlcs(long this_ptr);
8209 // void OpenChannel_set_max_accepted_htlcs(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
8210 public static native void OpenChannel_set_max_accepted_htlcs(long this_ptr, short val);
8211 // struct LDKPublicKey OpenChannel_get_funding_pubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8212 public static native byte[] OpenChannel_get_funding_pubkey(long this_ptr);
8213 // void OpenChannel_set_funding_pubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8214 public static native void OpenChannel_set_funding_pubkey(long this_ptr, byte[] val);
8215 // struct LDKPublicKey OpenChannel_get_revocation_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8216 public static native byte[] OpenChannel_get_revocation_basepoint(long this_ptr);
8217 // void OpenChannel_set_revocation_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8218 public static native void OpenChannel_set_revocation_basepoint(long this_ptr, byte[] val);
8219 // struct LDKPublicKey OpenChannel_get_payment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8220 public static native byte[] OpenChannel_get_payment_point(long this_ptr);
8221 // void OpenChannel_set_payment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8222 public static native void OpenChannel_set_payment_point(long this_ptr, byte[] val);
8223 // struct LDKPublicKey OpenChannel_get_delayed_payment_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8224 public static native byte[] OpenChannel_get_delayed_payment_basepoint(long this_ptr);
8225 // void OpenChannel_set_delayed_payment_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8226 public static native void OpenChannel_set_delayed_payment_basepoint(long this_ptr, byte[] val);
8227 // struct LDKPublicKey OpenChannel_get_htlc_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8228 public static native byte[] OpenChannel_get_htlc_basepoint(long this_ptr);
8229 // void OpenChannel_set_htlc_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8230 public static native void OpenChannel_set_htlc_basepoint(long this_ptr, byte[] val);
8231 // struct LDKPublicKey OpenChannel_get_first_per_commitment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8232 public static native byte[] OpenChannel_get_first_per_commitment_point(long this_ptr);
8233 // void OpenChannel_set_first_per_commitment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8234 public static native void OpenChannel_set_first_per_commitment_point(long this_ptr, byte[] val);
8235 // uint8_t OpenChannel_get_channel_flags(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8236 public static native byte OpenChannel_get_channel_flags(long this_ptr);
8237 // void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint8_t val);
8238 public static native void OpenChannel_set_channel_flags(long this_ptr, byte val);
8239 // struct LDKCOption_CVec_u8ZZ OpenChannel_get_shutdown_scriptpubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8240 public static native long OpenChannel_get_shutdown_scriptpubkey(long this_ptr);
8241 // void OpenChannel_set_shutdown_scriptpubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
8242 public static native void OpenChannel_set_shutdown_scriptpubkey(long this_ptr, long val);
8243 // struct LDKChannelTypeFeatures OpenChannel_get_channel_type(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
8244 public static native long OpenChannel_get_channel_type(long this_ptr);
8245 // void OpenChannel_set_channel_type(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
8246 public static native void OpenChannel_set_channel_type(long this_ptr, long val);
8247 // MUST_USE_RES struct LDKOpenChannel OpenChannel_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t funding_satoshis_arg, uint64_t push_msat_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t channel_reserve_satoshis_arg, uint64_t htlc_minimum_msat_arg, uint32_t feerate_per_kw_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, uint8_t channel_flags_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg);
8248 public static native long OpenChannel_new(byte[] chain_hash_arg, byte[] temporary_channel_id_arg, long funding_satoshis_arg, long push_msat_arg, long dust_limit_satoshis_arg, long max_htlc_value_in_flight_msat_arg, long channel_reserve_satoshis_arg, long htlc_minimum_msat_arg, int feerate_per_kw_arg, short to_self_delay_arg, short max_accepted_htlcs_arg, byte[] funding_pubkey_arg, byte[] revocation_basepoint_arg, byte[] payment_point_arg, byte[] delayed_payment_basepoint_arg, byte[] htlc_basepoint_arg, byte[] first_per_commitment_point_arg, byte channel_flags_arg, long shutdown_scriptpubkey_arg, long channel_type_arg);
8249 // uint64_t OpenChannel_clone_ptr(LDKOpenChannel *NONNULL_PTR arg);
8250 public static native long OpenChannel_clone_ptr(long arg);
8251 // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig);
8252 public static native long OpenChannel_clone(long orig);
8253 // uint64_t OpenChannel_hash(const struct LDKOpenChannel *NONNULL_PTR o);
8254 public static native long OpenChannel_hash(long o);
8255 // bool OpenChannel_eq(const struct LDKOpenChannel *NONNULL_PTR a, const struct LDKOpenChannel *NONNULL_PTR b);
8256 public static native boolean OpenChannel_eq(long a, long b);
8257 // void OpenChannelV2_free(struct LDKOpenChannelV2 this_obj);
8258 public static native void OpenChannelV2_free(long this_obj);
8259 // const uint8_t (*OpenChannelV2_get_chain_hash(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr))[32];
8260 public static native byte[] OpenChannelV2_get_chain_hash(long this_ptr);
8261 // void OpenChannelV2_set_chain_hash(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8262 public static native void OpenChannelV2_set_chain_hash(long this_ptr, byte[] val);
8263 // const uint8_t (*OpenChannelV2_get_temporary_channel_id(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr))[32];
8264 public static native byte[] OpenChannelV2_get_temporary_channel_id(long this_ptr);
8265 // void OpenChannelV2_set_temporary_channel_id(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8266 public static native void OpenChannelV2_set_temporary_channel_id(long this_ptr, byte[] val);
8267 // uint32_t OpenChannelV2_get_funding_feerate_sat_per_1000_weight(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8268 public static native int OpenChannelV2_get_funding_feerate_sat_per_1000_weight(long this_ptr);
8269 // void OpenChannelV2_set_funding_feerate_sat_per_1000_weight(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint32_t val);
8270 public static native void OpenChannelV2_set_funding_feerate_sat_per_1000_weight(long this_ptr, int val);
8271 // uint32_t OpenChannelV2_get_commitment_feerate_sat_per_1000_weight(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8272 public static native int OpenChannelV2_get_commitment_feerate_sat_per_1000_weight(long this_ptr);
8273 // void OpenChannelV2_set_commitment_feerate_sat_per_1000_weight(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint32_t val);
8274 public static native void OpenChannelV2_set_commitment_feerate_sat_per_1000_weight(long this_ptr, int val);
8275 // uint64_t OpenChannelV2_get_funding_satoshis(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8276 public static native long OpenChannelV2_get_funding_satoshis(long this_ptr);
8277 // void OpenChannelV2_set_funding_satoshis(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
8278 public static native void OpenChannelV2_set_funding_satoshis(long this_ptr, long val);
8279 // uint64_t OpenChannelV2_get_dust_limit_satoshis(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8280 public static native long OpenChannelV2_get_dust_limit_satoshis(long this_ptr);
8281 // void OpenChannelV2_set_dust_limit_satoshis(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
8282 public static native void OpenChannelV2_set_dust_limit_satoshis(long this_ptr, long val);
8283 // uint64_t OpenChannelV2_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8284 public static native long OpenChannelV2_get_max_htlc_value_in_flight_msat(long this_ptr);
8285 // void OpenChannelV2_set_max_htlc_value_in_flight_msat(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
8286 public static native void OpenChannelV2_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
8287 // uint64_t OpenChannelV2_get_htlc_minimum_msat(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8288 public static native long OpenChannelV2_get_htlc_minimum_msat(long this_ptr);
8289 // void OpenChannelV2_set_htlc_minimum_msat(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
8290 public static native void OpenChannelV2_set_htlc_minimum_msat(long this_ptr, long val);
8291 // uint16_t OpenChannelV2_get_to_self_delay(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8292 public static native short OpenChannelV2_get_to_self_delay(long this_ptr);
8293 // void OpenChannelV2_set_to_self_delay(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint16_t val);
8294 public static native void OpenChannelV2_set_to_self_delay(long this_ptr, short val);
8295 // uint16_t OpenChannelV2_get_max_accepted_htlcs(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8296 public static native short OpenChannelV2_get_max_accepted_htlcs(long this_ptr);
8297 // void OpenChannelV2_set_max_accepted_htlcs(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint16_t val);
8298 public static native void OpenChannelV2_set_max_accepted_htlcs(long this_ptr, short val);
8299 // uint32_t OpenChannelV2_get_locktime(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8300 public static native int OpenChannelV2_get_locktime(long this_ptr);
8301 // void OpenChannelV2_set_locktime(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint32_t val);
8302 public static native void OpenChannelV2_set_locktime(long this_ptr, int val);
8303 // struct LDKPublicKey OpenChannelV2_get_funding_pubkey(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8304 public static native byte[] OpenChannelV2_get_funding_pubkey(long this_ptr);
8305 // void OpenChannelV2_set_funding_pubkey(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8306 public static native void OpenChannelV2_set_funding_pubkey(long this_ptr, byte[] val);
8307 // struct LDKPublicKey OpenChannelV2_get_revocation_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8308 public static native byte[] OpenChannelV2_get_revocation_basepoint(long this_ptr);
8309 // void OpenChannelV2_set_revocation_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8310 public static native void OpenChannelV2_set_revocation_basepoint(long this_ptr, byte[] val);
8311 // struct LDKPublicKey OpenChannelV2_get_payment_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8312 public static native byte[] OpenChannelV2_get_payment_basepoint(long this_ptr);
8313 // void OpenChannelV2_set_payment_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8314 public static native void OpenChannelV2_set_payment_basepoint(long this_ptr, byte[] val);
8315 // struct LDKPublicKey OpenChannelV2_get_delayed_payment_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8316 public static native byte[] OpenChannelV2_get_delayed_payment_basepoint(long this_ptr);
8317 // void OpenChannelV2_set_delayed_payment_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8318 public static native void OpenChannelV2_set_delayed_payment_basepoint(long this_ptr, byte[] val);
8319 // struct LDKPublicKey OpenChannelV2_get_htlc_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8320 public static native byte[] OpenChannelV2_get_htlc_basepoint(long this_ptr);
8321 // void OpenChannelV2_set_htlc_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8322 public static native void OpenChannelV2_set_htlc_basepoint(long this_ptr, byte[] val);
8323 // struct LDKPublicKey OpenChannelV2_get_first_per_commitment_point(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8324 public static native byte[] OpenChannelV2_get_first_per_commitment_point(long this_ptr);
8325 // void OpenChannelV2_set_first_per_commitment_point(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8326 public static native void OpenChannelV2_set_first_per_commitment_point(long this_ptr, byte[] val);
8327 // struct LDKPublicKey OpenChannelV2_get_second_per_commitment_point(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8328 public static native byte[] OpenChannelV2_get_second_per_commitment_point(long this_ptr);
8329 // void OpenChannelV2_set_second_per_commitment_point(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8330 public static native void OpenChannelV2_set_second_per_commitment_point(long this_ptr, byte[] val);
8331 // uint8_t OpenChannelV2_get_channel_flags(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8332 public static native byte OpenChannelV2_get_channel_flags(long this_ptr);
8333 // void OpenChannelV2_set_channel_flags(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint8_t val);
8334 public static native void OpenChannelV2_set_channel_flags(long this_ptr, byte val);
8335 // struct LDKCOption_CVec_u8ZZ OpenChannelV2_get_shutdown_scriptpubkey(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8336 public static native long OpenChannelV2_get_shutdown_scriptpubkey(long this_ptr);
8337 // void OpenChannelV2_set_shutdown_scriptpubkey(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
8338 public static native void OpenChannelV2_set_shutdown_scriptpubkey(long this_ptr, long val);
8339 // struct LDKChannelTypeFeatures OpenChannelV2_get_channel_type(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8340 public static native long OpenChannelV2_get_channel_type(long this_ptr);
8341 // void OpenChannelV2_set_channel_type(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
8342 public static native void OpenChannelV2_set_channel_type(long this_ptr, long val);
8343 // enum LDKCOption_NoneZ OpenChannelV2_get_require_confirmed_inputs(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr);
8344 public static native COption_NoneZ OpenChannelV2_get_require_confirmed_inputs(long this_ptr);
8345 // void OpenChannelV2_set_require_confirmed_inputs(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
8346 public static native void OpenChannelV2_set_require_confirmed_inputs(long this_ptr, COption_NoneZ val);
8347 // MUST_USE_RES struct LDKOpenChannelV2 OpenChannelV2_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKThirtyTwoBytes temporary_channel_id_arg, uint32_t funding_feerate_sat_per_1000_weight_arg, uint32_t commitment_feerate_sat_per_1000_weight_arg, uint64_t funding_satoshis_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, uint32_t locktime_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKPublicKey second_per_commitment_point_arg, uint8_t channel_flags_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg);
8348 public static native long OpenChannelV2_new(byte[] chain_hash_arg, byte[] temporary_channel_id_arg, int funding_feerate_sat_per_1000_weight_arg, int commitment_feerate_sat_per_1000_weight_arg, long funding_satoshis_arg, long dust_limit_satoshis_arg, long max_htlc_value_in_flight_msat_arg, long htlc_minimum_msat_arg, short to_self_delay_arg, short max_accepted_htlcs_arg, int locktime_arg, byte[] funding_pubkey_arg, byte[] revocation_basepoint_arg, byte[] payment_basepoint_arg, byte[] delayed_payment_basepoint_arg, byte[] htlc_basepoint_arg, byte[] first_per_commitment_point_arg, byte[] second_per_commitment_point_arg, byte channel_flags_arg, long shutdown_scriptpubkey_arg, long channel_type_arg, COption_NoneZ require_confirmed_inputs_arg);
8349 // uint64_t OpenChannelV2_clone_ptr(LDKOpenChannelV2 *NONNULL_PTR arg);
8350 public static native long OpenChannelV2_clone_ptr(long arg);
8351 // struct LDKOpenChannelV2 OpenChannelV2_clone(const struct LDKOpenChannelV2 *NONNULL_PTR orig);
8352 public static native long OpenChannelV2_clone(long orig);
8353 // uint64_t OpenChannelV2_hash(const struct LDKOpenChannelV2 *NONNULL_PTR o);
8354 public static native long OpenChannelV2_hash(long o);
8355 // bool OpenChannelV2_eq(const struct LDKOpenChannelV2 *NONNULL_PTR a, const struct LDKOpenChannelV2 *NONNULL_PTR b);
8356 public static native boolean OpenChannelV2_eq(long a, long b);
8357 // void AcceptChannel_free(struct LDKAcceptChannel this_obj);
8358 public static native void AcceptChannel_free(long this_obj);
8359 // const uint8_t (*AcceptChannel_get_temporary_channel_id(const struct LDKAcceptChannel *NONNULL_PTR this_ptr))[32];
8360 public static native byte[] AcceptChannel_get_temporary_channel_id(long this_ptr);
8361 // void AcceptChannel_set_temporary_channel_id(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8362 public static native void AcceptChannel_set_temporary_channel_id(long this_ptr, byte[] val);
8363 // uint64_t AcceptChannel_get_dust_limit_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
8364 public static native long AcceptChannel_get_dust_limit_satoshis(long this_ptr);
8365 // void AcceptChannel_set_dust_limit_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
8366 public static native void AcceptChannel_set_dust_limit_satoshis(long this_ptr, long val);
8367 // uint64_t AcceptChannel_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
8368 public static native long AcceptChannel_get_max_htlc_value_in_flight_msat(long this_ptr);
8369 // void AcceptChannel_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
8370 public static native void AcceptChannel_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
8371 // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
8372 public static native long AcceptChannel_get_channel_reserve_satoshis(long this_ptr);
8373 // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
8374 public static native void AcceptChannel_set_channel_reserve_satoshis(long this_ptr, long val);
8375 // uint64_t AcceptChannel_get_htlc_minimum_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
8376 public static native long AcceptChannel_get_htlc_minimum_msat(long this_ptr);
8377 // void AcceptChannel_set_htlc_minimum_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
8378 public static native void AcceptChannel_set_htlc_minimum_msat(long this_ptr, long val);
8379 // uint32_t AcceptChannel_get_minimum_depth(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
8380 public static native int AcceptChannel_get_minimum_depth(long this_ptr);
8381 // void AcceptChannel_set_minimum_depth(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint32_t val);
8382 public static native void AcceptChannel_set_minimum_depth(long this_ptr, int val);
8383 // uint16_t AcceptChannel_get_to_self_delay(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
8384 public static native short AcceptChannel_get_to_self_delay(long this_ptr);
8385 // void AcceptChannel_set_to_self_delay(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
8386 public static native void AcceptChannel_set_to_self_delay(long this_ptr, short val);
8387 // uint16_t AcceptChannel_get_max_accepted_htlcs(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
8388 public static native short AcceptChannel_get_max_accepted_htlcs(long this_ptr);
8389 // void AcceptChannel_set_max_accepted_htlcs(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
8390 public static native void AcceptChannel_set_max_accepted_htlcs(long this_ptr, short val);
8391 // struct LDKPublicKey AcceptChannel_get_funding_pubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
8392 public static native byte[] AcceptChannel_get_funding_pubkey(long this_ptr);
8393 // void AcceptChannel_set_funding_pubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8394 public static native void AcceptChannel_set_funding_pubkey(long this_ptr, byte[] val);
8395 // struct LDKPublicKey AcceptChannel_get_revocation_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
8396 public static native byte[] AcceptChannel_get_revocation_basepoint(long this_ptr);
8397 // void AcceptChannel_set_revocation_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8398 public static native void AcceptChannel_set_revocation_basepoint(long this_ptr, byte[] val);
8399 // struct LDKPublicKey AcceptChannel_get_payment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
8400 public static native byte[] AcceptChannel_get_payment_point(long this_ptr);
8401 // void AcceptChannel_set_payment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8402 public static native void AcceptChannel_set_payment_point(long this_ptr, byte[] val);
8403 // struct LDKPublicKey AcceptChannel_get_delayed_payment_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
8404 public static native byte[] AcceptChannel_get_delayed_payment_basepoint(long this_ptr);
8405 // void AcceptChannel_set_delayed_payment_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8406 public static native void AcceptChannel_set_delayed_payment_basepoint(long this_ptr, byte[] val);
8407 // struct LDKPublicKey AcceptChannel_get_htlc_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
8408 public static native byte[] AcceptChannel_get_htlc_basepoint(long this_ptr);
8409 // void AcceptChannel_set_htlc_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8410 public static native void AcceptChannel_set_htlc_basepoint(long this_ptr, byte[] val);
8411 // struct LDKPublicKey AcceptChannel_get_first_per_commitment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
8412 public static native byte[] AcceptChannel_get_first_per_commitment_point(long this_ptr);
8413 // void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8414 public static native void AcceptChannel_set_first_per_commitment_point(long this_ptr, byte[] val);
8415 // struct LDKCOption_CVec_u8ZZ AcceptChannel_get_shutdown_scriptpubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
8416 public static native long AcceptChannel_get_shutdown_scriptpubkey(long this_ptr);
8417 // void AcceptChannel_set_shutdown_scriptpubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
8418 public static native void AcceptChannel_set_shutdown_scriptpubkey(long this_ptr, long val);
8419 // struct LDKChannelTypeFeatures AcceptChannel_get_channel_type(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
8420 public static native long AcceptChannel_get_channel_type(long this_ptr);
8421 // void AcceptChannel_set_channel_type(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
8422 public static native void AcceptChannel_set_channel_type(long this_ptr, long val);
8423 // MUST_USE_RES struct LDKAcceptChannel AcceptChannel_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t channel_reserve_satoshis_arg, uint64_t htlc_minimum_msat_arg, uint32_t minimum_depth_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg);
8424 public static native long AcceptChannel_new(byte[] temporary_channel_id_arg, long dust_limit_satoshis_arg, long max_htlc_value_in_flight_msat_arg, long channel_reserve_satoshis_arg, long htlc_minimum_msat_arg, int minimum_depth_arg, short to_self_delay_arg, short max_accepted_htlcs_arg, byte[] funding_pubkey_arg, byte[] revocation_basepoint_arg, byte[] payment_point_arg, byte[] delayed_payment_basepoint_arg, byte[] htlc_basepoint_arg, byte[] first_per_commitment_point_arg, long shutdown_scriptpubkey_arg, long channel_type_arg);
8425 // uint64_t AcceptChannel_clone_ptr(LDKAcceptChannel *NONNULL_PTR arg);
8426 public static native long AcceptChannel_clone_ptr(long arg);
8427 // struct LDKAcceptChannel AcceptChannel_clone(const struct LDKAcceptChannel *NONNULL_PTR orig);
8428 public static native long AcceptChannel_clone(long orig);
8429 // uint64_t AcceptChannel_hash(const struct LDKAcceptChannel *NONNULL_PTR o);
8430 public static native long AcceptChannel_hash(long o);
8431 // bool AcceptChannel_eq(const struct LDKAcceptChannel *NONNULL_PTR a, const struct LDKAcceptChannel *NONNULL_PTR b);
8432 public static native boolean AcceptChannel_eq(long a, long b);
8433 // void AcceptChannelV2_free(struct LDKAcceptChannelV2 this_obj);
8434 public static native void AcceptChannelV2_free(long this_obj);
8435 // const uint8_t (*AcceptChannelV2_get_temporary_channel_id(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr))[32];
8436 public static native byte[] AcceptChannelV2_get_temporary_channel_id(long this_ptr);
8437 // void AcceptChannelV2_set_temporary_channel_id(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8438 public static native void AcceptChannelV2_set_temporary_channel_id(long this_ptr, byte[] val);
8439 // uint64_t AcceptChannelV2_get_funding_satoshis(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
8440 public static native long AcceptChannelV2_get_funding_satoshis(long this_ptr);
8441 // void AcceptChannelV2_set_funding_satoshis(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
8442 public static native void AcceptChannelV2_set_funding_satoshis(long this_ptr, long val);
8443 // uint64_t AcceptChannelV2_get_dust_limit_satoshis(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
8444 public static native long AcceptChannelV2_get_dust_limit_satoshis(long this_ptr);
8445 // void AcceptChannelV2_set_dust_limit_satoshis(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
8446 public static native void AcceptChannelV2_set_dust_limit_satoshis(long this_ptr, long val);
8447 // uint64_t AcceptChannelV2_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
8448 public static native long AcceptChannelV2_get_max_htlc_value_in_flight_msat(long this_ptr);
8449 // void AcceptChannelV2_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
8450 public static native void AcceptChannelV2_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
8451 // uint64_t AcceptChannelV2_get_htlc_minimum_msat(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
8452 public static native long AcceptChannelV2_get_htlc_minimum_msat(long this_ptr);
8453 // void AcceptChannelV2_set_htlc_minimum_msat(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val);
8454 public static native void AcceptChannelV2_set_htlc_minimum_msat(long this_ptr, long val);
8455 // uint32_t AcceptChannelV2_get_minimum_depth(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
8456 public static native int AcceptChannelV2_get_minimum_depth(long this_ptr);
8457 // void AcceptChannelV2_set_minimum_depth(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint32_t val);
8458 public static native void AcceptChannelV2_set_minimum_depth(long this_ptr, int val);
8459 // uint16_t AcceptChannelV2_get_to_self_delay(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
8460 public static native short AcceptChannelV2_get_to_self_delay(long this_ptr);
8461 // void AcceptChannelV2_set_to_self_delay(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint16_t val);
8462 public static native void AcceptChannelV2_set_to_self_delay(long this_ptr, short val);
8463 // uint16_t AcceptChannelV2_get_max_accepted_htlcs(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
8464 public static native short AcceptChannelV2_get_max_accepted_htlcs(long this_ptr);
8465 // void AcceptChannelV2_set_max_accepted_htlcs(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint16_t val);
8466 public static native void AcceptChannelV2_set_max_accepted_htlcs(long this_ptr, short val);
8467 // struct LDKPublicKey AcceptChannelV2_get_funding_pubkey(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
8468 public static native byte[] AcceptChannelV2_get_funding_pubkey(long this_ptr);
8469 // void AcceptChannelV2_set_funding_pubkey(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8470 public static native void AcceptChannelV2_set_funding_pubkey(long this_ptr, byte[] val);
8471 // struct LDKPublicKey AcceptChannelV2_get_revocation_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
8472 public static native byte[] AcceptChannelV2_get_revocation_basepoint(long this_ptr);
8473 // void AcceptChannelV2_set_revocation_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8474 public static native void AcceptChannelV2_set_revocation_basepoint(long this_ptr, byte[] val);
8475 // struct LDKPublicKey AcceptChannelV2_get_payment_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
8476 public static native byte[] AcceptChannelV2_get_payment_basepoint(long this_ptr);
8477 // void AcceptChannelV2_set_payment_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8478 public static native void AcceptChannelV2_set_payment_basepoint(long this_ptr, byte[] val);
8479 // struct LDKPublicKey AcceptChannelV2_get_delayed_payment_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
8480 public static native byte[] AcceptChannelV2_get_delayed_payment_basepoint(long this_ptr);
8481 // void AcceptChannelV2_set_delayed_payment_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8482 public static native void AcceptChannelV2_set_delayed_payment_basepoint(long this_ptr, byte[] val);
8483 // struct LDKPublicKey AcceptChannelV2_get_htlc_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
8484 public static native byte[] AcceptChannelV2_get_htlc_basepoint(long this_ptr);
8485 // void AcceptChannelV2_set_htlc_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8486 public static native void AcceptChannelV2_set_htlc_basepoint(long this_ptr, byte[] val);
8487 // struct LDKPublicKey AcceptChannelV2_get_first_per_commitment_point(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
8488 public static native byte[] AcceptChannelV2_get_first_per_commitment_point(long this_ptr);
8489 // void AcceptChannelV2_set_first_per_commitment_point(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8490 public static native void AcceptChannelV2_set_first_per_commitment_point(long this_ptr, byte[] val);
8491 // struct LDKPublicKey AcceptChannelV2_get_second_per_commitment_point(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
8492 public static native byte[] AcceptChannelV2_get_second_per_commitment_point(long this_ptr);
8493 // void AcceptChannelV2_set_second_per_commitment_point(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8494 public static native void AcceptChannelV2_set_second_per_commitment_point(long this_ptr, byte[] val);
8495 // struct LDKCOption_CVec_u8ZZ AcceptChannelV2_get_shutdown_scriptpubkey(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
8496 public static native long AcceptChannelV2_get_shutdown_scriptpubkey(long this_ptr);
8497 // void AcceptChannelV2_set_shutdown_scriptpubkey(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
8498 public static native void AcceptChannelV2_set_shutdown_scriptpubkey(long this_ptr, long val);
8499 // struct LDKChannelTypeFeatures AcceptChannelV2_get_channel_type(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
8500 public static native long AcceptChannelV2_get_channel_type(long this_ptr);
8501 // void AcceptChannelV2_set_channel_type(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
8502 public static native void AcceptChannelV2_set_channel_type(long this_ptr, long val);
8503 // enum LDKCOption_NoneZ AcceptChannelV2_get_require_confirmed_inputs(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr);
8504 public static native COption_NoneZ AcceptChannelV2_get_require_confirmed_inputs(long this_ptr);
8505 // void AcceptChannelV2_set_require_confirmed_inputs(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
8506 public static native void AcceptChannelV2_set_require_confirmed_inputs(long this_ptr, COption_NoneZ val);
8507 // MUST_USE_RES struct LDKAcceptChannelV2 AcceptChannelV2_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t funding_satoshis_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint32_t minimum_depth_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKPublicKey second_per_commitment_point_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg);
8508 public static native long AcceptChannelV2_new(byte[] temporary_channel_id_arg, long funding_satoshis_arg, long dust_limit_satoshis_arg, long max_htlc_value_in_flight_msat_arg, long htlc_minimum_msat_arg, int minimum_depth_arg, short to_self_delay_arg, short max_accepted_htlcs_arg, byte[] funding_pubkey_arg, byte[] revocation_basepoint_arg, byte[] payment_basepoint_arg, byte[] delayed_payment_basepoint_arg, byte[] htlc_basepoint_arg, byte[] first_per_commitment_point_arg, byte[] second_per_commitment_point_arg, long shutdown_scriptpubkey_arg, long channel_type_arg, COption_NoneZ require_confirmed_inputs_arg);
8509 // uint64_t AcceptChannelV2_clone_ptr(LDKAcceptChannelV2 *NONNULL_PTR arg);
8510 public static native long AcceptChannelV2_clone_ptr(long arg);
8511 // struct LDKAcceptChannelV2 AcceptChannelV2_clone(const struct LDKAcceptChannelV2 *NONNULL_PTR orig);
8512 public static native long AcceptChannelV2_clone(long orig);
8513 // uint64_t AcceptChannelV2_hash(const struct LDKAcceptChannelV2 *NONNULL_PTR o);
8514 public static native long AcceptChannelV2_hash(long o);
8515 // bool AcceptChannelV2_eq(const struct LDKAcceptChannelV2 *NONNULL_PTR a, const struct LDKAcceptChannelV2 *NONNULL_PTR b);
8516 public static native boolean AcceptChannelV2_eq(long a, long b);
8517 // void FundingCreated_free(struct LDKFundingCreated this_obj);
8518 public static native void FundingCreated_free(long this_obj);
8519 // const uint8_t (*FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
8520 public static native byte[] FundingCreated_get_temporary_channel_id(long this_ptr);
8521 // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8522 public static native void FundingCreated_set_temporary_channel_id(long this_ptr, byte[] val);
8523 // const uint8_t (*FundingCreated_get_funding_txid(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
8524 public static native byte[] FundingCreated_get_funding_txid(long this_ptr);
8525 // void FundingCreated_set_funding_txid(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8526 public static native void FundingCreated_set_funding_txid(long this_ptr, byte[] val);
8527 // uint16_t FundingCreated_get_funding_output_index(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
8528 public static native short FundingCreated_get_funding_output_index(long this_ptr);
8529 // void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_PTR this_ptr, uint16_t val);
8530 public static native void FundingCreated_set_funding_output_index(long this_ptr, short val);
8531 // struct LDKECDSASignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
8532 public static native byte[] FundingCreated_get_signature(long this_ptr);
8533 // void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
8534 public static native void FundingCreated_set_signature(long this_ptr, byte[] val);
8535 // MUST_USE_RES struct LDKFundingCreated FundingCreated_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, struct LDKThirtyTwoBytes funding_txid_arg, uint16_t funding_output_index_arg, struct LDKECDSASignature signature_arg);
8536 public static native long FundingCreated_new(byte[] temporary_channel_id_arg, byte[] funding_txid_arg, short funding_output_index_arg, byte[] signature_arg);
8537 // uint64_t FundingCreated_clone_ptr(LDKFundingCreated *NONNULL_PTR arg);
8538 public static native long FundingCreated_clone_ptr(long arg);
8539 // struct LDKFundingCreated FundingCreated_clone(const struct LDKFundingCreated *NONNULL_PTR orig);
8540 public static native long FundingCreated_clone(long orig);
8541 // uint64_t FundingCreated_hash(const struct LDKFundingCreated *NONNULL_PTR o);
8542 public static native long FundingCreated_hash(long o);
8543 // bool FundingCreated_eq(const struct LDKFundingCreated *NONNULL_PTR a, const struct LDKFundingCreated *NONNULL_PTR b);
8544 public static native boolean FundingCreated_eq(long a, long b);
8545 // void FundingSigned_free(struct LDKFundingSigned this_obj);
8546 public static native void FundingSigned_free(long this_obj);
8547 // const uint8_t (*FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr))[32];
8548 public static native byte[] FundingSigned_get_channel_id(long this_ptr);
8549 // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8550 public static native void FundingSigned_set_channel_id(long this_ptr, byte[] val);
8551 // struct LDKECDSASignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr);
8552 public static native byte[] FundingSigned_get_signature(long this_ptr);
8553 // void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
8554 public static native void FundingSigned_set_signature(long this_ptr, byte[] val);
8555 // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKECDSASignature signature_arg);
8556 public static native long FundingSigned_new(byte[] channel_id_arg, byte[] signature_arg);
8557 // uint64_t FundingSigned_clone_ptr(LDKFundingSigned *NONNULL_PTR arg);
8558 public static native long FundingSigned_clone_ptr(long arg);
8559 // struct LDKFundingSigned FundingSigned_clone(const struct LDKFundingSigned *NONNULL_PTR orig);
8560 public static native long FundingSigned_clone(long orig);
8561 // uint64_t FundingSigned_hash(const struct LDKFundingSigned *NONNULL_PTR o);
8562 public static native long FundingSigned_hash(long o);
8563 // bool FundingSigned_eq(const struct LDKFundingSigned *NONNULL_PTR a, const struct LDKFundingSigned *NONNULL_PTR b);
8564 public static native boolean FundingSigned_eq(long a, long b);
8565 // void ChannelReady_free(struct LDKChannelReady this_obj);
8566 public static native void ChannelReady_free(long this_obj);
8567 // const uint8_t (*ChannelReady_get_channel_id(const struct LDKChannelReady *NONNULL_PTR this_ptr))[32];
8568 public static native byte[] ChannelReady_get_channel_id(long this_ptr);
8569 // void ChannelReady_set_channel_id(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8570 public static native void ChannelReady_set_channel_id(long this_ptr, byte[] val);
8571 // struct LDKPublicKey ChannelReady_get_next_per_commitment_point(const struct LDKChannelReady *NONNULL_PTR this_ptr);
8572 public static native byte[] ChannelReady_get_next_per_commitment_point(long this_ptr);
8573 // void ChannelReady_set_next_per_commitment_point(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8574 public static native void ChannelReady_set_next_per_commitment_point(long this_ptr, byte[] val);
8575 // struct LDKCOption_u64Z ChannelReady_get_short_channel_id_alias(const struct LDKChannelReady *NONNULL_PTR this_ptr);
8576 public static native long ChannelReady_get_short_channel_id_alias(long this_ptr);
8577 // void ChannelReady_set_short_channel_id_alias(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
8578 public static native void ChannelReady_set_short_channel_id_alias(long this_ptr, long val);
8579 // MUST_USE_RES struct LDKChannelReady ChannelReady_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKPublicKey next_per_commitment_point_arg, struct LDKCOption_u64Z short_channel_id_alias_arg);
8580 public static native long ChannelReady_new(byte[] channel_id_arg, byte[] next_per_commitment_point_arg, long short_channel_id_alias_arg);
8581 // uint64_t ChannelReady_clone_ptr(LDKChannelReady *NONNULL_PTR arg);
8582 public static native long ChannelReady_clone_ptr(long arg);
8583 // struct LDKChannelReady ChannelReady_clone(const struct LDKChannelReady *NONNULL_PTR orig);
8584 public static native long ChannelReady_clone(long orig);
8585 // uint64_t ChannelReady_hash(const struct LDKChannelReady *NONNULL_PTR o);
8586 public static native long ChannelReady_hash(long o);
8587 // bool ChannelReady_eq(const struct LDKChannelReady *NONNULL_PTR a, const struct LDKChannelReady *NONNULL_PTR b);
8588 public static native boolean ChannelReady_eq(long a, long b);
8589 // void Stfu_free(struct LDKStfu this_obj);
8590 public static native void Stfu_free(long this_obj);
8591 // const uint8_t (*Stfu_get_channel_id(const struct LDKStfu *NONNULL_PTR this_ptr))[32];
8592 public static native byte[] Stfu_get_channel_id(long this_ptr);
8593 // void Stfu_set_channel_id(struct LDKStfu *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8594 public static native void Stfu_set_channel_id(long this_ptr, byte[] val);
8595 // uint8_t Stfu_get_initiator(const struct LDKStfu *NONNULL_PTR this_ptr);
8596 public static native byte Stfu_get_initiator(long this_ptr);
8597 // void Stfu_set_initiator(struct LDKStfu *NONNULL_PTR this_ptr, uint8_t val);
8598 public static native void Stfu_set_initiator(long this_ptr, byte val);
8599 // MUST_USE_RES struct LDKStfu Stfu_new(struct LDKThirtyTwoBytes channel_id_arg, uint8_t initiator_arg);
8600 public static native long Stfu_new(byte[] channel_id_arg, byte initiator_arg);
8601 // uint64_t Stfu_clone_ptr(LDKStfu *NONNULL_PTR arg);
8602 public static native long Stfu_clone_ptr(long arg);
8603 // struct LDKStfu Stfu_clone(const struct LDKStfu *NONNULL_PTR orig);
8604 public static native long Stfu_clone(long orig);
8605 // bool Stfu_eq(const struct LDKStfu *NONNULL_PTR a, const struct LDKStfu *NONNULL_PTR b);
8606 public static native boolean Stfu_eq(long a, long b);
8607 // void Splice_free(struct LDKSplice this_obj);
8608 public static native void Splice_free(long this_obj);
8609 // const uint8_t (*Splice_get_channel_id(const struct LDKSplice *NONNULL_PTR this_ptr))[32];
8610 public static native byte[] Splice_get_channel_id(long this_ptr);
8611 // void Splice_set_channel_id(struct LDKSplice *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8612 public static native void Splice_set_channel_id(long this_ptr, byte[] val);
8613 // const uint8_t (*Splice_get_chain_hash(const struct LDKSplice *NONNULL_PTR this_ptr))[32];
8614 public static native byte[] Splice_get_chain_hash(long this_ptr);
8615 // void Splice_set_chain_hash(struct LDKSplice *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8616 public static native void Splice_set_chain_hash(long this_ptr, byte[] val);
8617 // int64_t Splice_get_relative_satoshis(const struct LDKSplice *NONNULL_PTR this_ptr);
8618 public static native long Splice_get_relative_satoshis(long this_ptr);
8619 // void Splice_set_relative_satoshis(struct LDKSplice *NONNULL_PTR this_ptr, int64_t val);
8620 public static native void Splice_set_relative_satoshis(long this_ptr, long val);
8621 // uint32_t Splice_get_funding_feerate_perkw(const struct LDKSplice *NONNULL_PTR this_ptr);
8622 public static native int Splice_get_funding_feerate_perkw(long this_ptr);
8623 // void Splice_set_funding_feerate_perkw(struct LDKSplice *NONNULL_PTR this_ptr, uint32_t val);
8624 public static native void Splice_set_funding_feerate_perkw(long this_ptr, int val);
8625 // uint32_t Splice_get_locktime(const struct LDKSplice *NONNULL_PTR this_ptr);
8626 public static native int Splice_get_locktime(long this_ptr);
8627 // void Splice_set_locktime(struct LDKSplice *NONNULL_PTR this_ptr, uint32_t val);
8628 public static native void Splice_set_locktime(long this_ptr, int val);
8629 // struct LDKPublicKey Splice_get_funding_pubkey(const struct LDKSplice *NONNULL_PTR this_ptr);
8630 public static native byte[] Splice_get_funding_pubkey(long this_ptr);
8631 // void Splice_set_funding_pubkey(struct LDKSplice *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8632 public static native void Splice_set_funding_pubkey(long this_ptr, byte[] val);
8633 // MUST_USE_RES struct LDKSplice Splice_new(struct LDKThirtyTwoBytes 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);
8634 public static native long Splice_new(byte[] channel_id_arg, byte[] chain_hash_arg, long relative_satoshis_arg, int funding_feerate_perkw_arg, int locktime_arg, byte[] funding_pubkey_arg);
8635 // uint64_t Splice_clone_ptr(LDKSplice *NONNULL_PTR arg);
8636 public static native long Splice_clone_ptr(long arg);
8637 // struct LDKSplice Splice_clone(const struct LDKSplice *NONNULL_PTR orig);
8638 public static native long Splice_clone(long orig);
8639 // bool Splice_eq(const struct LDKSplice *NONNULL_PTR a, const struct LDKSplice *NONNULL_PTR b);
8640 public static native boolean Splice_eq(long a, long b);
8641 // void SpliceAck_free(struct LDKSpliceAck this_obj);
8642 public static native void SpliceAck_free(long this_obj);
8643 // const uint8_t (*SpliceAck_get_channel_id(const struct LDKSpliceAck *NONNULL_PTR this_ptr))[32];
8644 public static native byte[] SpliceAck_get_channel_id(long this_ptr);
8645 // void SpliceAck_set_channel_id(struct LDKSpliceAck *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8646 public static native void SpliceAck_set_channel_id(long this_ptr, byte[] val);
8647 // const uint8_t (*SpliceAck_get_chain_hash(const struct LDKSpliceAck *NONNULL_PTR this_ptr))[32];
8648 public static native byte[] SpliceAck_get_chain_hash(long this_ptr);
8649 // void SpliceAck_set_chain_hash(struct LDKSpliceAck *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8650 public static native void SpliceAck_set_chain_hash(long this_ptr, byte[] val);
8651 // int64_t SpliceAck_get_relative_satoshis(const struct LDKSpliceAck *NONNULL_PTR this_ptr);
8652 public static native long SpliceAck_get_relative_satoshis(long this_ptr);
8653 // void SpliceAck_set_relative_satoshis(struct LDKSpliceAck *NONNULL_PTR this_ptr, int64_t val);
8654 public static native void SpliceAck_set_relative_satoshis(long this_ptr, long val);
8655 // struct LDKPublicKey SpliceAck_get_funding_pubkey(const struct LDKSpliceAck *NONNULL_PTR this_ptr);
8656 public static native byte[] SpliceAck_get_funding_pubkey(long this_ptr);
8657 // void SpliceAck_set_funding_pubkey(struct LDKSpliceAck *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8658 public static native void SpliceAck_set_funding_pubkey(long this_ptr, byte[] val);
8659 // MUST_USE_RES struct LDKSpliceAck SpliceAck_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKThirtyTwoBytes chain_hash_arg, int64_t relative_satoshis_arg, struct LDKPublicKey funding_pubkey_arg);
8660 public static native long SpliceAck_new(byte[] channel_id_arg, byte[] chain_hash_arg, long relative_satoshis_arg, byte[] funding_pubkey_arg);
8661 // uint64_t SpliceAck_clone_ptr(LDKSpliceAck *NONNULL_PTR arg);
8662 public static native long SpliceAck_clone_ptr(long arg);
8663 // struct LDKSpliceAck SpliceAck_clone(const struct LDKSpliceAck *NONNULL_PTR orig);
8664 public static native long SpliceAck_clone(long orig);
8665 // bool SpliceAck_eq(const struct LDKSpliceAck *NONNULL_PTR a, const struct LDKSpliceAck *NONNULL_PTR b);
8666 public static native boolean SpliceAck_eq(long a, long b);
8667 // void SpliceLocked_free(struct LDKSpliceLocked this_obj);
8668 public static native void SpliceLocked_free(long this_obj);
8669 // const uint8_t (*SpliceLocked_get_channel_id(const struct LDKSpliceLocked *NONNULL_PTR this_ptr))[32];
8670 public static native byte[] SpliceLocked_get_channel_id(long this_ptr);
8671 // void SpliceLocked_set_channel_id(struct LDKSpliceLocked *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8672 public static native void SpliceLocked_set_channel_id(long this_ptr, byte[] val);
8673 // MUST_USE_RES struct LDKSpliceLocked SpliceLocked_new(struct LDKThirtyTwoBytes channel_id_arg);
8674 public static native long SpliceLocked_new(byte[] channel_id_arg);
8675 // uint64_t SpliceLocked_clone_ptr(LDKSpliceLocked *NONNULL_PTR arg);
8676 public static native long SpliceLocked_clone_ptr(long arg);
8677 // struct LDKSpliceLocked SpliceLocked_clone(const struct LDKSpliceLocked *NONNULL_PTR orig);
8678 public static native long SpliceLocked_clone(long orig);
8679 // bool SpliceLocked_eq(const struct LDKSpliceLocked *NONNULL_PTR a, const struct LDKSpliceLocked *NONNULL_PTR b);
8680 public static native boolean SpliceLocked_eq(long a, long b);
8681 // void TxAddInput_free(struct LDKTxAddInput this_obj);
8682 public static native void TxAddInput_free(long this_obj);
8683 // const uint8_t (*TxAddInput_get_channel_id(const struct LDKTxAddInput *NONNULL_PTR this_ptr))[32];
8684 public static native byte[] TxAddInput_get_channel_id(long this_ptr);
8685 // void TxAddInput_set_channel_id(struct LDKTxAddInput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8686 public static native void TxAddInput_set_channel_id(long this_ptr, byte[] val);
8687 // uint64_t TxAddInput_get_serial_id(const struct LDKTxAddInput *NONNULL_PTR this_ptr);
8688 public static native long TxAddInput_get_serial_id(long this_ptr);
8689 // void TxAddInput_set_serial_id(struct LDKTxAddInput *NONNULL_PTR this_ptr, uint64_t val);
8690 public static native void TxAddInput_set_serial_id(long this_ptr, long val);
8691 // struct LDKTransactionU16LenLimited TxAddInput_get_prevtx(const struct LDKTxAddInput *NONNULL_PTR this_ptr);
8692 public static native long TxAddInput_get_prevtx(long this_ptr);
8693 // void TxAddInput_set_prevtx(struct LDKTxAddInput *NONNULL_PTR this_ptr, struct LDKTransactionU16LenLimited val);
8694 public static native void TxAddInput_set_prevtx(long this_ptr, long val);
8695 // uint32_t TxAddInput_get_prevtx_out(const struct LDKTxAddInput *NONNULL_PTR this_ptr);
8696 public static native int TxAddInput_get_prevtx_out(long this_ptr);
8697 // void TxAddInput_set_prevtx_out(struct LDKTxAddInput *NONNULL_PTR this_ptr, uint32_t val);
8698 public static native void TxAddInput_set_prevtx_out(long this_ptr, int val);
8699 // uint32_t TxAddInput_get_sequence(const struct LDKTxAddInput *NONNULL_PTR this_ptr);
8700 public static native int TxAddInput_get_sequence(long this_ptr);
8701 // void TxAddInput_set_sequence(struct LDKTxAddInput *NONNULL_PTR this_ptr, uint32_t val);
8702 public static native void TxAddInput_set_sequence(long this_ptr, int val);
8703 // MUST_USE_RES struct LDKTxAddInput TxAddInput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg, struct LDKTransactionU16LenLimited prevtx_arg, uint32_t prevtx_out_arg, uint32_t sequence_arg);
8704 public static native long TxAddInput_new(byte[] channel_id_arg, long serial_id_arg, long prevtx_arg, int prevtx_out_arg, int sequence_arg);
8705 // uint64_t TxAddInput_clone_ptr(LDKTxAddInput *NONNULL_PTR arg);
8706 public static native long TxAddInput_clone_ptr(long arg);
8707 // struct LDKTxAddInput TxAddInput_clone(const struct LDKTxAddInput *NONNULL_PTR orig);
8708 public static native long TxAddInput_clone(long orig);
8709 // uint64_t TxAddInput_hash(const struct LDKTxAddInput *NONNULL_PTR o);
8710 public static native long TxAddInput_hash(long o);
8711 // bool TxAddInput_eq(const struct LDKTxAddInput *NONNULL_PTR a, const struct LDKTxAddInput *NONNULL_PTR b);
8712 public static native boolean TxAddInput_eq(long a, long b);
8713 // void TxAddOutput_free(struct LDKTxAddOutput this_obj);
8714 public static native void TxAddOutput_free(long this_obj);
8715 // const uint8_t (*TxAddOutput_get_channel_id(const struct LDKTxAddOutput *NONNULL_PTR this_ptr))[32];
8716 public static native byte[] TxAddOutput_get_channel_id(long this_ptr);
8717 // void TxAddOutput_set_channel_id(struct LDKTxAddOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8718 public static native void TxAddOutput_set_channel_id(long this_ptr, byte[] val);
8719 // uint64_t TxAddOutput_get_serial_id(const struct LDKTxAddOutput *NONNULL_PTR this_ptr);
8720 public static native long TxAddOutput_get_serial_id(long this_ptr);
8721 // void TxAddOutput_set_serial_id(struct LDKTxAddOutput *NONNULL_PTR this_ptr, uint64_t val);
8722 public static native void TxAddOutput_set_serial_id(long this_ptr, long val);
8723 // uint64_t TxAddOutput_get_sats(const struct LDKTxAddOutput *NONNULL_PTR this_ptr);
8724 public static native long TxAddOutput_get_sats(long this_ptr);
8725 // void TxAddOutput_set_sats(struct LDKTxAddOutput *NONNULL_PTR this_ptr, uint64_t val);
8726 public static native void TxAddOutput_set_sats(long this_ptr, long val);
8727 // struct LDKCVec_u8Z TxAddOutput_get_script(const struct LDKTxAddOutput *NONNULL_PTR this_ptr);
8728 public static native byte[] TxAddOutput_get_script(long this_ptr);
8729 // void TxAddOutput_set_script(struct LDKTxAddOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
8730 public static native void TxAddOutput_set_script(long this_ptr, byte[] val);
8731 // MUST_USE_RES struct LDKTxAddOutput TxAddOutput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg, uint64_t sats_arg, struct LDKCVec_u8Z script_arg);
8732 public static native long TxAddOutput_new(byte[] channel_id_arg, long serial_id_arg, long sats_arg, byte[] script_arg);
8733 // uint64_t TxAddOutput_clone_ptr(LDKTxAddOutput *NONNULL_PTR arg);
8734 public static native long TxAddOutput_clone_ptr(long arg);
8735 // struct LDKTxAddOutput TxAddOutput_clone(const struct LDKTxAddOutput *NONNULL_PTR orig);
8736 public static native long TxAddOutput_clone(long orig);
8737 // uint64_t TxAddOutput_hash(const struct LDKTxAddOutput *NONNULL_PTR o);
8738 public static native long TxAddOutput_hash(long o);
8739 // bool TxAddOutput_eq(const struct LDKTxAddOutput *NONNULL_PTR a, const struct LDKTxAddOutput *NONNULL_PTR b);
8740 public static native boolean TxAddOutput_eq(long a, long b);
8741 // void TxRemoveInput_free(struct LDKTxRemoveInput this_obj);
8742 public static native void TxRemoveInput_free(long this_obj);
8743 // const uint8_t (*TxRemoveInput_get_channel_id(const struct LDKTxRemoveInput *NONNULL_PTR this_ptr))[32];
8744 public static native byte[] TxRemoveInput_get_channel_id(long this_ptr);
8745 // void TxRemoveInput_set_channel_id(struct LDKTxRemoveInput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8746 public static native void TxRemoveInput_set_channel_id(long this_ptr, byte[] val);
8747 // uint64_t TxRemoveInput_get_serial_id(const struct LDKTxRemoveInput *NONNULL_PTR this_ptr);
8748 public static native long TxRemoveInput_get_serial_id(long this_ptr);
8749 // void TxRemoveInput_set_serial_id(struct LDKTxRemoveInput *NONNULL_PTR this_ptr, uint64_t val);
8750 public static native void TxRemoveInput_set_serial_id(long this_ptr, long val);
8751 // MUST_USE_RES struct LDKTxRemoveInput TxRemoveInput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg);
8752 public static native long TxRemoveInput_new(byte[] channel_id_arg, long serial_id_arg);
8753 // uint64_t TxRemoveInput_clone_ptr(LDKTxRemoveInput *NONNULL_PTR arg);
8754 public static native long TxRemoveInput_clone_ptr(long arg);
8755 // struct LDKTxRemoveInput TxRemoveInput_clone(const struct LDKTxRemoveInput *NONNULL_PTR orig);
8756 public static native long TxRemoveInput_clone(long orig);
8757 // uint64_t TxRemoveInput_hash(const struct LDKTxRemoveInput *NONNULL_PTR o);
8758 public static native long TxRemoveInput_hash(long o);
8759 // bool TxRemoveInput_eq(const struct LDKTxRemoveInput *NONNULL_PTR a, const struct LDKTxRemoveInput *NONNULL_PTR b);
8760 public static native boolean TxRemoveInput_eq(long a, long b);
8761 // void TxRemoveOutput_free(struct LDKTxRemoveOutput this_obj);
8762 public static native void TxRemoveOutput_free(long this_obj);
8763 // const uint8_t (*TxRemoveOutput_get_channel_id(const struct LDKTxRemoveOutput *NONNULL_PTR this_ptr))[32];
8764 public static native byte[] TxRemoveOutput_get_channel_id(long this_ptr);
8765 // void TxRemoveOutput_set_channel_id(struct LDKTxRemoveOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8766 public static native void TxRemoveOutput_set_channel_id(long this_ptr, byte[] val);
8767 // uint64_t TxRemoveOutput_get_serial_id(const struct LDKTxRemoveOutput *NONNULL_PTR this_ptr);
8768 public static native long TxRemoveOutput_get_serial_id(long this_ptr);
8769 // void TxRemoveOutput_set_serial_id(struct LDKTxRemoveOutput *NONNULL_PTR this_ptr, uint64_t val);
8770 public static native void TxRemoveOutput_set_serial_id(long this_ptr, long val);
8771 // MUST_USE_RES struct LDKTxRemoveOutput TxRemoveOutput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg);
8772 public static native long TxRemoveOutput_new(byte[] channel_id_arg, long serial_id_arg);
8773 // uint64_t TxRemoveOutput_clone_ptr(LDKTxRemoveOutput *NONNULL_PTR arg);
8774 public static native long TxRemoveOutput_clone_ptr(long arg);
8775 // struct LDKTxRemoveOutput TxRemoveOutput_clone(const struct LDKTxRemoveOutput *NONNULL_PTR orig);
8776 public static native long TxRemoveOutput_clone(long orig);
8777 // uint64_t TxRemoveOutput_hash(const struct LDKTxRemoveOutput *NONNULL_PTR o);
8778 public static native long TxRemoveOutput_hash(long o);
8779 // bool TxRemoveOutput_eq(const struct LDKTxRemoveOutput *NONNULL_PTR a, const struct LDKTxRemoveOutput *NONNULL_PTR b);
8780 public static native boolean TxRemoveOutput_eq(long a, long b);
8781 // void TxComplete_free(struct LDKTxComplete this_obj);
8782 public static native void TxComplete_free(long this_obj);
8783 // const uint8_t (*TxComplete_get_channel_id(const struct LDKTxComplete *NONNULL_PTR this_ptr))[32];
8784 public static native byte[] TxComplete_get_channel_id(long this_ptr);
8785 // void TxComplete_set_channel_id(struct LDKTxComplete *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8786 public static native void TxComplete_set_channel_id(long this_ptr, byte[] val);
8787 // MUST_USE_RES struct LDKTxComplete TxComplete_new(struct LDKThirtyTwoBytes channel_id_arg);
8788 public static native long TxComplete_new(byte[] channel_id_arg);
8789 // uint64_t TxComplete_clone_ptr(LDKTxComplete *NONNULL_PTR arg);
8790 public static native long TxComplete_clone_ptr(long arg);
8791 // struct LDKTxComplete TxComplete_clone(const struct LDKTxComplete *NONNULL_PTR orig);
8792 public static native long TxComplete_clone(long orig);
8793 // uint64_t TxComplete_hash(const struct LDKTxComplete *NONNULL_PTR o);
8794 public static native long TxComplete_hash(long o);
8795 // bool TxComplete_eq(const struct LDKTxComplete *NONNULL_PTR a, const struct LDKTxComplete *NONNULL_PTR b);
8796 public static native boolean TxComplete_eq(long a, long b);
8797 // void TxSignatures_free(struct LDKTxSignatures this_obj);
8798 public static native void TxSignatures_free(long this_obj);
8799 // const uint8_t (*TxSignatures_get_channel_id(const struct LDKTxSignatures *NONNULL_PTR this_ptr))[32];
8800 public static native byte[] TxSignatures_get_channel_id(long this_ptr);
8801 // void TxSignatures_set_channel_id(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8802 public static native void TxSignatures_set_channel_id(long this_ptr, byte[] val);
8803 // const uint8_t (*TxSignatures_get_tx_hash(const struct LDKTxSignatures *NONNULL_PTR this_ptr))[32];
8804 public static native byte[] TxSignatures_get_tx_hash(long this_ptr);
8805 // void TxSignatures_set_tx_hash(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8806 public static native void TxSignatures_set_tx_hash(long this_ptr, byte[] val);
8807 // struct LDKCVec_WitnessZ TxSignatures_get_witnesses(const struct LDKTxSignatures *NONNULL_PTR this_ptr);
8808 public static native byte[][] TxSignatures_get_witnesses(long this_ptr);
8809 // void TxSignatures_set_witnesses(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKCVec_WitnessZ val);
8810 public static native void TxSignatures_set_witnesses(long this_ptr, byte[][] val);
8811 // MUST_USE_RES struct LDKTxSignatures TxSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKThirtyTwoBytes tx_hash_arg, struct LDKCVec_WitnessZ witnesses_arg);
8812 public static native long TxSignatures_new(byte[] channel_id_arg, byte[] tx_hash_arg, byte[][] witnesses_arg);
8813 // uint64_t TxSignatures_clone_ptr(LDKTxSignatures *NONNULL_PTR arg);
8814 public static native long TxSignatures_clone_ptr(long arg);
8815 // struct LDKTxSignatures TxSignatures_clone(const struct LDKTxSignatures *NONNULL_PTR orig);
8816 public static native long TxSignatures_clone(long orig);
8817 // uint64_t TxSignatures_hash(const struct LDKTxSignatures *NONNULL_PTR o);
8818 public static native long TxSignatures_hash(long o);
8819 // bool TxSignatures_eq(const struct LDKTxSignatures *NONNULL_PTR a, const struct LDKTxSignatures *NONNULL_PTR b);
8820 public static native boolean TxSignatures_eq(long a, long b);
8821 // void TxInitRbf_free(struct LDKTxInitRbf this_obj);
8822 public static native void TxInitRbf_free(long this_obj);
8823 // const uint8_t (*TxInitRbf_get_channel_id(const struct LDKTxInitRbf *NONNULL_PTR this_ptr))[32];
8824 public static native byte[] TxInitRbf_get_channel_id(long this_ptr);
8825 // void TxInitRbf_set_channel_id(struct LDKTxInitRbf *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8826 public static native void TxInitRbf_set_channel_id(long this_ptr, byte[] val);
8827 // uint32_t TxInitRbf_get_locktime(const struct LDKTxInitRbf *NONNULL_PTR this_ptr);
8828 public static native int TxInitRbf_get_locktime(long this_ptr);
8829 // void TxInitRbf_set_locktime(struct LDKTxInitRbf *NONNULL_PTR this_ptr, uint32_t val);
8830 public static native void TxInitRbf_set_locktime(long this_ptr, int val);
8831 // uint32_t TxInitRbf_get_feerate_sat_per_1000_weight(const struct LDKTxInitRbf *NONNULL_PTR this_ptr);
8832 public static native int TxInitRbf_get_feerate_sat_per_1000_weight(long this_ptr);
8833 // void TxInitRbf_set_feerate_sat_per_1000_weight(struct LDKTxInitRbf *NONNULL_PTR this_ptr, uint32_t val);
8834 public static native void TxInitRbf_set_feerate_sat_per_1000_weight(long this_ptr, int val);
8835 // struct LDKCOption_i64Z TxInitRbf_get_funding_output_contribution(const struct LDKTxInitRbf *NONNULL_PTR this_ptr);
8836 public static native long TxInitRbf_get_funding_output_contribution(long this_ptr);
8837 // void TxInitRbf_set_funding_output_contribution(struct LDKTxInitRbf *NONNULL_PTR this_ptr, struct LDKCOption_i64Z val);
8838 public static native void TxInitRbf_set_funding_output_contribution(long this_ptr, long val);
8839 // MUST_USE_RES struct LDKTxInitRbf TxInitRbf_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t locktime_arg, uint32_t feerate_sat_per_1000_weight_arg, struct LDKCOption_i64Z funding_output_contribution_arg);
8840 public static native long TxInitRbf_new(byte[] channel_id_arg, int locktime_arg, int feerate_sat_per_1000_weight_arg, long funding_output_contribution_arg);
8841 // uint64_t TxInitRbf_clone_ptr(LDKTxInitRbf *NONNULL_PTR arg);
8842 public static native long TxInitRbf_clone_ptr(long arg);
8843 // struct LDKTxInitRbf TxInitRbf_clone(const struct LDKTxInitRbf *NONNULL_PTR orig);
8844 public static native long TxInitRbf_clone(long orig);
8845 // uint64_t TxInitRbf_hash(const struct LDKTxInitRbf *NONNULL_PTR o);
8846 public static native long TxInitRbf_hash(long o);
8847 // bool TxInitRbf_eq(const struct LDKTxInitRbf *NONNULL_PTR a, const struct LDKTxInitRbf *NONNULL_PTR b);
8848 public static native boolean TxInitRbf_eq(long a, long b);
8849 // void TxAckRbf_free(struct LDKTxAckRbf this_obj);
8850 public static native void TxAckRbf_free(long this_obj);
8851 // const uint8_t (*TxAckRbf_get_channel_id(const struct LDKTxAckRbf *NONNULL_PTR this_ptr))[32];
8852 public static native byte[] TxAckRbf_get_channel_id(long this_ptr);
8853 // void TxAckRbf_set_channel_id(struct LDKTxAckRbf *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8854 public static native void TxAckRbf_set_channel_id(long this_ptr, byte[] val);
8855 // struct LDKCOption_i64Z TxAckRbf_get_funding_output_contribution(const struct LDKTxAckRbf *NONNULL_PTR this_ptr);
8856 public static native long TxAckRbf_get_funding_output_contribution(long this_ptr);
8857 // void TxAckRbf_set_funding_output_contribution(struct LDKTxAckRbf *NONNULL_PTR this_ptr, struct LDKCOption_i64Z val);
8858 public static native void TxAckRbf_set_funding_output_contribution(long this_ptr, long val);
8859 // MUST_USE_RES struct LDKTxAckRbf TxAckRbf_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCOption_i64Z funding_output_contribution_arg);
8860 public static native long TxAckRbf_new(byte[] channel_id_arg, long funding_output_contribution_arg);
8861 // uint64_t TxAckRbf_clone_ptr(LDKTxAckRbf *NONNULL_PTR arg);
8862 public static native long TxAckRbf_clone_ptr(long arg);
8863 // struct LDKTxAckRbf TxAckRbf_clone(const struct LDKTxAckRbf *NONNULL_PTR orig);
8864 public static native long TxAckRbf_clone(long orig);
8865 // uint64_t TxAckRbf_hash(const struct LDKTxAckRbf *NONNULL_PTR o);
8866 public static native long TxAckRbf_hash(long o);
8867 // bool TxAckRbf_eq(const struct LDKTxAckRbf *NONNULL_PTR a, const struct LDKTxAckRbf *NONNULL_PTR b);
8868 public static native boolean TxAckRbf_eq(long a, long b);
8869 // void TxAbort_free(struct LDKTxAbort this_obj);
8870 public static native void TxAbort_free(long this_obj);
8871 // const uint8_t (*TxAbort_get_channel_id(const struct LDKTxAbort *NONNULL_PTR this_ptr))[32];
8872 public static native byte[] TxAbort_get_channel_id(long this_ptr);
8873 // void TxAbort_set_channel_id(struct LDKTxAbort *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8874 public static native void TxAbort_set_channel_id(long this_ptr, byte[] val);
8875 // struct LDKCVec_u8Z TxAbort_get_data(const struct LDKTxAbort *NONNULL_PTR this_ptr);
8876 public static native byte[] TxAbort_get_data(long this_ptr);
8877 // void TxAbort_set_data(struct LDKTxAbort *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
8878 public static native void TxAbort_set_data(long this_ptr, byte[] val);
8879 // MUST_USE_RES struct LDKTxAbort TxAbort_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z data_arg);
8880 public static native long TxAbort_new(byte[] channel_id_arg, byte[] data_arg);
8881 // uint64_t TxAbort_clone_ptr(LDKTxAbort *NONNULL_PTR arg);
8882 public static native long TxAbort_clone_ptr(long arg);
8883 // struct LDKTxAbort TxAbort_clone(const struct LDKTxAbort *NONNULL_PTR orig);
8884 public static native long TxAbort_clone(long orig);
8885 // uint64_t TxAbort_hash(const struct LDKTxAbort *NONNULL_PTR o);
8886 public static native long TxAbort_hash(long o);
8887 // bool TxAbort_eq(const struct LDKTxAbort *NONNULL_PTR a, const struct LDKTxAbort *NONNULL_PTR b);
8888 public static native boolean TxAbort_eq(long a, long b);
8889 // void Shutdown_free(struct LDKShutdown this_obj);
8890 public static native void Shutdown_free(long this_obj);
8891 // const uint8_t (*Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr))[32];
8892 public static native byte[] Shutdown_get_channel_id(long this_ptr);
8893 // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8894 public static native void Shutdown_set_channel_id(long this_ptr, byte[] val);
8895 // struct LDKCVec_u8Z Shutdown_get_scriptpubkey(const struct LDKShutdown *NONNULL_PTR this_ptr);
8896 public static native byte[] Shutdown_get_scriptpubkey(long this_ptr);
8897 // void Shutdown_set_scriptpubkey(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
8898 public static native void Shutdown_set_scriptpubkey(long this_ptr, byte[] val);
8899 // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg);
8900 public static native long Shutdown_new(byte[] channel_id_arg, byte[] scriptpubkey_arg);
8901 // uint64_t Shutdown_clone_ptr(LDKShutdown *NONNULL_PTR arg);
8902 public static native long Shutdown_clone_ptr(long arg);
8903 // struct LDKShutdown Shutdown_clone(const struct LDKShutdown *NONNULL_PTR orig);
8904 public static native long Shutdown_clone(long orig);
8905 // uint64_t Shutdown_hash(const struct LDKShutdown *NONNULL_PTR o);
8906 public static native long Shutdown_hash(long o);
8907 // bool Shutdown_eq(const struct LDKShutdown *NONNULL_PTR a, const struct LDKShutdown *NONNULL_PTR b);
8908 public static native boolean Shutdown_eq(long a, long b);
8909 // void ClosingSignedFeeRange_free(struct LDKClosingSignedFeeRange this_obj);
8910 public static native void ClosingSignedFeeRange_free(long this_obj);
8911 // uint64_t ClosingSignedFeeRange_get_min_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
8912 public static native long ClosingSignedFeeRange_get_min_fee_satoshis(long this_ptr);
8913 // void ClosingSignedFeeRange_set_min_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
8914 public static native void ClosingSignedFeeRange_set_min_fee_satoshis(long this_ptr, long val);
8915 // uint64_t ClosingSignedFeeRange_get_max_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
8916 public static native long ClosingSignedFeeRange_get_max_fee_satoshis(long this_ptr);
8917 // void ClosingSignedFeeRange_set_max_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
8918 public static native void ClosingSignedFeeRange_set_max_fee_satoshis(long this_ptr, long val);
8919 // MUST_USE_RES struct LDKClosingSignedFeeRange ClosingSignedFeeRange_new(uint64_t min_fee_satoshis_arg, uint64_t max_fee_satoshis_arg);
8920 public static native long ClosingSignedFeeRange_new(long min_fee_satoshis_arg, long max_fee_satoshis_arg);
8921 // uint64_t ClosingSignedFeeRange_clone_ptr(LDKClosingSignedFeeRange *NONNULL_PTR arg);
8922 public static native long ClosingSignedFeeRange_clone_ptr(long arg);
8923 // struct LDKClosingSignedFeeRange ClosingSignedFeeRange_clone(const struct LDKClosingSignedFeeRange *NONNULL_PTR orig);
8924 public static native long ClosingSignedFeeRange_clone(long orig);
8925 // uint64_t ClosingSignedFeeRange_hash(const struct LDKClosingSignedFeeRange *NONNULL_PTR o);
8926 public static native long ClosingSignedFeeRange_hash(long o);
8927 // bool ClosingSignedFeeRange_eq(const struct LDKClosingSignedFeeRange *NONNULL_PTR a, const struct LDKClosingSignedFeeRange *NONNULL_PTR b);
8928 public static native boolean ClosingSignedFeeRange_eq(long a, long b);
8929 // void ClosingSigned_free(struct LDKClosingSigned this_obj);
8930 public static native void ClosingSigned_free(long this_obj);
8931 // const uint8_t (*ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr))[32];
8932 public static native byte[] ClosingSigned_get_channel_id(long this_ptr);
8933 // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8934 public static native void ClosingSigned_set_channel_id(long this_ptr, byte[] val);
8935 // uint64_t ClosingSigned_get_fee_satoshis(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
8936 public static native long ClosingSigned_get_fee_satoshis(long this_ptr);
8937 // void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_ptr, uint64_t val);
8938 public static native void ClosingSigned_set_fee_satoshis(long this_ptr, long val);
8939 // struct LDKECDSASignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
8940 public static native byte[] ClosingSigned_get_signature(long this_ptr);
8941 // void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
8942 public static native void ClosingSigned_set_signature(long this_ptr, byte[] val);
8943 // struct LDKClosingSignedFeeRange ClosingSigned_get_fee_range(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
8944 public static native long ClosingSigned_get_fee_range(long this_ptr);
8945 // void ClosingSigned_set_fee_range(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKClosingSignedFeeRange val);
8946 public static native void ClosingSigned_set_fee_range(long this_ptr, long val);
8947 // MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t fee_satoshis_arg, struct LDKECDSASignature signature_arg, struct LDKClosingSignedFeeRange fee_range_arg);
8948 public static native long ClosingSigned_new(byte[] channel_id_arg, long fee_satoshis_arg, byte[] signature_arg, long fee_range_arg);
8949 // uint64_t ClosingSigned_clone_ptr(LDKClosingSigned *NONNULL_PTR arg);
8950 public static native long ClosingSigned_clone_ptr(long arg);
8951 // struct LDKClosingSigned ClosingSigned_clone(const struct LDKClosingSigned *NONNULL_PTR orig);
8952 public static native long ClosingSigned_clone(long orig);
8953 // uint64_t ClosingSigned_hash(const struct LDKClosingSigned *NONNULL_PTR o);
8954 public static native long ClosingSigned_hash(long o);
8955 // bool ClosingSigned_eq(const struct LDKClosingSigned *NONNULL_PTR a, const struct LDKClosingSigned *NONNULL_PTR b);
8956 public static native boolean ClosingSigned_eq(long a, long b);
8957 // void UpdateAddHTLC_free(struct LDKUpdateAddHTLC this_obj);
8958 public static native void UpdateAddHTLC_free(long this_obj);
8959 // const uint8_t (*UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
8960 public static native byte[] UpdateAddHTLC_get_channel_id(long this_ptr);
8961 // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8962 public static native void UpdateAddHTLC_set_channel_id(long this_ptr, byte[] val);
8963 // uint64_t UpdateAddHTLC_get_htlc_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
8964 public static native long UpdateAddHTLC_get_htlc_id(long this_ptr);
8965 // void UpdateAddHTLC_set_htlc_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
8966 public static native void UpdateAddHTLC_set_htlc_id(long this_ptr, long val);
8967 // uint64_t UpdateAddHTLC_get_amount_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
8968 public static native long UpdateAddHTLC_get_amount_msat(long this_ptr);
8969 // void UpdateAddHTLC_set_amount_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
8970 public static native void UpdateAddHTLC_set_amount_msat(long this_ptr, long val);
8971 // const uint8_t (*UpdateAddHTLC_get_payment_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
8972 public static native byte[] UpdateAddHTLC_get_payment_hash(long this_ptr);
8973 // void UpdateAddHTLC_set_payment_hash(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8974 public static native void UpdateAddHTLC_set_payment_hash(long this_ptr, byte[] val);
8975 // uint32_t UpdateAddHTLC_get_cltv_expiry(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
8976 public static native int UpdateAddHTLC_get_cltv_expiry(long this_ptr);
8977 // void UpdateAddHTLC_set_cltv_expiry(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint32_t val);
8978 public static native void UpdateAddHTLC_set_cltv_expiry(long this_ptr, int val);
8979 // struct LDKCOption_u64Z UpdateAddHTLC_get_skimmed_fee_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
8980 public static native long UpdateAddHTLC_get_skimmed_fee_msat(long this_ptr);
8981 // void UpdateAddHTLC_set_skimmed_fee_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
8982 public static native void UpdateAddHTLC_set_skimmed_fee_msat(long this_ptr, long val);
8983 // struct LDKOnionPacket UpdateAddHTLC_get_onion_routing_packet(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
8984 public static native long UpdateAddHTLC_get_onion_routing_packet(long this_ptr);
8985 // void UpdateAddHTLC_set_onion_routing_packet(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKOnionPacket val);
8986 public static native void UpdateAddHTLC_set_onion_routing_packet(long this_ptr, long val);
8987 // struct LDKPublicKey UpdateAddHTLC_get_blinding_point(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
8988 public static native byte[] UpdateAddHTLC_get_blinding_point(long this_ptr);
8989 // void UpdateAddHTLC_set_blinding_point(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8990 public static native void UpdateAddHTLC_set_blinding_point(long this_ptr, byte[] val);
8991 // MUST_USE_RES struct LDKUpdateAddHTLC UpdateAddHTLC_new(struct LDKThirtyTwoBytes 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);
8992 public static native long UpdateAddHTLC_new(byte[] 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);
8993 // uint64_t UpdateAddHTLC_clone_ptr(LDKUpdateAddHTLC *NONNULL_PTR arg);
8994 public static native long UpdateAddHTLC_clone_ptr(long arg);
8995 // struct LDKUpdateAddHTLC UpdateAddHTLC_clone(const struct LDKUpdateAddHTLC *NONNULL_PTR orig);
8996 public static native long UpdateAddHTLC_clone(long orig);
8997 // uint64_t UpdateAddHTLC_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR o);
8998 public static native long UpdateAddHTLC_hash(long o);
8999 // bool UpdateAddHTLC_eq(const struct LDKUpdateAddHTLC *NONNULL_PTR a, const struct LDKUpdateAddHTLC *NONNULL_PTR b);
9000 public static native boolean UpdateAddHTLC_eq(long a, long b);
9001 // void OnionMessage_free(struct LDKOnionMessage this_obj);
9002 public static native void OnionMessage_free(long this_obj);
9003 // struct LDKPublicKey OnionMessage_get_blinding_point(const struct LDKOnionMessage *NONNULL_PTR this_ptr);
9004 public static native byte[] OnionMessage_get_blinding_point(long this_ptr);
9005 // void OnionMessage_set_blinding_point(struct LDKOnionMessage *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9006 public static native void OnionMessage_set_blinding_point(long this_ptr, byte[] val);
9007 // struct LDKPacket OnionMessage_get_onion_routing_packet(const struct LDKOnionMessage *NONNULL_PTR this_ptr);
9008 public static native long OnionMessage_get_onion_routing_packet(long this_ptr);
9009 // void OnionMessage_set_onion_routing_packet(struct LDKOnionMessage *NONNULL_PTR this_ptr, struct LDKPacket val);
9010 public static native void OnionMessage_set_onion_routing_packet(long this_ptr, long val);
9011 // MUST_USE_RES struct LDKOnionMessage OnionMessage_new(struct LDKPublicKey blinding_point_arg, struct LDKPacket onion_routing_packet_arg);
9012 public static native long OnionMessage_new(byte[] blinding_point_arg, long onion_routing_packet_arg);
9013 // uint64_t OnionMessage_clone_ptr(LDKOnionMessage *NONNULL_PTR arg);
9014 public static native long OnionMessage_clone_ptr(long arg);
9015 // struct LDKOnionMessage OnionMessage_clone(const struct LDKOnionMessage *NONNULL_PTR orig);
9016 public static native long OnionMessage_clone(long orig);
9017 // uint64_t OnionMessage_hash(const struct LDKOnionMessage *NONNULL_PTR o);
9018 public static native long OnionMessage_hash(long o);
9019 // bool OnionMessage_eq(const struct LDKOnionMessage *NONNULL_PTR a, const struct LDKOnionMessage *NONNULL_PTR b);
9020 public static native boolean OnionMessage_eq(long a, long b);
9021 // void UpdateFulfillHTLC_free(struct LDKUpdateFulfillHTLC this_obj);
9022 public static native void UpdateFulfillHTLC_free(long this_obj);
9023 // const uint8_t (*UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
9024 public static native byte[] UpdateFulfillHTLC_get_channel_id(long this_ptr);
9025 // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9026 public static native void UpdateFulfillHTLC_set_channel_id(long this_ptr, byte[] val);
9027 // uint64_t UpdateFulfillHTLC_get_htlc_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr);
9028 public static native long UpdateFulfillHTLC_get_htlc_id(long this_ptr);
9029 // void UpdateFulfillHTLC_set_htlc_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, uint64_t val);
9030 public static native void UpdateFulfillHTLC_set_htlc_id(long this_ptr, long val);
9031 // const uint8_t (*UpdateFulfillHTLC_get_payment_preimage(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
9032 public static native byte[] UpdateFulfillHTLC_get_payment_preimage(long this_ptr);
9033 // void UpdateFulfillHTLC_set_payment_preimage(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9034 public static native void UpdateFulfillHTLC_set_payment_preimage(long this_ptr, byte[] val);
9035 // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg);
9036 public static native long UpdateFulfillHTLC_new(byte[] channel_id_arg, long htlc_id_arg, byte[] payment_preimage_arg);
9037 // uint64_t UpdateFulfillHTLC_clone_ptr(LDKUpdateFulfillHTLC *NONNULL_PTR arg);
9038 public static native long UpdateFulfillHTLC_clone_ptr(long arg);
9039 // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_clone(const struct LDKUpdateFulfillHTLC *NONNULL_PTR orig);
9040 public static native long UpdateFulfillHTLC_clone(long orig);
9041 // uint64_t UpdateFulfillHTLC_hash(const struct LDKUpdateFulfillHTLC *NONNULL_PTR o);
9042 public static native long UpdateFulfillHTLC_hash(long o);
9043 // bool UpdateFulfillHTLC_eq(const struct LDKUpdateFulfillHTLC *NONNULL_PTR a, const struct LDKUpdateFulfillHTLC *NONNULL_PTR b);
9044 public static native boolean UpdateFulfillHTLC_eq(long a, long b);
9045 // void UpdateFailHTLC_free(struct LDKUpdateFailHTLC this_obj);
9046 public static native void UpdateFailHTLC_free(long this_obj);
9047 // const uint8_t (*UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr))[32];
9048 public static native byte[] UpdateFailHTLC_get_channel_id(long this_ptr);
9049 // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9050 public static native void UpdateFailHTLC_set_channel_id(long this_ptr, byte[] val);
9051 // uint64_t UpdateFailHTLC_get_htlc_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr);
9052 public static native long UpdateFailHTLC_get_htlc_id(long this_ptr);
9053 // void UpdateFailHTLC_set_htlc_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, uint64_t val);
9054 public static native void UpdateFailHTLC_set_htlc_id(long this_ptr, long val);
9055 // uint64_t UpdateFailHTLC_clone_ptr(LDKUpdateFailHTLC *NONNULL_PTR arg);
9056 public static native long UpdateFailHTLC_clone_ptr(long arg);
9057 // struct LDKUpdateFailHTLC UpdateFailHTLC_clone(const struct LDKUpdateFailHTLC *NONNULL_PTR orig);
9058 public static native long UpdateFailHTLC_clone(long orig);
9059 // uint64_t UpdateFailHTLC_hash(const struct LDKUpdateFailHTLC *NONNULL_PTR o);
9060 public static native long UpdateFailHTLC_hash(long o);
9061 // bool UpdateFailHTLC_eq(const struct LDKUpdateFailHTLC *NONNULL_PTR a, const struct LDKUpdateFailHTLC *NONNULL_PTR b);
9062 public static native boolean UpdateFailHTLC_eq(long a, long b);
9063 // void UpdateFailMalformedHTLC_free(struct LDKUpdateFailMalformedHTLC this_obj);
9064 public static native void UpdateFailMalformedHTLC_free(long this_obj);
9065 // const uint8_t (*UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr))[32];
9066 public static native byte[] UpdateFailMalformedHTLC_get_channel_id(long this_ptr);
9067 // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9068 public static native void UpdateFailMalformedHTLC_set_channel_id(long this_ptr, byte[] val);
9069 // uint64_t UpdateFailMalformedHTLC_get_htlc_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
9070 public static native long UpdateFailMalformedHTLC_get_htlc_id(long this_ptr);
9071 // void UpdateFailMalformedHTLC_set_htlc_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint64_t val);
9072 public static native void UpdateFailMalformedHTLC_set_htlc_id(long this_ptr, long val);
9073 // uint16_t UpdateFailMalformedHTLC_get_failure_code(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
9074 public static native short UpdateFailMalformedHTLC_get_failure_code(long this_ptr);
9075 // void UpdateFailMalformedHTLC_set_failure_code(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint16_t val);
9076 public static native void UpdateFailMalformedHTLC_set_failure_code(long this_ptr, short val);
9077 // uint64_t UpdateFailMalformedHTLC_clone_ptr(LDKUpdateFailMalformedHTLC *NONNULL_PTR arg);
9078 public static native long UpdateFailMalformedHTLC_clone_ptr(long arg);
9079 // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_clone(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR orig);
9080 public static native long UpdateFailMalformedHTLC_clone(long orig);
9081 // uint64_t UpdateFailMalformedHTLC_hash(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR o);
9082 public static native long UpdateFailMalformedHTLC_hash(long o);
9083 // bool UpdateFailMalformedHTLC_eq(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR a, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR b);
9084 public static native boolean UpdateFailMalformedHTLC_eq(long a, long b);
9085 // void CommitmentSigned_free(struct LDKCommitmentSigned this_obj);
9086 public static native void CommitmentSigned_free(long this_obj);
9087 // const uint8_t (*CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr))[32];
9088 public static native byte[] CommitmentSigned_get_channel_id(long this_ptr);
9089 // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9090 public static native void CommitmentSigned_set_channel_id(long this_ptr, byte[] val);
9091 // struct LDKECDSASignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
9092 public static native byte[] CommitmentSigned_get_signature(long this_ptr);
9093 // void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
9094 public static native void CommitmentSigned_set_signature(long this_ptr, byte[] val);
9095 // struct LDKCVec_ECDSASignatureZ CommitmentSigned_get_htlc_signatures(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
9096 public static native byte[][] CommitmentSigned_get_htlc_signatures(long this_ptr);
9097 // void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_ECDSASignatureZ val);
9098 public static native void CommitmentSigned_set_htlc_signatures(long this_ptr, byte[][] val);
9099 // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKECDSASignature signature_arg, struct LDKCVec_ECDSASignatureZ htlc_signatures_arg);
9100 public static native long CommitmentSigned_new(byte[] channel_id_arg, byte[] signature_arg, byte[][] htlc_signatures_arg);
9101 // uint64_t CommitmentSigned_clone_ptr(LDKCommitmentSigned *NONNULL_PTR arg);
9102 public static native long CommitmentSigned_clone_ptr(long arg);
9103 // struct LDKCommitmentSigned CommitmentSigned_clone(const struct LDKCommitmentSigned *NONNULL_PTR orig);
9104 public static native long CommitmentSigned_clone(long orig);
9105 // uint64_t CommitmentSigned_hash(const struct LDKCommitmentSigned *NONNULL_PTR o);
9106 public static native long CommitmentSigned_hash(long o);
9107 // bool CommitmentSigned_eq(const struct LDKCommitmentSigned *NONNULL_PTR a, const struct LDKCommitmentSigned *NONNULL_PTR b);
9108 public static native boolean CommitmentSigned_eq(long a, long b);
9109 // void RevokeAndACK_free(struct LDKRevokeAndACK this_obj);
9110 public static native void RevokeAndACK_free(long this_obj);
9111 // const uint8_t (*RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
9112 public static native byte[] RevokeAndACK_get_channel_id(long this_ptr);
9113 // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9114 public static native void RevokeAndACK_set_channel_id(long this_ptr, byte[] val);
9115 // const uint8_t (*RevokeAndACK_get_per_commitment_secret(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
9116 public static native byte[] RevokeAndACK_get_per_commitment_secret(long this_ptr);
9117 // void RevokeAndACK_set_per_commitment_secret(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9118 public static native void RevokeAndACK_set_per_commitment_secret(long this_ptr, byte[] val);
9119 // struct LDKPublicKey RevokeAndACK_get_next_per_commitment_point(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr);
9120 public static native byte[] RevokeAndACK_get_next_per_commitment_point(long this_ptr);
9121 // void RevokeAndACK_set_next_per_commitment_point(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9122 public static native void RevokeAndACK_set_next_per_commitment_point(long this_ptr, byte[] val);
9123 // MUST_USE_RES struct LDKRevokeAndACK RevokeAndACK_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKThirtyTwoBytes per_commitment_secret_arg, struct LDKPublicKey next_per_commitment_point_arg);
9124 public static native long RevokeAndACK_new(byte[] channel_id_arg, byte[] per_commitment_secret_arg, byte[] next_per_commitment_point_arg);
9125 // uint64_t RevokeAndACK_clone_ptr(LDKRevokeAndACK *NONNULL_PTR arg);
9126 public static native long RevokeAndACK_clone_ptr(long arg);
9127 // struct LDKRevokeAndACK RevokeAndACK_clone(const struct LDKRevokeAndACK *NONNULL_PTR orig);
9128 public static native long RevokeAndACK_clone(long orig);
9129 // uint64_t RevokeAndACK_hash(const struct LDKRevokeAndACK *NONNULL_PTR o);
9130 public static native long RevokeAndACK_hash(long o);
9131 // bool RevokeAndACK_eq(const struct LDKRevokeAndACK *NONNULL_PTR a, const struct LDKRevokeAndACK *NONNULL_PTR b);
9132 public static native boolean RevokeAndACK_eq(long a, long b);
9133 // void UpdateFee_free(struct LDKUpdateFee this_obj);
9134 public static native void UpdateFee_free(long this_obj);
9135 // const uint8_t (*UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr))[32];
9136 public static native byte[] UpdateFee_get_channel_id(long this_ptr);
9137 // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9138 public static native void UpdateFee_set_channel_id(long this_ptr, byte[] val);
9139 // uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee *NONNULL_PTR this_ptr);
9140 public static native int UpdateFee_get_feerate_per_kw(long this_ptr);
9141 // void UpdateFee_set_feerate_per_kw(struct LDKUpdateFee *NONNULL_PTR this_ptr, uint32_t val);
9142 public static native void UpdateFee_set_feerate_per_kw(long this_ptr, int val);
9143 // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t feerate_per_kw_arg);
9144 public static native long UpdateFee_new(byte[] channel_id_arg, int feerate_per_kw_arg);
9145 // uint64_t UpdateFee_clone_ptr(LDKUpdateFee *NONNULL_PTR arg);
9146 public static native long UpdateFee_clone_ptr(long arg);
9147 // struct LDKUpdateFee UpdateFee_clone(const struct LDKUpdateFee *NONNULL_PTR orig);
9148 public static native long UpdateFee_clone(long orig);
9149 // uint64_t UpdateFee_hash(const struct LDKUpdateFee *NONNULL_PTR o);
9150 public static native long UpdateFee_hash(long o);
9151 // bool UpdateFee_eq(const struct LDKUpdateFee *NONNULL_PTR a, const struct LDKUpdateFee *NONNULL_PTR b);
9152 public static native boolean UpdateFee_eq(long a, long b);
9153 // void ChannelReestablish_free(struct LDKChannelReestablish this_obj);
9154 public static native void ChannelReestablish_free(long this_obj);
9155 // const uint8_t (*ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
9156 public static native byte[] ChannelReestablish_get_channel_id(long this_ptr);
9157 // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9158 public static native void ChannelReestablish_set_channel_id(long this_ptr, byte[] val);
9159 // uint64_t ChannelReestablish_get_next_local_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
9160 public static native long ChannelReestablish_get_next_local_commitment_number(long this_ptr);
9161 // void ChannelReestablish_set_next_local_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
9162 public static native void ChannelReestablish_set_next_local_commitment_number(long this_ptr, long val);
9163 // uint64_t ChannelReestablish_get_next_remote_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
9164 public static native long ChannelReestablish_get_next_remote_commitment_number(long this_ptr);
9165 // void ChannelReestablish_set_next_remote_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
9166 public static native void ChannelReestablish_set_next_remote_commitment_number(long this_ptr, long val);
9167 // const uint8_t (*ChannelReestablish_get_your_last_per_commitment_secret(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
9168 public static native byte[] ChannelReestablish_get_your_last_per_commitment_secret(long this_ptr);
9169 // void ChannelReestablish_set_your_last_per_commitment_secret(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9170 public static native void ChannelReestablish_set_your_last_per_commitment_secret(long this_ptr, byte[] val);
9171 // struct LDKPublicKey ChannelReestablish_get_my_current_per_commitment_point(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
9172 public static native byte[] ChannelReestablish_get_my_current_per_commitment_point(long this_ptr);
9173 // void ChannelReestablish_set_my_current_per_commitment_point(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9174 public static native void ChannelReestablish_set_my_current_per_commitment_point(long this_ptr, byte[] val);
9175 // struct LDKCOption_ThirtyTwoBytesZ ChannelReestablish_get_next_funding_txid(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
9176 public static native long ChannelReestablish_get_next_funding_txid(long this_ptr);
9177 // void ChannelReestablish_set_next_funding_txid(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val);
9178 public static native void ChannelReestablish_set_next_funding_txid(long this_ptr, long val);
9179 // MUST_USE_RES struct LDKChannelReestablish ChannelReestablish_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t next_local_commitment_number_arg, uint64_t next_remote_commitment_number_arg, struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg, struct LDKCOption_ThirtyTwoBytesZ next_funding_txid_arg);
9180 public static native long ChannelReestablish_new(byte[] channel_id_arg, long next_local_commitment_number_arg, long next_remote_commitment_number_arg, byte[] your_last_per_commitment_secret_arg, byte[] my_current_per_commitment_point_arg, long next_funding_txid_arg);
9181 // uint64_t ChannelReestablish_clone_ptr(LDKChannelReestablish *NONNULL_PTR arg);
9182 public static native long ChannelReestablish_clone_ptr(long arg);
9183 // struct LDKChannelReestablish ChannelReestablish_clone(const struct LDKChannelReestablish *NONNULL_PTR orig);
9184 public static native long ChannelReestablish_clone(long orig);
9185 // uint64_t ChannelReestablish_hash(const struct LDKChannelReestablish *NONNULL_PTR o);
9186 public static native long ChannelReestablish_hash(long o);
9187 // bool ChannelReestablish_eq(const struct LDKChannelReestablish *NONNULL_PTR a, const struct LDKChannelReestablish *NONNULL_PTR b);
9188 public static native boolean ChannelReestablish_eq(long a, long b);
9189 // void AnnouncementSignatures_free(struct LDKAnnouncementSignatures this_obj);
9190 public static native void AnnouncementSignatures_free(long this_obj);
9191 // const uint8_t (*AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr))[32];
9192 public static native byte[] AnnouncementSignatures_get_channel_id(long this_ptr);
9193 // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9194 public static native void AnnouncementSignatures_set_channel_id(long this_ptr, byte[] val);
9195 // uint64_t AnnouncementSignatures_get_short_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
9196 public static native long AnnouncementSignatures_get_short_channel_id(long this_ptr);
9197 // void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, uint64_t val);
9198 public static native void AnnouncementSignatures_set_short_channel_id(long this_ptr, long val);
9199 // struct LDKECDSASignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
9200 public static native byte[] AnnouncementSignatures_get_node_signature(long this_ptr);
9201 // void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
9202 public static native void AnnouncementSignatures_set_node_signature(long this_ptr, byte[] val);
9203 // struct LDKECDSASignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
9204 public static native byte[] AnnouncementSignatures_get_bitcoin_signature(long this_ptr);
9205 // void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
9206 public static native void AnnouncementSignatures_set_bitcoin_signature(long this_ptr, byte[] val);
9207 // MUST_USE_RES struct LDKAnnouncementSignatures AnnouncementSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t short_channel_id_arg, struct LDKECDSASignature node_signature_arg, struct LDKECDSASignature bitcoin_signature_arg);
9208 public static native long AnnouncementSignatures_new(byte[] channel_id_arg, long short_channel_id_arg, byte[] node_signature_arg, byte[] bitcoin_signature_arg);
9209 // uint64_t AnnouncementSignatures_clone_ptr(LDKAnnouncementSignatures *NONNULL_PTR arg);
9210 public static native long AnnouncementSignatures_clone_ptr(long arg);
9211 // struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAnnouncementSignatures *NONNULL_PTR orig);
9212 public static native long AnnouncementSignatures_clone(long orig);
9213 // uint64_t AnnouncementSignatures_hash(const struct LDKAnnouncementSignatures *NONNULL_PTR o);
9214 public static native long AnnouncementSignatures_hash(long o);
9215 // bool AnnouncementSignatures_eq(const struct LDKAnnouncementSignatures *NONNULL_PTR a, const struct LDKAnnouncementSignatures *NONNULL_PTR b);
9216 public static native boolean AnnouncementSignatures_eq(long a, long b);
9217 // void SocketAddress_free(struct LDKSocketAddress this_ptr);
9218 public static native void SocketAddress_free(long this_ptr);
9219 // uint64_t SocketAddress_clone_ptr(LDKSocketAddress *NONNULL_PTR arg);
9220 public static native long SocketAddress_clone_ptr(long arg);
9221 // struct LDKSocketAddress SocketAddress_clone(const struct LDKSocketAddress *NONNULL_PTR orig);
9222 public static native long SocketAddress_clone(long orig);
9223 // struct LDKSocketAddress SocketAddress_tcp_ip_v4(struct LDKFourBytes addr, uint16_t port);
9224 public static native long SocketAddress_tcp_ip_v4(byte[] addr, short port);
9225 // struct LDKSocketAddress SocketAddress_tcp_ip_v6(struct LDKSixteenBytes addr, uint16_t port);
9226 public static native long SocketAddress_tcp_ip_v6(byte[] addr, short port);
9227 // struct LDKSocketAddress SocketAddress_onion_v2(struct LDKTwelveBytes a);
9228 public static native long SocketAddress_onion_v2(byte[] a);
9229 // struct LDKSocketAddress SocketAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port);
9230 public static native long SocketAddress_onion_v3(byte[] ed25519_pubkey, short checksum, byte version, short port);
9231 // struct LDKSocketAddress SocketAddress_hostname(struct LDKHostname hostname, uint16_t port);
9232 public static native long SocketAddress_hostname(long hostname, short port);
9233 // uint64_t SocketAddress_hash(const struct LDKSocketAddress *NONNULL_PTR o);
9234 public static native long SocketAddress_hash(long o);
9235 // bool SocketAddress_eq(const struct LDKSocketAddress *NONNULL_PTR a, const struct LDKSocketAddress *NONNULL_PTR b);
9236 public static native boolean SocketAddress_eq(long a, long b);
9237 // struct LDKCVec_u8Z SocketAddress_write(const struct LDKSocketAddress *NONNULL_PTR obj);
9238 public static native byte[] SocketAddress_write(long obj);
9239 // struct LDKCResult_SocketAddressDecodeErrorZ SocketAddress_read(struct LDKu8slice ser);
9240 public static native long SocketAddress_read(byte[] ser);
9241 // enum LDKSocketAddressParseError SocketAddressParseError_clone(const enum LDKSocketAddressParseError *NONNULL_PTR orig);
9242 public static native SocketAddressParseError SocketAddressParseError_clone(long orig);
9243 // enum LDKSocketAddressParseError SocketAddressParseError_socket_addr_parse(void);
9244 public static native SocketAddressParseError SocketAddressParseError_socket_addr_parse();
9245 // enum LDKSocketAddressParseError SocketAddressParseError_invalid_input(void);
9246 public static native SocketAddressParseError SocketAddressParseError_invalid_input();
9247 // enum LDKSocketAddressParseError SocketAddressParseError_invalid_port(void);
9248 public static native SocketAddressParseError SocketAddressParseError_invalid_port();
9249 // enum LDKSocketAddressParseError SocketAddressParseError_invalid_onion_v3(void);
9250 public static native SocketAddressParseError SocketAddressParseError_invalid_onion_v3();
9251 // uint64_t SocketAddressParseError_hash(const enum LDKSocketAddressParseError *NONNULL_PTR o);
9252 public static native long SocketAddressParseError_hash(long o);
9253 // bool SocketAddressParseError_eq(const enum LDKSocketAddressParseError *NONNULL_PTR a, const enum LDKSocketAddressParseError *NONNULL_PTR b);
9254 public static native boolean SocketAddressParseError_eq(long a, long b);
9255 // struct LDKCResult_SocketAddressSocketAddressParseErrorZ parse_onion_address(struct LDKStr host, uint16_t port);
9256 public static native long parse_onion_address(String host, short port);
9257 // struct LDKStr SocketAddress_to_str(const struct LDKSocketAddress *NONNULL_PTR o);
9258 public static native String SocketAddress_to_str(long o);
9259 // struct LDKCResult_SocketAddressSocketAddressParseErrorZ SocketAddress_from_str(struct LDKStr s);
9260 public static native long SocketAddress_from_str(String s);
9261 // void UnsignedGossipMessage_free(struct LDKUnsignedGossipMessage this_ptr);
9262 public static native void UnsignedGossipMessage_free(long this_ptr);
9263 // uint64_t UnsignedGossipMessage_clone_ptr(LDKUnsignedGossipMessage *NONNULL_PTR arg);
9264 public static native long UnsignedGossipMessage_clone_ptr(long arg);
9265 // struct LDKUnsignedGossipMessage UnsignedGossipMessage_clone(const struct LDKUnsignedGossipMessage *NONNULL_PTR orig);
9266 public static native long UnsignedGossipMessage_clone(long orig);
9267 // struct LDKUnsignedGossipMessage UnsignedGossipMessage_channel_announcement(struct LDKUnsignedChannelAnnouncement a);
9268 public static native long UnsignedGossipMessage_channel_announcement(long a);
9269 // struct LDKUnsignedGossipMessage UnsignedGossipMessage_channel_update(struct LDKUnsignedChannelUpdate a);
9270 public static native long UnsignedGossipMessage_channel_update(long a);
9271 // struct LDKUnsignedGossipMessage UnsignedGossipMessage_node_announcement(struct LDKUnsignedNodeAnnouncement a);
9272 public static native long UnsignedGossipMessage_node_announcement(long a);
9273 // struct LDKCVec_u8Z UnsignedGossipMessage_write(const struct LDKUnsignedGossipMessage *NONNULL_PTR obj);
9274 public static native byte[] UnsignedGossipMessage_write(long obj);
9275 // void UnsignedNodeAnnouncement_free(struct LDKUnsignedNodeAnnouncement this_obj);
9276 public static native void UnsignedNodeAnnouncement_free(long this_obj);
9277 // struct LDKNodeFeatures UnsignedNodeAnnouncement_get_features(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
9278 public static native long UnsignedNodeAnnouncement_get_features(long this_ptr);
9279 // void UnsignedNodeAnnouncement_set_features(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
9280 public static native void UnsignedNodeAnnouncement_set_features(long this_ptr, long val);
9281 // uint32_t UnsignedNodeAnnouncement_get_timestamp(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
9282 public static native int UnsignedNodeAnnouncement_get_timestamp(long this_ptr);
9283 // void UnsignedNodeAnnouncement_set_timestamp(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, uint32_t val);
9284 public static native void UnsignedNodeAnnouncement_set_timestamp(long this_ptr, int val);
9285 // struct LDKNodeId UnsignedNodeAnnouncement_get_node_id(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
9286 public static native long UnsignedNodeAnnouncement_get_node_id(long this_ptr);
9287 // void UnsignedNodeAnnouncement_set_node_id(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
9288 public static native void UnsignedNodeAnnouncement_set_node_id(long this_ptr, long val);
9289 // const uint8_t (*UnsignedNodeAnnouncement_get_rgb(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[3];
9290 public static native byte[] UnsignedNodeAnnouncement_get_rgb(long this_ptr);
9291 // void UnsignedNodeAnnouncement_set_rgb(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
9292 public static native void UnsignedNodeAnnouncement_set_rgb(long this_ptr, byte[] val);
9293 // struct LDKNodeAlias UnsignedNodeAnnouncement_get_alias(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
9294 public static native long UnsignedNodeAnnouncement_get_alias(long this_ptr);
9295 // void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeAlias val);
9296 public static native void UnsignedNodeAnnouncement_set_alias(long this_ptr, long val);
9297 // struct LDKCVec_SocketAddressZ UnsignedNodeAnnouncement_get_addresses(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
9298 public static native long[] UnsignedNodeAnnouncement_get_addresses(long this_ptr);
9299 // void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_SocketAddressZ val);
9300 public static native void UnsignedNodeAnnouncement_set_addresses(long this_ptr, long[] val);
9301 // uint64_t UnsignedNodeAnnouncement_clone_ptr(LDKUnsignedNodeAnnouncement *NONNULL_PTR arg);
9302 public static native long UnsignedNodeAnnouncement_clone_ptr(long arg);
9303 // struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_clone(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR orig);
9304 public static native long UnsignedNodeAnnouncement_clone(long orig);
9305 // uint64_t UnsignedNodeAnnouncement_hash(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR o);
9306 public static native long UnsignedNodeAnnouncement_hash(long o);
9307 // bool UnsignedNodeAnnouncement_eq(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR a, const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR b);
9308 public static native boolean UnsignedNodeAnnouncement_eq(long a, long b);
9309 // void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj);
9310 public static native void NodeAnnouncement_free(long this_obj);
9311 // struct LDKECDSASignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
9312 public static native byte[] NodeAnnouncement_get_signature(long this_ptr);
9313 // void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
9314 public static native void NodeAnnouncement_set_signature(long this_ptr, byte[] val);
9315 // struct LDKUnsignedNodeAnnouncement NodeAnnouncement_get_contents(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
9316 public static native long NodeAnnouncement_get_contents(long this_ptr);
9317 // void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedNodeAnnouncement val);
9318 public static native void NodeAnnouncement_set_contents(long this_ptr, long val);
9319 // MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKECDSASignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg);
9320 public static native long NodeAnnouncement_new(byte[] signature_arg, long contents_arg);
9321 // uint64_t NodeAnnouncement_clone_ptr(LDKNodeAnnouncement *NONNULL_PTR arg);
9322 public static native long NodeAnnouncement_clone_ptr(long arg);
9323 // struct LDKNodeAnnouncement NodeAnnouncement_clone(const struct LDKNodeAnnouncement *NONNULL_PTR orig);
9324 public static native long NodeAnnouncement_clone(long orig);
9325 // uint64_t NodeAnnouncement_hash(const struct LDKNodeAnnouncement *NONNULL_PTR o);
9326 public static native long NodeAnnouncement_hash(long o);
9327 // bool NodeAnnouncement_eq(const struct LDKNodeAnnouncement *NONNULL_PTR a, const struct LDKNodeAnnouncement *NONNULL_PTR b);
9328 public static native boolean NodeAnnouncement_eq(long a, long b);
9329 // void UnsignedChannelAnnouncement_free(struct LDKUnsignedChannelAnnouncement this_obj);
9330 public static native void UnsignedChannelAnnouncement_free(long this_obj);
9331 // struct LDKChannelFeatures UnsignedChannelAnnouncement_get_features(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
9332 public static native long UnsignedChannelAnnouncement_get_features(long this_ptr);
9333 // void UnsignedChannelAnnouncement_set_features(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
9334 public static native void UnsignedChannelAnnouncement_set_features(long this_ptr, long val);
9335 // const uint8_t (*UnsignedChannelAnnouncement_get_chain_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr))[32];
9336 public static native byte[] UnsignedChannelAnnouncement_get_chain_hash(long this_ptr);
9337 // void UnsignedChannelAnnouncement_set_chain_hash(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9338 public static native void UnsignedChannelAnnouncement_set_chain_hash(long this_ptr, byte[] val);
9339 // uint64_t UnsignedChannelAnnouncement_get_short_channel_id(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
9340 public static native long UnsignedChannelAnnouncement_get_short_channel_id(long this_ptr);
9341 // void UnsignedChannelAnnouncement_set_short_channel_id(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, uint64_t val);
9342 public static native void UnsignedChannelAnnouncement_set_short_channel_id(long this_ptr, long val);
9343 // struct LDKNodeId UnsignedChannelAnnouncement_get_node_id_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
9344 public static native long UnsignedChannelAnnouncement_get_node_id_1(long this_ptr);
9345 // void UnsignedChannelAnnouncement_set_node_id_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
9346 public static native void UnsignedChannelAnnouncement_set_node_id_1(long this_ptr, long val);
9347 // struct LDKNodeId UnsignedChannelAnnouncement_get_node_id_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
9348 public static native long UnsignedChannelAnnouncement_get_node_id_2(long this_ptr);
9349 // void UnsignedChannelAnnouncement_set_node_id_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
9350 public static native void UnsignedChannelAnnouncement_set_node_id_2(long this_ptr, long val);
9351 // struct LDKNodeId UnsignedChannelAnnouncement_get_bitcoin_key_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
9352 public static native long UnsignedChannelAnnouncement_get_bitcoin_key_1(long this_ptr);
9353 // void UnsignedChannelAnnouncement_set_bitcoin_key_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
9354 public static native void UnsignedChannelAnnouncement_set_bitcoin_key_1(long this_ptr, long val);
9355 // struct LDKNodeId UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
9356 public static native long UnsignedChannelAnnouncement_get_bitcoin_key_2(long this_ptr);
9357 // void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
9358 public static native void UnsignedChannelAnnouncement_set_bitcoin_key_2(long this_ptr, long val);
9359 // struct LDKCVec_u8Z UnsignedChannelAnnouncement_get_excess_data(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
9360 public static native byte[] UnsignedChannelAnnouncement_get_excess_data(long this_ptr);
9361 // void UnsignedChannelAnnouncement_set_excess_data(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
9362 public static native void UnsignedChannelAnnouncement_set_excess_data(long this_ptr, byte[] val);
9363 // 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);
9364 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);
9365 // uint64_t UnsignedChannelAnnouncement_clone_ptr(LDKUnsignedChannelAnnouncement *NONNULL_PTR arg);
9366 public static native long UnsignedChannelAnnouncement_clone_ptr(long arg);
9367 // struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_clone(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR orig);
9368 public static native long UnsignedChannelAnnouncement_clone(long orig);
9369 // uint64_t UnsignedChannelAnnouncement_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR o);
9370 public static native long UnsignedChannelAnnouncement_hash(long o);
9371 // bool UnsignedChannelAnnouncement_eq(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR a, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR b);
9372 public static native boolean UnsignedChannelAnnouncement_eq(long a, long b);
9373 // void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj);
9374 public static native void ChannelAnnouncement_free(long this_obj);
9375 // struct LDKECDSASignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
9376 public static native byte[] ChannelAnnouncement_get_node_signature_1(long this_ptr);
9377 // void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
9378 public static native void ChannelAnnouncement_set_node_signature_1(long this_ptr, byte[] val);
9379 // struct LDKECDSASignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
9380 public static native byte[] ChannelAnnouncement_get_node_signature_2(long this_ptr);
9381 // void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
9382 public static native void ChannelAnnouncement_set_node_signature_2(long this_ptr, byte[] val);
9383 // struct LDKECDSASignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
9384 public static native byte[] ChannelAnnouncement_get_bitcoin_signature_1(long this_ptr);
9385 // void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
9386 public static native void ChannelAnnouncement_set_bitcoin_signature_1(long this_ptr, byte[] val);
9387 // struct LDKECDSASignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
9388 public static native byte[] ChannelAnnouncement_get_bitcoin_signature_2(long this_ptr);
9389 // void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
9390 public static native void ChannelAnnouncement_set_bitcoin_signature_2(long this_ptr, byte[] val);
9391 // struct LDKUnsignedChannelAnnouncement ChannelAnnouncement_get_contents(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
9392 public static native long ChannelAnnouncement_get_contents(long this_ptr);
9393 // void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedChannelAnnouncement val);
9394 public static native void ChannelAnnouncement_set_contents(long this_ptr, long val);
9395 // 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);
9396 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);
9397 // uint64_t ChannelAnnouncement_clone_ptr(LDKChannelAnnouncement *NONNULL_PTR arg);
9398 public static native long ChannelAnnouncement_clone_ptr(long arg);
9399 // struct LDKChannelAnnouncement ChannelAnnouncement_clone(const struct LDKChannelAnnouncement *NONNULL_PTR orig);
9400 public static native long ChannelAnnouncement_clone(long orig);
9401 // uint64_t ChannelAnnouncement_hash(const struct LDKChannelAnnouncement *NONNULL_PTR o);
9402 public static native long ChannelAnnouncement_hash(long o);
9403 // bool ChannelAnnouncement_eq(const struct LDKChannelAnnouncement *NONNULL_PTR a, const struct LDKChannelAnnouncement *NONNULL_PTR b);
9404 public static native boolean ChannelAnnouncement_eq(long a, long b);
9405 // void UnsignedChannelUpdate_free(struct LDKUnsignedChannelUpdate this_obj);
9406 public static native void UnsignedChannelUpdate_free(long this_obj);
9407 // const uint8_t (*UnsignedChannelUpdate_get_chain_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr))[32];
9408 public static native byte[] UnsignedChannelUpdate_get_chain_hash(long this_ptr);
9409 // void UnsignedChannelUpdate_set_chain_hash(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9410 public static native void UnsignedChannelUpdate_set_chain_hash(long this_ptr, byte[] val);
9411 // uint64_t UnsignedChannelUpdate_get_short_channel_id(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
9412 public static native long UnsignedChannelUpdate_get_short_channel_id(long this_ptr);
9413 // void UnsignedChannelUpdate_set_short_channel_id(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
9414 public static native void UnsignedChannelUpdate_set_short_channel_id(long this_ptr, long val);
9415 // uint32_t UnsignedChannelUpdate_get_timestamp(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
9416 public static native int UnsignedChannelUpdate_get_timestamp(long this_ptr);
9417 // void UnsignedChannelUpdate_set_timestamp(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
9418 public static native void UnsignedChannelUpdate_set_timestamp(long this_ptr, int val);
9419 // uint8_t UnsignedChannelUpdate_get_flags(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
9420 public static native byte UnsignedChannelUpdate_get_flags(long this_ptr);
9421 // void UnsignedChannelUpdate_set_flags(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint8_t val);
9422 public static native void UnsignedChannelUpdate_set_flags(long this_ptr, byte val);
9423 // uint16_t UnsignedChannelUpdate_get_cltv_expiry_delta(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
9424 public static native short UnsignedChannelUpdate_get_cltv_expiry_delta(long this_ptr);
9425 // void UnsignedChannelUpdate_set_cltv_expiry_delta(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint16_t val);
9426 public static native void UnsignedChannelUpdate_set_cltv_expiry_delta(long this_ptr, short val);
9427 // uint64_t UnsignedChannelUpdate_get_htlc_minimum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
9428 public static native long UnsignedChannelUpdate_get_htlc_minimum_msat(long this_ptr);
9429 // void UnsignedChannelUpdate_set_htlc_minimum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
9430 public static native void UnsignedChannelUpdate_set_htlc_minimum_msat(long this_ptr, long val);
9431 // uint64_t UnsignedChannelUpdate_get_htlc_maximum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
9432 public static native long UnsignedChannelUpdate_get_htlc_maximum_msat(long this_ptr);
9433 // void UnsignedChannelUpdate_set_htlc_maximum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
9434 public static native void UnsignedChannelUpdate_set_htlc_maximum_msat(long this_ptr, long val);
9435 // uint32_t UnsignedChannelUpdate_get_fee_base_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
9436 public static native int UnsignedChannelUpdate_get_fee_base_msat(long this_ptr);
9437 // void UnsignedChannelUpdate_set_fee_base_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
9438 public static native void UnsignedChannelUpdate_set_fee_base_msat(long this_ptr, int val);
9439 // uint32_t UnsignedChannelUpdate_get_fee_proportional_millionths(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
9440 public static native int UnsignedChannelUpdate_get_fee_proportional_millionths(long this_ptr);
9441 // void UnsignedChannelUpdate_set_fee_proportional_millionths(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
9442 public static native void UnsignedChannelUpdate_set_fee_proportional_millionths(long this_ptr, int val);
9443 // struct LDKCVec_u8Z UnsignedChannelUpdate_get_excess_data(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
9444 public static native byte[] UnsignedChannelUpdate_get_excess_data(long this_ptr);
9445 // void UnsignedChannelUpdate_set_excess_data(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
9446 public static native void UnsignedChannelUpdate_set_excess_data(long this_ptr, byte[] val);
9447 // 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);
9448 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);
9449 // uint64_t UnsignedChannelUpdate_clone_ptr(LDKUnsignedChannelUpdate *NONNULL_PTR arg);
9450 public static native long UnsignedChannelUpdate_clone_ptr(long arg);
9451 // struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_clone(const struct LDKUnsignedChannelUpdate *NONNULL_PTR orig);
9452 public static native long UnsignedChannelUpdate_clone(long orig);
9453 // uint64_t UnsignedChannelUpdate_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR o);
9454 public static native long UnsignedChannelUpdate_hash(long o);
9455 // bool UnsignedChannelUpdate_eq(const struct LDKUnsignedChannelUpdate *NONNULL_PTR a, const struct LDKUnsignedChannelUpdate *NONNULL_PTR b);
9456 public static native boolean UnsignedChannelUpdate_eq(long a, long b);
9457 // void ChannelUpdate_free(struct LDKChannelUpdate this_obj);
9458 public static native void ChannelUpdate_free(long this_obj);
9459 // struct LDKECDSASignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
9460 public static native byte[] ChannelUpdate_get_signature(long this_ptr);
9461 // void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
9462 public static native void ChannelUpdate_set_signature(long this_ptr, byte[] val);
9463 // struct LDKUnsignedChannelUpdate ChannelUpdate_get_contents(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
9464 public static native long ChannelUpdate_get_contents(long this_ptr);
9465 // void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKUnsignedChannelUpdate val);
9466 public static native void ChannelUpdate_set_contents(long this_ptr, long val);
9467 // MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKECDSASignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg);
9468 public static native long ChannelUpdate_new(byte[] signature_arg, long contents_arg);
9469 // uint64_t ChannelUpdate_clone_ptr(LDKChannelUpdate *NONNULL_PTR arg);
9470 public static native long ChannelUpdate_clone_ptr(long arg);
9471 // struct LDKChannelUpdate ChannelUpdate_clone(const struct LDKChannelUpdate *NONNULL_PTR orig);
9472 public static native long ChannelUpdate_clone(long orig);
9473 // uint64_t ChannelUpdate_hash(const struct LDKChannelUpdate *NONNULL_PTR o);
9474 public static native long ChannelUpdate_hash(long o);
9475 // bool ChannelUpdate_eq(const struct LDKChannelUpdate *NONNULL_PTR a, const struct LDKChannelUpdate *NONNULL_PTR b);
9476 public static native boolean ChannelUpdate_eq(long a, long b);
9477 // void QueryChannelRange_free(struct LDKQueryChannelRange this_obj);
9478 public static native void QueryChannelRange_free(long this_obj);
9479 // const uint8_t (*QueryChannelRange_get_chain_hash(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr))[32];
9480 public static native byte[] QueryChannelRange_get_chain_hash(long this_ptr);
9481 // void QueryChannelRange_set_chain_hash(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9482 public static native void QueryChannelRange_set_chain_hash(long this_ptr, byte[] val);
9483 // uint32_t QueryChannelRange_get_first_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
9484 public static native int QueryChannelRange_get_first_blocknum(long this_ptr);
9485 // void QueryChannelRange_set_first_blocknum(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
9486 public static native void QueryChannelRange_set_first_blocknum(long this_ptr, int val);
9487 // uint32_t QueryChannelRange_get_number_of_blocks(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
9488 public static native int QueryChannelRange_get_number_of_blocks(long this_ptr);
9489 // void QueryChannelRange_set_number_of_blocks(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
9490 public static native void QueryChannelRange_set_number_of_blocks(long this_ptr, int val);
9491 // MUST_USE_RES struct LDKQueryChannelRange QueryChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg);
9492 public static native long QueryChannelRange_new(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg);
9493 // uint64_t QueryChannelRange_clone_ptr(LDKQueryChannelRange *NONNULL_PTR arg);
9494 public static native long QueryChannelRange_clone_ptr(long arg);
9495 // struct LDKQueryChannelRange QueryChannelRange_clone(const struct LDKQueryChannelRange *NONNULL_PTR orig);
9496 public static native long QueryChannelRange_clone(long orig);
9497 // uint64_t QueryChannelRange_hash(const struct LDKQueryChannelRange *NONNULL_PTR o);
9498 public static native long QueryChannelRange_hash(long o);
9499 // bool QueryChannelRange_eq(const struct LDKQueryChannelRange *NONNULL_PTR a, const struct LDKQueryChannelRange *NONNULL_PTR b);
9500 public static native boolean QueryChannelRange_eq(long a, long b);
9501 // void ReplyChannelRange_free(struct LDKReplyChannelRange this_obj);
9502 public static native void ReplyChannelRange_free(long this_obj);
9503 // const uint8_t (*ReplyChannelRange_get_chain_hash(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr))[32];
9504 public static native byte[] ReplyChannelRange_get_chain_hash(long this_ptr);
9505 // void ReplyChannelRange_set_chain_hash(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9506 public static native void ReplyChannelRange_set_chain_hash(long this_ptr, byte[] val);
9507 // uint32_t ReplyChannelRange_get_first_blocknum(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
9508 public static native int ReplyChannelRange_get_first_blocknum(long this_ptr);
9509 // void ReplyChannelRange_set_first_blocknum(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
9510 public static native void ReplyChannelRange_set_first_blocknum(long this_ptr, int val);
9511 // uint32_t ReplyChannelRange_get_number_of_blocks(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
9512 public static native int ReplyChannelRange_get_number_of_blocks(long this_ptr);
9513 // void ReplyChannelRange_set_number_of_blocks(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
9514 public static native void ReplyChannelRange_set_number_of_blocks(long this_ptr, int val);
9515 // bool ReplyChannelRange_get_sync_complete(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
9516 public static native boolean ReplyChannelRange_get_sync_complete(long this_ptr);
9517 // void ReplyChannelRange_set_sync_complete(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, bool val);
9518 public static native void ReplyChannelRange_set_sync_complete(long this_ptr, boolean val);
9519 // struct LDKCVec_u64Z ReplyChannelRange_get_short_channel_ids(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
9520 public static native long[] ReplyChannelRange_get_short_channel_ids(long this_ptr);
9521 // void ReplyChannelRange_set_short_channel_ids(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
9522 public static native void ReplyChannelRange_set_short_channel_ids(long this_ptr, long[] val);
9523 // 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);
9524 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);
9525 // uint64_t ReplyChannelRange_clone_ptr(LDKReplyChannelRange *NONNULL_PTR arg);
9526 public static native long ReplyChannelRange_clone_ptr(long arg);
9527 // struct LDKReplyChannelRange ReplyChannelRange_clone(const struct LDKReplyChannelRange *NONNULL_PTR orig);
9528 public static native long ReplyChannelRange_clone(long orig);
9529 // uint64_t ReplyChannelRange_hash(const struct LDKReplyChannelRange *NONNULL_PTR o);
9530 public static native long ReplyChannelRange_hash(long o);
9531 // bool ReplyChannelRange_eq(const struct LDKReplyChannelRange *NONNULL_PTR a, const struct LDKReplyChannelRange *NONNULL_PTR b);
9532 public static native boolean ReplyChannelRange_eq(long a, long b);
9533 // void QueryShortChannelIds_free(struct LDKQueryShortChannelIds this_obj);
9534 public static native void QueryShortChannelIds_free(long this_obj);
9535 // const uint8_t (*QueryShortChannelIds_get_chain_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr))[32];
9536 public static native byte[] QueryShortChannelIds_get_chain_hash(long this_ptr);
9537 // void QueryShortChannelIds_set_chain_hash(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9538 public static native void QueryShortChannelIds_set_chain_hash(long this_ptr, byte[] val);
9539 // struct LDKCVec_u64Z QueryShortChannelIds_get_short_channel_ids(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr);
9540 public static native long[] QueryShortChannelIds_get_short_channel_ids(long this_ptr);
9541 // void QueryShortChannelIds_set_short_channel_ids(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
9542 public static native void QueryShortChannelIds_set_short_channel_ids(long this_ptr, long[] val);
9543 // MUST_USE_RES struct LDKQueryShortChannelIds QueryShortChannelIds_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKCVec_u64Z short_channel_ids_arg);
9544 public static native long QueryShortChannelIds_new(byte[] chain_hash_arg, long[] short_channel_ids_arg);
9545 // uint64_t QueryShortChannelIds_clone_ptr(LDKQueryShortChannelIds *NONNULL_PTR arg);
9546 public static native long QueryShortChannelIds_clone_ptr(long arg);
9547 // struct LDKQueryShortChannelIds QueryShortChannelIds_clone(const struct LDKQueryShortChannelIds *NONNULL_PTR orig);
9548 public static native long QueryShortChannelIds_clone(long orig);
9549 // uint64_t QueryShortChannelIds_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR o);
9550 public static native long QueryShortChannelIds_hash(long o);
9551 // bool QueryShortChannelIds_eq(const struct LDKQueryShortChannelIds *NONNULL_PTR a, const struct LDKQueryShortChannelIds *NONNULL_PTR b);
9552 public static native boolean QueryShortChannelIds_eq(long a, long b);
9553 // void ReplyShortChannelIdsEnd_free(struct LDKReplyShortChannelIdsEnd this_obj);
9554 public static native void ReplyShortChannelIdsEnd_free(long this_obj);
9555 // const uint8_t (*ReplyShortChannelIdsEnd_get_chain_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr))[32];
9556 public static native byte[] ReplyShortChannelIdsEnd_get_chain_hash(long this_ptr);
9557 // void ReplyShortChannelIdsEnd_set_chain_hash(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9558 public static native void ReplyShortChannelIdsEnd_set_chain_hash(long this_ptr, byte[] val);
9559 // bool ReplyShortChannelIdsEnd_get_full_information(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr);
9560 public static native boolean ReplyShortChannelIdsEnd_get_full_information(long this_ptr);
9561 // void ReplyShortChannelIdsEnd_set_full_information(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, bool val);
9562 public static native void ReplyShortChannelIdsEnd_set_full_information(long this_ptr, boolean val);
9563 // MUST_USE_RES struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_new(struct LDKThirtyTwoBytes chain_hash_arg, bool full_information_arg);
9564 public static native long ReplyShortChannelIdsEnd_new(byte[] chain_hash_arg, boolean full_information_arg);
9565 // uint64_t ReplyShortChannelIdsEnd_clone_ptr(LDKReplyShortChannelIdsEnd *NONNULL_PTR arg);
9566 public static native long ReplyShortChannelIdsEnd_clone_ptr(long arg);
9567 // struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_clone(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR orig);
9568 public static native long ReplyShortChannelIdsEnd_clone(long orig);
9569 // uint64_t ReplyShortChannelIdsEnd_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR o);
9570 public static native long ReplyShortChannelIdsEnd_hash(long o);
9571 // bool ReplyShortChannelIdsEnd_eq(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR a, const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR b);
9572 public static native boolean ReplyShortChannelIdsEnd_eq(long a, long b);
9573 // void GossipTimestampFilter_free(struct LDKGossipTimestampFilter this_obj);
9574 public static native void GossipTimestampFilter_free(long this_obj);
9575 // const uint8_t (*GossipTimestampFilter_get_chain_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr))[32];
9576 public static native byte[] GossipTimestampFilter_get_chain_hash(long this_ptr);
9577 // void GossipTimestampFilter_set_chain_hash(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9578 public static native void GossipTimestampFilter_set_chain_hash(long this_ptr, byte[] val);
9579 // uint32_t GossipTimestampFilter_get_first_timestamp(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
9580 public static native int GossipTimestampFilter_get_first_timestamp(long this_ptr);
9581 // void GossipTimestampFilter_set_first_timestamp(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
9582 public static native void GossipTimestampFilter_set_first_timestamp(long this_ptr, int val);
9583 // uint32_t GossipTimestampFilter_get_timestamp_range(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
9584 public static native int GossipTimestampFilter_get_timestamp_range(long this_ptr);
9585 // void GossipTimestampFilter_set_timestamp_range(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
9586 public static native void GossipTimestampFilter_set_timestamp_range(long this_ptr, int val);
9587 // MUST_USE_RES struct LDKGossipTimestampFilter GossipTimestampFilter_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_timestamp_arg, uint32_t timestamp_range_arg);
9588 public static native long GossipTimestampFilter_new(byte[] chain_hash_arg, int first_timestamp_arg, int timestamp_range_arg);
9589 // uint64_t GossipTimestampFilter_clone_ptr(LDKGossipTimestampFilter *NONNULL_PTR arg);
9590 public static native long GossipTimestampFilter_clone_ptr(long arg);
9591 // struct LDKGossipTimestampFilter GossipTimestampFilter_clone(const struct LDKGossipTimestampFilter *NONNULL_PTR orig);
9592 public static native long GossipTimestampFilter_clone(long orig);
9593 // uint64_t GossipTimestampFilter_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR o);
9594 public static native long GossipTimestampFilter_hash(long o);
9595 // bool GossipTimestampFilter_eq(const struct LDKGossipTimestampFilter *NONNULL_PTR a, const struct LDKGossipTimestampFilter *NONNULL_PTR b);
9596 public static native boolean GossipTimestampFilter_eq(long a, long b);
9597 // void ErrorAction_free(struct LDKErrorAction this_ptr);
9598 public static native void ErrorAction_free(long this_ptr);
9599 // uint64_t ErrorAction_clone_ptr(LDKErrorAction *NONNULL_PTR arg);
9600 public static native long ErrorAction_clone_ptr(long arg);
9601 // struct LDKErrorAction ErrorAction_clone(const struct LDKErrorAction *NONNULL_PTR orig);
9602 public static native long ErrorAction_clone(long orig);
9603 // struct LDKErrorAction ErrorAction_disconnect_peer(struct LDKErrorMessage msg);
9604 public static native long ErrorAction_disconnect_peer(long msg);
9605 // struct LDKErrorAction ErrorAction_disconnect_peer_with_warning(struct LDKWarningMessage msg);
9606 public static native long ErrorAction_disconnect_peer_with_warning(long msg);
9607 // struct LDKErrorAction ErrorAction_ignore_error(void);
9608 public static native long ErrorAction_ignore_error();
9609 // struct LDKErrorAction ErrorAction_ignore_and_log(enum LDKLevel a);
9610 public static native long ErrorAction_ignore_and_log(Level a);
9611 // struct LDKErrorAction ErrorAction_ignore_duplicate_gossip(void);
9612 public static native long ErrorAction_ignore_duplicate_gossip();
9613 // struct LDKErrorAction ErrorAction_send_error_message(struct LDKErrorMessage msg);
9614 public static native long ErrorAction_send_error_message(long msg);
9615 // struct LDKErrorAction ErrorAction_send_warning_message(struct LDKWarningMessage msg, enum LDKLevel log_level);
9616 public static native long ErrorAction_send_warning_message(long msg, Level log_level);
9617 // uint64_t ErrorAction_hash(const struct LDKErrorAction *NONNULL_PTR o);
9618 public static native long ErrorAction_hash(long o);
9619 // void LightningError_free(struct LDKLightningError this_obj);
9620 public static native void LightningError_free(long this_obj);
9621 // struct LDKStr LightningError_get_err(const struct LDKLightningError *NONNULL_PTR this_ptr);
9622 public static native String LightningError_get_err(long this_ptr);
9623 // void LightningError_set_err(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKStr val);
9624 public static native void LightningError_set_err(long this_ptr, String val);
9625 // struct LDKErrorAction LightningError_get_action(const struct LDKLightningError *NONNULL_PTR this_ptr);
9626 public static native long LightningError_get_action(long this_ptr);
9627 // void LightningError_set_action(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKErrorAction val);
9628 public static native void LightningError_set_action(long this_ptr, long val);
9629 // MUST_USE_RES struct LDKLightningError LightningError_new(struct LDKStr err_arg, struct LDKErrorAction action_arg);
9630 public static native long LightningError_new(String err_arg, long action_arg);
9631 // uint64_t LightningError_clone_ptr(LDKLightningError *NONNULL_PTR arg);
9632 public static native long LightningError_clone_ptr(long arg);
9633 // struct LDKLightningError LightningError_clone(const struct LDKLightningError *NONNULL_PTR orig);
9634 public static native long LightningError_clone(long orig);
9635 // void CommitmentUpdate_free(struct LDKCommitmentUpdate this_obj);
9636 public static native void CommitmentUpdate_free(long this_obj);
9637 // struct LDKCVec_UpdateAddHTLCZ CommitmentUpdate_get_update_add_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
9638 public static native long[] CommitmentUpdate_get_update_add_htlcs(long this_ptr);
9639 // void CommitmentUpdate_set_update_add_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateAddHTLCZ val);
9640 public static native void CommitmentUpdate_set_update_add_htlcs(long this_ptr, long[] val);
9641 // struct LDKCVec_UpdateFulfillHTLCZ CommitmentUpdate_get_update_fulfill_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
9642 public static native long[] CommitmentUpdate_get_update_fulfill_htlcs(long this_ptr);
9643 // void CommitmentUpdate_set_update_fulfill_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFulfillHTLCZ val);
9644 public static native void CommitmentUpdate_set_update_fulfill_htlcs(long this_ptr, long[] val);
9645 // struct LDKCVec_UpdateFailHTLCZ CommitmentUpdate_get_update_fail_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
9646 public static native long[] CommitmentUpdate_get_update_fail_htlcs(long this_ptr);
9647 // void CommitmentUpdate_set_update_fail_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailHTLCZ val);
9648 public static native void CommitmentUpdate_set_update_fail_htlcs(long this_ptr, long[] val);
9649 // struct LDKCVec_UpdateFailMalformedHTLCZ CommitmentUpdate_get_update_fail_malformed_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
9650 public static native long[] CommitmentUpdate_get_update_fail_malformed_htlcs(long this_ptr);
9651 // void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val);
9652 public static native void CommitmentUpdate_set_update_fail_malformed_htlcs(long this_ptr, long[] val);
9653 // struct LDKUpdateFee CommitmentUpdate_get_update_fee(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
9654 public static native long CommitmentUpdate_get_update_fee(long this_ptr);
9655 // void CommitmentUpdate_set_update_fee(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKUpdateFee val);
9656 public static native void CommitmentUpdate_set_update_fee(long this_ptr, long val);
9657 // struct LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
9658 public static native long CommitmentUpdate_get_commitment_signed(long this_ptr);
9659 // void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCommitmentSigned val);
9660 public static native void CommitmentUpdate_set_commitment_signed(long this_ptr, long val);
9661 // 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);
9662 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);
9663 // uint64_t CommitmentUpdate_clone_ptr(LDKCommitmentUpdate *NONNULL_PTR arg);
9664 public static native long CommitmentUpdate_clone_ptr(long arg);
9665 // struct LDKCommitmentUpdate CommitmentUpdate_clone(const struct LDKCommitmentUpdate *NONNULL_PTR orig);
9666 public static native long CommitmentUpdate_clone(long orig);
9667 // uint64_t CommitmentUpdate_hash(const struct LDKCommitmentUpdate *NONNULL_PTR o);
9668 public static native long CommitmentUpdate_hash(long o);
9669 // bool CommitmentUpdate_eq(const struct LDKCommitmentUpdate *NONNULL_PTR a, const struct LDKCommitmentUpdate *NONNULL_PTR b);
9670 public static native boolean CommitmentUpdate_eq(long a, long b);
9671 // void ChannelMessageHandler_free(struct LDKChannelMessageHandler this_ptr);
9672 public static native void ChannelMessageHandler_free(long this_ptr);
9673 // void RoutingMessageHandler_free(struct LDKRoutingMessageHandler this_ptr);
9674 public static native void RoutingMessageHandler_free(long this_ptr);
9675 // void OnionMessageHandler_free(struct LDKOnionMessageHandler this_ptr);
9676 public static native void OnionMessageHandler_free(long this_ptr);
9677 // void FinalOnionHopData_free(struct LDKFinalOnionHopData this_obj);
9678 public static native void FinalOnionHopData_free(long this_obj);
9679 // const uint8_t (*FinalOnionHopData_get_payment_secret(const struct LDKFinalOnionHopData *NONNULL_PTR this_ptr))[32];
9680 public static native byte[] FinalOnionHopData_get_payment_secret(long this_ptr);
9681 // void FinalOnionHopData_set_payment_secret(struct LDKFinalOnionHopData *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9682 public static native void FinalOnionHopData_set_payment_secret(long this_ptr, byte[] val);
9683 // uint64_t FinalOnionHopData_get_total_msat(const struct LDKFinalOnionHopData *NONNULL_PTR this_ptr);
9684 public static native long FinalOnionHopData_get_total_msat(long this_ptr);
9685 // void FinalOnionHopData_set_total_msat(struct LDKFinalOnionHopData *NONNULL_PTR this_ptr, uint64_t val);
9686 public static native void FinalOnionHopData_set_total_msat(long this_ptr, long val);
9687 // MUST_USE_RES struct LDKFinalOnionHopData FinalOnionHopData_new(struct LDKThirtyTwoBytes payment_secret_arg, uint64_t total_msat_arg);
9688 public static native long FinalOnionHopData_new(byte[] payment_secret_arg, long total_msat_arg);
9689 // uint64_t FinalOnionHopData_clone_ptr(LDKFinalOnionHopData *NONNULL_PTR arg);
9690 public static native long FinalOnionHopData_clone_ptr(long arg);
9691 // struct LDKFinalOnionHopData FinalOnionHopData_clone(const struct LDKFinalOnionHopData *NONNULL_PTR orig);
9692 public static native long FinalOnionHopData_clone(long orig);
9693 // void OnionPacket_free(struct LDKOnionPacket this_obj);
9694 public static native void OnionPacket_free(long this_obj);
9695 // uint8_t OnionPacket_get_version(const struct LDKOnionPacket *NONNULL_PTR this_ptr);
9696 public static native byte OnionPacket_get_version(long this_ptr);
9697 // void OnionPacket_set_version(struct LDKOnionPacket *NONNULL_PTR this_ptr, uint8_t val);
9698 public static native void OnionPacket_set_version(long this_ptr, byte val);
9699 // struct LDKCResult_PublicKeySecp256k1ErrorZ OnionPacket_get_public_key(const struct LDKOnionPacket *NONNULL_PTR this_ptr);
9700 public static native long OnionPacket_get_public_key(long this_ptr);
9701 // void OnionPacket_set_public_key(struct LDKOnionPacket *NONNULL_PTR this_ptr, struct LDKCResult_PublicKeySecp256k1ErrorZ val);
9702 public static native void OnionPacket_set_public_key(long this_ptr, long val);
9703 // const uint8_t (*OnionPacket_get_hmac(const struct LDKOnionPacket *NONNULL_PTR this_ptr))[32];
9704 public static native byte[] OnionPacket_get_hmac(long this_ptr);
9705 // void OnionPacket_set_hmac(struct LDKOnionPacket *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
9706 public static native void OnionPacket_set_hmac(long this_ptr, byte[] val);
9707 // uint64_t OnionPacket_clone_ptr(LDKOnionPacket *NONNULL_PTR arg);
9708 public static native long OnionPacket_clone_ptr(long arg);
9709 // struct LDKOnionPacket OnionPacket_clone(const struct LDKOnionPacket *NONNULL_PTR orig);
9710 public static native long OnionPacket_clone(long orig);
9711 // uint64_t OnionPacket_hash(const struct LDKOnionPacket *NONNULL_PTR o);
9712 public static native long OnionPacket_hash(long o);
9713 // bool OnionPacket_eq(const struct LDKOnionPacket *NONNULL_PTR a, const struct LDKOnionPacket *NONNULL_PTR b);
9714 public static native boolean OnionPacket_eq(long a, long b);
9715 // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj);
9716 public static native byte[] AcceptChannel_write(long obj);
9717 // struct LDKCResult_AcceptChannelDecodeErrorZ AcceptChannel_read(struct LDKu8slice ser);
9718 public static native long AcceptChannel_read(byte[] ser);
9719 // struct LDKCVec_u8Z AcceptChannelV2_write(const struct LDKAcceptChannelV2 *NONNULL_PTR obj);
9720 public static native byte[] AcceptChannelV2_write(long obj);
9721 // struct LDKCResult_AcceptChannelV2DecodeErrorZ AcceptChannelV2_read(struct LDKu8slice ser);
9722 public static native long AcceptChannelV2_read(byte[] ser);
9723 // struct LDKCVec_u8Z Stfu_write(const struct LDKStfu *NONNULL_PTR obj);
9724 public static native byte[] Stfu_write(long obj);
9725 // struct LDKCResult_StfuDecodeErrorZ Stfu_read(struct LDKu8slice ser);
9726 public static native long Stfu_read(byte[] ser);
9727 // struct LDKCVec_u8Z Splice_write(const struct LDKSplice *NONNULL_PTR obj);
9728 public static native byte[] Splice_write(long obj);
9729 // struct LDKCResult_SpliceDecodeErrorZ Splice_read(struct LDKu8slice ser);
9730 public static native long Splice_read(byte[] ser);
9731 // struct LDKCVec_u8Z SpliceAck_write(const struct LDKSpliceAck *NONNULL_PTR obj);
9732 public static native byte[] SpliceAck_write(long obj);
9733 // struct LDKCResult_SpliceAckDecodeErrorZ SpliceAck_read(struct LDKu8slice ser);
9734 public static native long SpliceAck_read(byte[] ser);
9735 // struct LDKCVec_u8Z SpliceLocked_write(const struct LDKSpliceLocked *NONNULL_PTR obj);
9736 public static native byte[] SpliceLocked_write(long obj);
9737 // struct LDKCResult_SpliceLockedDecodeErrorZ SpliceLocked_read(struct LDKu8slice ser);
9738 public static native long SpliceLocked_read(byte[] ser);
9739 // struct LDKCVec_u8Z TxAddInput_write(const struct LDKTxAddInput *NONNULL_PTR obj);
9740 public static native byte[] TxAddInput_write(long obj);
9741 // struct LDKCResult_TxAddInputDecodeErrorZ TxAddInput_read(struct LDKu8slice ser);
9742 public static native long TxAddInput_read(byte[] ser);
9743 // struct LDKCVec_u8Z TxAddOutput_write(const struct LDKTxAddOutput *NONNULL_PTR obj);
9744 public static native byte[] TxAddOutput_write(long obj);
9745 // struct LDKCResult_TxAddOutputDecodeErrorZ TxAddOutput_read(struct LDKu8slice ser);
9746 public static native long TxAddOutput_read(byte[] ser);
9747 // struct LDKCVec_u8Z TxRemoveInput_write(const struct LDKTxRemoveInput *NONNULL_PTR obj);
9748 public static native byte[] TxRemoveInput_write(long obj);
9749 // struct LDKCResult_TxRemoveInputDecodeErrorZ TxRemoveInput_read(struct LDKu8slice ser);
9750 public static native long TxRemoveInput_read(byte[] ser);
9751 // struct LDKCVec_u8Z TxRemoveOutput_write(const struct LDKTxRemoveOutput *NONNULL_PTR obj);
9752 public static native byte[] TxRemoveOutput_write(long obj);
9753 // struct LDKCResult_TxRemoveOutputDecodeErrorZ TxRemoveOutput_read(struct LDKu8slice ser);
9754 public static native long TxRemoveOutput_read(byte[] ser);
9755 // struct LDKCVec_u8Z TxComplete_write(const struct LDKTxComplete *NONNULL_PTR obj);
9756 public static native byte[] TxComplete_write(long obj);
9757 // struct LDKCResult_TxCompleteDecodeErrorZ TxComplete_read(struct LDKu8slice ser);
9758 public static native long TxComplete_read(byte[] ser);
9759 // struct LDKCVec_u8Z TxSignatures_write(const struct LDKTxSignatures *NONNULL_PTR obj);
9760 public static native byte[] TxSignatures_write(long obj);
9761 // struct LDKCResult_TxSignaturesDecodeErrorZ TxSignatures_read(struct LDKu8slice ser);
9762 public static native long TxSignatures_read(byte[] ser);
9763 // struct LDKCVec_u8Z TxInitRbf_write(const struct LDKTxInitRbf *NONNULL_PTR obj);
9764 public static native byte[] TxInitRbf_write(long obj);
9765 // struct LDKCResult_TxInitRbfDecodeErrorZ TxInitRbf_read(struct LDKu8slice ser);
9766 public static native long TxInitRbf_read(byte[] ser);
9767 // struct LDKCVec_u8Z TxAckRbf_write(const struct LDKTxAckRbf *NONNULL_PTR obj);
9768 public static native byte[] TxAckRbf_write(long obj);
9769 // struct LDKCResult_TxAckRbfDecodeErrorZ TxAckRbf_read(struct LDKu8slice ser);
9770 public static native long TxAckRbf_read(byte[] ser);
9771 // struct LDKCVec_u8Z TxAbort_write(const struct LDKTxAbort *NONNULL_PTR obj);
9772 public static native byte[] TxAbort_write(long obj);
9773 // struct LDKCResult_TxAbortDecodeErrorZ TxAbort_read(struct LDKu8slice ser);
9774 public static native long TxAbort_read(byte[] ser);
9775 // struct LDKCVec_u8Z AnnouncementSignatures_write(const struct LDKAnnouncementSignatures *NONNULL_PTR obj);
9776 public static native byte[] AnnouncementSignatures_write(long obj);
9777 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ AnnouncementSignatures_read(struct LDKu8slice ser);
9778 public static native long AnnouncementSignatures_read(byte[] ser);
9779 // struct LDKCVec_u8Z ChannelReestablish_write(const struct LDKChannelReestablish *NONNULL_PTR obj);
9780 public static native byte[] ChannelReestablish_write(long obj);
9781 // struct LDKCResult_ChannelReestablishDecodeErrorZ ChannelReestablish_read(struct LDKu8slice ser);
9782 public static native long ChannelReestablish_read(byte[] ser);
9783 // struct LDKCVec_u8Z ClosingSigned_write(const struct LDKClosingSigned *NONNULL_PTR obj);
9784 public static native byte[] ClosingSigned_write(long obj);
9785 // struct LDKCResult_ClosingSignedDecodeErrorZ ClosingSigned_read(struct LDKu8slice ser);
9786 public static native long ClosingSigned_read(byte[] ser);
9787 // struct LDKCVec_u8Z ClosingSignedFeeRange_write(const struct LDKClosingSignedFeeRange *NONNULL_PTR obj);
9788 public static native byte[] ClosingSignedFeeRange_write(long obj);
9789 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ ClosingSignedFeeRange_read(struct LDKu8slice ser);
9790 public static native long ClosingSignedFeeRange_read(byte[] ser);
9791 // struct LDKCVec_u8Z CommitmentSigned_write(const struct LDKCommitmentSigned *NONNULL_PTR obj);
9792 public static native byte[] CommitmentSigned_write(long obj);
9793 // struct LDKCResult_CommitmentSignedDecodeErrorZ CommitmentSigned_read(struct LDKu8slice ser);
9794 public static native long CommitmentSigned_read(byte[] ser);
9795 // struct LDKCVec_u8Z FundingCreated_write(const struct LDKFundingCreated *NONNULL_PTR obj);
9796 public static native byte[] FundingCreated_write(long obj);
9797 // struct LDKCResult_FundingCreatedDecodeErrorZ FundingCreated_read(struct LDKu8slice ser);
9798 public static native long FundingCreated_read(byte[] ser);
9799 // struct LDKCVec_u8Z FundingSigned_write(const struct LDKFundingSigned *NONNULL_PTR obj);
9800 public static native byte[] FundingSigned_write(long obj);
9801 // struct LDKCResult_FundingSignedDecodeErrorZ FundingSigned_read(struct LDKu8slice ser);
9802 public static native long FundingSigned_read(byte[] ser);
9803 // struct LDKCVec_u8Z ChannelReady_write(const struct LDKChannelReady *NONNULL_PTR obj);
9804 public static native byte[] ChannelReady_write(long obj);
9805 // struct LDKCResult_ChannelReadyDecodeErrorZ ChannelReady_read(struct LDKu8slice ser);
9806 public static native long ChannelReady_read(byte[] ser);
9807 // struct LDKCVec_u8Z Init_write(const struct LDKInit *NONNULL_PTR obj);
9808 public static native byte[] Init_write(long obj);
9809 // struct LDKCResult_InitDecodeErrorZ Init_read(struct LDKu8slice ser);
9810 public static native long Init_read(byte[] ser);
9811 // struct LDKCVec_u8Z OpenChannel_write(const struct LDKOpenChannel *NONNULL_PTR obj);
9812 public static native byte[] OpenChannel_write(long obj);
9813 // struct LDKCResult_OpenChannelDecodeErrorZ OpenChannel_read(struct LDKu8slice ser);
9814 public static native long OpenChannel_read(byte[] ser);
9815 // struct LDKCVec_u8Z OpenChannelV2_write(const struct LDKOpenChannelV2 *NONNULL_PTR obj);
9816 public static native byte[] OpenChannelV2_write(long obj);
9817 // struct LDKCResult_OpenChannelV2DecodeErrorZ OpenChannelV2_read(struct LDKu8slice ser);
9818 public static native long OpenChannelV2_read(byte[] ser);
9819 // struct LDKCVec_u8Z RevokeAndACK_write(const struct LDKRevokeAndACK *NONNULL_PTR obj);
9820 public static native byte[] RevokeAndACK_write(long obj);
9821 // struct LDKCResult_RevokeAndACKDecodeErrorZ RevokeAndACK_read(struct LDKu8slice ser);
9822 public static native long RevokeAndACK_read(byte[] ser);
9823 // struct LDKCVec_u8Z Shutdown_write(const struct LDKShutdown *NONNULL_PTR obj);
9824 public static native byte[] Shutdown_write(long obj);
9825 // struct LDKCResult_ShutdownDecodeErrorZ Shutdown_read(struct LDKu8slice ser);
9826 public static native long Shutdown_read(byte[] ser);
9827 // struct LDKCVec_u8Z UpdateFailHTLC_write(const struct LDKUpdateFailHTLC *NONNULL_PTR obj);
9828 public static native byte[] UpdateFailHTLC_write(long obj);
9829 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ UpdateFailHTLC_read(struct LDKu8slice ser);
9830 public static native long UpdateFailHTLC_read(byte[] ser);
9831 // struct LDKCVec_u8Z UpdateFailMalformedHTLC_write(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR obj);
9832 public static native byte[] UpdateFailMalformedHTLC_write(long obj);
9833 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ UpdateFailMalformedHTLC_read(struct LDKu8slice ser);
9834 public static native long UpdateFailMalformedHTLC_read(byte[] ser);
9835 // struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee *NONNULL_PTR obj);
9836 public static native byte[] UpdateFee_write(long obj);
9837 // struct LDKCResult_UpdateFeeDecodeErrorZ UpdateFee_read(struct LDKu8slice ser);
9838 public static native long UpdateFee_read(byte[] ser);
9839 // struct LDKCVec_u8Z UpdateFulfillHTLC_write(const struct LDKUpdateFulfillHTLC *NONNULL_PTR obj);
9840 public static native byte[] UpdateFulfillHTLC_write(long obj);
9841 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ UpdateFulfillHTLC_read(struct LDKu8slice ser);
9842 public static native long UpdateFulfillHTLC_read(byte[] ser);
9843 // struct LDKCVec_u8Z OnionPacket_write(const struct LDKOnionPacket *NONNULL_PTR obj);
9844 public static native byte[] OnionPacket_write(long obj);
9845 // struct LDKCResult_OnionPacketDecodeErrorZ OnionPacket_read(struct LDKu8slice ser);
9846 public static native long OnionPacket_read(byte[] ser);
9847 // struct LDKCVec_u8Z UpdateAddHTLC_write(const struct LDKUpdateAddHTLC *NONNULL_PTR obj);
9848 public static native byte[] UpdateAddHTLC_write(long obj);
9849 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ UpdateAddHTLC_read(struct LDKu8slice ser);
9850 public static native long UpdateAddHTLC_read(byte[] ser);
9851 // struct LDKCResult_OnionMessageDecodeErrorZ OnionMessage_read(struct LDKu8slice ser);
9852 public static native long OnionMessage_read(byte[] ser);
9853 // struct LDKCVec_u8Z OnionMessage_write(const struct LDKOnionMessage *NONNULL_PTR obj);
9854 public static native byte[] OnionMessage_write(long obj);
9855 // struct LDKCVec_u8Z FinalOnionHopData_write(const struct LDKFinalOnionHopData *NONNULL_PTR obj);
9856 public static native byte[] FinalOnionHopData_write(long obj);
9857 // struct LDKCResult_FinalOnionHopDataDecodeErrorZ FinalOnionHopData_read(struct LDKu8slice ser);
9858 public static native long FinalOnionHopData_read(byte[] ser);
9859 // struct LDKCVec_u8Z Ping_write(const struct LDKPing *NONNULL_PTR obj);
9860 public static native byte[] Ping_write(long obj);
9861 // struct LDKCResult_PingDecodeErrorZ Ping_read(struct LDKu8slice ser);
9862 public static native long Ping_read(byte[] ser);
9863 // struct LDKCVec_u8Z Pong_write(const struct LDKPong *NONNULL_PTR obj);
9864 public static native byte[] Pong_write(long obj);
9865 // struct LDKCResult_PongDecodeErrorZ Pong_read(struct LDKu8slice ser);
9866 public static native long Pong_read(byte[] ser);
9867 // struct LDKCVec_u8Z UnsignedChannelAnnouncement_write(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR obj);
9868 public static native byte[] UnsignedChannelAnnouncement_write(long obj);
9869 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ UnsignedChannelAnnouncement_read(struct LDKu8slice ser);
9870 public static native long UnsignedChannelAnnouncement_read(byte[] ser);
9871 // struct LDKCVec_u8Z ChannelAnnouncement_write(const struct LDKChannelAnnouncement *NONNULL_PTR obj);
9872 public static native byte[] ChannelAnnouncement_write(long obj);
9873 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ ChannelAnnouncement_read(struct LDKu8slice ser);
9874 public static native long ChannelAnnouncement_read(byte[] ser);
9875 // struct LDKCVec_u8Z UnsignedChannelUpdate_write(const struct LDKUnsignedChannelUpdate *NONNULL_PTR obj);
9876 public static native byte[] UnsignedChannelUpdate_write(long obj);
9877 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ UnsignedChannelUpdate_read(struct LDKu8slice ser);
9878 public static native long UnsignedChannelUpdate_read(byte[] ser);
9879 // struct LDKCVec_u8Z ChannelUpdate_write(const struct LDKChannelUpdate *NONNULL_PTR obj);
9880 public static native byte[] ChannelUpdate_write(long obj);
9881 // struct LDKCResult_ChannelUpdateDecodeErrorZ ChannelUpdate_read(struct LDKu8slice ser);
9882 public static native long ChannelUpdate_read(byte[] ser);
9883 // struct LDKCVec_u8Z ErrorMessage_write(const struct LDKErrorMessage *NONNULL_PTR obj);
9884 public static native byte[] ErrorMessage_write(long obj);
9885 // struct LDKCResult_ErrorMessageDecodeErrorZ ErrorMessage_read(struct LDKu8slice ser);
9886 public static native long ErrorMessage_read(byte[] ser);
9887 // struct LDKCVec_u8Z WarningMessage_write(const struct LDKWarningMessage *NONNULL_PTR obj);
9888 public static native byte[] WarningMessage_write(long obj);
9889 // struct LDKCResult_WarningMessageDecodeErrorZ WarningMessage_read(struct LDKu8slice ser);
9890 public static native long WarningMessage_read(byte[] ser);
9891 // struct LDKCVec_u8Z UnsignedNodeAnnouncement_write(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR obj);
9892 public static native byte[] UnsignedNodeAnnouncement_write(long obj);
9893 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ UnsignedNodeAnnouncement_read(struct LDKu8slice ser);
9894 public static native long UnsignedNodeAnnouncement_read(byte[] ser);
9895 // struct LDKCVec_u8Z NodeAnnouncement_write(const struct LDKNodeAnnouncement *NONNULL_PTR obj);
9896 public static native byte[] NodeAnnouncement_write(long obj);
9897 // struct LDKCResult_NodeAnnouncementDecodeErrorZ NodeAnnouncement_read(struct LDKu8slice ser);
9898 public static native long NodeAnnouncement_read(byte[] ser);
9899 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ QueryShortChannelIds_read(struct LDKu8slice ser);
9900 public static native long QueryShortChannelIds_read(byte[] ser);
9901 // struct LDKCVec_u8Z QueryShortChannelIds_write(const struct LDKQueryShortChannelIds *NONNULL_PTR obj);
9902 public static native byte[] QueryShortChannelIds_write(long obj);
9903 // struct LDKCVec_u8Z ReplyShortChannelIdsEnd_write(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR obj);
9904 public static native byte[] ReplyShortChannelIdsEnd_write(long obj);
9905 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ ReplyShortChannelIdsEnd_read(struct LDKu8slice ser);
9906 public static native long ReplyShortChannelIdsEnd_read(byte[] ser);
9907 // MUST_USE_RES uint32_t QueryChannelRange_end_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_arg);
9908 public static native int QueryChannelRange_end_blocknum(long this_arg);
9909 // struct LDKCVec_u8Z QueryChannelRange_write(const struct LDKQueryChannelRange *NONNULL_PTR obj);
9910 public static native byte[] QueryChannelRange_write(long obj);
9911 // struct LDKCResult_QueryChannelRangeDecodeErrorZ QueryChannelRange_read(struct LDKu8slice ser);
9912 public static native long QueryChannelRange_read(byte[] ser);
9913 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ ReplyChannelRange_read(struct LDKu8slice ser);
9914 public static native long ReplyChannelRange_read(byte[] ser);
9915 // struct LDKCVec_u8Z ReplyChannelRange_write(const struct LDKReplyChannelRange *NONNULL_PTR obj);
9916 public static native byte[] ReplyChannelRange_write(long obj);
9917 // struct LDKCVec_u8Z GossipTimestampFilter_write(const struct LDKGossipTimestampFilter *NONNULL_PTR obj);
9918 public static native byte[] GossipTimestampFilter_write(long obj);
9919 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ GossipTimestampFilter_read(struct LDKu8slice ser);
9920 public static native long GossipTimestampFilter_read(byte[] ser);
9921 // void CustomMessageHandler_free(struct LDKCustomMessageHandler this_ptr);
9922 public static native void CustomMessageHandler_free(long this_ptr);
9923 // void IgnoringMessageHandler_free(struct LDKIgnoringMessageHandler this_obj);
9924 public static native void IgnoringMessageHandler_free(long this_obj);
9925 // MUST_USE_RES struct LDKIgnoringMessageHandler IgnoringMessageHandler_new(void);
9926 public static native long IgnoringMessageHandler_new();
9927 // struct LDKEventsProvider IgnoringMessageHandler_as_EventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
9928 public static native long IgnoringMessageHandler_as_EventsProvider(long this_arg);
9929 // struct LDKMessageSendEventsProvider IgnoringMessageHandler_as_MessageSendEventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
9930 public static native long IgnoringMessageHandler_as_MessageSendEventsProvider(long this_arg);
9931 // struct LDKRoutingMessageHandler IgnoringMessageHandler_as_RoutingMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
9932 public static native long IgnoringMessageHandler_as_RoutingMessageHandler(long this_arg);
9933 // struct LDKOnionMessageHandler IgnoringMessageHandler_as_OnionMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
9934 public static native long IgnoringMessageHandler_as_OnionMessageHandler(long this_arg);
9935 // struct LDKOffersMessageHandler IgnoringMessageHandler_as_OffersMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
9936 public static native long IgnoringMessageHandler_as_OffersMessageHandler(long this_arg);
9937 // struct LDKCustomOnionMessageHandler IgnoringMessageHandler_as_CustomOnionMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
9938 public static native long IgnoringMessageHandler_as_CustomOnionMessageHandler(long this_arg);
9939 // struct LDKCustomMessageReader IgnoringMessageHandler_as_CustomMessageReader(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
9940 public static native long IgnoringMessageHandler_as_CustomMessageReader(long this_arg);
9941 // struct LDKCustomMessageHandler IgnoringMessageHandler_as_CustomMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
9942 public static native long IgnoringMessageHandler_as_CustomMessageHandler(long this_arg);
9943 // void ErroringMessageHandler_free(struct LDKErroringMessageHandler this_obj);
9944 public static native void ErroringMessageHandler_free(long this_obj);
9945 // MUST_USE_RES struct LDKErroringMessageHandler ErroringMessageHandler_new(void);
9946 public static native long ErroringMessageHandler_new();
9947 // struct LDKMessageSendEventsProvider ErroringMessageHandler_as_MessageSendEventsProvider(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
9948 public static native long ErroringMessageHandler_as_MessageSendEventsProvider(long this_arg);
9949 // struct LDKChannelMessageHandler ErroringMessageHandler_as_ChannelMessageHandler(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
9950 public static native long ErroringMessageHandler_as_ChannelMessageHandler(long this_arg);
9951 // void MessageHandler_free(struct LDKMessageHandler this_obj);
9952 public static native void MessageHandler_free(long this_obj);
9953 // const struct LDKChannelMessageHandler *MessageHandler_get_chan_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
9954 public static native long MessageHandler_get_chan_handler(long this_ptr);
9955 // void MessageHandler_set_chan_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKChannelMessageHandler val);
9956 public static native void MessageHandler_set_chan_handler(long this_ptr, long val);
9957 // const struct LDKRoutingMessageHandler *MessageHandler_get_route_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
9958 public static native long MessageHandler_get_route_handler(long this_ptr);
9959 // void MessageHandler_set_route_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKRoutingMessageHandler val);
9960 public static native void MessageHandler_set_route_handler(long this_ptr, long val);
9961 // const struct LDKOnionMessageHandler *MessageHandler_get_onion_message_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
9962 public static native long MessageHandler_get_onion_message_handler(long this_ptr);
9963 // void MessageHandler_set_onion_message_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKOnionMessageHandler val);
9964 public static native void MessageHandler_set_onion_message_handler(long this_ptr, long val);
9965 // const struct LDKCustomMessageHandler *MessageHandler_get_custom_message_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
9966 public static native long MessageHandler_get_custom_message_handler(long this_ptr);
9967 // void MessageHandler_set_custom_message_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKCustomMessageHandler val);
9968 public static native void MessageHandler_set_custom_message_handler(long this_ptr, long val);
9969 // 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);
9970 public static native long MessageHandler_new(long chan_handler_arg, long route_handler_arg, long onion_message_handler_arg, long custom_message_handler_arg);
9971 // uint64_t SocketDescriptor_clone_ptr(LDKSocketDescriptor *NONNULL_PTR arg);
9972 public static native long SocketDescriptor_clone_ptr(long arg);
9973 // struct LDKSocketDescriptor SocketDescriptor_clone(const struct LDKSocketDescriptor *NONNULL_PTR orig);
9974 public static native long SocketDescriptor_clone(long orig);
9975 // void SocketDescriptor_free(struct LDKSocketDescriptor this_ptr);
9976 public static native void SocketDescriptor_free(long this_ptr);
9977 // void PeerHandleError_free(struct LDKPeerHandleError this_obj);
9978 public static native void PeerHandleError_free(long this_obj);
9979 // MUST_USE_RES struct LDKPeerHandleError PeerHandleError_new(void);
9980 public static native long PeerHandleError_new();
9981 // uint64_t PeerHandleError_clone_ptr(LDKPeerHandleError *NONNULL_PTR arg);
9982 public static native long PeerHandleError_clone_ptr(long arg);
9983 // struct LDKPeerHandleError PeerHandleError_clone(const struct LDKPeerHandleError *NONNULL_PTR orig);
9984 public static native long PeerHandleError_clone(long orig);
9985 // void PeerManager_free(struct LDKPeerManager this_obj);
9986 public static native void PeerManager_free(long this_obj);
9987 // 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);
9988 public static native long PeerManager_new(long message_handler, int current_time, byte[] ephemeral_random_data, long logger, long node_signer);
9989 // MUST_USE_RES struct LDKCVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg);
9990 public static native long[] PeerManager_get_peer_node_ids(long this_arg);
9991 // 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);
9992 public static native long PeerManager_new_outbound_connection(long this_arg, byte[] their_node_id, long descriptor, long remote_network_address);
9993 // 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);
9994 public static native long PeerManager_new_inbound_connection(long this_arg, long descriptor, long remote_network_address);
9995 // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR descriptor);
9996 public static native long PeerManager_write_buffer_space_avail(long this_arg, long descriptor);
9997 // 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);
9998 public static native long PeerManager_read_event(long this_arg, long peer_descriptor, byte[] data);
9999 // void PeerManager_process_events(const struct LDKPeerManager *NONNULL_PTR this_arg);
10000 public static native void PeerManager_process_events(long this_arg);
10001 // void PeerManager_socket_disconnected(const struct LDKPeerManager *NONNULL_PTR this_arg, const struct LDKSocketDescriptor *NONNULL_PTR descriptor);
10002 public static native void PeerManager_socket_disconnected(long this_arg, long descriptor);
10003 // void PeerManager_disconnect_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id);
10004 public static native void PeerManager_disconnect_by_node_id(long this_arg, byte[] node_id);
10005 // void PeerManager_disconnect_all_peers(const struct LDKPeerManager *NONNULL_PTR this_arg);
10006 public static native void PeerManager_disconnect_all_peers(long this_arg);
10007 // void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR this_arg);
10008 public static native void PeerManager_timer_tick_occurred(long this_arg);
10009 // void PeerManager_broadcast_node_announcement(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_SocketAddressZ addresses);
10010 public static native void PeerManager_broadcast_node_announcement(long this_arg, byte[] rgb, byte[] alias, long[] addresses);
10011 // uint64_t htlc_success_tx_weight(const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features);
10012 public static native long htlc_success_tx_weight(long channel_type_features);
10013 // uint64_t htlc_timeout_tx_weight(const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features);
10014 public static native long htlc_timeout_tx_weight(long channel_type_features);
10015 // enum LDKHTLCClaim HTLCClaim_clone(const enum LDKHTLCClaim *NONNULL_PTR orig);
10016 public static native HTLCClaim HTLCClaim_clone(long orig);
10017 // enum LDKHTLCClaim HTLCClaim_offered_timeout(void);
10018 public static native HTLCClaim HTLCClaim_offered_timeout();
10019 // enum LDKHTLCClaim HTLCClaim_offered_preimage(void);
10020 public static native HTLCClaim HTLCClaim_offered_preimage();
10021 // enum LDKHTLCClaim HTLCClaim_accepted_timeout(void);
10022 public static native HTLCClaim HTLCClaim_accepted_timeout();
10023 // enum LDKHTLCClaim HTLCClaim_accepted_preimage(void);
10024 public static native HTLCClaim HTLCClaim_accepted_preimage();
10025 // enum LDKHTLCClaim HTLCClaim_revocation(void);
10026 public static native HTLCClaim HTLCClaim_revocation();
10027 // bool HTLCClaim_eq(const enum LDKHTLCClaim *NONNULL_PTR a, const enum LDKHTLCClaim *NONNULL_PTR b);
10028 public static native boolean HTLCClaim_eq(long a, long b);
10029 // MUST_USE_RES struct LDKCOption_HTLCClaimZ HTLCClaim_from_witness(struct LDKWitness witness);
10030 public static native long HTLCClaim_from_witness(byte[] witness);
10031 // struct LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx);
10032 public static native byte[] build_commitment_secret(byte[] commitment_seed, long idx);
10033 // 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);
10034 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);
10035 // void CounterpartyCommitmentSecrets_free(struct LDKCounterpartyCommitmentSecrets this_obj);
10036 public static native void CounterpartyCommitmentSecrets_free(long this_obj);
10037 // uint64_t CounterpartyCommitmentSecrets_clone_ptr(LDKCounterpartyCommitmentSecrets *NONNULL_PTR arg);
10038 public static native long CounterpartyCommitmentSecrets_clone_ptr(long arg);
10039 // struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_clone(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR orig);
10040 public static native long CounterpartyCommitmentSecrets_clone(long orig);
10041 // MUST_USE_RES struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_new(void);
10042 public static native long CounterpartyCommitmentSecrets_new();
10043 // MUST_USE_RES uint64_t CounterpartyCommitmentSecrets_get_min_seen_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg);
10044 public static native long CounterpartyCommitmentSecrets_get_min_seen_secret(long this_arg);
10045 // MUST_USE_RES struct LDKCResult_NoneNoneZ CounterpartyCommitmentSecrets_provide_secret(struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx, struct LDKThirtyTwoBytes secret);
10046 public static native long CounterpartyCommitmentSecrets_provide_secret(long this_arg, long idx, byte[] secret);
10047 // MUST_USE_RES struct LDKThirtyTwoBytes CounterpartyCommitmentSecrets_get_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx);
10048 public static native byte[] CounterpartyCommitmentSecrets_get_secret(long this_arg, long idx);
10049 // struct LDKCVec_u8Z CounterpartyCommitmentSecrets_write(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR obj);
10050 public static native byte[] CounterpartyCommitmentSecrets_write(long obj);
10051 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CounterpartyCommitmentSecrets_read(struct LDKu8slice ser);
10052 public static native long CounterpartyCommitmentSecrets_read(byte[] ser);
10053 // struct LDKSecretKey derive_private_key(struct LDKPublicKey per_commitment_point, const uint8_t (*base_secret)[32]);
10054 public static native byte[] derive_private_key(byte[] per_commitment_point, byte[] base_secret);
10055 // struct LDKSecretKey derive_private_revocation_key(const uint8_t (*per_commitment_secret)[32], const uint8_t (*countersignatory_revocation_base_secret)[32]);
10056 public static native byte[] derive_private_revocation_key(byte[] per_commitment_secret, byte[] countersignatory_revocation_base_secret);
10057 // void TxCreationKeys_free(struct LDKTxCreationKeys this_obj);
10058 public static native void TxCreationKeys_free(long this_obj);
10059 // struct LDKPublicKey TxCreationKeys_get_per_commitment_point(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
10060 public static native byte[] TxCreationKeys_get_per_commitment_point(long this_ptr);
10061 // void TxCreationKeys_set_per_commitment_point(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
10062 public static native void TxCreationKeys_set_per_commitment_point(long this_ptr, byte[] val);
10063 // struct LDKRevocationKey TxCreationKeys_get_revocation_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
10064 public static native long TxCreationKeys_get_revocation_key(long this_ptr);
10065 // void TxCreationKeys_set_revocation_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKRevocationKey val);
10066 public static native void TxCreationKeys_set_revocation_key(long this_ptr, long val);
10067 // struct LDKHtlcKey TxCreationKeys_get_broadcaster_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
10068 public static native long TxCreationKeys_get_broadcaster_htlc_key(long this_ptr);
10069 // void TxCreationKeys_set_broadcaster_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKHtlcKey val);
10070 public static native void TxCreationKeys_set_broadcaster_htlc_key(long this_ptr, long val);
10071 // struct LDKHtlcKey TxCreationKeys_get_countersignatory_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
10072 public static native long TxCreationKeys_get_countersignatory_htlc_key(long this_ptr);
10073 // void TxCreationKeys_set_countersignatory_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKHtlcKey val);
10074 public static native void TxCreationKeys_set_countersignatory_htlc_key(long this_ptr, long val);
10075 // struct LDKDelayedPaymentKey TxCreationKeys_get_broadcaster_delayed_payment_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
10076 public static native long TxCreationKeys_get_broadcaster_delayed_payment_key(long this_ptr);
10077 // void TxCreationKeys_set_broadcaster_delayed_payment_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKDelayedPaymentKey val);
10078 public static native void TxCreationKeys_set_broadcaster_delayed_payment_key(long this_ptr, long val);
10079 // 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);
10080 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);
10081 // bool TxCreationKeys_eq(const struct LDKTxCreationKeys *NONNULL_PTR a, const struct LDKTxCreationKeys *NONNULL_PTR b);
10082 public static native boolean TxCreationKeys_eq(long a, long b);
10083 // uint64_t TxCreationKeys_clone_ptr(LDKTxCreationKeys *NONNULL_PTR arg);
10084 public static native long TxCreationKeys_clone_ptr(long arg);
10085 // struct LDKTxCreationKeys TxCreationKeys_clone(const struct LDKTxCreationKeys *NONNULL_PTR orig);
10086 public static native long TxCreationKeys_clone(long orig);
10087 // struct LDKCVec_u8Z TxCreationKeys_write(const struct LDKTxCreationKeys *NONNULL_PTR obj);
10088 public static native byte[] TxCreationKeys_write(long obj);
10089 // struct LDKCResult_TxCreationKeysDecodeErrorZ TxCreationKeys_read(struct LDKu8slice ser);
10090 public static native long TxCreationKeys_read(byte[] ser);
10091 // void ChannelPublicKeys_free(struct LDKChannelPublicKeys this_obj);
10092 public static native void ChannelPublicKeys_free(long this_obj);
10093 // struct LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
10094 public static native byte[] ChannelPublicKeys_get_funding_pubkey(long this_ptr);
10095 // void ChannelPublicKeys_set_funding_pubkey(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
10096 public static native void ChannelPublicKeys_set_funding_pubkey(long this_ptr, byte[] val);
10097 // struct LDKRevocationBasepoint ChannelPublicKeys_get_revocation_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
10098 public static native long ChannelPublicKeys_get_revocation_basepoint(long this_ptr);
10099 // void ChannelPublicKeys_set_revocation_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKRevocationBasepoint val);
10100 public static native void ChannelPublicKeys_set_revocation_basepoint(long this_ptr, long val);
10101 // struct LDKPublicKey ChannelPublicKeys_get_payment_point(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
10102 public static native byte[] ChannelPublicKeys_get_payment_point(long this_ptr);
10103 // void ChannelPublicKeys_set_payment_point(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
10104 public static native void ChannelPublicKeys_set_payment_point(long this_ptr, byte[] val);
10105 // struct LDKDelayedPaymentBasepoint ChannelPublicKeys_get_delayed_payment_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
10106 public static native long ChannelPublicKeys_get_delayed_payment_basepoint(long this_ptr);
10107 // void ChannelPublicKeys_set_delayed_payment_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKDelayedPaymentBasepoint val);
10108 public static native void ChannelPublicKeys_set_delayed_payment_basepoint(long this_ptr, long val);
10109 // struct LDKHtlcBasepoint ChannelPublicKeys_get_htlc_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
10110 public static native long ChannelPublicKeys_get_htlc_basepoint(long this_ptr);
10111 // void ChannelPublicKeys_set_htlc_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKHtlcBasepoint val);
10112 public static native void ChannelPublicKeys_set_htlc_basepoint(long this_ptr, long val);
10113 // 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);
10114 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);
10115 // uint64_t ChannelPublicKeys_clone_ptr(LDKChannelPublicKeys *NONNULL_PTR arg);
10116 public static native long ChannelPublicKeys_clone_ptr(long arg);
10117 // struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig);
10118 public static native long ChannelPublicKeys_clone(long orig);
10119 // uint64_t ChannelPublicKeys_hash(const struct LDKChannelPublicKeys *NONNULL_PTR o);
10120 public static native long ChannelPublicKeys_hash(long o);
10121 // bool ChannelPublicKeys_eq(const struct LDKChannelPublicKeys *NONNULL_PTR a, const struct LDKChannelPublicKeys *NONNULL_PTR b);
10122 public static native boolean ChannelPublicKeys_eq(long a, long b);
10123 // struct LDKCVec_u8Z ChannelPublicKeys_write(const struct LDKChannelPublicKeys *NONNULL_PTR obj);
10124 public static native byte[] ChannelPublicKeys_write(long obj);
10125 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ ChannelPublicKeys_read(struct LDKu8slice ser);
10126 public static native long ChannelPublicKeys_read(byte[] ser);
10127 // 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);
10128 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);
10129 // 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);
10130 public static native long TxCreationKeys_from_channel_static_keys(byte[] per_commitment_point, long broadcaster_keys, long countersignatory_keys);
10131 // 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);
10132 public static native byte[] get_revokeable_redeemscript(long revocation_key, short contest_delay, long broadcaster_delayed_payment_key);
10133 // struct LDKCVec_u8Z get_counterparty_payment_script(const struct LDKChannelTypeFeatures *NONNULL_PTR channel_type_features, struct LDKPublicKey payment_key);
10134 public static native byte[] get_counterparty_payment_script(long channel_type_features, byte[] payment_key);
10135 // void HTLCOutputInCommitment_free(struct LDKHTLCOutputInCommitment this_obj);
10136 public static native void HTLCOutputInCommitment_free(long this_obj);
10137 // bool HTLCOutputInCommitment_get_offered(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
10138 public static native boolean HTLCOutputInCommitment_get_offered(long this_ptr);
10139 // void HTLCOutputInCommitment_set_offered(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, bool val);
10140 public static native void HTLCOutputInCommitment_set_offered(long this_ptr, boolean val);
10141 // uint64_t HTLCOutputInCommitment_get_amount_msat(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
10142 public static native long HTLCOutputInCommitment_get_amount_msat(long this_ptr);
10143 // void HTLCOutputInCommitment_set_amount_msat(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint64_t val);
10144 public static native void HTLCOutputInCommitment_set_amount_msat(long this_ptr, long val);
10145 // uint32_t HTLCOutputInCommitment_get_cltv_expiry(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
10146 public static native int HTLCOutputInCommitment_get_cltv_expiry(long this_ptr);
10147 // void HTLCOutputInCommitment_set_cltv_expiry(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint32_t val);
10148 public static native void HTLCOutputInCommitment_set_cltv_expiry(long this_ptr, int val);
10149 // const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr))[32];
10150 public static native byte[] HTLCOutputInCommitment_get_payment_hash(long this_ptr);
10151 // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10152 public static native void HTLCOutputInCommitment_set_payment_hash(long this_ptr, byte[] val);
10153 // struct LDKCOption_u32Z HTLCOutputInCommitment_get_transaction_output_index(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
10154 public static native long HTLCOutputInCommitment_get_transaction_output_index(long this_ptr);
10155 // void HTLCOutputInCommitment_set_transaction_output_index(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
10156 public static native void HTLCOutputInCommitment_set_transaction_output_index(long this_ptr, long val);
10157 // 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);
10158 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);
10159 // uint64_t HTLCOutputInCommitment_clone_ptr(LDKHTLCOutputInCommitment *NONNULL_PTR arg);
10160 public static native long HTLCOutputInCommitment_clone_ptr(long arg);
10161 // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_clone(const struct LDKHTLCOutputInCommitment *NONNULL_PTR orig);
10162 public static native long HTLCOutputInCommitment_clone(long orig);
10163 // bool HTLCOutputInCommitment_eq(const struct LDKHTLCOutputInCommitment *NONNULL_PTR a, const struct LDKHTLCOutputInCommitment *NONNULL_PTR b);
10164 public static native boolean HTLCOutputInCommitment_eq(long a, long b);
10165 // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj);
10166 public static native byte[] HTLCOutputInCommitment_write(long obj);
10167 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ HTLCOutputInCommitment_read(struct LDKu8slice ser);
10168 public static native long HTLCOutputInCommitment_read(byte[] ser);
10169 // 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);
10170 public static native byte[] get_htlc_redeemscript(long htlc, long channel_type_features, long keys);
10171 // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory);
10172 public static native byte[] make_funding_redeemscript(byte[] broadcaster, byte[] countersignatory);
10173 // 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);
10174 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);
10175 // 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);
10176 public static native byte[] build_htlc_input_witness(byte[] local_sig, byte[] remote_sig, long preimage, byte[] redeem_script, long channel_type_features);
10177 // struct LDKCVec_u8Z get_to_countersignatory_with_anchors_redeemscript(struct LDKPublicKey payment_point);
10178 public static native byte[] get_to_countersignatory_with_anchors_redeemscript(byte[] payment_point);
10179 // struct LDKCVec_u8Z get_anchor_redeemscript(struct LDKPublicKey funding_pubkey);
10180 public static native byte[] get_anchor_redeemscript(byte[] funding_pubkey);
10181 // struct LDKWitness build_anchor_input_witness(struct LDKPublicKey funding_key, struct LDKECDSASignature funding_sig);
10182 public static native byte[] build_anchor_input_witness(byte[] funding_key, byte[] funding_sig);
10183 // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_obj);
10184 public static native void ChannelTransactionParameters_free(long this_obj);
10185 // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
10186 public static native long ChannelTransactionParameters_get_holder_pubkeys(long this_ptr);
10187 // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
10188 public static native void ChannelTransactionParameters_set_holder_pubkeys(long this_ptr, long val);
10189 // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
10190 public static native short ChannelTransactionParameters_get_holder_selected_contest_delay(long this_ptr);
10191 // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
10192 public static native void ChannelTransactionParameters_set_holder_selected_contest_delay(long this_ptr, short val);
10193 // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
10194 public static native boolean ChannelTransactionParameters_get_is_outbound_from_holder(long this_ptr);
10195 // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val);
10196 public static native void ChannelTransactionParameters_set_is_outbound_from_holder(long this_ptr, boolean val);
10197 // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
10198 public static native long ChannelTransactionParameters_get_counterparty_parameters(long this_ptr);
10199 // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val);
10200 public static native void ChannelTransactionParameters_set_counterparty_parameters(long this_ptr, long val);
10201 // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
10202 public static native long ChannelTransactionParameters_get_funding_outpoint(long this_ptr);
10203 // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val);
10204 public static native void ChannelTransactionParameters_set_funding_outpoint(long this_ptr, long val);
10205 // struct LDKChannelTypeFeatures ChannelTransactionParameters_get_channel_type_features(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
10206 public static native long ChannelTransactionParameters_get_channel_type_features(long this_ptr);
10207 // void ChannelTransactionParameters_set_channel_type_features(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
10208 public static native void ChannelTransactionParameters_set_channel_type_features(long this_ptr, long val);
10209 // 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);
10210 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);
10211 // uint64_t ChannelTransactionParameters_clone_ptr(LDKChannelTransactionParameters *NONNULL_PTR arg);
10212 public static native long ChannelTransactionParameters_clone_ptr(long arg);
10213 // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig);
10214 public static native long ChannelTransactionParameters_clone(long orig);
10215 // uint64_t ChannelTransactionParameters_hash(const struct LDKChannelTransactionParameters *NONNULL_PTR o);
10216 public static native long ChannelTransactionParameters_hash(long o);
10217 // bool ChannelTransactionParameters_eq(const struct LDKChannelTransactionParameters *NONNULL_PTR a, const struct LDKChannelTransactionParameters *NONNULL_PTR b);
10218 public static native boolean ChannelTransactionParameters_eq(long a, long b);
10219 // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_obj);
10220 public static native void CounterpartyChannelTransactionParameters_free(long this_obj);
10221 // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
10222 public static native long CounterpartyChannelTransactionParameters_get_pubkeys(long this_ptr);
10223 // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
10224 public static native void CounterpartyChannelTransactionParameters_set_pubkeys(long this_ptr, long val);
10225 // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
10226 public static native short CounterpartyChannelTransactionParameters_get_selected_contest_delay(long this_ptr);
10227 // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
10228 public static native void CounterpartyChannelTransactionParameters_set_selected_contest_delay(long this_ptr, short val);
10229 // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg);
10230 public static native long CounterpartyChannelTransactionParameters_new(long pubkeys_arg, short selected_contest_delay_arg);
10231 // uint64_t CounterpartyChannelTransactionParameters_clone_ptr(LDKCounterpartyChannelTransactionParameters *NONNULL_PTR arg);
10232 public static native long CounterpartyChannelTransactionParameters_clone_ptr(long arg);
10233 // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig);
10234 public static native long CounterpartyChannelTransactionParameters_clone(long orig);
10235 // uint64_t CounterpartyChannelTransactionParameters_hash(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR o);
10236 public static native long CounterpartyChannelTransactionParameters_hash(long o);
10237 // bool CounterpartyChannelTransactionParameters_eq(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR a, const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR b);
10238 public static native boolean CounterpartyChannelTransactionParameters_eq(long a, long b);
10239 // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
10240 public static native boolean ChannelTransactionParameters_is_populated(long this_arg);
10241 // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
10242 public static native long ChannelTransactionParameters_as_holder_broadcastable(long this_arg);
10243 // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
10244 public static native long ChannelTransactionParameters_as_counterparty_broadcastable(long this_arg);
10245 // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj);
10246 public static native byte[] CounterpartyChannelTransactionParameters_write(long obj);
10247 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser);
10248 public static native long CounterpartyChannelTransactionParameters_read(byte[] ser);
10249 // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj);
10250 public static native byte[] ChannelTransactionParameters_write(long obj);
10251 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ ChannelTransactionParameters_read(struct LDKu8slice ser);
10252 public static native long ChannelTransactionParameters_read(byte[] ser);
10253 // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_obj);
10254 public static native void DirectedChannelTransactionParameters_free(long this_obj);
10255 // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
10256 public static native long DirectedChannelTransactionParameters_broadcaster_pubkeys(long this_arg);
10257 // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
10258 public static native long DirectedChannelTransactionParameters_countersignatory_pubkeys(long this_arg);
10259 // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
10260 public static native short DirectedChannelTransactionParameters_contest_delay(long this_arg);
10261 // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
10262 public static native boolean DirectedChannelTransactionParameters_is_outbound(long this_arg);
10263 // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
10264 public static native long DirectedChannelTransactionParameters_funding_outpoint(long this_arg);
10265 // MUST_USE_RES struct LDKChannelTypeFeatures DirectedChannelTransactionParameters_channel_type_features(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
10266 public static native long DirectedChannelTransactionParameters_channel_type_features(long this_arg);
10267 // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_obj);
10268 public static native void HolderCommitmentTransaction_free(long this_obj);
10269 // struct LDKECDSASignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
10270 public static native byte[] HolderCommitmentTransaction_get_counterparty_sig(long this_ptr);
10271 // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
10272 public static native void HolderCommitmentTransaction_set_counterparty_sig(long this_ptr, byte[] val);
10273 // struct LDKCVec_ECDSASignatureZ HolderCommitmentTransaction_get_counterparty_htlc_sigs(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
10274 public static native byte[][] HolderCommitmentTransaction_get_counterparty_htlc_sigs(long this_ptr);
10275 // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_ECDSASignatureZ val);
10276 public static native void HolderCommitmentTransaction_set_counterparty_htlc_sigs(long this_ptr, byte[][] val);
10277 // uint64_t HolderCommitmentTransaction_clone_ptr(LDKHolderCommitmentTransaction *NONNULL_PTR arg);
10278 public static native long HolderCommitmentTransaction_clone_ptr(long arg);
10279 // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig);
10280 public static native long HolderCommitmentTransaction_clone(long orig);
10281 // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj);
10282 public static native byte[] HolderCommitmentTransaction_write(long obj);
10283 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransaction_read(struct LDKu8slice ser);
10284 public static native long HolderCommitmentTransaction_read(byte[] ser);
10285 // 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);
10286 public static native long HolderCommitmentTransaction_new(long commitment_tx, byte[] counterparty_sig, byte[][] counterparty_htlc_sigs, byte[] holder_funding_key, byte[] counterparty_funding_key);
10287 // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_obj);
10288 public static native void BuiltCommitmentTransaction_free(long this_obj);
10289 // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr);
10290 public static native byte[] BuiltCommitmentTransaction_get_transaction(long this_ptr);
10291 // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val);
10292 public static native void BuiltCommitmentTransaction_set_transaction(long this_ptr, byte[] val);
10293 // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32];
10294 public static native byte[] BuiltCommitmentTransaction_get_txid(long this_ptr);
10295 // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
10296 public static native void BuiltCommitmentTransaction_set_txid(long this_ptr, byte[] val);
10297 // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg);
10298 public static native long BuiltCommitmentTransaction_new(byte[] transaction_arg, byte[] txid_arg);
10299 // uint64_t BuiltCommitmentTransaction_clone_ptr(LDKBuiltCommitmentTransaction *NONNULL_PTR arg);
10300 public static native long BuiltCommitmentTransaction_clone_ptr(long arg);
10301 // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig);
10302 public static native long BuiltCommitmentTransaction_clone(long orig);
10303 // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj);
10304 public static native byte[] BuiltCommitmentTransaction_write(long obj);
10305 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ BuiltCommitmentTransaction_read(struct LDKu8slice ser);
10306 public static native long BuiltCommitmentTransaction_read(byte[] ser);
10307 // 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);
10308 public static native byte[] BuiltCommitmentTransaction_get_sighash_all(long this_arg, byte[] funding_redeemscript, long channel_value_satoshis);
10309 // 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);
10310 public static native byte[] BuiltCommitmentTransaction_sign_counterparty_commitment(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis);
10311 // 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);
10312 public static native byte[] BuiltCommitmentTransaction_sign_holder_commitment(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis, long entropy_source);
10313 // void ClosingTransaction_free(struct LDKClosingTransaction this_obj);
10314 public static native void ClosingTransaction_free(long this_obj);
10315 // uint64_t ClosingTransaction_clone_ptr(LDKClosingTransaction *NONNULL_PTR arg);
10316 public static native long ClosingTransaction_clone_ptr(long arg);
10317 // struct LDKClosingTransaction ClosingTransaction_clone(const struct LDKClosingTransaction *NONNULL_PTR orig);
10318 public static native long ClosingTransaction_clone(long orig);
10319 // uint64_t ClosingTransaction_hash(const struct LDKClosingTransaction *NONNULL_PTR o);
10320 public static native long ClosingTransaction_hash(long o);
10321 // bool ClosingTransaction_eq(const struct LDKClosingTransaction *NONNULL_PTR a, const struct LDKClosingTransaction *NONNULL_PTR b);
10322 public static native boolean ClosingTransaction_eq(long a, long b);
10323 // 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);
10324 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);
10325 // MUST_USE_RES struct LDKTrustedClosingTransaction ClosingTransaction_trust(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
10326 public static native long ClosingTransaction_trust(long this_arg);
10327 // MUST_USE_RES struct LDKCResult_TrustedClosingTransactionNoneZ ClosingTransaction_verify(const struct LDKClosingTransaction *NONNULL_PTR this_arg, struct LDKOutPoint funding_outpoint);
10328 public static native long ClosingTransaction_verify(long this_arg, long funding_outpoint);
10329 // MUST_USE_RES uint64_t ClosingTransaction_to_holder_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
10330 public static native long ClosingTransaction_to_holder_value_sat(long this_arg);
10331 // MUST_USE_RES uint64_t ClosingTransaction_to_counterparty_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
10332 public static native long ClosingTransaction_to_counterparty_value_sat(long this_arg);
10333 // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_holder_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
10334 public static native byte[] ClosingTransaction_to_holder_script(long this_arg);
10335 // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_counterparty_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
10336 public static native byte[] ClosingTransaction_to_counterparty_script(long this_arg);
10337 // void TrustedClosingTransaction_free(struct LDKTrustedClosingTransaction this_obj);
10338 public static native void TrustedClosingTransaction_free(long this_obj);
10339 // MUST_USE_RES struct LDKTransaction TrustedClosingTransaction_built_transaction(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg);
10340 public static native byte[] TrustedClosingTransaction_built_transaction(long this_arg);
10341 // 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);
10342 public static native byte[] TrustedClosingTransaction_get_sighash_all(long this_arg, byte[] funding_redeemscript, long channel_value_satoshis);
10343 // 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);
10344 public static native byte[] TrustedClosingTransaction_sign(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis);
10345 // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_obj);
10346 public static native void CommitmentTransaction_free(long this_obj);
10347 // uint64_t CommitmentTransaction_clone_ptr(LDKCommitmentTransaction *NONNULL_PTR arg);
10348 public static native long CommitmentTransaction_clone_ptr(long arg);
10349 // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig);
10350 public static native long CommitmentTransaction_clone(long orig);
10351 // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj);
10352 public static native byte[] CommitmentTransaction_write(long obj);
10353 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CommitmentTransaction_read(struct LDKu8slice ser);
10354 public static native long CommitmentTransaction_read(byte[] ser);
10355 // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
10356 public static native long CommitmentTransaction_commitment_number(long this_arg);
10357 // MUST_USE_RES struct LDKPublicKey CommitmentTransaction_per_commitment_point(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
10358 public static native byte[] CommitmentTransaction_per_commitment_point(long this_arg);
10359 // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
10360 public static native long CommitmentTransaction_to_broadcaster_value_sat(long this_arg);
10361 // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
10362 public static native long CommitmentTransaction_to_countersignatory_value_sat(long this_arg);
10363 // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
10364 public static native int CommitmentTransaction_feerate_per_kw(long this_arg);
10365 // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
10366 public static native long CommitmentTransaction_trust(long this_arg);
10367 // 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);
10368 public static native long CommitmentTransaction_verify(long this_arg, long channel_parameters, long broadcaster_keys, long countersignatory_keys);
10369 // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_obj);
10370 public static native void TrustedCommitmentTransaction_free(long this_obj);
10371 // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
10372 public static native byte[] TrustedCommitmentTransaction_txid(long this_arg);
10373 // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
10374 public static native long TrustedCommitmentTransaction_built_transaction(long this_arg);
10375 // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
10376 public static native long TrustedCommitmentTransaction_keys(long this_arg);
10377 // MUST_USE_RES struct LDKChannelTypeFeatures TrustedCommitmentTransaction_channel_type_features(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
10378 public static native long TrustedCommitmentTransaction_channel_type_features(long this_arg);
10379 // 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);
10380 public static native long TrustedCommitmentTransaction_get_htlc_sigs(long this_arg, byte[] htlc_base_key, long channel_parameters, long entropy_source);
10381 // MUST_USE_RES struct LDKCOption_usizeZ TrustedCommitmentTransaction_revokeable_output_index(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
10382 public static native long TrustedCommitmentTransaction_revokeable_output_index(long this_arg);
10383 // 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);
10384 public static native long TrustedCommitmentTransaction_build_to_local_justice_tx(long this_arg, long feerate_per_kw, byte[] destination_script);
10385 // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster);
10386 public static native long get_commitment_transaction_number_obscure_factor(byte[] broadcaster_payment_basepoint, byte[] countersignatory_payment_basepoint, boolean outbound_from_broadcaster);
10387 // bool InitFeatures_eq(const struct LDKInitFeatures *NONNULL_PTR a, const struct LDKInitFeatures *NONNULL_PTR b);
10388 public static native boolean InitFeatures_eq(long a, long b);
10389 // bool NodeFeatures_eq(const struct LDKNodeFeatures *NONNULL_PTR a, const struct LDKNodeFeatures *NONNULL_PTR b);
10390 public static native boolean NodeFeatures_eq(long a, long b);
10391 // bool ChannelFeatures_eq(const struct LDKChannelFeatures *NONNULL_PTR a, const struct LDKChannelFeatures *NONNULL_PTR b);
10392 public static native boolean ChannelFeatures_eq(long a, long b);
10393 // bool Bolt11InvoiceFeatures_eq(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR a, const struct LDKBolt11InvoiceFeatures *NONNULL_PTR b);
10394 public static native boolean Bolt11InvoiceFeatures_eq(long a, long b);
10395 // bool OfferFeatures_eq(const struct LDKOfferFeatures *NONNULL_PTR a, const struct LDKOfferFeatures *NONNULL_PTR b);
10396 public static native boolean OfferFeatures_eq(long a, long b);
10397 // bool InvoiceRequestFeatures_eq(const struct LDKInvoiceRequestFeatures *NONNULL_PTR a, const struct LDKInvoiceRequestFeatures *NONNULL_PTR b);
10398 public static native boolean InvoiceRequestFeatures_eq(long a, long b);
10399 // bool Bolt12InvoiceFeatures_eq(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR a, const struct LDKBolt12InvoiceFeatures *NONNULL_PTR b);
10400 public static native boolean Bolt12InvoiceFeatures_eq(long a, long b);
10401 // bool BlindedHopFeatures_eq(const struct LDKBlindedHopFeatures *NONNULL_PTR a, const struct LDKBlindedHopFeatures *NONNULL_PTR b);
10402 public static native boolean BlindedHopFeatures_eq(long a, long b);
10403 // bool ChannelTypeFeatures_eq(const struct LDKChannelTypeFeatures *NONNULL_PTR a, const struct LDKChannelTypeFeatures *NONNULL_PTR b);
10404 public static native boolean ChannelTypeFeatures_eq(long a, long b);
10405 // uint64_t InitFeatures_clone_ptr(LDKInitFeatures *NONNULL_PTR arg);
10406 public static native long InitFeatures_clone_ptr(long arg);
10407 // struct LDKInitFeatures InitFeatures_clone(const struct LDKInitFeatures *NONNULL_PTR orig);
10408 public static native long InitFeatures_clone(long orig);
10409 // uint64_t NodeFeatures_clone_ptr(LDKNodeFeatures *NONNULL_PTR arg);
10410 public static native long NodeFeatures_clone_ptr(long arg);
10411 // struct LDKNodeFeatures NodeFeatures_clone(const struct LDKNodeFeatures *NONNULL_PTR orig);
10412 public static native long NodeFeatures_clone(long orig);
10413 // uint64_t ChannelFeatures_clone_ptr(LDKChannelFeatures *NONNULL_PTR arg);
10414 public static native long ChannelFeatures_clone_ptr(long arg);
10415 // struct LDKChannelFeatures ChannelFeatures_clone(const struct LDKChannelFeatures *NONNULL_PTR orig);
10416 public static native long ChannelFeatures_clone(long orig);
10417 // uint64_t Bolt11InvoiceFeatures_clone_ptr(LDKBolt11InvoiceFeatures *NONNULL_PTR arg);
10418 public static native long Bolt11InvoiceFeatures_clone_ptr(long arg);
10419 // struct LDKBolt11InvoiceFeatures Bolt11InvoiceFeatures_clone(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR orig);
10420 public static native long Bolt11InvoiceFeatures_clone(long orig);
10421 // uint64_t OfferFeatures_clone_ptr(LDKOfferFeatures *NONNULL_PTR arg);
10422 public static native long OfferFeatures_clone_ptr(long arg);
10423 // struct LDKOfferFeatures OfferFeatures_clone(const struct LDKOfferFeatures *NONNULL_PTR orig);
10424 public static native long OfferFeatures_clone(long orig);
10425 // uint64_t InvoiceRequestFeatures_clone_ptr(LDKInvoiceRequestFeatures *NONNULL_PTR arg);
10426 public static native long InvoiceRequestFeatures_clone_ptr(long arg);
10427 // struct LDKInvoiceRequestFeatures InvoiceRequestFeatures_clone(const struct LDKInvoiceRequestFeatures *NONNULL_PTR orig);
10428 public static native long InvoiceRequestFeatures_clone(long orig);
10429 // uint64_t Bolt12InvoiceFeatures_clone_ptr(LDKBolt12InvoiceFeatures *NONNULL_PTR arg);
10430 public static native long Bolt12InvoiceFeatures_clone_ptr(long arg);
10431 // struct LDKBolt12InvoiceFeatures Bolt12InvoiceFeatures_clone(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR orig);
10432 public static native long Bolt12InvoiceFeatures_clone(long orig);
10433 // uint64_t BlindedHopFeatures_clone_ptr(LDKBlindedHopFeatures *NONNULL_PTR arg);
10434 public static native long BlindedHopFeatures_clone_ptr(long arg);
10435 // struct LDKBlindedHopFeatures BlindedHopFeatures_clone(const struct LDKBlindedHopFeatures *NONNULL_PTR orig);
10436 public static native long BlindedHopFeatures_clone(long orig);
10437 // uint64_t ChannelTypeFeatures_clone_ptr(LDKChannelTypeFeatures *NONNULL_PTR arg);
10438 public static native long ChannelTypeFeatures_clone_ptr(long arg);
10439 // struct LDKChannelTypeFeatures ChannelTypeFeatures_clone(const struct LDKChannelTypeFeatures *NONNULL_PTR orig);
10440 public static native long ChannelTypeFeatures_clone(long orig);
10441 // uint64_t InitFeatures_hash(const struct LDKInitFeatures *NONNULL_PTR o);
10442 public static native long InitFeatures_hash(long o);
10443 // uint64_t NodeFeatures_hash(const struct LDKNodeFeatures *NONNULL_PTR o);
10444 public static native long NodeFeatures_hash(long o);
10445 // uint64_t ChannelFeatures_hash(const struct LDKChannelFeatures *NONNULL_PTR o);
10446 public static native long ChannelFeatures_hash(long o);
10447 // uint64_t Bolt11InvoiceFeatures_hash(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR o);
10448 public static native long Bolt11InvoiceFeatures_hash(long o);
10449 // uint64_t OfferFeatures_hash(const struct LDKOfferFeatures *NONNULL_PTR o);
10450 public static native long OfferFeatures_hash(long o);
10451 // uint64_t InvoiceRequestFeatures_hash(const struct LDKInvoiceRequestFeatures *NONNULL_PTR o);
10452 public static native long InvoiceRequestFeatures_hash(long o);
10453 // uint64_t Bolt12InvoiceFeatures_hash(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR o);
10454 public static native long Bolt12InvoiceFeatures_hash(long o);
10455 // uint64_t BlindedHopFeatures_hash(const struct LDKBlindedHopFeatures *NONNULL_PTR o);
10456 public static native long BlindedHopFeatures_hash(long o);
10457 // uint64_t ChannelTypeFeatures_hash(const struct LDKChannelTypeFeatures *NONNULL_PTR o);
10458 public static native long ChannelTypeFeatures_hash(long o);
10459 // void InitFeatures_free(struct LDKInitFeatures this_obj);
10460 public static native void InitFeatures_free(long this_obj);
10461 // void NodeFeatures_free(struct LDKNodeFeatures this_obj);
10462 public static native void NodeFeatures_free(long this_obj);
10463 // void ChannelFeatures_free(struct LDKChannelFeatures this_obj);
10464 public static native void ChannelFeatures_free(long this_obj);
10465 // void Bolt11InvoiceFeatures_free(struct LDKBolt11InvoiceFeatures this_obj);
10466 public static native void Bolt11InvoiceFeatures_free(long this_obj);
10467 // void OfferFeatures_free(struct LDKOfferFeatures this_obj);
10468 public static native void OfferFeatures_free(long this_obj);
10469 // void InvoiceRequestFeatures_free(struct LDKInvoiceRequestFeatures this_obj);
10470 public static native void InvoiceRequestFeatures_free(long this_obj);
10471 // void Bolt12InvoiceFeatures_free(struct LDKBolt12InvoiceFeatures this_obj);
10472 public static native void Bolt12InvoiceFeatures_free(long this_obj);
10473 // void BlindedHopFeatures_free(struct LDKBlindedHopFeatures this_obj);
10474 public static native void BlindedHopFeatures_free(long this_obj);
10475 // void ChannelTypeFeatures_free(struct LDKChannelTypeFeatures this_obj);
10476 public static native void ChannelTypeFeatures_free(long this_obj);
10477 // MUST_USE_RES struct LDKInitFeatures InitFeatures_empty(void);
10478 public static native long InitFeatures_empty();
10479 // MUST_USE_RES bool InitFeatures_requires_unknown_bits_from(const struct LDKInitFeatures *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR other);
10480 public static native boolean InitFeatures_requires_unknown_bits_from(long this_arg, long other);
10481 // MUST_USE_RES bool InitFeatures_requires_unknown_bits(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10482 public static native boolean InitFeatures_requires_unknown_bits(long this_arg);
10483 // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_required_feature_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10484 public static native long InitFeatures_set_required_feature_bit(long this_arg, long bit);
10485 // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_optional_feature_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10486 public static native long InitFeatures_set_optional_feature_bit(long this_arg, long bit);
10487 // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_required_custom_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10488 public static native long InitFeatures_set_required_custom_bit(long this_arg, long bit);
10489 // MUST_USE_RES struct LDKCResult_NoneNoneZ InitFeatures_set_optional_custom_bit(struct LDKInitFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10490 public static native long InitFeatures_set_optional_custom_bit(long this_arg, long bit);
10491 // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_empty(void);
10492 public static native long NodeFeatures_empty();
10493 // MUST_USE_RES bool NodeFeatures_requires_unknown_bits_from(const struct LDKNodeFeatures *NONNULL_PTR this_arg, const struct LDKNodeFeatures *NONNULL_PTR other);
10494 public static native boolean NodeFeatures_requires_unknown_bits_from(long this_arg, long other);
10495 // MUST_USE_RES bool NodeFeatures_requires_unknown_bits(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10496 public static native boolean NodeFeatures_requires_unknown_bits(long this_arg);
10497 // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_required_feature_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10498 public static native long NodeFeatures_set_required_feature_bit(long this_arg, long bit);
10499 // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_optional_feature_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10500 public static native long NodeFeatures_set_optional_feature_bit(long this_arg, long bit);
10501 // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_required_custom_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10502 public static native long NodeFeatures_set_required_custom_bit(long this_arg, long bit);
10503 // MUST_USE_RES struct LDKCResult_NoneNoneZ NodeFeatures_set_optional_custom_bit(struct LDKNodeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10504 public static native long NodeFeatures_set_optional_custom_bit(long this_arg, long bit);
10505 // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_empty(void);
10506 public static native long ChannelFeatures_empty();
10507 // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits_from(const struct LDKChannelFeatures *NONNULL_PTR this_arg, const struct LDKChannelFeatures *NONNULL_PTR other);
10508 public static native boolean ChannelFeatures_requires_unknown_bits_from(long this_arg, long other);
10509 // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits(const struct LDKChannelFeatures *NONNULL_PTR this_arg);
10510 public static native boolean ChannelFeatures_requires_unknown_bits(long this_arg);
10511 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_required_feature_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10512 public static native long ChannelFeatures_set_required_feature_bit(long this_arg, long bit);
10513 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_optional_feature_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10514 public static native long ChannelFeatures_set_optional_feature_bit(long this_arg, long bit);
10515 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_required_custom_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10516 public static native long ChannelFeatures_set_required_custom_bit(long this_arg, long bit);
10517 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelFeatures_set_optional_custom_bit(struct LDKChannelFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10518 public static native long ChannelFeatures_set_optional_custom_bit(long this_arg, long bit);
10519 // MUST_USE_RES struct LDKBolt11InvoiceFeatures Bolt11InvoiceFeatures_empty(void);
10520 public static native long Bolt11InvoiceFeatures_empty();
10521 // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_unknown_bits_from(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, const struct LDKBolt11InvoiceFeatures *NONNULL_PTR other);
10522 public static native boolean Bolt11InvoiceFeatures_requires_unknown_bits_from(long this_arg, long other);
10523 // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_unknown_bits(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10524 public static native boolean Bolt11InvoiceFeatures_requires_unknown_bits(long this_arg);
10525 // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_required_feature_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10526 public static native long Bolt11InvoiceFeatures_set_required_feature_bit(long this_arg, long bit);
10527 // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_optional_feature_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10528 public static native long Bolt11InvoiceFeatures_set_optional_feature_bit(long this_arg, long bit);
10529 // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_required_custom_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10530 public static native long Bolt11InvoiceFeatures_set_required_custom_bit(long this_arg, long bit);
10531 // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt11InvoiceFeatures_set_optional_custom_bit(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10532 public static native long Bolt11InvoiceFeatures_set_optional_custom_bit(long this_arg, long bit);
10533 // MUST_USE_RES struct LDKOfferFeatures OfferFeatures_empty(void);
10534 public static native long OfferFeatures_empty();
10535 // MUST_USE_RES bool OfferFeatures_requires_unknown_bits_from(const struct LDKOfferFeatures *NONNULL_PTR this_arg, const struct LDKOfferFeatures *NONNULL_PTR other);
10536 public static native boolean OfferFeatures_requires_unknown_bits_from(long this_arg, long other);
10537 // MUST_USE_RES bool OfferFeatures_requires_unknown_bits(const struct LDKOfferFeatures *NONNULL_PTR this_arg);
10538 public static native boolean OfferFeatures_requires_unknown_bits(long this_arg);
10539 // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_required_feature_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10540 public static native long OfferFeatures_set_required_feature_bit(long this_arg, long bit);
10541 // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_optional_feature_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10542 public static native long OfferFeatures_set_optional_feature_bit(long this_arg, long bit);
10543 // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_required_custom_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10544 public static native long OfferFeatures_set_required_custom_bit(long this_arg, long bit);
10545 // MUST_USE_RES struct LDKCResult_NoneNoneZ OfferFeatures_set_optional_custom_bit(struct LDKOfferFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10546 public static native long OfferFeatures_set_optional_custom_bit(long this_arg, long bit);
10547 // MUST_USE_RES struct LDKInvoiceRequestFeatures InvoiceRequestFeatures_empty(void);
10548 public static native long InvoiceRequestFeatures_empty();
10549 // MUST_USE_RES bool InvoiceRequestFeatures_requires_unknown_bits_from(const struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, const struct LDKInvoiceRequestFeatures *NONNULL_PTR other);
10550 public static native boolean InvoiceRequestFeatures_requires_unknown_bits_from(long this_arg, long other);
10551 // MUST_USE_RES bool InvoiceRequestFeatures_requires_unknown_bits(const struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg);
10552 public static native boolean InvoiceRequestFeatures_requires_unknown_bits(long this_arg);
10553 // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_required_feature_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10554 public static native long InvoiceRequestFeatures_set_required_feature_bit(long this_arg, long bit);
10555 // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_optional_feature_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10556 public static native long InvoiceRequestFeatures_set_optional_feature_bit(long this_arg, long bit);
10557 // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_required_custom_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10558 public static native long InvoiceRequestFeatures_set_required_custom_bit(long this_arg, long bit);
10559 // MUST_USE_RES struct LDKCResult_NoneNoneZ InvoiceRequestFeatures_set_optional_custom_bit(struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10560 public static native long InvoiceRequestFeatures_set_optional_custom_bit(long this_arg, long bit);
10561 // MUST_USE_RES struct LDKBolt12InvoiceFeatures Bolt12InvoiceFeatures_empty(void);
10562 public static native long Bolt12InvoiceFeatures_empty();
10563 // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_unknown_bits_from(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, const struct LDKBolt12InvoiceFeatures *NONNULL_PTR other);
10564 public static native boolean Bolt12InvoiceFeatures_requires_unknown_bits_from(long this_arg, long other);
10565 // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_unknown_bits(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
10566 public static native boolean Bolt12InvoiceFeatures_requires_unknown_bits(long this_arg);
10567 // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_required_feature_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10568 public static native long Bolt12InvoiceFeatures_set_required_feature_bit(long this_arg, long bit);
10569 // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_optional_feature_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10570 public static native long Bolt12InvoiceFeatures_set_optional_feature_bit(long this_arg, long bit);
10571 // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_required_custom_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10572 public static native long Bolt12InvoiceFeatures_set_required_custom_bit(long this_arg, long bit);
10573 // MUST_USE_RES struct LDKCResult_NoneNoneZ Bolt12InvoiceFeatures_set_optional_custom_bit(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10574 public static native long Bolt12InvoiceFeatures_set_optional_custom_bit(long this_arg, long bit);
10575 // MUST_USE_RES struct LDKBlindedHopFeatures BlindedHopFeatures_empty(void);
10576 public static native long BlindedHopFeatures_empty();
10577 // MUST_USE_RES bool BlindedHopFeatures_requires_unknown_bits_from(const struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, const struct LDKBlindedHopFeatures *NONNULL_PTR other);
10578 public static native boolean BlindedHopFeatures_requires_unknown_bits_from(long this_arg, long other);
10579 // MUST_USE_RES bool BlindedHopFeatures_requires_unknown_bits(const struct LDKBlindedHopFeatures *NONNULL_PTR this_arg);
10580 public static native boolean BlindedHopFeatures_requires_unknown_bits(long this_arg);
10581 // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_required_feature_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10582 public static native long BlindedHopFeatures_set_required_feature_bit(long this_arg, long bit);
10583 // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_optional_feature_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10584 public static native long BlindedHopFeatures_set_optional_feature_bit(long this_arg, long bit);
10585 // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_required_custom_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10586 public static native long BlindedHopFeatures_set_required_custom_bit(long this_arg, long bit);
10587 // MUST_USE_RES struct LDKCResult_NoneNoneZ BlindedHopFeatures_set_optional_custom_bit(struct LDKBlindedHopFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10588 public static native long BlindedHopFeatures_set_optional_custom_bit(long this_arg, long bit);
10589 // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_empty(void);
10590 public static native long ChannelTypeFeatures_empty();
10591 // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits_from(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, const struct LDKChannelTypeFeatures *NONNULL_PTR other);
10592 public static native boolean ChannelTypeFeatures_requires_unknown_bits_from(long this_arg, long other);
10593 // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10594 public static native boolean ChannelTypeFeatures_requires_unknown_bits(long this_arg);
10595 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_required_feature_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10596 public static native long ChannelTypeFeatures_set_required_feature_bit(long this_arg, long bit);
10597 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_optional_feature_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10598 public static native long ChannelTypeFeatures_set_optional_feature_bit(long this_arg, long bit);
10599 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_required_custom_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10600 public static native long ChannelTypeFeatures_set_required_custom_bit(long this_arg, long bit);
10601 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelTypeFeatures_set_optional_custom_bit(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg, uintptr_t bit);
10602 public static native long ChannelTypeFeatures_set_optional_custom_bit(long this_arg, long bit);
10603 // struct LDKCVec_u8Z InitFeatures_write(const struct LDKInitFeatures *NONNULL_PTR obj);
10604 public static native byte[] InitFeatures_write(long obj);
10605 // struct LDKCResult_InitFeaturesDecodeErrorZ InitFeatures_read(struct LDKu8slice ser);
10606 public static native long InitFeatures_read(byte[] ser);
10607 // struct LDKCVec_u8Z ChannelFeatures_write(const struct LDKChannelFeatures *NONNULL_PTR obj);
10608 public static native byte[] ChannelFeatures_write(long obj);
10609 // struct LDKCResult_ChannelFeaturesDecodeErrorZ ChannelFeatures_read(struct LDKu8slice ser);
10610 public static native long ChannelFeatures_read(byte[] ser);
10611 // struct LDKCVec_u8Z NodeFeatures_write(const struct LDKNodeFeatures *NONNULL_PTR obj);
10612 public static native byte[] NodeFeatures_write(long obj);
10613 // struct LDKCResult_NodeFeaturesDecodeErrorZ NodeFeatures_read(struct LDKu8slice ser);
10614 public static native long NodeFeatures_read(byte[] ser);
10615 // struct LDKCVec_u8Z Bolt11InvoiceFeatures_write(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR obj);
10616 public static native byte[] Bolt11InvoiceFeatures_write(long obj);
10617 // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ Bolt11InvoiceFeatures_read(struct LDKu8slice ser);
10618 public static native long Bolt11InvoiceFeatures_read(byte[] ser);
10619 // struct LDKCVec_u8Z Bolt12InvoiceFeatures_write(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR obj);
10620 public static native byte[] Bolt12InvoiceFeatures_write(long obj);
10621 // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ Bolt12InvoiceFeatures_read(struct LDKu8slice ser);
10622 public static native long Bolt12InvoiceFeatures_read(byte[] ser);
10623 // struct LDKCVec_u8Z BlindedHopFeatures_write(const struct LDKBlindedHopFeatures *NONNULL_PTR obj);
10624 public static native byte[] BlindedHopFeatures_write(long obj);
10625 // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ BlindedHopFeatures_read(struct LDKu8slice ser);
10626 public static native long BlindedHopFeatures_read(byte[] ser);
10627 // struct LDKCVec_u8Z ChannelTypeFeatures_write(const struct LDKChannelTypeFeatures *NONNULL_PTR obj);
10628 public static native byte[] ChannelTypeFeatures_write(long obj);
10629 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ ChannelTypeFeatures_read(struct LDKu8slice ser);
10630 public static native long ChannelTypeFeatures_read(byte[] ser);
10631 // void InitFeatures_set_data_loss_protect_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10632 public static native void InitFeatures_set_data_loss_protect_optional(long this_arg);
10633 // void InitFeatures_set_data_loss_protect_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10634 public static native void InitFeatures_set_data_loss_protect_required(long this_arg);
10635 // MUST_USE_RES bool InitFeatures_supports_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10636 public static native boolean InitFeatures_supports_data_loss_protect(long this_arg);
10637 // void NodeFeatures_set_data_loss_protect_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10638 public static native void NodeFeatures_set_data_loss_protect_optional(long this_arg);
10639 // void NodeFeatures_set_data_loss_protect_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10640 public static native void NodeFeatures_set_data_loss_protect_required(long this_arg);
10641 // MUST_USE_RES bool NodeFeatures_supports_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10642 public static native boolean NodeFeatures_supports_data_loss_protect(long this_arg);
10643 // MUST_USE_RES bool InitFeatures_requires_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10644 public static native boolean InitFeatures_requires_data_loss_protect(long this_arg);
10645 // MUST_USE_RES bool NodeFeatures_requires_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10646 public static native boolean NodeFeatures_requires_data_loss_protect(long this_arg);
10647 // void InitFeatures_set_initial_routing_sync_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10648 public static native void InitFeatures_set_initial_routing_sync_optional(long this_arg);
10649 // void InitFeatures_set_initial_routing_sync_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10650 public static native void InitFeatures_set_initial_routing_sync_required(long this_arg);
10651 // MUST_USE_RES bool InitFeatures_initial_routing_sync(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10652 public static native boolean InitFeatures_initial_routing_sync(long this_arg);
10653 // void InitFeatures_set_upfront_shutdown_script_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10654 public static native void InitFeatures_set_upfront_shutdown_script_optional(long this_arg);
10655 // void InitFeatures_set_upfront_shutdown_script_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10656 public static native void InitFeatures_set_upfront_shutdown_script_required(long this_arg);
10657 // MUST_USE_RES bool InitFeatures_supports_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10658 public static native boolean InitFeatures_supports_upfront_shutdown_script(long this_arg);
10659 // void NodeFeatures_set_upfront_shutdown_script_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10660 public static native void NodeFeatures_set_upfront_shutdown_script_optional(long this_arg);
10661 // void NodeFeatures_set_upfront_shutdown_script_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10662 public static native void NodeFeatures_set_upfront_shutdown_script_required(long this_arg);
10663 // MUST_USE_RES bool NodeFeatures_supports_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10664 public static native boolean NodeFeatures_supports_upfront_shutdown_script(long this_arg);
10665 // MUST_USE_RES bool InitFeatures_requires_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10666 public static native boolean InitFeatures_requires_upfront_shutdown_script(long this_arg);
10667 // MUST_USE_RES bool NodeFeatures_requires_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10668 public static native boolean NodeFeatures_requires_upfront_shutdown_script(long this_arg);
10669 // void InitFeatures_set_gossip_queries_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10670 public static native void InitFeatures_set_gossip_queries_optional(long this_arg);
10671 // void InitFeatures_set_gossip_queries_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10672 public static native void InitFeatures_set_gossip_queries_required(long this_arg);
10673 // MUST_USE_RES bool InitFeatures_supports_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10674 public static native boolean InitFeatures_supports_gossip_queries(long this_arg);
10675 // void NodeFeatures_set_gossip_queries_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10676 public static native void NodeFeatures_set_gossip_queries_optional(long this_arg);
10677 // void NodeFeatures_set_gossip_queries_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10678 public static native void NodeFeatures_set_gossip_queries_required(long this_arg);
10679 // MUST_USE_RES bool NodeFeatures_supports_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10680 public static native boolean NodeFeatures_supports_gossip_queries(long this_arg);
10681 // MUST_USE_RES bool InitFeatures_requires_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10682 public static native boolean InitFeatures_requires_gossip_queries(long this_arg);
10683 // MUST_USE_RES bool NodeFeatures_requires_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10684 public static native boolean NodeFeatures_requires_gossip_queries(long this_arg);
10685 // void InitFeatures_set_variable_length_onion_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10686 public static native void InitFeatures_set_variable_length_onion_optional(long this_arg);
10687 // void InitFeatures_set_variable_length_onion_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10688 public static native void InitFeatures_set_variable_length_onion_required(long this_arg);
10689 // MUST_USE_RES bool InitFeatures_supports_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10690 public static native boolean InitFeatures_supports_variable_length_onion(long this_arg);
10691 // void NodeFeatures_set_variable_length_onion_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10692 public static native void NodeFeatures_set_variable_length_onion_optional(long this_arg);
10693 // void NodeFeatures_set_variable_length_onion_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10694 public static native void NodeFeatures_set_variable_length_onion_required(long this_arg);
10695 // MUST_USE_RES bool NodeFeatures_supports_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10696 public static native boolean NodeFeatures_supports_variable_length_onion(long this_arg);
10697 // void Bolt11InvoiceFeatures_set_variable_length_onion_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10698 public static native void Bolt11InvoiceFeatures_set_variable_length_onion_optional(long this_arg);
10699 // void Bolt11InvoiceFeatures_set_variable_length_onion_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10700 public static native void Bolt11InvoiceFeatures_set_variable_length_onion_required(long this_arg);
10701 // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_variable_length_onion(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10702 public static native boolean Bolt11InvoiceFeatures_supports_variable_length_onion(long this_arg);
10703 // MUST_USE_RES bool InitFeatures_requires_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10704 public static native boolean InitFeatures_requires_variable_length_onion(long this_arg);
10705 // MUST_USE_RES bool NodeFeatures_requires_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10706 public static native boolean NodeFeatures_requires_variable_length_onion(long this_arg);
10707 // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_variable_length_onion(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10708 public static native boolean Bolt11InvoiceFeatures_requires_variable_length_onion(long this_arg);
10709 // void InitFeatures_set_static_remote_key_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10710 public static native void InitFeatures_set_static_remote_key_optional(long this_arg);
10711 // void InitFeatures_set_static_remote_key_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10712 public static native void InitFeatures_set_static_remote_key_required(long this_arg);
10713 // MUST_USE_RES bool InitFeatures_supports_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10714 public static native boolean InitFeatures_supports_static_remote_key(long this_arg);
10715 // void NodeFeatures_set_static_remote_key_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10716 public static native void NodeFeatures_set_static_remote_key_optional(long this_arg);
10717 // void NodeFeatures_set_static_remote_key_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10718 public static native void NodeFeatures_set_static_remote_key_required(long this_arg);
10719 // MUST_USE_RES bool NodeFeatures_supports_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10720 public static native boolean NodeFeatures_supports_static_remote_key(long this_arg);
10721 // void ChannelTypeFeatures_set_static_remote_key_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10722 public static native void ChannelTypeFeatures_set_static_remote_key_optional(long this_arg);
10723 // void ChannelTypeFeatures_set_static_remote_key_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10724 public static native void ChannelTypeFeatures_set_static_remote_key_required(long this_arg);
10725 // MUST_USE_RES bool ChannelTypeFeatures_supports_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10726 public static native boolean ChannelTypeFeatures_supports_static_remote_key(long this_arg);
10727 // MUST_USE_RES bool InitFeatures_requires_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10728 public static native boolean InitFeatures_requires_static_remote_key(long this_arg);
10729 // MUST_USE_RES bool NodeFeatures_requires_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10730 public static native boolean NodeFeatures_requires_static_remote_key(long this_arg);
10731 // MUST_USE_RES bool ChannelTypeFeatures_requires_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10732 public static native boolean ChannelTypeFeatures_requires_static_remote_key(long this_arg);
10733 // void InitFeatures_set_payment_secret_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10734 public static native void InitFeatures_set_payment_secret_optional(long this_arg);
10735 // void InitFeatures_set_payment_secret_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10736 public static native void InitFeatures_set_payment_secret_required(long this_arg);
10737 // MUST_USE_RES bool InitFeatures_supports_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10738 public static native boolean InitFeatures_supports_payment_secret(long this_arg);
10739 // void NodeFeatures_set_payment_secret_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10740 public static native void NodeFeatures_set_payment_secret_optional(long this_arg);
10741 // void NodeFeatures_set_payment_secret_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10742 public static native void NodeFeatures_set_payment_secret_required(long this_arg);
10743 // MUST_USE_RES bool NodeFeatures_supports_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10744 public static native boolean NodeFeatures_supports_payment_secret(long this_arg);
10745 // void Bolt11InvoiceFeatures_set_payment_secret_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10746 public static native void Bolt11InvoiceFeatures_set_payment_secret_optional(long this_arg);
10747 // void Bolt11InvoiceFeatures_set_payment_secret_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10748 public static native void Bolt11InvoiceFeatures_set_payment_secret_required(long this_arg);
10749 // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_payment_secret(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10750 public static native boolean Bolt11InvoiceFeatures_supports_payment_secret(long this_arg);
10751 // MUST_USE_RES bool InitFeatures_requires_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10752 public static native boolean InitFeatures_requires_payment_secret(long this_arg);
10753 // MUST_USE_RES bool NodeFeatures_requires_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10754 public static native boolean NodeFeatures_requires_payment_secret(long this_arg);
10755 // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_payment_secret(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10756 public static native boolean Bolt11InvoiceFeatures_requires_payment_secret(long this_arg);
10757 // void InitFeatures_set_basic_mpp_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10758 public static native void InitFeatures_set_basic_mpp_optional(long this_arg);
10759 // void InitFeatures_set_basic_mpp_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10760 public static native void InitFeatures_set_basic_mpp_required(long this_arg);
10761 // MUST_USE_RES bool InitFeatures_supports_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10762 public static native boolean InitFeatures_supports_basic_mpp(long this_arg);
10763 // void NodeFeatures_set_basic_mpp_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10764 public static native void NodeFeatures_set_basic_mpp_optional(long this_arg);
10765 // void NodeFeatures_set_basic_mpp_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10766 public static native void NodeFeatures_set_basic_mpp_required(long this_arg);
10767 // MUST_USE_RES bool NodeFeatures_supports_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10768 public static native boolean NodeFeatures_supports_basic_mpp(long this_arg);
10769 // void Bolt11InvoiceFeatures_set_basic_mpp_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10770 public static native void Bolt11InvoiceFeatures_set_basic_mpp_optional(long this_arg);
10771 // void Bolt11InvoiceFeatures_set_basic_mpp_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10772 public static native void Bolt11InvoiceFeatures_set_basic_mpp_required(long this_arg);
10773 // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_basic_mpp(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10774 public static native boolean Bolt11InvoiceFeatures_supports_basic_mpp(long this_arg);
10775 // void Bolt12InvoiceFeatures_set_basic_mpp_optional(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
10776 public static native void Bolt12InvoiceFeatures_set_basic_mpp_optional(long this_arg);
10777 // void Bolt12InvoiceFeatures_set_basic_mpp_required(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
10778 public static native void Bolt12InvoiceFeatures_set_basic_mpp_required(long this_arg);
10779 // MUST_USE_RES bool Bolt12InvoiceFeatures_supports_basic_mpp(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
10780 public static native boolean Bolt12InvoiceFeatures_supports_basic_mpp(long this_arg);
10781 // MUST_USE_RES bool InitFeatures_requires_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10782 public static native boolean InitFeatures_requires_basic_mpp(long this_arg);
10783 // MUST_USE_RES bool NodeFeatures_requires_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10784 public static native boolean NodeFeatures_requires_basic_mpp(long this_arg);
10785 // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_basic_mpp(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10786 public static native boolean Bolt11InvoiceFeatures_requires_basic_mpp(long this_arg);
10787 // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_basic_mpp(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
10788 public static native boolean Bolt12InvoiceFeatures_requires_basic_mpp(long this_arg);
10789 // void InitFeatures_set_wumbo_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10790 public static native void InitFeatures_set_wumbo_optional(long this_arg);
10791 // void InitFeatures_set_wumbo_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10792 public static native void InitFeatures_set_wumbo_required(long this_arg);
10793 // MUST_USE_RES bool InitFeatures_supports_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10794 public static native boolean InitFeatures_supports_wumbo(long this_arg);
10795 // void NodeFeatures_set_wumbo_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10796 public static native void NodeFeatures_set_wumbo_optional(long this_arg);
10797 // void NodeFeatures_set_wumbo_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10798 public static native void NodeFeatures_set_wumbo_required(long this_arg);
10799 // MUST_USE_RES bool NodeFeatures_supports_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10800 public static native boolean NodeFeatures_supports_wumbo(long this_arg);
10801 // MUST_USE_RES bool InitFeatures_requires_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10802 public static native boolean InitFeatures_requires_wumbo(long this_arg);
10803 // MUST_USE_RES bool NodeFeatures_requires_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10804 public static native boolean NodeFeatures_requires_wumbo(long this_arg);
10805 // void InitFeatures_set_anchors_nonzero_fee_htlc_tx_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10806 public static native void InitFeatures_set_anchors_nonzero_fee_htlc_tx_optional(long this_arg);
10807 // void InitFeatures_set_anchors_nonzero_fee_htlc_tx_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10808 public static native void InitFeatures_set_anchors_nonzero_fee_htlc_tx_required(long this_arg);
10809 // MUST_USE_RES bool InitFeatures_supports_anchors_nonzero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10810 public static native boolean InitFeatures_supports_anchors_nonzero_fee_htlc_tx(long this_arg);
10811 // void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10812 public static native void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(long this_arg);
10813 // void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10814 public static native void NodeFeatures_set_anchors_nonzero_fee_htlc_tx_required(long this_arg);
10815 // MUST_USE_RES bool NodeFeatures_supports_anchors_nonzero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10816 public static native boolean NodeFeatures_supports_anchors_nonzero_fee_htlc_tx(long this_arg);
10817 // void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10818 public static native void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_optional(long this_arg);
10819 // void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10820 public static native void ChannelTypeFeatures_set_anchors_nonzero_fee_htlc_tx_required(long this_arg);
10821 // MUST_USE_RES bool ChannelTypeFeatures_supports_anchors_nonzero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10822 public static native boolean ChannelTypeFeatures_supports_anchors_nonzero_fee_htlc_tx(long this_arg);
10823 // MUST_USE_RES bool InitFeatures_requires_anchors_nonzero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10824 public static native boolean InitFeatures_requires_anchors_nonzero_fee_htlc_tx(long this_arg);
10825 // MUST_USE_RES bool NodeFeatures_requires_anchors_nonzero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10826 public static native boolean NodeFeatures_requires_anchors_nonzero_fee_htlc_tx(long this_arg);
10827 // MUST_USE_RES bool ChannelTypeFeatures_requires_anchors_nonzero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10828 public static native boolean ChannelTypeFeatures_requires_anchors_nonzero_fee_htlc_tx(long this_arg);
10829 // void InitFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10830 public static native void InitFeatures_set_anchors_zero_fee_htlc_tx_optional(long this_arg);
10831 // void InitFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10832 public static native void InitFeatures_set_anchors_zero_fee_htlc_tx_required(long this_arg);
10833 // MUST_USE_RES bool InitFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10834 public static native boolean InitFeatures_supports_anchors_zero_fee_htlc_tx(long this_arg);
10835 // void NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10836 public static native void NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(long this_arg);
10837 // void NodeFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10838 public static native void NodeFeatures_set_anchors_zero_fee_htlc_tx_required(long this_arg);
10839 // MUST_USE_RES bool NodeFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10840 public static native boolean NodeFeatures_supports_anchors_zero_fee_htlc_tx(long this_arg);
10841 // void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10842 public static native void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional(long this_arg);
10843 // void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10844 public static native void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required(long this_arg);
10845 // MUST_USE_RES bool ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10846 public static native boolean ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx(long this_arg);
10847 // MUST_USE_RES bool InitFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10848 public static native boolean InitFeatures_requires_anchors_zero_fee_htlc_tx(long this_arg);
10849 // MUST_USE_RES bool NodeFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10850 public static native boolean NodeFeatures_requires_anchors_zero_fee_htlc_tx(long this_arg);
10851 // MUST_USE_RES bool ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10852 public static native boolean ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx(long this_arg);
10853 // void InitFeatures_set_route_blinding_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10854 public static native void InitFeatures_set_route_blinding_optional(long this_arg);
10855 // void InitFeatures_set_route_blinding_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10856 public static native void InitFeatures_set_route_blinding_required(long this_arg);
10857 // MUST_USE_RES bool InitFeatures_supports_route_blinding(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10858 public static native boolean InitFeatures_supports_route_blinding(long this_arg);
10859 // void NodeFeatures_set_route_blinding_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10860 public static native void NodeFeatures_set_route_blinding_optional(long this_arg);
10861 // void NodeFeatures_set_route_blinding_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10862 public static native void NodeFeatures_set_route_blinding_required(long this_arg);
10863 // MUST_USE_RES bool NodeFeatures_supports_route_blinding(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10864 public static native boolean NodeFeatures_supports_route_blinding(long this_arg);
10865 // MUST_USE_RES bool InitFeatures_requires_route_blinding(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10866 public static native boolean InitFeatures_requires_route_blinding(long this_arg);
10867 // MUST_USE_RES bool NodeFeatures_requires_route_blinding(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10868 public static native boolean NodeFeatures_requires_route_blinding(long this_arg);
10869 // void InitFeatures_set_shutdown_any_segwit_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10870 public static native void InitFeatures_set_shutdown_any_segwit_optional(long this_arg);
10871 // void InitFeatures_set_shutdown_any_segwit_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10872 public static native void InitFeatures_set_shutdown_any_segwit_required(long this_arg);
10873 // MUST_USE_RES bool InitFeatures_supports_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10874 public static native boolean InitFeatures_supports_shutdown_anysegwit(long this_arg);
10875 // void NodeFeatures_set_shutdown_any_segwit_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10876 public static native void NodeFeatures_set_shutdown_any_segwit_optional(long this_arg);
10877 // void NodeFeatures_set_shutdown_any_segwit_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10878 public static native void NodeFeatures_set_shutdown_any_segwit_required(long this_arg);
10879 // MUST_USE_RES bool NodeFeatures_supports_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10880 public static native boolean NodeFeatures_supports_shutdown_anysegwit(long this_arg);
10881 // MUST_USE_RES bool InitFeatures_requires_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10882 public static native boolean InitFeatures_requires_shutdown_anysegwit(long this_arg);
10883 // MUST_USE_RES bool NodeFeatures_requires_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10884 public static native boolean NodeFeatures_requires_shutdown_anysegwit(long this_arg);
10885 // void InitFeatures_set_taproot_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10886 public static native void InitFeatures_set_taproot_optional(long this_arg);
10887 // void InitFeatures_set_taproot_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10888 public static native void InitFeatures_set_taproot_required(long this_arg);
10889 // MUST_USE_RES bool InitFeatures_supports_taproot(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10890 public static native boolean InitFeatures_supports_taproot(long this_arg);
10891 // void NodeFeatures_set_taproot_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10892 public static native void NodeFeatures_set_taproot_optional(long this_arg);
10893 // void NodeFeatures_set_taproot_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10894 public static native void NodeFeatures_set_taproot_required(long this_arg);
10895 // MUST_USE_RES bool NodeFeatures_supports_taproot(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10896 public static native boolean NodeFeatures_supports_taproot(long this_arg);
10897 // void ChannelTypeFeatures_set_taproot_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10898 public static native void ChannelTypeFeatures_set_taproot_optional(long this_arg);
10899 // void ChannelTypeFeatures_set_taproot_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10900 public static native void ChannelTypeFeatures_set_taproot_required(long this_arg);
10901 // MUST_USE_RES bool ChannelTypeFeatures_supports_taproot(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10902 public static native boolean ChannelTypeFeatures_supports_taproot(long this_arg);
10903 // MUST_USE_RES bool InitFeatures_requires_taproot(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10904 public static native boolean InitFeatures_requires_taproot(long this_arg);
10905 // MUST_USE_RES bool NodeFeatures_requires_taproot(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10906 public static native boolean NodeFeatures_requires_taproot(long this_arg);
10907 // MUST_USE_RES bool ChannelTypeFeatures_requires_taproot(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10908 public static native boolean ChannelTypeFeatures_requires_taproot(long this_arg);
10909 // void InitFeatures_set_onion_messages_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10910 public static native void InitFeatures_set_onion_messages_optional(long this_arg);
10911 // void InitFeatures_set_onion_messages_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10912 public static native void InitFeatures_set_onion_messages_required(long this_arg);
10913 // MUST_USE_RES bool InitFeatures_supports_onion_messages(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10914 public static native boolean InitFeatures_supports_onion_messages(long this_arg);
10915 // void NodeFeatures_set_onion_messages_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10916 public static native void NodeFeatures_set_onion_messages_optional(long this_arg);
10917 // void NodeFeatures_set_onion_messages_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10918 public static native void NodeFeatures_set_onion_messages_required(long this_arg);
10919 // MUST_USE_RES bool NodeFeatures_supports_onion_messages(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10920 public static native boolean NodeFeatures_supports_onion_messages(long this_arg);
10921 // MUST_USE_RES bool InitFeatures_requires_onion_messages(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10922 public static native boolean InitFeatures_requires_onion_messages(long this_arg);
10923 // MUST_USE_RES bool NodeFeatures_requires_onion_messages(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10924 public static native boolean NodeFeatures_requires_onion_messages(long this_arg);
10925 // void InitFeatures_set_channel_type_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10926 public static native void InitFeatures_set_channel_type_optional(long this_arg);
10927 // void InitFeatures_set_channel_type_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10928 public static native void InitFeatures_set_channel_type_required(long this_arg);
10929 // MUST_USE_RES bool InitFeatures_supports_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10930 public static native boolean InitFeatures_supports_channel_type(long this_arg);
10931 // void NodeFeatures_set_channel_type_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10932 public static native void NodeFeatures_set_channel_type_optional(long this_arg);
10933 // void NodeFeatures_set_channel_type_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10934 public static native void NodeFeatures_set_channel_type_required(long this_arg);
10935 // MUST_USE_RES bool NodeFeatures_supports_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10936 public static native boolean NodeFeatures_supports_channel_type(long this_arg);
10937 // MUST_USE_RES bool InitFeatures_requires_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10938 public static native boolean InitFeatures_requires_channel_type(long this_arg);
10939 // MUST_USE_RES bool NodeFeatures_requires_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10940 public static native boolean NodeFeatures_requires_channel_type(long this_arg);
10941 // void InitFeatures_set_scid_privacy_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10942 public static native void InitFeatures_set_scid_privacy_optional(long this_arg);
10943 // void InitFeatures_set_scid_privacy_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10944 public static native void InitFeatures_set_scid_privacy_required(long this_arg);
10945 // MUST_USE_RES bool InitFeatures_supports_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10946 public static native boolean InitFeatures_supports_scid_privacy(long this_arg);
10947 // void NodeFeatures_set_scid_privacy_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10948 public static native void NodeFeatures_set_scid_privacy_optional(long this_arg);
10949 // void NodeFeatures_set_scid_privacy_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10950 public static native void NodeFeatures_set_scid_privacy_required(long this_arg);
10951 // MUST_USE_RES bool NodeFeatures_supports_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10952 public static native boolean NodeFeatures_supports_scid_privacy(long this_arg);
10953 // void ChannelTypeFeatures_set_scid_privacy_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10954 public static native void ChannelTypeFeatures_set_scid_privacy_optional(long this_arg);
10955 // void ChannelTypeFeatures_set_scid_privacy_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10956 public static native void ChannelTypeFeatures_set_scid_privacy_required(long this_arg);
10957 // MUST_USE_RES bool ChannelTypeFeatures_supports_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10958 public static native boolean ChannelTypeFeatures_supports_scid_privacy(long this_arg);
10959 // MUST_USE_RES bool InitFeatures_requires_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10960 public static native boolean InitFeatures_requires_scid_privacy(long this_arg);
10961 // MUST_USE_RES bool NodeFeatures_requires_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10962 public static native boolean NodeFeatures_requires_scid_privacy(long this_arg);
10963 // MUST_USE_RES bool ChannelTypeFeatures_requires_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10964 public static native boolean ChannelTypeFeatures_requires_scid_privacy(long this_arg);
10965 // void Bolt11InvoiceFeatures_set_payment_metadata_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10966 public static native void Bolt11InvoiceFeatures_set_payment_metadata_optional(long this_arg);
10967 // void Bolt11InvoiceFeatures_set_payment_metadata_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10968 public static native void Bolt11InvoiceFeatures_set_payment_metadata_required(long this_arg);
10969 // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_payment_metadata(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10970 public static native boolean Bolt11InvoiceFeatures_supports_payment_metadata(long this_arg);
10971 // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_payment_metadata(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg);
10972 public static native boolean Bolt11InvoiceFeatures_requires_payment_metadata(long this_arg);
10973 // void InitFeatures_set_zero_conf_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
10974 public static native void InitFeatures_set_zero_conf_optional(long this_arg);
10975 // void InitFeatures_set_zero_conf_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
10976 public static native void InitFeatures_set_zero_conf_required(long this_arg);
10977 // MUST_USE_RES bool InitFeatures_supports_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10978 public static native boolean InitFeatures_supports_zero_conf(long this_arg);
10979 // void NodeFeatures_set_zero_conf_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10980 public static native void NodeFeatures_set_zero_conf_optional(long this_arg);
10981 // void NodeFeatures_set_zero_conf_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10982 public static native void NodeFeatures_set_zero_conf_required(long this_arg);
10983 // MUST_USE_RES bool NodeFeatures_supports_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10984 public static native boolean NodeFeatures_supports_zero_conf(long this_arg);
10985 // void ChannelTypeFeatures_set_zero_conf_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10986 public static native void ChannelTypeFeatures_set_zero_conf_optional(long this_arg);
10987 // void ChannelTypeFeatures_set_zero_conf_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10988 public static native void ChannelTypeFeatures_set_zero_conf_required(long this_arg);
10989 // MUST_USE_RES bool ChannelTypeFeatures_supports_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10990 public static native boolean ChannelTypeFeatures_supports_zero_conf(long this_arg);
10991 // MUST_USE_RES bool InitFeatures_requires_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
10992 public static native boolean InitFeatures_requires_zero_conf(long this_arg);
10993 // MUST_USE_RES bool NodeFeatures_requires_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
10994 public static native boolean NodeFeatures_requires_zero_conf(long this_arg);
10995 // MUST_USE_RES bool ChannelTypeFeatures_requires_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
10996 public static native boolean ChannelTypeFeatures_requires_zero_conf(long this_arg);
10997 // void NodeFeatures_set_keysend_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
10998 public static native void NodeFeatures_set_keysend_optional(long this_arg);
10999 // void NodeFeatures_set_keysend_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
11000 public static native void NodeFeatures_set_keysend_required(long this_arg);
11001 // MUST_USE_RES bool NodeFeatures_supports_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11002 public static native boolean NodeFeatures_supports_keysend(long this_arg);
11003 // MUST_USE_RES bool NodeFeatures_requires_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
11004 public static native boolean NodeFeatures_requires_keysend(long this_arg);
11005 // void ShutdownScript_free(struct LDKShutdownScript this_obj);
11006 public static native void ShutdownScript_free(long this_obj);
11007 // uint64_t ShutdownScript_clone_ptr(LDKShutdownScript *NONNULL_PTR arg);
11008 public static native long ShutdownScript_clone_ptr(long arg);
11009 // struct LDKShutdownScript ShutdownScript_clone(const struct LDKShutdownScript *NONNULL_PTR orig);
11010 public static native long ShutdownScript_clone(long orig);
11011 // bool ShutdownScript_eq(const struct LDKShutdownScript *NONNULL_PTR a, const struct LDKShutdownScript *NONNULL_PTR b);
11012 public static native boolean ShutdownScript_eq(long a, long b);
11013 // void InvalidShutdownScript_free(struct LDKInvalidShutdownScript this_obj);
11014 public static native void InvalidShutdownScript_free(long this_obj);
11015 // struct LDKCVec_u8Z InvalidShutdownScript_get_script(const struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr);
11016 public static native byte[] InvalidShutdownScript_get_script(long this_ptr);
11017 // void InvalidShutdownScript_set_script(struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
11018 public static native void InvalidShutdownScript_set_script(long this_ptr, byte[] val);
11019 // MUST_USE_RES struct LDKInvalidShutdownScript InvalidShutdownScript_new(struct LDKCVec_u8Z script_arg);
11020 public static native long InvalidShutdownScript_new(byte[] script_arg);
11021 // uint64_t InvalidShutdownScript_clone_ptr(LDKInvalidShutdownScript *NONNULL_PTR arg);
11022 public static native long InvalidShutdownScript_clone_ptr(long arg);
11023 // struct LDKInvalidShutdownScript InvalidShutdownScript_clone(const struct LDKInvalidShutdownScript *NONNULL_PTR orig);
11024 public static native long InvalidShutdownScript_clone(long orig);
11025 // struct LDKCVec_u8Z ShutdownScript_write(const struct LDKShutdownScript *NONNULL_PTR obj);
11026 public static native byte[] ShutdownScript_write(long obj);
11027 // struct LDKCResult_ShutdownScriptDecodeErrorZ ShutdownScript_read(struct LDKu8slice ser);
11028 public static native long ShutdownScript_read(byte[] ser);
11029 // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wpkh(const uint8_t (*pubkey_hash)[20]);
11030 public static native long ShutdownScript_new_p2wpkh(byte[] pubkey_hash);
11031 // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wsh(const uint8_t (*script_hash)[32]);
11032 public static native long ShutdownScript_new_p2wsh(byte[] script_hash);
11033 // MUST_USE_RES struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ ShutdownScript_new_witness_program(struct LDKWitnessProgram witness_program);
11034 public static native long ShutdownScript_new_witness_program(long witness_program);
11035 // MUST_USE_RES struct LDKCVec_u8Z ShutdownScript_into_inner(struct LDKShutdownScript this_arg);
11036 public static native byte[] ShutdownScript_into_inner(long this_arg);
11037 // MUST_USE_RES struct LDKPublicKey ShutdownScript_as_legacy_pubkey(const struct LDKShutdownScript *NONNULL_PTR this_arg);
11038 public static native byte[] ShutdownScript_as_legacy_pubkey(long this_arg);
11039 // MUST_USE_RES bool ShutdownScript_is_compatible(const struct LDKShutdownScript *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR features);
11040 public static native boolean ShutdownScript_is_compatible(long this_arg, long features);
11041 // void Retry_free(struct LDKRetry this_ptr);
11042 public static native void Retry_free(long this_ptr);
11043 // uint64_t Retry_clone_ptr(LDKRetry *NONNULL_PTR arg);
11044 public static native long Retry_clone_ptr(long arg);
11045 // struct LDKRetry Retry_clone(const struct LDKRetry *NONNULL_PTR orig);
11046 public static native long Retry_clone(long orig);
11047 // struct LDKRetry Retry_attempts(uint32_t a);
11048 public static native long Retry_attempts(int a);
11049 // struct LDKRetry Retry_timeout(uint64_t a);
11050 public static native long Retry_timeout(long a);
11051 // bool Retry_eq(const struct LDKRetry *NONNULL_PTR a, const struct LDKRetry *NONNULL_PTR b);
11052 public static native boolean Retry_eq(long a, long b);
11053 // uint64_t Retry_hash(const struct LDKRetry *NONNULL_PTR o);
11054 public static native long Retry_hash(long o);
11055 // struct LDKCVec_u8Z Retry_write(const struct LDKRetry *NONNULL_PTR obj);
11056 public static native byte[] Retry_write(long obj);
11057 // struct LDKCResult_RetryDecodeErrorZ Retry_read(struct LDKu8slice ser);
11058 public static native long Retry_read(byte[] ser);
11059 // enum LDKRetryableSendFailure RetryableSendFailure_clone(const enum LDKRetryableSendFailure *NONNULL_PTR orig);
11060 public static native RetryableSendFailure RetryableSendFailure_clone(long orig);
11061 // enum LDKRetryableSendFailure RetryableSendFailure_payment_expired(void);
11062 public static native RetryableSendFailure RetryableSendFailure_payment_expired();
11063 // enum LDKRetryableSendFailure RetryableSendFailure_route_not_found(void);
11064 public static native RetryableSendFailure RetryableSendFailure_route_not_found();
11065 // enum LDKRetryableSendFailure RetryableSendFailure_duplicate_payment(void);
11066 public static native RetryableSendFailure RetryableSendFailure_duplicate_payment();
11067 // bool RetryableSendFailure_eq(const enum LDKRetryableSendFailure *NONNULL_PTR a, const enum LDKRetryableSendFailure *NONNULL_PTR b);
11068 public static native boolean RetryableSendFailure_eq(long a, long b);
11069 // void PaymentSendFailure_free(struct LDKPaymentSendFailure this_ptr);
11070 public static native void PaymentSendFailure_free(long this_ptr);
11071 // uint64_t PaymentSendFailure_clone_ptr(LDKPaymentSendFailure *NONNULL_PTR arg);
11072 public static native long PaymentSendFailure_clone_ptr(long arg);
11073 // struct LDKPaymentSendFailure PaymentSendFailure_clone(const struct LDKPaymentSendFailure *NONNULL_PTR orig);
11074 public static native long PaymentSendFailure_clone(long orig);
11075 // struct LDKPaymentSendFailure PaymentSendFailure_parameter_error(struct LDKAPIError a);
11076 public static native long PaymentSendFailure_parameter_error(long a);
11077 // struct LDKPaymentSendFailure PaymentSendFailure_path_parameter_error(struct LDKCVec_CResult_NoneAPIErrorZZ a);
11078 public static native long PaymentSendFailure_path_parameter_error(long[] a);
11079 // struct LDKPaymentSendFailure PaymentSendFailure_all_failed_resend_safe(struct LDKCVec_APIErrorZ a);
11080 public static native long PaymentSendFailure_all_failed_resend_safe(long[] a);
11081 // struct LDKPaymentSendFailure PaymentSendFailure_duplicate_payment(void);
11082 public static native long PaymentSendFailure_duplicate_payment();
11083 // struct LDKPaymentSendFailure PaymentSendFailure_partial_failure(struct LDKCVec_CResult_NoneAPIErrorZZ results, struct LDKRouteParameters failed_paths_retry, struct LDKThirtyTwoBytes payment_id);
11084 public static native long PaymentSendFailure_partial_failure(long[] results, long failed_paths_retry, byte[] payment_id);
11085 // bool PaymentSendFailure_eq(const struct LDKPaymentSendFailure *NONNULL_PTR a, const struct LDKPaymentSendFailure *NONNULL_PTR b);
11086 public static native boolean PaymentSendFailure_eq(long a, long b);
11087 // void ProbeSendFailure_free(struct LDKProbeSendFailure this_ptr);
11088 public static native void ProbeSendFailure_free(long this_ptr);
11089 // uint64_t ProbeSendFailure_clone_ptr(LDKProbeSendFailure *NONNULL_PTR arg);
11090 public static native long ProbeSendFailure_clone_ptr(long arg);
11091 // struct LDKProbeSendFailure ProbeSendFailure_clone(const struct LDKProbeSendFailure *NONNULL_PTR orig);
11092 public static native long ProbeSendFailure_clone(long orig);
11093 // struct LDKProbeSendFailure ProbeSendFailure_route_not_found(void);
11094 public static native long ProbeSendFailure_route_not_found();
11095 // struct LDKProbeSendFailure ProbeSendFailure_sending_failed(struct LDKPaymentSendFailure a);
11096 public static native long ProbeSendFailure_sending_failed(long a);
11097 // bool ProbeSendFailure_eq(const struct LDKProbeSendFailure *NONNULL_PTR a, const struct LDKProbeSendFailure *NONNULL_PTR b);
11098 public static native boolean ProbeSendFailure_eq(long a, long b);
11099 // void RecipientOnionFields_free(struct LDKRecipientOnionFields this_obj);
11100 public static native void RecipientOnionFields_free(long this_obj);
11101 // struct LDKCOption_ThirtyTwoBytesZ RecipientOnionFields_get_payment_secret(const struct LDKRecipientOnionFields *NONNULL_PTR this_ptr);
11102 public static native long RecipientOnionFields_get_payment_secret(long this_ptr);
11103 // void RecipientOnionFields_set_payment_secret(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val);
11104 public static native void RecipientOnionFields_set_payment_secret(long this_ptr, long val);
11105 // struct LDKCOption_CVec_u8ZZ RecipientOnionFields_get_payment_metadata(const struct LDKRecipientOnionFields *NONNULL_PTR this_ptr);
11106 public static native long RecipientOnionFields_get_payment_metadata(long this_ptr);
11107 // void RecipientOnionFields_set_payment_metadata(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
11108 public static native void RecipientOnionFields_set_payment_metadata(long this_ptr, long val);
11109 // uint64_t RecipientOnionFields_clone_ptr(LDKRecipientOnionFields *NONNULL_PTR arg);
11110 public static native long RecipientOnionFields_clone_ptr(long arg);
11111 // struct LDKRecipientOnionFields RecipientOnionFields_clone(const struct LDKRecipientOnionFields *NONNULL_PTR orig);
11112 public static native long RecipientOnionFields_clone(long orig);
11113 // bool RecipientOnionFields_eq(const struct LDKRecipientOnionFields *NONNULL_PTR a, const struct LDKRecipientOnionFields *NONNULL_PTR b);
11114 public static native boolean RecipientOnionFields_eq(long a, long b);
11115 // struct LDKCVec_u8Z RecipientOnionFields_write(const struct LDKRecipientOnionFields *NONNULL_PTR obj);
11116 public static native byte[] RecipientOnionFields_write(long obj);
11117 // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ RecipientOnionFields_read(struct LDKu8slice ser);
11118 public static native long RecipientOnionFields_read(byte[] ser);
11119 // MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_secret_only(struct LDKThirtyTwoBytes payment_secret);
11120 public static native long RecipientOnionFields_secret_only(byte[] payment_secret);
11121 // MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_spontaneous_empty(void);
11122 public static native long RecipientOnionFields_spontaneous_empty();
11123 // MUST_USE_RES struct LDKCResult_RecipientOnionFieldsNoneZ RecipientOnionFields_with_custom_tlvs(struct LDKRecipientOnionFields this_arg, struct LDKCVec_C2Tuple_u64CVec_u8ZZZ custom_tlvs);
11124 public static native long RecipientOnionFields_with_custom_tlvs(long this_arg, long[] custom_tlvs);
11125 // MUST_USE_RES struct LDKCVec_C2Tuple_u64CVec_u8ZZZ RecipientOnionFields_custom_tlvs(const struct LDKRecipientOnionFields *NONNULL_PTR this_arg);
11126 public static native long[] RecipientOnionFields_custom_tlvs(long this_arg);
11127 // void CustomMessageReader_free(struct LDKCustomMessageReader this_ptr);
11128 public static native void CustomMessageReader_free(long this_ptr);
11129 // uint64_t Type_clone_ptr(LDKType *NONNULL_PTR arg);
11130 public static native long Type_clone_ptr(long arg);
11131 // struct LDKType Type_clone(const struct LDKType *NONNULL_PTR orig);
11132 public static native long Type_clone(long orig);
11133 // void Type_free(struct LDKType this_ptr);
11134 public static native void Type_free(long this_ptr);
11135 // void Offer_free(struct LDKOffer this_obj);
11136 public static native void Offer_free(long this_obj);
11137 // uint64_t Offer_clone_ptr(LDKOffer *NONNULL_PTR arg);
11138 public static native long Offer_clone_ptr(long arg);
11139 // struct LDKOffer Offer_clone(const struct LDKOffer *NONNULL_PTR orig);
11140 public static native long Offer_clone(long orig);
11141 // MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ Offer_chains(const struct LDKOffer *NONNULL_PTR this_arg);
11142 public static native byte[][] Offer_chains(long this_arg);
11143 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ Offer_metadata(const struct LDKOffer *NONNULL_PTR this_arg);
11144 public static native long Offer_metadata(long this_arg);
11145 // MUST_USE_RES struct LDKAmount Offer_amount(const struct LDKOffer *NONNULL_PTR this_arg);
11146 public static native long Offer_amount(long this_arg);
11147 // MUST_USE_RES struct LDKPrintableString Offer_description(const struct LDKOffer *NONNULL_PTR this_arg);
11148 public static native long Offer_description(long this_arg);
11149 // MUST_USE_RES struct LDKOfferFeatures Offer_offer_features(const struct LDKOffer *NONNULL_PTR this_arg);
11150 public static native long Offer_offer_features(long this_arg);
11151 // MUST_USE_RES struct LDKCOption_u64Z Offer_absolute_expiry(const struct LDKOffer *NONNULL_PTR this_arg);
11152 public static native long Offer_absolute_expiry(long this_arg);
11153 // MUST_USE_RES struct LDKPrintableString Offer_issuer(const struct LDKOffer *NONNULL_PTR this_arg);
11154 public static native long Offer_issuer(long this_arg);
11155 // MUST_USE_RES struct LDKCVec_BlindedPathZ Offer_paths(const struct LDKOffer *NONNULL_PTR this_arg);
11156 public static native long[] Offer_paths(long this_arg);
11157 // MUST_USE_RES struct LDKQuantity Offer_supported_quantity(const struct LDKOffer *NONNULL_PTR this_arg);
11158 public static native long Offer_supported_quantity(long this_arg);
11159 // MUST_USE_RES struct LDKPublicKey Offer_signing_pubkey(const struct LDKOffer *NONNULL_PTR this_arg);
11160 public static native byte[] Offer_signing_pubkey(long this_arg);
11161 // MUST_USE_RES bool Offer_supports_chain(const struct LDKOffer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes chain);
11162 public static native boolean Offer_supports_chain(long this_arg, byte[] chain);
11163 // MUST_USE_RES bool Offer_is_expired(const struct LDKOffer *NONNULL_PTR this_arg);
11164 public static native boolean Offer_is_expired(long this_arg);
11165 // MUST_USE_RES bool Offer_is_expired_no_std(const struct LDKOffer *NONNULL_PTR this_arg, uint64_t duration_since_epoch);
11166 public static native boolean Offer_is_expired_no_std(long this_arg, long duration_since_epoch);
11167 // MUST_USE_RES bool Offer_is_valid_quantity(const struct LDKOffer *NONNULL_PTR this_arg, uint64_t quantity);
11168 public static native boolean Offer_is_valid_quantity(long this_arg, long quantity);
11169 // MUST_USE_RES bool Offer_expects_quantity(const struct LDKOffer *NONNULL_PTR this_arg);
11170 public static native boolean Offer_expects_quantity(long this_arg);
11171 // struct LDKCVec_u8Z Offer_write(const struct LDKOffer *NONNULL_PTR obj);
11172 public static native byte[] Offer_write(long obj);
11173 // void Amount_free(struct LDKAmount this_obj);
11174 public static native void Amount_free(long this_obj);
11175 // uint64_t Amount_clone_ptr(LDKAmount *NONNULL_PTR arg);
11176 public static native long Amount_clone_ptr(long arg);
11177 // struct LDKAmount Amount_clone(const struct LDKAmount *NONNULL_PTR orig);
11178 public static native long Amount_clone(long orig);
11179 // void Quantity_free(struct LDKQuantity this_obj);
11180 public static native void Quantity_free(long this_obj);
11181 // uint64_t Quantity_clone_ptr(LDKQuantity *NONNULL_PTR arg);
11182 public static native long Quantity_clone_ptr(long arg);
11183 // struct LDKQuantity Quantity_clone(const struct LDKQuantity *NONNULL_PTR orig);
11184 public static native long Quantity_clone(long orig);
11185 // struct LDKCResult_OfferBolt12ParseErrorZ Offer_from_str(struct LDKStr s);
11186 public static native long Offer_from_str(String s);
11187 // void UnsignedBolt12Invoice_free(struct LDKUnsignedBolt12Invoice this_obj);
11188 public static native void UnsignedBolt12Invoice_free(long this_obj);
11189 // MUST_USE_RES struct LDKTaggedHash UnsignedBolt12Invoice_tagged_hash(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11190 public static native long UnsignedBolt12Invoice_tagged_hash(long this_arg);
11191 // void Bolt12Invoice_free(struct LDKBolt12Invoice this_obj);
11192 public static native void Bolt12Invoice_free(long this_obj);
11193 // uint64_t Bolt12Invoice_clone_ptr(LDKBolt12Invoice *NONNULL_PTR arg);
11194 public static native long Bolt12Invoice_clone_ptr(long arg);
11195 // struct LDKBolt12Invoice Bolt12Invoice_clone(const struct LDKBolt12Invoice *NONNULL_PTR orig);
11196 public static native long Bolt12Invoice_clone(long orig);
11197 // MUST_USE_RES struct LDKCOption_CVec_ThirtyTwoBytesZZ UnsignedBolt12Invoice_offer_chains(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11198 public static native long UnsignedBolt12Invoice_offer_chains(long this_arg);
11199 // MUST_USE_RES struct LDKThirtyTwoBytes UnsignedBolt12Invoice_chain(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11200 public static native byte[] UnsignedBolt12Invoice_chain(long this_arg);
11201 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ UnsignedBolt12Invoice_metadata(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11202 public static native long UnsignedBolt12Invoice_metadata(long this_arg);
11203 // MUST_USE_RES struct LDKAmount UnsignedBolt12Invoice_amount(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11204 public static native long UnsignedBolt12Invoice_amount(long this_arg);
11205 // MUST_USE_RES struct LDKOfferFeatures UnsignedBolt12Invoice_offer_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11206 public static native long UnsignedBolt12Invoice_offer_features(long this_arg);
11207 // MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_description(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11208 public static native long UnsignedBolt12Invoice_description(long this_arg);
11209 // MUST_USE_RES struct LDKCOption_u64Z UnsignedBolt12Invoice_absolute_expiry(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11210 public static native long UnsignedBolt12Invoice_absolute_expiry(long this_arg);
11211 // MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_issuer(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11212 public static native long UnsignedBolt12Invoice_issuer(long this_arg);
11213 // MUST_USE_RES struct LDKCVec_BlindedPathZ UnsignedBolt12Invoice_message_paths(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11214 public static native long[] UnsignedBolt12Invoice_message_paths(long this_arg);
11215 // MUST_USE_RES struct LDKQuantity UnsignedBolt12Invoice_supported_quantity(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11216 public static native long UnsignedBolt12Invoice_supported_quantity(long this_arg);
11217 // MUST_USE_RES struct LDKu8slice UnsignedBolt12Invoice_payer_metadata(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11218 public static native byte[] UnsignedBolt12Invoice_payer_metadata(long this_arg);
11219 // MUST_USE_RES struct LDKInvoiceRequestFeatures UnsignedBolt12Invoice_invoice_request_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11220 public static native long UnsignedBolt12Invoice_invoice_request_features(long this_arg);
11221 // MUST_USE_RES struct LDKCOption_u64Z UnsignedBolt12Invoice_quantity(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11222 public static native long UnsignedBolt12Invoice_quantity(long this_arg);
11223 // MUST_USE_RES struct LDKPublicKey UnsignedBolt12Invoice_payer_id(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11224 public static native byte[] UnsignedBolt12Invoice_payer_id(long this_arg);
11225 // MUST_USE_RES struct LDKPrintableString UnsignedBolt12Invoice_payer_note(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11226 public static native long UnsignedBolt12Invoice_payer_note(long this_arg);
11227 // MUST_USE_RES uint64_t UnsignedBolt12Invoice_created_at(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11228 public static native long UnsignedBolt12Invoice_created_at(long this_arg);
11229 // MUST_USE_RES uint64_t UnsignedBolt12Invoice_relative_expiry(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11230 public static native long UnsignedBolt12Invoice_relative_expiry(long this_arg);
11231 // MUST_USE_RES bool UnsignedBolt12Invoice_is_expired(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11232 public static native boolean UnsignedBolt12Invoice_is_expired(long this_arg);
11233 // MUST_USE_RES struct LDKThirtyTwoBytes UnsignedBolt12Invoice_payment_hash(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11234 public static native byte[] UnsignedBolt12Invoice_payment_hash(long this_arg);
11235 // MUST_USE_RES uint64_t UnsignedBolt12Invoice_amount_msats(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11236 public static native long UnsignedBolt12Invoice_amount_msats(long this_arg);
11237 // MUST_USE_RES struct LDKBolt12InvoiceFeatures UnsignedBolt12Invoice_invoice_features(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11238 public static native long UnsignedBolt12Invoice_invoice_features(long this_arg);
11239 // MUST_USE_RES struct LDKPublicKey UnsignedBolt12Invoice_signing_pubkey(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg);
11240 public static native byte[] UnsignedBolt12Invoice_signing_pubkey(long this_arg);
11241 // MUST_USE_RES struct LDKCOption_CVec_ThirtyTwoBytesZZ Bolt12Invoice_offer_chains(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11242 public static native long Bolt12Invoice_offer_chains(long this_arg);
11243 // MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_chain(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11244 public static native byte[] Bolt12Invoice_chain(long this_arg);
11245 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ Bolt12Invoice_metadata(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11246 public static native long Bolt12Invoice_metadata(long this_arg);
11247 // MUST_USE_RES struct LDKAmount Bolt12Invoice_amount(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11248 public static native long Bolt12Invoice_amount(long this_arg);
11249 // MUST_USE_RES struct LDKOfferFeatures Bolt12Invoice_offer_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11250 public static native long Bolt12Invoice_offer_features(long this_arg);
11251 // MUST_USE_RES struct LDKPrintableString Bolt12Invoice_description(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11252 public static native long Bolt12Invoice_description(long this_arg);
11253 // MUST_USE_RES struct LDKCOption_u64Z Bolt12Invoice_absolute_expiry(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11254 public static native long Bolt12Invoice_absolute_expiry(long this_arg);
11255 // MUST_USE_RES struct LDKPrintableString Bolt12Invoice_issuer(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11256 public static native long Bolt12Invoice_issuer(long this_arg);
11257 // MUST_USE_RES struct LDKCVec_BlindedPathZ Bolt12Invoice_message_paths(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11258 public static native long[] Bolt12Invoice_message_paths(long this_arg);
11259 // MUST_USE_RES struct LDKQuantity Bolt12Invoice_supported_quantity(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11260 public static native long Bolt12Invoice_supported_quantity(long this_arg);
11261 // MUST_USE_RES struct LDKu8slice Bolt12Invoice_payer_metadata(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11262 public static native byte[] Bolt12Invoice_payer_metadata(long this_arg);
11263 // MUST_USE_RES struct LDKInvoiceRequestFeatures Bolt12Invoice_invoice_request_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11264 public static native long Bolt12Invoice_invoice_request_features(long this_arg);
11265 // MUST_USE_RES struct LDKCOption_u64Z Bolt12Invoice_quantity(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11266 public static native long Bolt12Invoice_quantity(long this_arg);
11267 // MUST_USE_RES struct LDKPublicKey Bolt12Invoice_payer_id(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11268 public static native byte[] Bolt12Invoice_payer_id(long this_arg);
11269 // MUST_USE_RES struct LDKPrintableString Bolt12Invoice_payer_note(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11270 public static native long Bolt12Invoice_payer_note(long this_arg);
11271 // MUST_USE_RES uint64_t Bolt12Invoice_created_at(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11272 public static native long Bolt12Invoice_created_at(long this_arg);
11273 // MUST_USE_RES uint64_t Bolt12Invoice_relative_expiry(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11274 public static native long Bolt12Invoice_relative_expiry(long this_arg);
11275 // MUST_USE_RES bool Bolt12Invoice_is_expired(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11276 public static native boolean Bolt12Invoice_is_expired(long this_arg);
11277 // MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_payment_hash(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11278 public static native byte[] Bolt12Invoice_payment_hash(long this_arg);
11279 // MUST_USE_RES uint64_t Bolt12Invoice_amount_msats(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11280 public static native long Bolt12Invoice_amount_msats(long this_arg);
11281 // MUST_USE_RES struct LDKBolt12InvoiceFeatures Bolt12Invoice_invoice_features(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11282 public static native long Bolt12Invoice_invoice_features(long this_arg);
11283 // MUST_USE_RES struct LDKPublicKey Bolt12Invoice_signing_pubkey(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11284 public static native byte[] Bolt12Invoice_signing_pubkey(long this_arg);
11285 // MUST_USE_RES struct LDKSchnorrSignature Bolt12Invoice_signature(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11286 public static native byte[] Bolt12Invoice_signature(long this_arg);
11287 // MUST_USE_RES struct LDKThirtyTwoBytes Bolt12Invoice_signable_hash(const struct LDKBolt12Invoice *NONNULL_PTR this_arg);
11288 public static native byte[] Bolt12Invoice_signable_hash(long this_arg);
11289 // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesNoneZ Bolt12Invoice_verify(const struct LDKBolt12Invoice *NONNULL_PTR this_arg, const struct LDKExpandedKey *NONNULL_PTR key);
11290 public static native long Bolt12Invoice_verify(long this_arg, long key);
11291 // struct LDKCVec_u8Z UnsignedBolt12Invoice_write(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR obj);
11292 public static native byte[] UnsignedBolt12Invoice_write(long obj);
11293 // struct LDKCVec_u8Z Bolt12Invoice_write(const struct LDKBolt12Invoice *NONNULL_PTR obj);
11294 public static native byte[] Bolt12Invoice_write(long obj);
11295 // void BlindedPayInfo_free(struct LDKBlindedPayInfo this_obj);
11296 public static native void BlindedPayInfo_free(long this_obj);
11297 // uint32_t BlindedPayInfo_get_fee_base_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
11298 public static native int BlindedPayInfo_get_fee_base_msat(long this_ptr);
11299 // void BlindedPayInfo_set_fee_base_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint32_t val);
11300 public static native void BlindedPayInfo_set_fee_base_msat(long this_ptr, int val);
11301 // uint32_t BlindedPayInfo_get_fee_proportional_millionths(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
11302 public static native int BlindedPayInfo_get_fee_proportional_millionths(long this_ptr);
11303 // void BlindedPayInfo_set_fee_proportional_millionths(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint32_t val);
11304 public static native void BlindedPayInfo_set_fee_proportional_millionths(long this_ptr, int val);
11305 // uint16_t BlindedPayInfo_get_cltv_expiry_delta(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
11306 public static native short BlindedPayInfo_get_cltv_expiry_delta(long this_ptr);
11307 // void BlindedPayInfo_set_cltv_expiry_delta(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint16_t val);
11308 public static native void BlindedPayInfo_set_cltv_expiry_delta(long this_ptr, short val);
11309 // uint64_t BlindedPayInfo_get_htlc_minimum_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
11310 public static native long BlindedPayInfo_get_htlc_minimum_msat(long this_ptr);
11311 // void BlindedPayInfo_set_htlc_minimum_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint64_t val);
11312 public static native void BlindedPayInfo_set_htlc_minimum_msat(long this_ptr, long val);
11313 // uint64_t BlindedPayInfo_get_htlc_maximum_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
11314 public static native long BlindedPayInfo_get_htlc_maximum_msat(long this_ptr);
11315 // void BlindedPayInfo_set_htlc_maximum_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint64_t val);
11316 public static native void BlindedPayInfo_set_htlc_maximum_msat(long this_ptr, long val);
11317 // struct LDKBlindedHopFeatures BlindedPayInfo_get_features(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
11318 public static native long BlindedPayInfo_get_features(long this_ptr);
11319 // void BlindedPayInfo_set_features(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, struct LDKBlindedHopFeatures val);
11320 public static native void BlindedPayInfo_set_features(long this_ptr, long val);
11321 // 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);
11322 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);
11323 // uint64_t BlindedPayInfo_clone_ptr(LDKBlindedPayInfo *NONNULL_PTR arg);
11324 public static native long BlindedPayInfo_clone_ptr(long arg);
11325 // struct LDKBlindedPayInfo BlindedPayInfo_clone(const struct LDKBlindedPayInfo *NONNULL_PTR orig);
11326 public static native long BlindedPayInfo_clone(long orig);
11327 // uint64_t BlindedPayInfo_hash(const struct LDKBlindedPayInfo *NONNULL_PTR o);
11328 public static native long BlindedPayInfo_hash(long o);
11329 // bool BlindedPayInfo_eq(const struct LDKBlindedPayInfo *NONNULL_PTR a, const struct LDKBlindedPayInfo *NONNULL_PTR b);
11330 public static native boolean BlindedPayInfo_eq(long a, long b);
11331 // struct LDKCVec_u8Z BlindedPayInfo_write(const struct LDKBlindedPayInfo *NONNULL_PTR obj);
11332 public static native byte[] BlindedPayInfo_write(long obj);
11333 // struct LDKCResult_BlindedPayInfoDecodeErrorZ BlindedPayInfo_read(struct LDKu8slice ser);
11334 public static native long BlindedPayInfo_read(byte[] ser);
11335 // void InvoiceError_free(struct LDKInvoiceError this_obj);
11336 public static native void InvoiceError_free(long this_obj);
11337 // struct LDKErroneousField InvoiceError_get_erroneous_field(const struct LDKInvoiceError *NONNULL_PTR this_ptr);
11338 public static native long InvoiceError_get_erroneous_field(long this_ptr);
11339 // void InvoiceError_set_erroneous_field(struct LDKInvoiceError *NONNULL_PTR this_ptr, struct LDKErroneousField val);
11340 public static native void InvoiceError_set_erroneous_field(long this_ptr, long val);
11341 // struct LDKUntrustedString InvoiceError_get_message(const struct LDKInvoiceError *NONNULL_PTR this_ptr);
11342 public static native long InvoiceError_get_message(long this_ptr);
11343 // void InvoiceError_set_message(struct LDKInvoiceError *NONNULL_PTR this_ptr, struct LDKUntrustedString val);
11344 public static native void InvoiceError_set_message(long this_ptr, long val);
11345 // MUST_USE_RES struct LDKInvoiceError InvoiceError_new(struct LDKErroneousField erroneous_field_arg, struct LDKUntrustedString message_arg);
11346 public static native long InvoiceError_new(long erroneous_field_arg, long message_arg);
11347 // uint64_t InvoiceError_clone_ptr(LDKInvoiceError *NONNULL_PTR arg);
11348 public static native long InvoiceError_clone_ptr(long arg);
11349 // struct LDKInvoiceError InvoiceError_clone(const struct LDKInvoiceError *NONNULL_PTR orig);
11350 public static native long InvoiceError_clone(long orig);
11351 // void ErroneousField_free(struct LDKErroneousField this_obj);
11352 public static native void ErroneousField_free(long this_obj);
11353 // uint64_t ErroneousField_get_tlv_fieldnum(const struct LDKErroneousField *NONNULL_PTR this_ptr);
11354 public static native long ErroneousField_get_tlv_fieldnum(long this_ptr);
11355 // void ErroneousField_set_tlv_fieldnum(struct LDKErroneousField *NONNULL_PTR this_ptr, uint64_t val);
11356 public static native void ErroneousField_set_tlv_fieldnum(long this_ptr, long val);
11357 // struct LDKCOption_CVec_u8ZZ ErroneousField_get_suggested_value(const struct LDKErroneousField *NONNULL_PTR this_ptr);
11358 public static native long ErroneousField_get_suggested_value(long this_ptr);
11359 // void ErroneousField_set_suggested_value(struct LDKErroneousField *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
11360 public static native void ErroneousField_set_suggested_value(long this_ptr, long val);
11361 // MUST_USE_RES struct LDKErroneousField ErroneousField_new(uint64_t tlv_fieldnum_arg, struct LDKCOption_CVec_u8ZZ suggested_value_arg);
11362 public static native long ErroneousField_new(long tlv_fieldnum_arg, long suggested_value_arg);
11363 // uint64_t ErroneousField_clone_ptr(LDKErroneousField *NONNULL_PTR arg);
11364 public static native long ErroneousField_clone_ptr(long arg);
11365 // struct LDKErroneousField ErroneousField_clone(const struct LDKErroneousField *NONNULL_PTR orig);
11366 public static native long ErroneousField_clone(long orig);
11367 // MUST_USE_RES struct LDKInvoiceError InvoiceError_from_string(struct LDKStr s);
11368 public static native long InvoiceError_from_string(String s);
11369 // struct LDKCVec_u8Z InvoiceError_write(const struct LDKInvoiceError *NONNULL_PTR obj);
11370 public static native byte[] InvoiceError_write(long obj);
11371 // struct LDKCResult_InvoiceErrorDecodeErrorZ InvoiceError_read(struct LDKu8slice ser);
11372 public static native long InvoiceError_read(byte[] ser);
11373 // void UnsignedInvoiceRequest_free(struct LDKUnsignedInvoiceRequest this_obj);
11374 public static native void UnsignedInvoiceRequest_free(long this_obj);
11375 // MUST_USE_RES struct LDKTaggedHash UnsignedInvoiceRequest_tagged_hash(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11376 public static native long UnsignedInvoiceRequest_tagged_hash(long this_arg);
11377 // void InvoiceRequest_free(struct LDKInvoiceRequest this_obj);
11378 public static native void InvoiceRequest_free(long this_obj);
11379 // uint64_t InvoiceRequest_clone_ptr(LDKInvoiceRequest *NONNULL_PTR arg);
11380 public static native long InvoiceRequest_clone_ptr(long arg);
11381 // struct LDKInvoiceRequest InvoiceRequest_clone(const struct LDKInvoiceRequest *NONNULL_PTR orig);
11382 public static native long InvoiceRequest_clone(long orig);
11383 // void VerifiedInvoiceRequest_free(struct LDKVerifiedInvoiceRequest this_obj);
11384 public static native void VerifiedInvoiceRequest_free(long this_obj);
11385 // struct LDKCOption_SecretKeyZ VerifiedInvoiceRequest_get_keys(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_ptr);
11386 public static native long VerifiedInvoiceRequest_get_keys(long this_ptr);
11387 // void VerifiedInvoiceRequest_set_keys(struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_ptr, struct LDKCOption_SecretKeyZ val);
11388 public static native void VerifiedInvoiceRequest_set_keys(long this_ptr, long val);
11389 // uint64_t VerifiedInvoiceRequest_clone_ptr(LDKVerifiedInvoiceRequest *NONNULL_PTR arg);
11390 public static native long VerifiedInvoiceRequest_clone_ptr(long arg);
11391 // struct LDKVerifiedInvoiceRequest VerifiedInvoiceRequest_clone(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR orig);
11392 public static native long VerifiedInvoiceRequest_clone(long orig);
11393 // MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ UnsignedInvoiceRequest_chains(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11394 public static native byte[][] UnsignedInvoiceRequest_chains(long this_arg);
11395 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ UnsignedInvoiceRequest_metadata(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11396 public static native long UnsignedInvoiceRequest_metadata(long this_arg);
11397 // MUST_USE_RES struct LDKAmount UnsignedInvoiceRequest_amount(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11398 public static native long UnsignedInvoiceRequest_amount(long this_arg);
11399 // MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_description(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11400 public static native long UnsignedInvoiceRequest_description(long this_arg);
11401 // MUST_USE_RES struct LDKOfferFeatures UnsignedInvoiceRequest_offer_features(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11402 public static native long UnsignedInvoiceRequest_offer_features(long this_arg);
11403 // MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_absolute_expiry(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11404 public static native long UnsignedInvoiceRequest_absolute_expiry(long this_arg);
11405 // MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_issuer(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11406 public static native long UnsignedInvoiceRequest_issuer(long this_arg);
11407 // MUST_USE_RES struct LDKCVec_BlindedPathZ UnsignedInvoiceRequest_paths(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11408 public static native long[] UnsignedInvoiceRequest_paths(long this_arg);
11409 // MUST_USE_RES struct LDKQuantity UnsignedInvoiceRequest_supported_quantity(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11410 public static native long UnsignedInvoiceRequest_supported_quantity(long this_arg);
11411 // MUST_USE_RES struct LDKPublicKey UnsignedInvoiceRequest_signing_pubkey(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11412 public static native byte[] UnsignedInvoiceRequest_signing_pubkey(long this_arg);
11413 // MUST_USE_RES struct LDKu8slice UnsignedInvoiceRequest_payer_metadata(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11414 public static native byte[] UnsignedInvoiceRequest_payer_metadata(long this_arg);
11415 // MUST_USE_RES struct LDKThirtyTwoBytes UnsignedInvoiceRequest_chain(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11416 public static native byte[] UnsignedInvoiceRequest_chain(long this_arg);
11417 // MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_amount_msats(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11418 public static native long UnsignedInvoiceRequest_amount_msats(long this_arg);
11419 // MUST_USE_RES struct LDKInvoiceRequestFeatures UnsignedInvoiceRequest_invoice_request_features(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11420 public static native long UnsignedInvoiceRequest_invoice_request_features(long this_arg);
11421 // MUST_USE_RES struct LDKCOption_u64Z UnsignedInvoiceRequest_quantity(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11422 public static native long UnsignedInvoiceRequest_quantity(long this_arg);
11423 // MUST_USE_RES struct LDKPublicKey UnsignedInvoiceRequest_payer_id(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11424 public static native byte[] UnsignedInvoiceRequest_payer_id(long this_arg);
11425 // MUST_USE_RES struct LDKPrintableString UnsignedInvoiceRequest_payer_note(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg);
11426 public static native long UnsignedInvoiceRequest_payer_note(long this_arg);
11427 // MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ InvoiceRequest_chains(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11428 public static native byte[][] InvoiceRequest_chains(long this_arg);
11429 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ InvoiceRequest_metadata(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11430 public static native long InvoiceRequest_metadata(long this_arg);
11431 // MUST_USE_RES struct LDKAmount InvoiceRequest_amount(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11432 public static native long InvoiceRequest_amount(long this_arg);
11433 // MUST_USE_RES struct LDKPrintableString InvoiceRequest_description(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11434 public static native long InvoiceRequest_description(long this_arg);
11435 // MUST_USE_RES struct LDKOfferFeatures InvoiceRequest_offer_features(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11436 public static native long InvoiceRequest_offer_features(long this_arg);
11437 // MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_absolute_expiry(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11438 public static native long InvoiceRequest_absolute_expiry(long this_arg);
11439 // MUST_USE_RES struct LDKPrintableString InvoiceRequest_issuer(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11440 public static native long InvoiceRequest_issuer(long this_arg);
11441 // MUST_USE_RES struct LDKCVec_BlindedPathZ InvoiceRequest_paths(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11442 public static native long[] InvoiceRequest_paths(long this_arg);
11443 // MUST_USE_RES struct LDKQuantity InvoiceRequest_supported_quantity(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11444 public static native long InvoiceRequest_supported_quantity(long this_arg);
11445 // MUST_USE_RES struct LDKPublicKey InvoiceRequest_signing_pubkey(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11446 public static native byte[] InvoiceRequest_signing_pubkey(long this_arg);
11447 // MUST_USE_RES struct LDKu8slice InvoiceRequest_payer_metadata(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11448 public static native byte[] InvoiceRequest_payer_metadata(long this_arg);
11449 // MUST_USE_RES struct LDKThirtyTwoBytes InvoiceRequest_chain(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11450 public static native byte[] InvoiceRequest_chain(long this_arg);
11451 // MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_amount_msats(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11452 public static native long InvoiceRequest_amount_msats(long this_arg);
11453 // MUST_USE_RES struct LDKInvoiceRequestFeatures InvoiceRequest_invoice_request_features(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11454 public static native long InvoiceRequest_invoice_request_features(long this_arg);
11455 // MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_quantity(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11456 public static native long InvoiceRequest_quantity(long this_arg);
11457 // MUST_USE_RES struct LDKPublicKey InvoiceRequest_payer_id(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11458 public static native byte[] InvoiceRequest_payer_id(long this_arg);
11459 // MUST_USE_RES struct LDKPrintableString InvoiceRequest_payer_note(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11460 public static native long InvoiceRequest_payer_note(long this_arg);
11461 // MUST_USE_RES struct LDKSchnorrSignature InvoiceRequest_signature(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
11462 public static native byte[] InvoiceRequest_signature(long this_arg);
11463 // MUST_USE_RES struct LDKCResult_VerifiedInvoiceRequestNoneZ InvoiceRequest_verify(struct LDKInvoiceRequest this_arg, const struct LDKExpandedKey *NONNULL_PTR key);
11464 public static native long InvoiceRequest_verify(long this_arg, long key);
11465 // MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ VerifiedInvoiceRequest_chains(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
11466 public static native byte[][] VerifiedInvoiceRequest_chains(long this_arg);
11467 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ VerifiedInvoiceRequest_metadata(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
11468 public static native long VerifiedInvoiceRequest_metadata(long this_arg);
11469 // MUST_USE_RES struct LDKAmount VerifiedInvoiceRequest_amount(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
11470 public static native long VerifiedInvoiceRequest_amount(long this_arg);
11471 // MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_description(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
11472 public static native long VerifiedInvoiceRequest_description(long this_arg);
11473 // MUST_USE_RES struct LDKOfferFeatures VerifiedInvoiceRequest_offer_features(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
11474 public static native long VerifiedInvoiceRequest_offer_features(long this_arg);
11475 // MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_absolute_expiry(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
11476 public static native long VerifiedInvoiceRequest_absolute_expiry(long this_arg);
11477 // MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_issuer(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
11478 public static native long VerifiedInvoiceRequest_issuer(long this_arg);
11479 // MUST_USE_RES struct LDKCVec_BlindedPathZ VerifiedInvoiceRequest_paths(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
11480 public static native long[] VerifiedInvoiceRequest_paths(long this_arg);
11481 // MUST_USE_RES struct LDKQuantity VerifiedInvoiceRequest_supported_quantity(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
11482 public static native long VerifiedInvoiceRequest_supported_quantity(long this_arg);
11483 // MUST_USE_RES struct LDKPublicKey VerifiedInvoiceRequest_signing_pubkey(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
11484 public static native byte[] VerifiedInvoiceRequest_signing_pubkey(long this_arg);
11485 // MUST_USE_RES struct LDKu8slice VerifiedInvoiceRequest_payer_metadata(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
11486 public static native byte[] VerifiedInvoiceRequest_payer_metadata(long this_arg);
11487 // MUST_USE_RES struct LDKThirtyTwoBytes VerifiedInvoiceRequest_chain(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
11488 public static native byte[] VerifiedInvoiceRequest_chain(long this_arg);
11489 // MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_amount_msats(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
11490 public static native long VerifiedInvoiceRequest_amount_msats(long this_arg);
11491 // MUST_USE_RES struct LDKInvoiceRequestFeatures VerifiedInvoiceRequest_invoice_request_features(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
11492 public static native long VerifiedInvoiceRequest_invoice_request_features(long this_arg);
11493 // MUST_USE_RES struct LDKCOption_u64Z VerifiedInvoiceRequest_quantity(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
11494 public static native long VerifiedInvoiceRequest_quantity(long this_arg);
11495 // MUST_USE_RES struct LDKPublicKey VerifiedInvoiceRequest_payer_id(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
11496 public static native byte[] VerifiedInvoiceRequest_payer_id(long this_arg);
11497 // MUST_USE_RES struct LDKPrintableString VerifiedInvoiceRequest_payer_note(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg);
11498 public static native long VerifiedInvoiceRequest_payer_note(long this_arg);
11499 // struct LDKCVec_u8Z UnsignedInvoiceRequest_write(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR obj);
11500 public static native byte[] UnsignedInvoiceRequest_write(long obj);
11501 // struct LDKCVec_u8Z InvoiceRequest_write(const struct LDKInvoiceRequest *NONNULL_PTR obj);
11502 public static native byte[] InvoiceRequest_write(long obj);
11503 // void TaggedHash_free(struct LDKTaggedHash this_obj);
11504 public static native void TaggedHash_free(long this_obj);
11505 // uint64_t TaggedHash_clone_ptr(LDKTaggedHash *NONNULL_PTR arg);
11506 public static native long TaggedHash_clone_ptr(long arg);
11507 // struct LDKTaggedHash TaggedHash_clone(const struct LDKTaggedHash *NONNULL_PTR orig);
11508 public static native long TaggedHash_clone(long orig);
11509 // MUST_USE_RES const uint8_t (*TaggedHash_as_digest(const struct LDKTaggedHash *NONNULL_PTR this_arg))[32];
11510 public static native byte[] TaggedHash_as_digest(long this_arg);
11511 // MUST_USE_RES struct LDKStr TaggedHash_tag(const struct LDKTaggedHash *NONNULL_PTR this_arg);
11512 public static native String TaggedHash_tag(long this_arg);
11513 // MUST_USE_RES struct LDKThirtyTwoBytes TaggedHash_merkle_root(const struct LDKTaggedHash *NONNULL_PTR this_arg);
11514 public static native byte[] TaggedHash_merkle_root(long this_arg);
11515 // void Bolt12ParseError_free(struct LDKBolt12ParseError this_obj);
11516 public static native void Bolt12ParseError_free(long this_obj);
11517 // uint64_t Bolt12ParseError_clone_ptr(LDKBolt12ParseError *NONNULL_PTR arg);
11518 public static native long Bolt12ParseError_clone_ptr(long arg);
11519 // struct LDKBolt12ParseError Bolt12ParseError_clone(const struct LDKBolt12ParseError *NONNULL_PTR orig);
11520 public static native long Bolt12ParseError_clone(long orig);
11521 // enum LDKBolt12SemanticError Bolt12SemanticError_clone(const enum LDKBolt12SemanticError *NONNULL_PTR orig);
11522 public static native Bolt12SemanticError Bolt12SemanticError_clone(long orig);
11523 // enum LDKBolt12SemanticError Bolt12SemanticError_already_expired(void);
11524 public static native Bolt12SemanticError Bolt12SemanticError_already_expired();
11525 // enum LDKBolt12SemanticError Bolt12SemanticError_unsupported_chain(void);
11526 public static native Bolt12SemanticError Bolt12SemanticError_unsupported_chain();
11527 // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_chain(void);
11528 public static native Bolt12SemanticError Bolt12SemanticError_unexpected_chain();
11529 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_amount(void);
11530 public static native Bolt12SemanticError Bolt12SemanticError_missing_amount();
11531 // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_amount(void);
11532 public static native Bolt12SemanticError Bolt12SemanticError_invalid_amount();
11533 // enum LDKBolt12SemanticError Bolt12SemanticError_insufficient_amount(void);
11534 public static native Bolt12SemanticError Bolt12SemanticError_insufficient_amount();
11535 // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_amount(void);
11536 public static native Bolt12SemanticError Bolt12SemanticError_unexpected_amount();
11537 // enum LDKBolt12SemanticError Bolt12SemanticError_unsupported_currency(void);
11538 public static native Bolt12SemanticError Bolt12SemanticError_unsupported_currency();
11539 // enum LDKBolt12SemanticError Bolt12SemanticError_unknown_required_features(void);
11540 public static native Bolt12SemanticError Bolt12SemanticError_unknown_required_features();
11541 // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_features(void);
11542 public static native Bolt12SemanticError Bolt12SemanticError_unexpected_features();
11543 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_description(void);
11544 public static native Bolt12SemanticError Bolt12SemanticError_missing_description();
11545 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_signing_pubkey(void);
11546 public static native Bolt12SemanticError Bolt12SemanticError_missing_signing_pubkey();
11547 // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_signing_pubkey(void);
11548 public static native Bolt12SemanticError Bolt12SemanticError_invalid_signing_pubkey();
11549 // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_signing_pubkey(void);
11550 public static native Bolt12SemanticError Bolt12SemanticError_unexpected_signing_pubkey();
11551 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_quantity(void);
11552 public static native Bolt12SemanticError Bolt12SemanticError_missing_quantity();
11553 // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_quantity(void);
11554 public static native Bolt12SemanticError Bolt12SemanticError_invalid_quantity();
11555 // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_quantity(void);
11556 public static native Bolt12SemanticError Bolt12SemanticError_unexpected_quantity();
11557 // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_metadata(void);
11558 public static native Bolt12SemanticError Bolt12SemanticError_invalid_metadata();
11559 // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_metadata(void);
11560 public static native Bolt12SemanticError Bolt12SemanticError_unexpected_metadata();
11561 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_payer_metadata(void);
11562 public static native Bolt12SemanticError Bolt12SemanticError_missing_payer_metadata();
11563 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_payer_id(void);
11564 public static native Bolt12SemanticError Bolt12SemanticError_missing_payer_id();
11565 // enum LDKBolt12SemanticError Bolt12SemanticError_duplicate_payment_id(void);
11566 public static native Bolt12SemanticError Bolt12SemanticError_duplicate_payment_id();
11567 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_paths(void);
11568 public static native Bolt12SemanticError Bolt12SemanticError_missing_paths();
11569 // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_pay_info(void);
11570 public static native Bolt12SemanticError Bolt12SemanticError_invalid_pay_info();
11571 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_creation_time(void);
11572 public static native Bolt12SemanticError Bolt12SemanticError_missing_creation_time();
11573 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_payment_hash(void);
11574 public static native Bolt12SemanticError Bolt12SemanticError_missing_payment_hash();
11575 // enum LDKBolt12SemanticError Bolt12SemanticError_missing_signature(void);
11576 public static native Bolt12SemanticError Bolt12SemanticError_missing_signature();
11577 // void Refund_free(struct LDKRefund this_obj);
11578 public static native void Refund_free(long this_obj);
11579 // uint64_t Refund_clone_ptr(LDKRefund *NONNULL_PTR arg);
11580 public static native long Refund_clone_ptr(long arg);
11581 // struct LDKRefund Refund_clone(const struct LDKRefund *NONNULL_PTR orig);
11582 public static native long Refund_clone(long orig);
11583 // MUST_USE_RES struct LDKPrintableString Refund_description(const struct LDKRefund *NONNULL_PTR this_arg);
11584 public static native long Refund_description(long this_arg);
11585 // MUST_USE_RES struct LDKCOption_u64Z Refund_absolute_expiry(const struct LDKRefund *NONNULL_PTR this_arg);
11586 public static native long Refund_absolute_expiry(long this_arg);
11587 // MUST_USE_RES bool Refund_is_expired(const struct LDKRefund *NONNULL_PTR this_arg);
11588 public static native boolean Refund_is_expired(long this_arg);
11589 // MUST_USE_RES bool Refund_is_expired_no_std(const struct LDKRefund *NONNULL_PTR this_arg, uint64_t duration_since_epoch);
11590 public static native boolean Refund_is_expired_no_std(long this_arg, long duration_since_epoch);
11591 // MUST_USE_RES struct LDKPrintableString Refund_issuer(const struct LDKRefund *NONNULL_PTR this_arg);
11592 public static native long Refund_issuer(long this_arg);
11593 // MUST_USE_RES struct LDKCVec_BlindedPathZ Refund_paths(const struct LDKRefund *NONNULL_PTR this_arg);
11594 public static native long[] Refund_paths(long this_arg);
11595 // MUST_USE_RES struct LDKu8slice Refund_payer_metadata(const struct LDKRefund *NONNULL_PTR this_arg);
11596 public static native byte[] Refund_payer_metadata(long this_arg);
11597 // MUST_USE_RES struct LDKThirtyTwoBytes Refund_chain(const struct LDKRefund *NONNULL_PTR this_arg);
11598 public static native byte[] Refund_chain(long this_arg);
11599 // MUST_USE_RES uint64_t Refund_amount_msats(const struct LDKRefund *NONNULL_PTR this_arg);
11600 public static native long Refund_amount_msats(long this_arg);
11601 // MUST_USE_RES struct LDKInvoiceRequestFeatures Refund_features(const struct LDKRefund *NONNULL_PTR this_arg);
11602 public static native long Refund_features(long this_arg);
11603 // MUST_USE_RES struct LDKCOption_u64Z Refund_quantity(const struct LDKRefund *NONNULL_PTR this_arg);
11604 public static native long Refund_quantity(long this_arg);
11605 // MUST_USE_RES struct LDKPublicKey Refund_payer_id(const struct LDKRefund *NONNULL_PTR this_arg);
11606 public static native byte[] Refund_payer_id(long this_arg);
11607 // MUST_USE_RES struct LDKPrintableString Refund_payer_note(const struct LDKRefund *NONNULL_PTR this_arg);
11608 public static native long Refund_payer_note(long this_arg);
11609 // struct LDKCVec_u8Z Refund_write(const struct LDKRefund *NONNULL_PTR obj);
11610 public static native byte[] Refund_write(long obj);
11611 // struct LDKCResult_RefundBolt12ParseErrorZ Refund_from_str(struct LDKStr s);
11612 public static native long Refund_from_str(String s);
11613 // enum LDKUtxoLookupError UtxoLookupError_clone(const enum LDKUtxoLookupError *NONNULL_PTR orig);
11614 public static native UtxoLookupError UtxoLookupError_clone(long orig);
11615 // enum LDKUtxoLookupError UtxoLookupError_unknown_chain(void);
11616 public static native UtxoLookupError UtxoLookupError_unknown_chain();
11617 // enum LDKUtxoLookupError UtxoLookupError_unknown_tx(void);
11618 public static native UtxoLookupError UtxoLookupError_unknown_tx();
11619 // void UtxoResult_free(struct LDKUtxoResult this_ptr);
11620 public static native void UtxoResult_free(long this_ptr);
11621 // uint64_t UtxoResult_clone_ptr(LDKUtxoResult *NONNULL_PTR arg);
11622 public static native long UtxoResult_clone_ptr(long arg);
11623 // struct LDKUtxoResult UtxoResult_clone(const struct LDKUtxoResult *NONNULL_PTR orig);
11624 public static native long UtxoResult_clone(long orig);
11625 // struct LDKUtxoResult UtxoResult_sync(struct LDKCResult_TxOutUtxoLookupErrorZ a);
11626 public static native long UtxoResult_sync(long a);
11627 // struct LDKUtxoResult UtxoResult_async(struct LDKUtxoFuture a);
11628 public static native long UtxoResult_async(long a);
11629 // void UtxoLookup_free(struct LDKUtxoLookup this_ptr);
11630 public static native void UtxoLookup_free(long this_ptr);
11631 // void UtxoFuture_free(struct LDKUtxoFuture this_obj);
11632 public static native void UtxoFuture_free(long this_obj);
11633 // uint64_t UtxoFuture_clone_ptr(LDKUtxoFuture *NONNULL_PTR arg);
11634 public static native long UtxoFuture_clone_ptr(long arg);
11635 // struct LDKUtxoFuture UtxoFuture_clone(const struct LDKUtxoFuture *NONNULL_PTR orig);
11636 public static native long UtxoFuture_clone(long orig);
11637 // MUST_USE_RES struct LDKUtxoFuture UtxoFuture_new(void);
11638 public static native long UtxoFuture_new();
11639 // void UtxoFuture_resolve_without_forwarding(const struct LDKUtxoFuture *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR graph, struct LDKCResult_TxOutUtxoLookupErrorZ result);
11640 public static native void UtxoFuture_resolve_without_forwarding(long this_arg, long graph, long result);
11641 // 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);
11642 public static native void UtxoFuture_resolve(long this_arg, long graph, long gossip, long result);
11643 // void NodeId_free(struct LDKNodeId this_obj);
11644 public static native void NodeId_free(long this_obj);
11645 // uint64_t NodeId_clone_ptr(LDKNodeId *NONNULL_PTR arg);
11646 public static native long NodeId_clone_ptr(long arg);
11647 // struct LDKNodeId NodeId_clone(const struct LDKNodeId *NONNULL_PTR orig);
11648 public static native long NodeId_clone(long orig);
11649 // MUST_USE_RES struct LDKNodeId NodeId_from_pubkey(struct LDKPublicKey pubkey);
11650 public static native long NodeId_from_pubkey(byte[] pubkey);
11651 // MUST_USE_RES struct LDKu8slice NodeId_as_slice(const struct LDKNodeId *NONNULL_PTR this_arg);
11652 public static native byte[] NodeId_as_slice(long this_arg);
11653 // MUST_USE_RES const uint8_t (*NodeId_as_array(const struct LDKNodeId *NONNULL_PTR this_arg))[33];
11654 public static native byte[] NodeId_as_array(long this_arg);
11655 // MUST_USE_RES struct LDKCResult_PublicKeySecp256k1ErrorZ NodeId_as_pubkey(const struct LDKNodeId *NONNULL_PTR this_arg);
11656 public static native long NodeId_as_pubkey(long this_arg);
11657 // uint64_t NodeId_hash(const struct LDKNodeId *NONNULL_PTR o);
11658 public static native long NodeId_hash(long o);
11659 // struct LDKCVec_u8Z NodeId_write(const struct LDKNodeId *NONNULL_PTR obj);
11660 public static native byte[] NodeId_write(long obj);
11661 // struct LDKCResult_NodeIdDecodeErrorZ NodeId_read(struct LDKu8slice ser);
11662 public static native long NodeId_read(byte[] ser);
11663 // void NetworkGraph_free(struct LDKNetworkGraph this_obj);
11664 public static native void NetworkGraph_free(long this_obj);
11665 // void ReadOnlyNetworkGraph_free(struct LDKReadOnlyNetworkGraph this_obj);
11666 public static native void ReadOnlyNetworkGraph_free(long this_obj);
11667 // void NetworkUpdate_free(struct LDKNetworkUpdate this_ptr);
11668 public static native void NetworkUpdate_free(long this_ptr);
11669 // uint64_t NetworkUpdate_clone_ptr(LDKNetworkUpdate *NONNULL_PTR arg);
11670 public static native long NetworkUpdate_clone_ptr(long arg);
11671 // struct LDKNetworkUpdate NetworkUpdate_clone(const struct LDKNetworkUpdate *NONNULL_PTR orig);
11672 public static native long NetworkUpdate_clone(long orig);
11673 // struct LDKNetworkUpdate NetworkUpdate_channel_update_message(struct LDKChannelUpdate msg);
11674 public static native long NetworkUpdate_channel_update_message(long msg);
11675 // struct LDKNetworkUpdate NetworkUpdate_channel_failure(uint64_t short_channel_id, bool is_permanent);
11676 public static native long NetworkUpdate_channel_failure(long short_channel_id, boolean is_permanent);
11677 // struct LDKNetworkUpdate NetworkUpdate_node_failure(struct LDKPublicKey node_id, bool is_permanent);
11678 public static native long NetworkUpdate_node_failure(byte[] node_id, boolean is_permanent);
11679 // bool NetworkUpdate_eq(const struct LDKNetworkUpdate *NONNULL_PTR a, const struct LDKNetworkUpdate *NONNULL_PTR b);
11680 public static native boolean NetworkUpdate_eq(long a, long b);
11681 // struct LDKCVec_u8Z NetworkUpdate_write(const struct LDKNetworkUpdate *NONNULL_PTR obj);
11682 public static native byte[] NetworkUpdate_write(long obj);
11683 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ NetworkUpdate_read(struct LDKu8slice ser);
11684 public static native long NetworkUpdate_read(byte[] ser);
11685 // void P2PGossipSync_free(struct LDKP2PGossipSync this_obj);
11686 public static native void P2PGossipSync_free(long this_obj);
11687 // MUST_USE_RES struct LDKP2PGossipSync P2PGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCOption_UtxoLookupZ utxo_lookup, struct LDKLogger logger);
11688 public static native long P2PGossipSync_new(long network_graph, long utxo_lookup, long logger);
11689 // void P2PGossipSync_add_utxo_lookup(const struct LDKP2PGossipSync *NONNULL_PTR this_arg, struct LDKCOption_UtxoLookupZ utxo_lookup);
11690 public static native void P2PGossipSync_add_utxo_lookup(long this_arg, long utxo_lookup);
11691 // void NetworkGraph_handle_network_update(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNetworkUpdate *NONNULL_PTR network_update);
11692 public static native void NetworkGraph_handle_network_update(long this_arg, long network_update);
11693 // MUST_USE_RES struct LDKThirtyTwoBytes NetworkGraph_get_chain_hash(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
11694 public static native byte[] NetworkGraph_get_chain_hash(long this_arg);
11695 // struct LDKCResult_NoneLightningErrorZ verify_node_announcement(const struct LDKNodeAnnouncement *NONNULL_PTR msg);
11696 public static native long verify_node_announcement(long msg);
11697 // struct LDKCResult_NoneLightningErrorZ verify_channel_announcement(const struct LDKChannelAnnouncement *NONNULL_PTR msg);
11698 public static native long verify_channel_announcement(long msg);
11699 // struct LDKRoutingMessageHandler P2PGossipSync_as_RoutingMessageHandler(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
11700 public static native long P2PGossipSync_as_RoutingMessageHandler(long this_arg);
11701 // struct LDKMessageSendEventsProvider P2PGossipSync_as_MessageSendEventsProvider(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
11702 public static native long P2PGossipSync_as_MessageSendEventsProvider(long this_arg);
11703 // void ChannelUpdateInfo_free(struct LDKChannelUpdateInfo this_obj);
11704 public static native void ChannelUpdateInfo_free(long this_obj);
11705 // uint32_t ChannelUpdateInfo_get_last_update(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
11706 public static native int ChannelUpdateInfo_get_last_update(long this_ptr);
11707 // void ChannelUpdateInfo_set_last_update(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint32_t val);
11708 public static native void ChannelUpdateInfo_set_last_update(long this_ptr, int val);
11709 // bool ChannelUpdateInfo_get_enabled(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
11710 public static native boolean ChannelUpdateInfo_get_enabled(long this_ptr);
11711 // void ChannelUpdateInfo_set_enabled(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, bool val);
11712 public static native void ChannelUpdateInfo_set_enabled(long this_ptr, boolean val);
11713 // uint16_t ChannelUpdateInfo_get_cltv_expiry_delta(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
11714 public static native short ChannelUpdateInfo_get_cltv_expiry_delta(long this_ptr);
11715 // void ChannelUpdateInfo_set_cltv_expiry_delta(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint16_t val);
11716 public static native void ChannelUpdateInfo_set_cltv_expiry_delta(long this_ptr, short val);
11717 // uint64_t ChannelUpdateInfo_get_htlc_minimum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
11718 public static native long ChannelUpdateInfo_get_htlc_minimum_msat(long this_ptr);
11719 // void ChannelUpdateInfo_set_htlc_minimum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
11720 public static native void ChannelUpdateInfo_set_htlc_minimum_msat(long this_ptr, long val);
11721 // uint64_t ChannelUpdateInfo_get_htlc_maximum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
11722 public static native long ChannelUpdateInfo_get_htlc_maximum_msat(long this_ptr);
11723 // void ChannelUpdateInfo_set_htlc_maximum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
11724 public static native void ChannelUpdateInfo_set_htlc_maximum_msat(long this_ptr, long val);
11725 // struct LDKRoutingFees ChannelUpdateInfo_get_fees(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
11726 public static native long ChannelUpdateInfo_get_fees(long this_ptr);
11727 // void ChannelUpdateInfo_set_fees(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
11728 public static native void ChannelUpdateInfo_set_fees(long this_ptr, long val);
11729 // struct LDKChannelUpdate ChannelUpdateInfo_get_last_update_message(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
11730 public static native long ChannelUpdateInfo_get_last_update_message(long this_ptr);
11731 // void ChannelUpdateInfo_set_last_update_message(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdate val);
11732 public static native void ChannelUpdateInfo_set_last_update_message(long this_ptr, long val);
11733 // 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);
11734 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);
11735 // uint64_t ChannelUpdateInfo_clone_ptr(LDKChannelUpdateInfo *NONNULL_PTR arg);
11736 public static native long ChannelUpdateInfo_clone_ptr(long arg);
11737 // struct LDKChannelUpdateInfo ChannelUpdateInfo_clone(const struct LDKChannelUpdateInfo *NONNULL_PTR orig);
11738 public static native long ChannelUpdateInfo_clone(long orig);
11739 // bool ChannelUpdateInfo_eq(const struct LDKChannelUpdateInfo *NONNULL_PTR a, const struct LDKChannelUpdateInfo *NONNULL_PTR b);
11740 public static native boolean ChannelUpdateInfo_eq(long a, long b);
11741 // struct LDKCVec_u8Z ChannelUpdateInfo_write(const struct LDKChannelUpdateInfo *NONNULL_PTR obj);
11742 public static native byte[] ChannelUpdateInfo_write(long obj);
11743 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ ChannelUpdateInfo_read(struct LDKu8slice ser);
11744 public static native long ChannelUpdateInfo_read(byte[] ser);
11745 // void ChannelInfo_free(struct LDKChannelInfo this_obj);
11746 public static native void ChannelInfo_free(long this_obj);
11747 // struct LDKChannelFeatures ChannelInfo_get_features(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
11748 public static native long ChannelInfo_get_features(long this_ptr);
11749 // void ChannelInfo_set_features(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
11750 public static native void ChannelInfo_set_features(long this_ptr, long val);
11751 // struct LDKNodeId ChannelInfo_get_node_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
11752 public static native long ChannelInfo_get_node_one(long this_ptr);
11753 // void ChannelInfo_set_node_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
11754 public static native void ChannelInfo_set_node_one(long this_ptr, long val);
11755 // struct LDKChannelUpdateInfo ChannelInfo_get_one_to_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
11756 public static native long ChannelInfo_get_one_to_two(long this_ptr);
11757 // void ChannelInfo_set_one_to_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
11758 public static native void ChannelInfo_set_one_to_two(long this_ptr, long val);
11759 // struct LDKNodeId ChannelInfo_get_node_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
11760 public static native long ChannelInfo_get_node_two(long this_ptr);
11761 // void ChannelInfo_set_node_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
11762 public static native void ChannelInfo_set_node_two(long this_ptr, long val);
11763 // struct LDKChannelUpdateInfo ChannelInfo_get_two_to_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
11764 public static native long ChannelInfo_get_two_to_one(long this_ptr);
11765 // void ChannelInfo_set_two_to_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
11766 public static native void ChannelInfo_set_two_to_one(long this_ptr, long val);
11767 // struct LDKCOption_u64Z ChannelInfo_get_capacity_sats(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
11768 public static native long ChannelInfo_get_capacity_sats(long this_ptr);
11769 // void ChannelInfo_set_capacity_sats(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
11770 public static native void ChannelInfo_set_capacity_sats(long this_ptr, long val);
11771 // struct LDKChannelAnnouncement ChannelInfo_get_announcement_message(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
11772 public static native long ChannelInfo_get_announcement_message(long this_ptr);
11773 // void ChannelInfo_set_announcement_message(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelAnnouncement val);
11774 public static native void ChannelInfo_set_announcement_message(long this_ptr, long val);
11775 // uint64_t ChannelInfo_clone_ptr(LDKChannelInfo *NONNULL_PTR arg);
11776 public static native long ChannelInfo_clone_ptr(long arg);
11777 // struct LDKChannelInfo ChannelInfo_clone(const struct LDKChannelInfo *NONNULL_PTR orig);
11778 public static native long ChannelInfo_clone(long orig);
11779 // bool ChannelInfo_eq(const struct LDKChannelInfo *NONNULL_PTR a, const struct LDKChannelInfo *NONNULL_PTR b);
11780 public static native boolean ChannelInfo_eq(long a, long b);
11781 // MUST_USE_RES struct LDKChannelUpdateInfo ChannelInfo_get_directional_info(const struct LDKChannelInfo *NONNULL_PTR this_arg, uint8_t channel_flags);
11782 public static native long ChannelInfo_get_directional_info(long this_arg, byte channel_flags);
11783 // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj);
11784 public static native byte[] ChannelInfo_write(long obj);
11785 // struct LDKCResult_ChannelInfoDecodeErrorZ ChannelInfo_read(struct LDKu8slice ser);
11786 public static native long ChannelInfo_read(byte[] ser);
11787 // void DirectedChannelInfo_free(struct LDKDirectedChannelInfo this_obj);
11788 public static native void DirectedChannelInfo_free(long this_obj);
11789 // uint64_t DirectedChannelInfo_clone_ptr(LDKDirectedChannelInfo *NONNULL_PTR arg);
11790 public static native long DirectedChannelInfo_clone_ptr(long arg);
11791 // struct LDKDirectedChannelInfo DirectedChannelInfo_clone(const struct LDKDirectedChannelInfo *NONNULL_PTR orig);
11792 public static native long DirectedChannelInfo_clone(long orig);
11793 // MUST_USE_RES struct LDKChannelInfo DirectedChannelInfo_channel(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
11794 public static native long DirectedChannelInfo_channel(long this_arg);
11795 // MUST_USE_RES struct LDKEffectiveCapacity DirectedChannelInfo_effective_capacity(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
11796 public static native long DirectedChannelInfo_effective_capacity(long this_arg);
11797 // void EffectiveCapacity_free(struct LDKEffectiveCapacity this_ptr);
11798 public static native void EffectiveCapacity_free(long this_ptr);
11799 // uint64_t EffectiveCapacity_clone_ptr(LDKEffectiveCapacity *NONNULL_PTR arg);
11800 public static native long EffectiveCapacity_clone_ptr(long arg);
11801 // struct LDKEffectiveCapacity EffectiveCapacity_clone(const struct LDKEffectiveCapacity *NONNULL_PTR orig);
11802 public static native long EffectiveCapacity_clone(long orig);
11803 // struct LDKEffectiveCapacity EffectiveCapacity_exact_liquidity(uint64_t liquidity_msat);
11804 public static native long EffectiveCapacity_exact_liquidity(long liquidity_msat);
11805 // struct LDKEffectiveCapacity EffectiveCapacity_advertised_max_htlc(uint64_t amount_msat);
11806 public static native long EffectiveCapacity_advertised_max_htlc(long amount_msat);
11807 // struct LDKEffectiveCapacity EffectiveCapacity_total(uint64_t capacity_msat, uint64_t htlc_maximum_msat);
11808 public static native long EffectiveCapacity_total(long capacity_msat, long htlc_maximum_msat);
11809 // struct LDKEffectiveCapacity EffectiveCapacity_infinite(void);
11810 public static native long EffectiveCapacity_infinite();
11811 // struct LDKEffectiveCapacity EffectiveCapacity_hint_max_htlc(uint64_t amount_msat);
11812 public static native long EffectiveCapacity_hint_max_htlc(long amount_msat);
11813 // struct LDKEffectiveCapacity EffectiveCapacity_unknown(void);
11814 public static native long EffectiveCapacity_unknown();
11815 // MUST_USE_RES uint64_t EffectiveCapacity_as_msat(const struct LDKEffectiveCapacity *NONNULL_PTR this_arg);
11816 public static native long EffectiveCapacity_as_msat(long this_arg);
11817 // void RoutingFees_free(struct LDKRoutingFees this_obj);
11818 public static native void RoutingFees_free(long this_obj);
11819 // uint32_t RoutingFees_get_base_msat(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
11820 public static native int RoutingFees_get_base_msat(long this_ptr);
11821 // void RoutingFees_set_base_msat(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
11822 public static native void RoutingFees_set_base_msat(long this_ptr, int val);
11823 // uint32_t RoutingFees_get_proportional_millionths(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
11824 public static native int RoutingFees_get_proportional_millionths(long this_ptr);
11825 // void RoutingFees_set_proportional_millionths(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
11826 public static native void RoutingFees_set_proportional_millionths(long this_ptr, int val);
11827 // MUST_USE_RES struct LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg);
11828 public static native long RoutingFees_new(int base_msat_arg, int proportional_millionths_arg);
11829 // bool RoutingFees_eq(const struct LDKRoutingFees *NONNULL_PTR a, const struct LDKRoutingFees *NONNULL_PTR b);
11830 public static native boolean RoutingFees_eq(long a, long b);
11831 // uint64_t RoutingFees_clone_ptr(LDKRoutingFees *NONNULL_PTR arg);
11832 public static native long RoutingFees_clone_ptr(long arg);
11833 // struct LDKRoutingFees RoutingFees_clone(const struct LDKRoutingFees *NONNULL_PTR orig);
11834 public static native long RoutingFees_clone(long orig);
11835 // uint64_t RoutingFees_hash(const struct LDKRoutingFees *NONNULL_PTR o);
11836 public static native long RoutingFees_hash(long o);
11837 // struct LDKCVec_u8Z RoutingFees_write(const struct LDKRoutingFees *NONNULL_PTR obj);
11838 public static native byte[] RoutingFees_write(long obj);
11839 // struct LDKCResult_RoutingFeesDecodeErrorZ RoutingFees_read(struct LDKu8slice ser);
11840 public static native long RoutingFees_read(byte[] ser);
11841 // void NodeAnnouncementInfo_free(struct LDKNodeAnnouncementInfo this_obj);
11842 public static native void NodeAnnouncementInfo_free(long this_obj);
11843 // struct LDKNodeFeatures NodeAnnouncementInfo_get_features(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
11844 public static native long NodeAnnouncementInfo_get_features(long this_ptr);
11845 // void NodeAnnouncementInfo_set_features(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
11846 public static native void NodeAnnouncementInfo_set_features(long this_ptr, long val);
11847 // uint32_t NodeAnnouncementInfo_get_last_update(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
11848 public static native int NodeAnnouncementInfo_get_last_update(long this_ptr);
11849 // void NodeAnnouncementInfo_set_last_update(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, uint32_t val);
11850 public static native void NodeAnnouncementInfo_set_last_update(long this_ptr, int val);
11851 // const uint8_t (*NodeAnnouncementInfo_get_rgb(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[3];
11852 public static native byte[] NodeAnnouncementInfo_get_rgb(long this_ptr);
11853 // void NodeAnnouncementInfo_set_rgb(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
11854 public static native void NodeAnnouncementInfo_set_rgb(long this_ptr, byte[] val);
11855 // struct LDKNodeAlias NodeAnnouncementInfo_get_alias(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
11856 public static native long NodeAnnouncementInfo_get_alias(long this_ptr);
11857 // void NodeAnnouncementInfo_set_alias(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAlias val);
11858 public static native void NodeAnnouncementInfo_set_alias(long this_ptr, long val);
11859 // struct LDKNodeAnnouncement NodeAnnouncementInfo_get_announcement_message(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
11860 public static native long NodeAnnouncementInfo_get_announcement_message(long this_ptr);
11861 // void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncement val);
11862 public static native void NodeAnnouncementInfo_set_announcement_message(long this_ptr, long val);
11863 // 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);
11864 public static native long NodeAnnouncementInfo_new(long features_arg, int last_update_arg, byte[] rgb_arg, long alias_arg, long announcement_message_arg);
11865 // uint64_t NodeAnnouncementInfo_clone_ptr(LDKNodeAnnouncementInfo *NONNULL_PTR arg);
11866 public static native long NodeAnnouncementInfo_clone_ptr(long arg);
11867 // struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_clone(const struct LDKNodeAnnouncementInfo *NONNULL_PTR orig);
11868 public static native long NodeAnnouncementInfo_clone(long orig);
11869 // bool NodeAnnouncementInfo_eq(const struct LDKNodeAnnouncementInfo *NONNULL_PTR a, const struct LDKNodeAnnouncementInfo *NONNULL_PTR b);
11870 public static native boolean NodeAnnouncementInfo_eq(long a, long b);
11871 // MUST_USE_RES struct LDKCVec_SocketAddressZ NodeAnnouncementInfo_addresses(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_arg);
11872 public static native long[] NodeAnnouncementInfo_addresses(long this_arg);
11873 // struct LDKCVec_u8Z NodeAnnouncementInfo_write(const struct LDKNodeAnnouncementInfo *NONNULL_PTR obj);
11874 public static native byte[] NodeAnnouncementInfo_write(long obj);
11875 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ NodeAnnouncementInfo_read(struct LDKu8slice ser);
11876 public static native long NodeAnnouncementInfo_read(byte[] ser);
11877 // void NodeAlias_free(struct LDKNodeAlias this_obj);
11878 public static native void NodeAlias_free(long this_obj);
11879 // const uint8_t (*NodeAlias_get_a(const struct LDKNodeAlias *NONNULL_PTR this_ptr))[32];
11880 public static native byte[] NodeAlias_get_a(long this_ptr);
11881 // void NodeAlias_set_a(struct LDKNodeAlias *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
11882 public static native void NodeAlias_set_a(long this_ptr, byte[] val);
11883 // MUST_USE_RES struct LDKNodeAlias NodeAlias_new(struct LDKThirtyTwoBytes a_arg);
11884 public static native long NodeAlias_new(byte[] a_arg);
11885 // uint64_t NodeAlias_clone_ptr(LDKNodeAlias *NONNULL_PTR arg);
11886 public static native long NodeAlias_clone_ptr(long arg);
11887 // struct LDKNodeAlias NodeAlias_clone(const struct LDKNodeAlias *NONNULL_PTR orig);
11888 public static native long NodeAlias_clone(long orig);
11889 // uint64_t NodeAlias_hash(const struct LDKNodeAlias *NONNULL_PTR o);
11890 public static native long NodeAlias_hash(long o);
11891 // bool NodeAlias_eq(const struct LDKNodeAlias *NONNULL_PTR a, const struct LDKNodeAlias *NONNULL_PTR b);
11892 public static native boolean NodeAlias_eq(long a, long b);
11893 // struct LDKCVec_u8Z NodeAlias_write(const struct LDKNodeAlias *NONNULL_PTR obj);
11894 public static native byte[] NodeAlias_write(long obj);
11895 // struct LDKCResult_NodeAliasDecodeErrorZ NodeAlias_read(struct LDKu8slice ser);
11896 public static native long NodeAlias_read(byte[] ser);
11897 // void NodeInfo_free(struct LDKNodeInfo this_obj);
11898 public static native void NodeInfo_free(long this_obj);
11899 // struct LDKCVec_u64Z NodeInfo_get_channels(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
11900 public static native long[] NodeInfo_get_channels(long this_ptr);
11901 // void NodeInfo_set_channels(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
11902 public static native void NodeInfo_set_channels(long this_ptr, long[] val);
11903 // struct LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
11904 public static native long NodeInfo_get_announcement_info(long this_ptr);
11905 // void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncementInfo val);
11906 public static native void NodeInfo_set_announcement_info(long this_ptr, long val);
11907 // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKNodeAnnouncementInfo announcement_info_arg);
11908 public static native long NodeInfo_new(long[] channels_arg, long announcement_info_arg);
11909 // uint64_t NodeInfo_clone_ptr(LDKNodeInfo *NONNULL_PTR arg);
11910 public static native long NodeInfo_clone_ptr(long arg);
11911 // struct LDKNodeInfo NodeInfo_clone(const struct LDKNodeInfo *NONNULL_PTR orig);
11912 public static native long NodeInfo_clone(long orig);
11913 // bool NodeInfo_eq(const struct LDKNodeInfo *NONNULL_PTR a, const struct LDKNodeInfo *NONNULL_PTR b);
11914 public static native boolean NodeInfo_eq(long a, long b);
11915 // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj);
11916 public static native byte[] NodeInfo_write(long obj);
11917 // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser);
11918 public static native long NodeInfo_read(byte[] ser);
11919 // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj);
11920 public static native byte[] NetworkGraph_write(long obj);
11921 // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser, struct LDKLogger arg);
11922 public static native long NetworkGraph_read(byte[] ser, long arg);
11923 // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(enum LDKNetwork network, struct LDKLogger logger);
11924 public static native long NetworkGraph_new(Network network, long logger);
11925 // MUST_USE_RES struct LDKReadOnlyNetworkGraph NetworkGraph_read_only(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
11926 public static native long NetworkGraph_read_only(long this_arg);
11927 // MUST_USE_RES struct LDKCOption_u32Z NetworkGraph_get_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
11928 public static native long NetworkGraph_get_last_rapid_gossip_sync_timestamp(long this_arg);
11929 // void NetworkGraph_set_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint32_t last_rapid_gossip_sync_timestamp);
11930 public static native void NetworkGraph_set_last_rapid_gossip_sync_timestamp(long this_arg, int last_rapid_gossip_sync_timestamp);
11931 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg);
11932 public static native long NetworkGraph_update_node_from_announcement(long this_arg, long msg);
11933 // 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);
11934 public static native long NetworkGraph_update_node_from_unsigned_announcement(long this_arg, long msg);
11935 // 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);
11936 public static native long NetworkGraph_update_channel_from_announcement(long this_arg, long msg, long utxo_lookup);
11937 // 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);
11938 public static native long NetworkGraph_update_channel_from_announcement_no_lookup(long this_arg, long msg);
11939 // 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);
11940 public static native long NetworkGraph_update_channel_from_unsigned_announcement(long this_arg, long msg, long utxo_lookup);
11941 // 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);
11942 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);
11943 // void NetworkGraph_channel_failed_permanent(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id);
11944 public static native void NetworkGraph_channel_failed_permanent(long this_arg, long short_channel_id);
11945 // void NetworkGraph_node_failed_permanent(const struct LDKNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey node_id);
11946 public static native void NetworkGraph_node_failed_permanent(long this_arg, byte[] node_id);
11947 // void NetworkGraph_remove_stale_channels_and_tracking(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
11948 public static native void NetworkGraph_remove_stale_channels_and_tracking(long this_arg);
11949 // void NetworkGraph_remove_stale_channels_and_tracking_with_time(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t current_time_unix);
11950 public static native void NetworkGraph_remove_stale_channels_and_tracking_with_time(long this_arg, long current_time_unix);
11951 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
11952 public static native long NetworkGraph_update_channel(long this_arg, long msg);
11953 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg);
11954 public static native long NetworkGraph_update_channel_unsigned(long this_arg, long msg);
11955 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_verify_channel_update(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
11956 public static native long NetworkGraph_verify_channel_update(long this_arg, long msg);
11957 // MUST_USE_RES struct LDKChannelInfo ReadOnlyNetworkGraph_channel(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id);
11958 public static native long ReadOnlyNetworkGraph_channel(long this_arg, long short_channel_id);
11959 // MUST_USE_RES struct LDKCVec_u64Z ReadOnlyNetworkGraph_list_channels(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg);
11960 public static native long[] ReadOnlyNetworkGraph_list_channels(long this_arg);
11961 // MUST_USE_RES struct LDKNodeInfo ReadOnlyNetworkGraph_node(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
11962 public static native long ReadOnlyNetworkGraph_node(long this_arg, long node_id);
11963 // MUST_USE_RES struct LDKCVec_NodeIdZ ReadOnlyNetworkGraph_list_nodes(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg);
11964 public static native long[] ReadOnlyNetworkGraph_list_nodes(long this_arg);
11965 // MUST_USE_RES struct LDKCOption_CVec_SocketAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey);
11966 public static native long ReadOnlyNetworkGraph_get_addresses(long this_arg, byte[] pubkey);
11967 // void DefaultRouter_free(struct LDKDefaultRouter this_obj);
11968 public static native void DefaultRouter_free(long this_obj);
11969 // 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);
11970 public static native long DefaultRouter_new(long network_graph, long logger, long entropy_source, long scorer, long score_params);
11971 // struct LDKRouter DefaultRouter_as_Router(const struct LDKDefaultRouter *NONNULL_PTR this_arg);
11972 public static native long DefaultRouter_as_Router(long this_arg);
11973 // struct LDKMessageRouter DefaultRouter_as_MessageRouter(const struct LDKDefaultRouter *NONNULL_PTR this_arg);
11974 public static native long DefaultRouter_as_MessageRouter(long this_arg);
11975 // void Router_free(struct LDKRouter this_ptr);
11976 public static native void Router_free(long this_ptr);
11977 // void ScorerAccountingForInFlightHtlcs_free(struct LDKScorerAccountingForInFlightHtlcs this_obj);
11978 public static native void ScorerAccountingForInFlightHtlcs_free(long this_obj);
11979 // MUST_USE_RES struct LDKScorerAccountingForInFlightHtlcs ScorerAccountingForInFlightHtlcs_new(struct LDKScoreLookUp scorer, const struct LDKInFlightHtlcs *NONNULL_PTR inflight_htlcs);
11980 public static native long ScorerAccountingForInFlightHtlcs_new(long scorer, long inflight_htlcs);
11981 // struct LDKScoreLookUp ScorerAccountingForInFlightHtlcs_as_ScoreLookUp(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR this_arg);
11982 public static native long ScorerAccountingForInFlightHtlcs_as_ScoreLookUp(long this_arg);
11983 // void InFlightHtlcs_free(struct LDKInFlightHtlcs this_obj);
11984 public static native void InFlightHtlcs_free(long this_obj);
11985 // uint64_t InFlightHtlcs_clone_ptr(LDKInFlightHtlcs *NONNULL_PTR arg);
11986 public static native long InFlightHtlcs_clone_ptr(long arg);
11987 // struct LDKInFlightHtlcs InFlightHtlcs_clone(const struct LDKInFlightHtlcs *NONNULL_PTR orig);
11988 public static native long InFlightHtlcs_clone(long orig);
11989 // MUST_USE_RES struct LDKInFlightHtlcs InFlightHtlcs_new(void);
11990 public static native long InFlightHtlcs_new();
11991 // void InFlightHtlcs_process_path(struct LDKInFlightHtlcs *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, struct LDKPublicKey payer_node_id);
11992 public static native void InFlightHtlcs_process_path(long this_arg, long path, byte[] payer_node_id);
11993 // 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);
11994 public static native void InFlightHtlcs_add_inflight_htlc(long this_arg, long source, long target, long channel_scid, long used_msat);
11995 // 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);
11996 public static native long InFlightHtlcs_used_liquidity_msat(long this_arg, long source, long target, long channel_scid);
11997 // struct LDKCVec_u8Z InFlightHtlcs_write(const struct LDKInFlightHtlcs *NONNULL_PTR obj);
11998 public static native byte[] InFlightHtlcs_write(long obj);
11999 // struct LDKCResult_InFlightHtlcsDecodeErrorZ InFlightHtlcs_read(struct LDKu8slice ser);
12000 public static native long InFlightHtlcs_read(byte[] ser);
12001 // void RouteHop_free(struct LDKRouteHop this_obj);
12002 public static native void RouteHop_free(long this_obj);
12003 // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr);
12004 public static native byte[] RouteHop_get_pubkey(long this_ptr);
12005 // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
12006 public static native void RouteHop_set_pubkey(long this_ptr, byte[] val);
12007 // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
12008 public static native long RouteHop_get_node_features(long this_ptr);
12009 // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
12010 public static native void RouteHop_set_node_features(long this_ptr, long val);
12011 // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr);
12012 public static native long RouteHop_get_short_channel_id(long this_ptr);
12013 // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
12014 public static native void RouteHop_set_short_channel_id(long this_ptr, long val);
12015 // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
12016 public static native long RouteHop_get_channel_features(long this_ptr);
12017 // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
12018 public static native void RouteHop_set_channel_features(long this_ptr, long val);
12019 // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr);
12020 public static native long RouteHop_get_fee_msat(long this_ptr);
12021 // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
12022 public static native void RouteHop_set_fee_msat(long this_ptr, long val);
12023 // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr);
12024 public static native int RouteHop_get_cltv_expiry_delta(long this_ptr);
12025 // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val);
12026 public static native void RouteHop_set_cltv_expiry_delta(long this_ptr, int val);
12027 // bool RouteHop_get_maybe_announced_channel(const struct LDKRouteHop *NONNULL_PTR this_ptr);
12028 public static native boolean RouteHop_get_maybe_announced_channel(long this_ptr);
12029 // void RouteHop_set_maybe_announced_channel(struct LDKRouteHop *NONNULL_PTR this_ptr, bool val);
12030 public static native void RouteHop_set_maybe_announced_channel(long this_ptr, boolean val);
12031 // 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);
12032 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);
12033 // uint64_t RouteHop_clone_ptr(LDKRouteHop *NONNULL_PTR arg);
12034 public static native long RouteHop_clone_ptr(long arg);
12035 // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig);
12036 public static native long RouteHop_clone(long orig);
12037 // uint64_t RouteHop_hash(const struct LDKRouteHop *NONNULL_PTR o);
12038 public static native long RouteHop_hash(long o);
12039 // bool RouteHop_eq(const struct LDKRouteHop *NONNULL_PTR a, const struct LDKRouteHop *NONNULL_PTR b);
12040 public static native boolean RouteHop_eq(long a, long b);
12041 // struct LDKCVec_u8Z RouteHop_write(const struct LDKRouteHop *NONNULL_PTR obj);
12042 public static native byte[] RouteHop_write(long obj);
12043 // struct LDKCResult_RouteHopDecodeErrorZ RouteHop_read(struct LDKu8slice ser);
12044 public static native long RouteHop_read(byte[] ser);
12045 // void BlindedTail_free(struct LDKBlindedTail this_obj);
12046 public static native void BlindedTail_free(long this_obj);
12047 // struct LDKCVec_BlindedHopZ BlindedTail_get_hops(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
12048 public static native long[] BlindedTail_get_hops(long this_ptr);
12049 // void BlindedTail_set_hops(struct LDKBlindedTail *NONNULL_PTR this_ptr, struct LDKCVec_BlindedHopZ val);
12050 public static native void BlindedTail_set_hops(long this_ptr, long[] val);
12051 // struct LDKPublicKey BlindedTail_get_blinding_point(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
12052 public static native byte[] BlindedTail_get_blinding_point(long this_ptr);
12053 // void BlindedTail_set_blinding_point(struct LDKBlindedTail *NONNULL_PTR this_ptr, struct LDKPublicKey val);
12054 public static native void BlindedTail_set_blinding_point(long this_ptr, byte[] val);
12055 // uint32_t BlindedTail_get_excess_final_cltv_expiry_delta(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
12056 public static native int BlindedTail_get_excess_final_cltv_expiry_delta(long this_ptr);
12057 // void BlindedTail_set_excess_final_cltv_expiry_delta(struct LDKBlindedTail *NONNULL_PTR this_ptr, uint32_t val);
12058 public static native void BlindedTail_set_excess_final_cltv_expiry_delta(long this_ptr, int val);
12059 // uint64_t BlindedTail_get_final_value_msat(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
12060 public static native long BlindedTail_get_final_value_msat(long this_ptr);
12061 // void BlindedTail_set_final_value_msat(struct LDKBlindedTail *NONNULL_PTR this_ptr, uint64_t val);
12062 public static native void BlindedTail_set_final_value_msat(long this_ptr, long val);
12063 // 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);
12064 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);
12065 // uint64_t BlindedTail_clone_ptr(LDKBlindedTail *NONNULL_PTR arg);
12066 public static native long BlindedTail_clone_ptr(long arg);
12067 // struct LDKBlindedTail BlindedTail_clone(const struct LDKBlindedTail *NONNULL_PTR orig);
12068 public static native long BlindedTail_clone(long orig);
12069 // uint64_t BlindedTail_hash(const struct LDKBlindedTail *NONNULL_PTR o);
12070 public static native long BlindedTail_hash(long o);
12071 // bool BlindedTail_eq(const struct LDKBlindedTail *NONNULL_PTR a, const struct LDKBlindedTail *NONNULL_PTR b);
12072 public static native boolean BlindedTail_eq(long a, long b);
12073 // struct LDKCVec_u8Z BlindedTail_write(const struct LDKBlindedTail *NONNULL_PTR obj);
12074 public static native byte[] BlindedTail_write(long obj);
12075 // struct LDKCResult_BlindedTailDecodeErrorZ BlindedTail_read(struct LDKu8slice ser);
12076 public static native long BlindedTail_read(byte[] ser);
12077 // void Path_free(struct LDKPath this_obj);
12078 public static native void Path_free(long this_obj);
12079 // struct LDKCVec_RouteHopZ Path_get_hops(const struct LDKPath *NONNULL_PTR this_ptr);
12080 public static native long[] Path_get_hops(long this_ptr);
12081 // void Path_set_hops(struct LDKPath *NONNULL_PTR this_ptr, struct LDKCVec_RouteHopZ val);
12082 public static native void Path_set_hops(long this_ptr, long[] val);
12083 // struct LDKBlindedTail Path_get_blinded_tail(const struct LDKPath *NONNULL_PTR this_ptr);
12084 public static native long Path_get_blinded_tail(long this_ptr);
12085 // void Path_set_blinded_tail(struct LDKPath *NONNULL_PTR this_ptr, struct LDKBlindedTail val);
12086 public static native void Path_set_blinded_tail(long this_ptr, long val);
12087 // MUST_USE_RES struct LDKPath Path_new(struct LDKCVec_RouteHopZ hops_arg, struct LDKBlindedTail blinded_tail_arg);
12088 public static native long Path_new(long[] hops_arg, long blinded_tail_arg);
12089 // uint64_t Path_clone_ptr(LDKPath *NONNULL_PTR arg);
12090 public static native long Path_clone_ptr(long arg);
12091 // struct LDKPath Path_clone(const struct LDKPath *NONNULL_PTR orig);
12092 public static native long Path_clone(long orig);
12093 // uint64_t Path_hash(const struct LDKPath *NONNULL_PTR o);
12094 public static native long Path_hash(long o);
12095 // bool Path_eq(const struct LDKPath *NONNULL_PTR a, const struct LDKPath *NONNULL_PTR b);
12096 public static native boolean Path_eq(long a, long b);
12097 // MUST_USE_RES uint64_t Path_fee_msat(const struct LDKPath *NONNULL_PTR this_arg);
12098 public static native long Path_fee_msat(long this_arg);
12099 // MUST_USE_RES uint64_t Path_final_value_msat(const struct LDKPath *NONNULL_PTR this_arg);
12100 public static native long Path_final_value_msat(long this_arg);
12101 // MUST_USE_RES struct LDKCOption_u32Z Path_final_cltv_expiry_delta(const struct LDKPath *NONNULL_PTR this_arg);
12102 public static native long Path_final_cltv_expiry_delta(long this_arg);
12103 // void Route_free(struct LDKRoute this_obj);
12104 public static native void Route_free(long this_obj);
12105 // struct LDKCVec_PathZ Route_get_paths(const struct LDKRoute *NONNULL_PTR this_ptr);
12106 public static native long[] Route_get_paths(long this_ptr);
12107 // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_PathZ val);
12108 public static native void Route_set_paths(long this_ptr, long[] val);
12109 // struct LDKRouteParameters Route_get_route_params(const struct LDKRoute *NONNULL_PTR this_ptr);
12110 public static native long Route_get_route_params(long this_ptr);
12111 // void Route_set_route_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKRouteParameters val);
12112 public static native void Route_set_route_params(long this_ptr, long val);
12113 // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_PathZ paths_arg, struct LDKRouteParameters route_params_arg);
12114 public static native long Route_new(long[] paths_arg, long route_params_arg);
12115 // uint64_t Route_clone_ptr(LDKRoute *NONNULL_PTR arg);
12116 public static native long Route_clone_ptr(long arg);
12117 // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig);
12118 public static native long Route_clone(long orig);
12119 // uint64_t Route_hash(const struct LDKRoute *NONNULL_PTR o);
12120 public static native long Route_hash(long o);
12121 // bool Route_eq(const struct LDKRoute *NONNULL_PTR a, const struct LDKRoute *NONNULL_PTR b);
12122 public static native boolean Route_eq(long a, long b);
12123 // MUST_USE_RES uint64_t Route_get_total_fees(const struct LDKRoute *NONNULL_PTR this_arg);
12124 public static native long Route_get_total_fees(long this_arg);
12125 // MUST_USE_RES uint64_t Route_get_total_amount(const struct LDKRoute *NONNULL_PTR this_arg);
12126 public static native long Route_get_total_amount(long this_arg);
12127 // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj);
12128 public static native byte[] Route_write(long obj);
12129 // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser);
12130 public static native long Route_read(byte[] ser);
12131 // void RouteParameters_free(struct LDKRouteParameters this_obj);
12132 public static native void RouteParameters_free(long this_obj);
12133 // struct LDKPaymentParameters RouteParameters_get_payment_params(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
12134 public static native long RouteParameters_get_payment_params(long this_ptr);
12135 // void RouteParameters_set_payment_params(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
12136 public static native void RouteParameters_set_payment_params(long this_ptr, long val);
12137 // uint64_t RouteParameters_get_final_value_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
12138 public static native long RouteParameters_get_final_value_msat(long this_ptr);
12139 // void RouteParameters_set_final_value_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint64_t val);
12140 public static native void RouteParameters_set_final_value_msat(long this_ptr, long val);
12141 // struct LDKCOption_u64Z RouteParameters_get_max_total_routing_fee_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
12142 public static native long RouteParameters_get_max_total_routing_fee_msat(long this_ptr);
12143 // void RouteParameters_set_max_total_routing_fee_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
12144 public static native void RouteParameters_set_max_total_routing_fee_msat(long this_ptr, long val);
12145 // 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);
12146 public static native long RouteParameters_new(long payment_params_arg, long final_value_msat_arg, long max_total_routing_fee_msat_arg);
12147 // uint64_t RouteParameters_clone_ptr(LDKRouteParameters *NONNULL_PTR arg);
12148 public static native long RouteParameters_clone_ptr(long arg);
12149 // struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters *NONNULL_PTR orig);
12150 public static native long RouteParameters_clone(long orig);
12151 // uint64_t RouteParameters_hash(const struct LDKRouteParameters *NONNULL_PTR o);
12152 public static native long RouteParameters_hash(long o);
12153 // bool RouteParameters_eq(const struct LDKRouteParameters *NONNULL_PTR a, const struct LDKRouteParameters *NONNULL_PTR b);
12154 public static native boolean RouteParameters_eq(long a, long b);
12155 // MUST_USE_RES struct LDKRouteParameters RouteParameters_from_payment_params_and_value(struct LDKPaymentParameters payment_params, uint64_t final_value_msat);
12156 public static native long RouteParameters_from_payment_params_and_value(long payment_params, long final_value_msat);
12157 // struct LDKCVec_u8Z RouteParameters_write(const struct LDKRouteParameters *NONNULL_PTR obj);
12158 public static native byte[] RouteParameters_write(long obj);
12159 // struct LDKCResult_RouteParametersDecodeErrorZ RouteParameters_read(struct LDKu8slice ser);
12160 public static native long RouteParameters_read(byte[] ser);
12161 // void PaymentParameters_free(struct LDKPaymentParameters this_obj);
12162 public static native void PaymentParameters_free(long this_obj);
12163 // struct LDKPayee PaymentParameters_get_payee(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
12164 public static native long PaymentParameters_get_payee(long this_ptr);
12165 // void PaymentParameters_set_payee(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKPayee val);
12166 public static native void PaymentParameters_set_payee(long this_ptr, long val);
12167 // struct LDKCOption_u64Z PaymentParameters_get_expiry_time(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
12168 public static native long PaymentParameters_get_expiry_time(long this_ptr);
12169 // void PaymentParameters_set_expiry_time(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
12170 public static native void PaymentParameters_set_expiry_time(long this_ptr, long val);
12171 // uint32_t PaymentParameters_get_max_total_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
12172 public static native int PaymentParameters_get_max_total_cltv_expiry_delta(long this_ptr);
12173 // void PaymentParameters_set_max_total_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val);
12174 public static native void PaymentParameters_set_max_total_cltv_expiry_delta(long this_ptr, int val);
12175 // uint8_t PaymentParameters_get_max_path_count(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
12176 public static native byte PaymentParameters_get_max_path_count(long this_ptr);
12177 // void PaymentParameters_set_max_path_count(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
12178 public static native void PaymentParameters_set_max_path_count(long this_ptr, byte val);
12179 // uint8_t PaymentParameters_get_max_channel_saturation_power_of_half(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
12180 public static native byte PaymentParameters_get_max_channel_saturation_power_of_half(long this_ptr);
12181 // void PaymentParameters_set_max_channel_saturation_power_of_half(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
12182 public static native void PaymentParameters_set_max_channel_saturation_power_of_half(long this_ptr, byte val);
12183 // struct LDKCVec_u64Z PaymentParameters_get_previously_failed_channels(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
12184 public static native long[] PaymentParameters_get_previously_failed_channels(long this_ptr);
12185 // void PaymentParameters_set_previously_failed_channels(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
12186 public static native void PaymentParameters_set_previously_failed_channels(long this_ptr, long[] val);
12187 // struct LDKCVec_u64Z PaymentParameters_get_previously_failed_blinded_path_idxs(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
12188 public static native long[] PaymentParameters_get_previously_failed_blinded_path_idxs(long this_ptr);
12189 // void PaymentParameters_set_previously_failed_blinded_path_idxs(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
12190 public static native void PaymentParameters_set_previously_failed_blinded_path_idxs(long this_ptr, long[] val);
12191 // 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);
12192 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);
12193 // uint64_t PaymentParameters_clone_ptr(LDKPaymentParameters *NONNULL_PTR arg);
12194 public static native long PaymentParameters_clone_ptr(long arg);
12195 // struct LDKPaymentParameters PaymentParameters_clone(const struct LDKPaymentParameters *NONNULL_PTR orig);
12196 public static native long PaymentParameters_clone(long orig);
12197 // uint64_t PaymentParameters_hash(const struct LDKPaymentParameters *NONNULL_PTR o);
12198 public static native long PaymentParameters_hash(long o);
12199 // bool PaymentParameters_eq(const struct LDKPaymentParameters *NONNULL_PTR a, const struct LDKPaymentParameters *NONNULL_PTR b);
12200 public static native boolean PaymentParameters_eq(long a, long b);
12201 // struct LDKCVec_u8Z PaymentParameters_write(const struct LDKPaymentParameters *NONNULL_PTR obj);
12202 public static native byte[] PaymentParameters_write(long obj);
12203 // struct LDKCResult_PaymentParametersDecodeErrorZ PaymentParameters_read(struct LDKu8slice ser, uint32_t arg);
12204 public static native long PaymentParameters_read(byte[] ser, int arg);
12205 // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_node_id(struct LDKPublicKey payee_pubkey, uint32_t final_cltv_expiry_delta);
12206 public static native long PaymentParameters_from_node_id(byte[] payee_pubkey, int final_cltv_expiry_delta);
12207 // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LDKPublicKey payee_pubkey, uint32_t final_cltv_expiry_delta, bool allow_mpp);
12208 public static native long PaymentParameters_for_keysend(byte[] payee_pubkey, int final_cltv_expiry_delta, boolean allow_mpp);
12209 // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_bolt12_invoice(const struct LDKBolt12Invoice *NONNULL_PTR invoice);
12210 public static native long PaymentParameters_from_bolt12_invoice(long invoice);
12211 // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_blinded(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ blinded_route_hints);
12212 public static native long PaymentParameters_blinded(long[] blinded_route_hints);
12213 // void Payee_free(struct LDKPayee this_ptr);
12214 public static native void Payee_free(long this_ptr);
12215 // uint64_t Payee_clone_ptr(LDKPayee *NONNULL_PTR arg);
12216 public static native long Payee_clone_ptr(long arg);
12217 // struct LDKPayee Payee_clone(const struct LDKPayee *NONNULL_PTR orig);
12218 public static native long Payee_clone(long orig);
12219 // struct LDKPayee Payee_blinded(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ route_hints, struct LDKBolt12InvoiceFeatures features);
12220 public static native long Payee_blinded(long[] route_hints, long features);
12221 // struct LDKPayee Payee_clear(struct LDKPublicKey node_id, struct LDKCVec_RouteHintZ route_hints, struct LDKBolt11InvoiceFeatures features, uint32_t final_cltv_expiry_delta);
12222 public static native long Payee_clear(byte[] node_id, long[] route_hints, long features, int final_cltv_expiry_delta);
12223 // uint64_t Payee_hash(const struct LDKPayee *NONNULL_PTR o);
12224 public static native long Payee_hash(long o);
12225 // bool Payee_eq(const struct LDKPayee *NONNULL_PTR a, const struct LDKPayee *NONNULL_PTR b);
12226 public static native boolean Payee_eq(long a, long b);
12227 // void RouteHint_free(struct LDKRouteHint this_obj);
12228 public static native void RouteHint_free(long this_obj);
12229 // struct LDKCVec_RouteHintHopZ RouteHint_get_a(const struct LDKRouteHint *NONNULL_PTR this_ptr);
12230 public static native long[] RouteHint_get_a(long this_ptr);
12231 // void RouteHint_set_a(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintHopZ val);
12232 public static native void RouteHint_set_a(long this_ptr, long[] val);
12233 // MUST_USE_RES struct LDKRouteHint RouteHint_new(struct LDKCVec_RouteHintHopZ a_arg);
12234 public static native long RouteHint_new(long[] a_arg);
12235 // uint64_t RouteHint_clone_ptr(LDKRouteHint *NONNULL_PTR arg);
12236 public static native long RouteHint_clone_ptr(long arg);
12237 // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig);
12238 public static native long RouteHint_clone(long orig);
12239 // uint64_t RouteHint_hash(const struct LDKRouteHint *NONNULL_PTR o);
12240 public static native long RouteHint_hash(long o);
12241 // bool RouteHint_eq(const struct LDKRouteHint *NONNULL_PTR a, const struct LDKRouteHint *NONNULL_PTR b);
12242 public static native boolean RouteHint_eq(long a, long b);
12243 // struct LDKCVec_u8Z RouteHint_write(const struct LDKRouteHint *NONNULL_PTR obj);
12244 public static native byte[] RouteHint_write(long obj);
12245 // struct LDKCResult_RouteHintDecodeErrorZ RouteHint_read(struct LDKu8slice ser);
12246 public static native long RouteHint_read(byte[] ser);
12247 // void RouteHintHop_free(struct LDKRouteHintHop this_obj);
12248 public static native void RouteHintHop_free(long this_obj);
12249 // struct LDKPublicKey RouteHintHop_get_src_node_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
12250 public static native byte[] RouteHintHop_get_src_node_id(long this_ptr);
12251 // void RouteHintHop_set_src_node_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
12252 public static native void RouteHintHop_set_src_node_id(long this_ptr, byte[] val);
12253 // uint64_t RouteHintHop_get_short_channel_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
12254 public static native long RouteHintHop_get_short_channel_id(long this_ptr);
12255 // void RouteHintHop_set_short_channel_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint64_t val);
12256 public static native void RouteHintHop_set_short_channel_id(long this_ptr, long val);
12257 // struct LDKRoutingFees RouteHintHop_get_fees(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
12258 public static native long RouteHintHop_get_fees(long this_ptr);
12259 // void RouteHintHop_set_fees(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
12260 public static native void RouteHintHop_set_fees(long this_ptr, long val);
12261 // uint16_t RouteHintHop_get_cltv_expiry_delta(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
12262 public static native short RouteHintHop_get_cltv_expiry_delta(long this_ptr);
12263 // void RouteHintHop_set_cltv_expiry_delta(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint16_t val);
12264 public static native void RouteHintHop_set_cltv_expiry_delta(long this_ptr, short val);
12265 // struct LDKCOption_u64Z RouteHintHop_get_htlc_minimum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
12266 public static native long RouteHintHop_get_htlc_minimum_msat(long this_ptr);
12267 // void RouteHintHop_set_htlc_minimum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
12268 public static native void RouteHintHop_set_htlc_minimum_msat(long this_ptr, long val);
12269 // struct LDKCOption_u64Z RouteHintHop_get_htlc_maximum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
12270 public static native long RouteHintHop_get_htlc_maximum_msat(long this_ptr);
12271 // void RouteHintHop_set_htlc_maximum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
12272 public static native void RouteHintHop_set_htlc_maximum_msat(long this_ptr, long val);
12273 // 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);
12274 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);
12275 // uint64_t RouteHintHop_clone_ptr(LDKRouteHintHop *NONNULL_PTR arg);
12276 public static native long RouteHintHop_clone_ptr(long arg);
12277 // struct LDKRouteHintHop RouteHintHop_clone(const struct LDKRouteHintHop *NONNULL_PTR orig);
12278 public static native long RouteHintHop_clone(long orig);
12279 // uint64_t RouteHintHop_hash(const struct LDKRouteHintHop *NONNULL_PTR o);
12280 public static native long RouteHintHop_hash(long o);
12281 // bool RouteHintHop_eq(const struct LDKRouteHintHop *NONNULL_PTR a, const struct LDKRouteHintHop *NONNULL_PTR b);
12282 public static native boolean RouteHintHop_eq(long a, long b);
12283 // struct LDKCVec_u8Z RouteHintHop_write(const struct LDKRouteHintHop *NONNULL_PTR obj);
12284 public static native byte[] RouteHintHop_write(long obj);
12285 // struct LDKCResult_RouteHintHopDecodeErrorZ RouteHintHop_read(struct LDKu8slice ser);
12286 public static native long RouteHintHop_read(byte[] ser);
12287 // void FirstHopCandidate_free(struct LDKFirstHopCandidate this_obj);
12288 public static native void FirstHopCandidate_free(long this_obj);
12289 // uint64_t FirstHopCandidate_clone_ptr(LDKFirstHopCandidate *NONNULL_PTR arg);
12290 public static native long FirstHopCandidate_clone_ptr(long arg);
12291 // struct LDKFirstHopCandidate FirstHopCandidate_clone(const struct LDKFirstHopCandidate *NONNULL_PTR orig);
12292 public static native long FirstHopCandidate_clone(long orig);
12293 // void PublicHopCandidate_free(struct LDKPublicHopCandidate this_obj);
12294 public static native void PublicHopCandidate_free(long this_obj);
12295 // uint64_t PublicHopCandidate_get_short_channel_id(const struct LDKPublicHopCandidate *NONNULL_PTR this_ptr);
12296 public static native long PublicHopCandidate_get_short_channel_id(long this_ptr);
12297 // void PublicHopCandidate_set_short_channel_id(struct LDKPublicHopCandidate *NONNULL_PTR this_ptr, uint64_t val);
12298 public static native void PublicHopCandidate_set_short_channel_id(long this_ptr, long val);
12299 // uint64_t PublicHopCandidate_clone_ptr(LDKPublicHopCandidate *NONNULL_PTR arg);
12300 public static native long PublicHopCandidate_clone_ptr(long arg);
12301 // struct LDKPublicHopCandidate PublicHopCandidate_clone(const struct LDKPublicHopCandidate *NONNULL_PTR orig);
12302 public static native long PublicHopCandidate_clone(long orig);
12303 // void PrivateHopCandidate_free(struct LDKPrivateHopCandidate this_obj);
12304 public static native void PrivateHopCandidate_free(long this_obj);
12305 // uint64_t PrivateHopCandidate_clone_ptr(LDKPrivateHopCandidate *NONNULL_PTR arg);
12306 public static native long PrivateHopCandidate_clone_ptr(long arg);
12307 // struct LDKPrivateHopCandidate PrivateHopCandidate_clone(const struct LDKPrivateHopCandidate *NONNULL_PTR orig);
12308 public static native long PrivateHopCandidate_clone(long orig);
12309 // void BlindedPathCandidate_free(struct LDKBlindedPathCandidate this_obj);
12310 public static native void BlindedPathCandidate_free(long this_obj);
12311 // uint64_t BlindedPathCandidate_clone_ptr(LDKBlindedPathCandidate *NONNULL_PTR arg);
12312 public static native long BlindedPathCandidate_clone_ptr(long arg);
12313 // struct LDKBlindedPathCandidate BlindedPathCandidate_clone(const struct LDKBlindedPathCandidate *NONNULL_PTR orig);
12314 public static native long BlindedPathCandidate_clone(long orig);
12315 // void OneHopBlindedPathCandidate_free(struct LDKOneHopBlindedPathCandidate this_obj);
12316 public static native void OneHopBlindedPathCandidate_free(long this_obj);
12317 // uint64_t OneHopBlindedPathCandidate_clone_ptr(LDKOneHopBlindedPathCandidate *NONNULL_PTR arg);
12318 public static native long OneHopBlindedPathCandidate_clone_ptr(long arg);
12319 // struct LDKOneHopBlindedPathCandidate OneHopBlindedPathCandidate_clone(const struct LDKOneHopBlindedPathCandidate *NONNULL_PTR orig);
12320 public static native long OneHopBlindedPathCandidate_clone(long orig);
12321 // void CandidateRouteHop_free(struct LDKCandidateRouteHop this_ptr);
12322 public static native void CandidateRouteHop_free(long this_ptr);
12323 // uint64_t CandidateRouteHop_clone_ptr(LDKCandidateRouteHop *NONNULL_PTR arg);
12324 public static native long CandidateRouteHop_clone_ptr(long arg);
12325 // struct LDKCandidateRouteHop CandidateRouteHop_clone(const struct LDKCandidateRouteHop *NONNULL_PTR orig);
12326 public static native long CandidateRouteHop_clone(long orig);
12327 // struct LDKCandidateRouteHop CandidateRouteHop_first_hop(struct LDKFirstHopCandidate a);
12328 public static native long CandidateRouteHop_first_hop(long a);
12329 // struct LDKCandidateRouteHop CandidateRouteHop_public_hop(struct LDKPublicHopCandidate a);
12330 public static native long CandidateRouteHop_public_hop(long a);
12331 // struct LDKCandidateRouteHop CandidateRouteHop_private_hop(struct LDKPrivateHopCandidate a);
12332 public static native long CandidateRouteHop_private_hop(long a);
12333 // struct LDKCandidateRouteHop CandidateRouteHop_blinded(struct LDKBlindedPathCandidate a);
12334 public static native long CandidateRouteHop_blinded(long a);
12335 // struct LDKCandidateRouteHop CandidateRouteHop_one_hop_blinded(struct LDKOneHopBlindedPathCandidate a);
12336 public static native long CandidateRouteHop_one_hop_blinded(long a);
12337 // MUST_USE_RES struct LDKCOption_u64Z CandidateRouteHop_globally_unique_short_channel_id(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg);
12338 public static native long CandidateRouteHop_globally_unique_short_channel_id(long this_arg);
12339 // MUST_USE_RES uint32_t CandidateRouteHop_cltv_expiry_delta(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg);
12340 public static native int CandidateRouteHop_cltv_expiry_delta(long this_arg);
12341 // MUST_USE_RES uint64_t CandidateRouteHop_htlc_minimum_msat(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg);
12342 public static native long CandidateRouteHop_htlc_minimum_msat(long this_arg);
12343 // MUST_USE_RES struct LDKRoutingFees CandidateRouteHop_fees(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg);
12344 public static native long CandidateRouteHop_fees(long this_arg);
12345 // MUST_USE_RES struct LDKNodeId CandidateRouteHop_source(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg);
12346 public static native long CandidateRouteHop_source(long this_arg);
12347 // MUST_USE_RES struct LDKNodeId CandidateRouteHop_target(const struct LDKCandidateRouteHop *NONNULL_PTR this_arg);
12348 public static native long CandidateRouteHop_target(long this_arg);
12349 // 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]);
12350 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);
12351 // 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]);
12352 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);
12353 // void ScoreLookUp_free(struct LDKScoreLookUp this_ptr);
12354 public static native void ScoreLookUp_free(long this_ptr);
12355 // void ScoreUpdate_free(struct LDKScoreUpdate this_ptr);
12356 public static native void ScoreUpdate_free(long this_ptr);
12357 // void Score_free(struct LDKScore this_ptr);
12358 public static native void Score_free(long this_ptr);
12359 // void LockableScore_free(struct LDKLockableScore this_ptr);
12360 public static native void LockableScore_free(long this_ptr);
12361 // void WriteableScore_free(struct LDKWriteableScore this_ptr);
12362 public static native void WriteableScore_free(long this_ptr);
12363 // void MultiThreadedLockableScore_free(struct LDKMultiThreadedLockableScore this_obj);
12364 public static native void MultiThreadedLockableScore_free(long this_obj);
12365 // struct LDKLockableScore MultiThreadedLockableScore_as_LockableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg);
12366 public static native long MultiThreadedLockableScore_as_LockableScore(long this_arg);
12367 // struct LDKCVec_u8Z MultiThreadedLockableScore_write(const struct LDKMultiThreadedLockableScore *NONNULL_PTR obj);
12368 public static native byte[] MultiThreadedLockableScore_write(long obj);
12369 // struct LDKWriteableScore MultiThreadedLockableScore_as_WriteableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg);
12370 public static native long MultiThreadedLockableScore_as_WriteableScore(long this_arg);
12371 // MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score);
12372 public static native long MultiThreadedLockableScore_new(long score);
12373 // void MultiThreadedScoreLockRead_free(struct LDKMultiThreadedScoreLockRead this_obj);
12374 public static native void MultiThreadedScoreLockRead_free(long this_obj);
12375 // void MultiThreadedScoreLockWrite_free(struct LDKMultiThreadedScoreLockWrite this_obj);
12376 public static native void MultiThreadedScoreLockWrite_free(long this_obj);
12377 // struct LDKScoreLookUp MultiThreadedScoreLockRead_as_ScoreLookUp(const struct LDKMultiThreadedScoreLockRead *NONNULL_PTR this_arg);
12378 public static native long MultiThreadedScoreLockRead_as_ScoreLookUp(long this_arg);
12379 // struct LDKCVec_u8Z MultiThreadedScoreLockWrite_write(const struct LDKMultiThreadedScoreLockWrite *NONNULL_PTR obj);
12380 public static native byte[] MultiThreadedScoreLockWrite_write(long obj);
12381 // struct LDKScoreUpdate MultiThreadedScoreLockWrite_as_ScoreUpdate(const struct LDKMultiThreadedScoreLockWrite *NONNULL_PTR this_arg);
12382 public static native long MultiThreadedScoreLockWrite_as_ScoreUpdate(long this_arg);
12383 // void ChannelUsage_free(struct LDKChannelUsage this_obj);
12384 public static native void ChannelUsage_free(long this_obj);
12385 // uint64_t ChannelUsage_get_amount_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
12386 public static native long ChannelUsage_get_amount_msat(long this_ptr);
12387 // void ChannelUsage_set_amount_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
12388 public static native void ChannelUsage_set_amount_msat(long this_ptr, long val);
12389 // uint64_t ChannelUsage_get_inflight_htlc_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
12390 public static native long ChannelUsage_get_inflight_htlc_msat(long this_ptr);
12391 // void ChannelUsage_set_inflight_htlc_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
12392 public static native void ChannelUsage_set_inflight_htlc_msat(long this_ptr, long val);
12393 // struct LDKEffectiveCapacity ChannelUsage_get_effective_capacity(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
12394 public static native long ChannelUsage_get_effective_capacity(long this_ptr);
12395 // void ChannelUsage_set_effective_capacity(struct LDKChannelUsage *NONNULL_PTR this_ptr, struct LDKEffectiveCapacity val);
12396 public static native void ChannelUsage_set_effective_capacity(long this_ptr, long val);
12397 // MUST_USE_RES struct LDKChannelUsage ChannelUsage_new(uint64_t amount_msat_arg, uint64_t inflight_htlc_msat_arg, struct LDKEffectiveCapacity effective_capacity_arg);
12398 public static native long ChannelUsage_new(long amount_msat_arg, long inflight_htlc_msat_arg, long effective_capacity_arg);
12399 // uint64_t ChannelUsage_clone_ptr(LDKChannelUsage *NONNULL_PTR arg);
12400 public static native long ChannelUsage_clone_ptr(long arg);
12401 // struct LDKChannelUsage ChannelUsage_clone(const struct LDKChannelUsage *NONNULL_PTR orig);
12402 public static native long ChannelUsage_clone(long orig);
12403 // void FixedPenaltyScorer_free(struct LDKFixedPenaltyScorer this_obj);
12404 public static native void FixedPenaltyScorer_free(long this_obj);
12405 // uint64_t FixedPenaltyScorer_clone_ptr(LDKFixedPenaltyScorer *NONNULL_PTR arg);
12406 public static native long FixedPenaltyScorer_clone_ptr(long arg);
12407 // struct LDKFixedPenaltyScorer FixedPenaltyScorer_clone(const struct LDKFixedPenaltyScorer *NONNULL_PTR orig);
12408 public static native long FixedPenaltyScorer_clone(long orig);
12409 // MUST_USE_RES struct LDKFixedPenaltyScorer FixedPenaltyScorer_with_penalty(uint64_t penalty_msat);
12410 public static native long FixedPenaltyScorer_with_penalty(long penalty_msat);
12411 // struct LDKScoreLookUp FixedPenaltyScorer_as_ScoreLookUp(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg);
12412 public static native long FixedPenaltyScorer_as_ScoreLookUp(long this_arg);
12413 // struct LDKScoreUpdate FixedPenaltyScorer_as_ScoreUpdate(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg);
12414 public static native long FixedPenaltyScorer_as_ScoreUpdate(long this_arg);
12415 // struct LDKCVec_u8Z FixedPenaltyScorer_write(const struct LDKFixedPenaltyScorer *NONNULL_PTR obj);
12416 public static native byte[] FixedPenaltyScorer_write(long obj);
12417 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ FixedPenaltyScorer_read(struct LDKu8slice ser, uint64_t arg);
12418 public static native long FixedPenaltyScorer_read(byte[] ser, long arg);
12419 // void ProbabilisticScorer_free(struct LDKProbabilisticScorer this_obj);
12420 public static native void ProbabilisticScorer_free(long this_obj);
12421 // void ProbabilisticScoringFeeParameters_free(struct LDKProbabilisticScoringFeeParameters this_obj);
12422 public static native void ProbabilisticScoringFeeParameters_free(long this_obj);
12423 // uint64_t ProbabilisticScoringFeeParameters_get_base_penalty_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
12424 public static native long ProbabilisticScoringFeeParameters_get_base_penalty_msat(long this_ptr);
12425 // void ProbabilisticScoringFeeParameters_set_base_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
12426 public static native void ProbabilisticScoringFeeParameters_set_base_penalty_msat(long this_ptr, long val);
12427 // uint64_t ProbabilisticScoringFeeParameters_get_base_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
12428 public static native long ProbabilisticScoringFeeParameters_get_base_penalty_amount_multiplier_msat(long this_ptr);
12429 // void ProbabilisticScoringFeeParameters_set_base_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
12430 public static native void ProbabilisticScoringFeeParameters_set_base_penalty_amount_multiplier_msat(long this_ptr, long val);
12431 // uint64_t ProbabilisticScoringFeeParameters_get_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
12432 public static native long ProbabilisticScoringFeeParameters_get_liquidity_penalty_multiplier_msat(long this_ptr);
12433 // void ProbabilisticScoringFeeParameters_set_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
12434 public static native void ProbabilisticScoringFeeParameters_set_liquidity_penalty_multiplier_msat(long this_ptr, long val);
12435 // uint64_t ProbabilisticScoringFeeParameters_get_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
12436 public static native long ProbabilisticScoringFeeParameters_get_liquidity_penalty_amount_multiplier_msat(long this_ptr);
12437 // void ProbabilisticScoringFeeParameters_set_liquidity_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
12438 public static native void ProbabilisticScoringFeeParameters_set_liquidity_penalty_amount_multiplier_msat(long this_ptr, long val);
12439 // uint64_t ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
12440 public static native long ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_multiplier_msat(long this_ptr);
12441 // void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
12442 public static native void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_multiplier_msat(long this_ptr, long val);
12443 // uint64_t ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
12444 public static native long ProbabilisticScoringFeeParameters_get_historical_liquidity_penalty_amount_multiplier_msat(long this_ptr);
12445 // void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
12446 public static native void ProbabilisticScoringFeeParameters_set_historical_liquidity_penalty_amount_multiplier_msat(long this_ptr, long val);
12447 // uint64_t ProbabilisticScoringFeeParameters_get_anti_probing_penalty_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
12448 public static native long ProbabilisticScoringFeeParameters_get_anti_probing_penalty_msat(long this_ptr);
12449 // void ProbabilisticScoringFeeParameters_set_anti_probing_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
12450 public static native void ProbabilisticScoringFeeParameters_set_anti_probing_penalty_msat(long this_ptr, long val);
12451 // uint64_t ProbabilisticScoringFeeParameters_get_considered_impossible_penalty_msat(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
12452 public static native long ProbabilisticScoringFeeParameters_get_considered_impossible_penalty_msat(long this_ptr);
12453 // void ProbabilisticScoringFeeParameters_set_considered_impossible_penalty_msat(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, uint64_t val);
12454 public static native void ProbabilisticScoringFeeParameters_set_considered_impossible_penalty_msat(long this_ptr, long val);
12455 // bool ProbabilisticScoringFeeParameters_get_linear_success_probability(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr);
12456 public static native boolean ProbabilisticScoringFeeParameters_get_linear_success_probability(long this_ptr);
12457 // void ProbabilisticScoringFeeParameters_set_linear_success_probability(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_ptr, bool val);
12458 public static native void ProbabilisticScoringFeeParameters_set_linear_success_probability(long this_ptr, boolean val);
12459 // uint64_t ProbabilisticScoringFeeParameters_clone_ptr(LDKProbabilisticScoringFeeParameters *NONNULL_PTR arg);
12460 public static native long ProbabilisticScoringFeeParameters_clone_ptr(long arg);
12461 // struct LDKProbabilisticScoringFeeParameters ProbabilisticScoringFeeParameters_clone(const struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR orig);
12462 public static native long ProbabilisticScoringFeeParameters_clone(long orig);
12463 // MUST_USE_RES struct LDKProbabilisticScoringFeeParameters ProbabilisticScoringFeeParameters_default(void);
12464 public static native long ProbabilisticScoringFeeParameters_default();
12465 // void ProbabilisticScoringFeeParameters_add_banned(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
12466 public static native void ProbabilisticScoringFeeParameters_add_banned(long this_arg, long node_id);
12467 // void ProbabilisticScoringFeeParameters_add_banned_from_list(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, struct LDKCVec_NodeIdZ node_ids);
12468 public static native void ProbabilisticScoringFeeParameters_add_banned_from_list(long this_arg, long[] node_ids);
12469 // void ProbabilisticScoringFeeParameters_remove_banned(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
12470 public static native void ProbabilisticScoringFeeParameters_remove_banned(long this_arg, long node_id);
12471 // void ProbabilisticScoringFeeParameters_set_manual_penalty(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id, uint64_t penalty);
12472 public static native void ProbabilisticScoringFeeParameters_set_manual_penalty(long this_arg, long node_id, long penalty);
12473 // void ProbabilisticScoringFeeParameters_remove_manual_penalty(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
12474 public static native void ProbabilisticScoringFeeParameters_remove_manual_penalty(long this_arg, long node_id);
12475 // void ProbabilisticScoringFeeParameters_clear_manual_penalties(struct LDKProbabilisticScoringFeeParameters *NONNULL_PTR this_arg);
12476 public static native void ProbabilisticScoringFeeParameters_clear_manual_penalties(long this_arg);
12477 // void ProbabilisticScoringDecayParameters_free(struct LDKProbabilisticScoringDecayParameters this_obj);
12478 public static native void ProbabilisticScoringDecayParameters_free(long this_obj);
12479 // uint64_t ProbabilisticScoringDecayParameters_get_historical_no_updates_half_life(const struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr);
12480 public static native long ProbabilisticScoringDecayParameters_get_historical_no_updates_half_life(long this_ptr);
12481 // void ProbabilisticScoringDecayParameters_set_historical_no_updates_half_life(struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr, uint64_t val);
12482 public static native void ProbabilisticScoringDecayParameters_set_historical_no_updates_half_life(long this_ptr, long val);
12483 // uint64_t ProbabilisticScoringDecayParameters_get_liquidity_offset_half_life(const struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr);
12484 public static native long ProbabilisticScoringDecayParameters_get_liquidity_offset_half_life(long this_ptr);
12485 // void ProbabilisticScoringDecayParameters_set_liquidity_offset_half_life(struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR this_ptr, uint64_t val);
12486 public static native void ProbabilisticScoringDecayParameters_set_liquidity_offset_half_life(long this_ptr, long val);
12487 // MUST_USE_RES struct LDKProbabilisticScoringDecayParameters ProbabilisticScoringDecayParameters_new(uint64_t historical_no_updates_half_life_arg, uint64_t liquidity_offset_half_life_arg);
12488 public static native long ProbabilisticScoringDecayParameters_new(long historical_no_updates_half_life_arg, long liquidity_offset_half_life_arg);
12489 // uint64_t ProbabilisticScoringDecayParameters_clone_ptr(LDKProbabilisticScoringDecayParameters *NONNULL_PTR arg);
12490 public static native long ProbabilisticScoringDecayParameters_clone_ptr(long arg);
12491 // struct LDKProbabilisticScoringDecayParameters ProbabilisticScoringDecayParameters_clone(const struct LDKProbabilisticScoringDecayParameters *NONNULL_PTR orig);
12492 public static native long ProbabilisticScoringDecayParameters_clone(long orig);
12493 // MUST_USE_RES struct LDKProbabilisticScoringDecayParameters ProbabilisticScoringDecayParameters_default(void);
12494 public static native long ProbabilisticScoringDecayParameters_default();
12495 // MUST_USE_RES struct LDKProbabilisticScorer ProbabilisticScorer_new(struct LDKProbabilisticScoringDecayParameters decay_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
12496 public static native long ProbabilisticScorer_new(long decay_params, long network_graph, long logger);
12497 // void ProbabilisticScorer_debug_log_liquidity_stats(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
12498 public static native void ProbabilisticScorer_debug_log_liquidity_stats(long this_arg);
12499 // 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);
12500 public static native long ProbabilisticScorer_estimated_channel_liquidity_range(long this_arg, long scid, long target);
12501 // 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);
12502 public static native long ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(long this_arg, long scid, long target);
12503 // 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);
12504 public static native long ProbabilisticScorer_historical_estimated_payment_success_probability(long this_arg, long scid, long target, long amount_msat, long params);
12505 // struct LDKScoreLookUp ProbabilisticScorer_as_ScoreLookUp(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
12506 public static native long ProbabilisticScorer_as_ScoreLookUp(long this_arg);
12507 // struct LDKScoreUpdate ProbabilisticScorer_as_ScoreUpdate(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
12508 public static native long ProbabilisticScorer_as_ScoreUpdate(long this_arg);
12509 // struct LDKScore ProbabilisticScorer_as_Score(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
12510 public static native long ProbabilisticScorer_as_Score(long this_arg);
12511 // struct LDKCVec_u8Z ProbabilisticScorer_write(const struct LDKProbabilisticScorer *NONNULL_PTR obj);
12512 public static native byte[] ProbabilisticScorer_write(long obj);
12513 // struct LDKCResult_ProbabilisticScorerDecodeErrorZ ProbabilisticScorer_read(struct LDKu8slice ser, struct LDKProbabilisticScoringDecayParameters arg_a, const struct LDKNetworkGraph *NONNULL_PTR arg_b, struct LDKLogger arg_c);
12514 public static native long ProbabilisticScorer_read(byte[] ser, long arg_a, long arg_b, long arg_c);
12515 // void DelayedPaymentOutputDescriptor_free(struct LDKDelayedPaymentOutputDescriptor this_obj);
12516 public static native void DelayedPaymentOutputDescriptor_free(long this_obj);
12517 // struct LDKOutPoint DelayedPaymentOutputDescriptor_get_outpoint(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
12518 public static native long DelayedPaymentOutputDescriptor_get_outpoint(long this_ptr);
12519 // void DelayedPaymentOutputDescriptor_set_outpoint(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
12520 public static native void DelayedPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
12521 // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_per_commitment_point(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
12522 public static native byte[] DelayedPaymentOutputDescriptor_get_per_commitment_point(long this_ptr);
12523 // void DelayedPaymentOutputDescriptor_set_per_commitment_point(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
12524 public static native void DelayedPaymentOutputDescriptor_set_per_commitment_point(long this_ptr, byte[] val);
12525 // uint16_t DelayedPaymentOutputDescriptor_get_to_self_delay(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
12526 public static native short DelayedPaymentOutputDescriptor_get_to_self_delay(long this_ptr);
12527 // void DelayedPaymentOutputDescriptor_set_to_self_delay(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint16_t val);
12528 public static native void DelayedPaymentOutputDescriptor_set_to_self_delay(long this_ptr, short val);
12529 // struct LDKTxOut DelayedPaymentOutputDescriptor_get_output(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
12530 public static native long DelayedPaymentOutputDescriptor_get_output(long this_ptr);
12531 // void DelayedPaymentOutputDescriptor_set_output(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
12532 public static native void DelayedPaymentOutputDescriptor_set_output(long this_ptr, long val);
12533 // struct LDKRevocationKey DelayedPaymentOutputDescriptor_get_revocation_pubkey(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
12534 public static native long DelayedPaymentOutputDescriptor_get_revocation_pubkey(long this_ptr);
12535 // void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKRevocationKey val);
12536 public static native void DelayedPaymentOutputDescriptor_set_revocation_pubkey(long this_ptr, long val);
12537 // const uint8_t (*DelayedPaymentOutputDescriptor_get_channel_keys_id(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
12538 public static native byte[] DelayedPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
12539 // void DelayedPaymentOutputDescriptor_set_channel_keys_id(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
12540 public static native void DelayedPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
12541 // uint64_t DelayedPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
12542 public static native long DelayedPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
12543 // void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
12544 public static native void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
12545 // 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);
12546 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);
12547 // uint64_t DelayedPaymentOutputDescriptor_clone_ptr(LDKDelayedPaymentOutputDescriptor *NONNULL_PTR arg);
12548 public static native long DelayedPaymentOutputDescriptor_clone_ptr(long arg);
12549 // struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig);
12550 public static native long DelayedPaymentOutputDescriptor_clone(long orig);
12551 // uint64_t DelayedPaymentOutputDescriptor_hash(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR o);
12552 public static native long DelayedPaymentOutputDescriptor_hash(long o);
12553 // bool DelayedPaymentOutputDescriptor_eq(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR b);
12554 public static native boolean DelayedPaymentOutputDescriptor_eq(long a, long b);
12555 // struct LDKCVec_u8Z DelayedPaymentOutputDescriptor_write(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR obj);
12556 public static native byte[] DelayedPaymentOutputDescriptor_write(long obj);
12557 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ DelayedPaymentOutputDescriptor_read(struct LDKu8slice ser);
12558 public static native long DelayedPaymentOutputDescriptor_read(byte[] ser);
12559 // void StaticPaymentOutputDescriptor_free(struct LDKStaticPaymentOutputDescriptor this_obj);
12560 public static native void StaticPaymentOutputDescriptor_free(long this_obj);
12561 // struct LDKOutPoint StaticPaymentOutputDescriptor_get_outpoint(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
12562 public static native long StaticPaymentOutputDescriptor_get_outpoint(long this_ptr);
12563 // void StaticPaymentOutputDescriptor_set_outpoint(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
12564 public static native void StaticPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
12565 // struct LDKTxOut StaticPaymentOutputDescriptor_get_output(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
12566 public static native long StaticPaymentOutputDescriptor_get_output(long this_ptr);
12567 // void StaticPaymentOutputDescriptor_set_output(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
12568 public static native void StaticPaymentOutputDescriptor_set_output(long this_ptr, long val);
12569 // const uint8_t (*StaticPaymentOutputDescriptor_get_channel_keys_id(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
12570 public static native byte[] StaticPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
12571 // void StaticPaymentOutputDescriptor_set_channel_keys_id(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
12572 public static native void StaticPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
12573 // uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
12574 public static native long StaticPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
12575 // void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
12576 public static native void StaticPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
12577 // struct LDKChannelTransactionParameters StaticPaymentOutputDescriptor_get_channel_transaction_parameters(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
12578 public static native long StaticPaymentOutputDescriptor_get_channel_transaction_parameters(long this_ptr);
12579 // void StaticPaymentOutputDescriptor_set_channel_transaction_parameters(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKChannelTransactionParameters val);
12580 public static native void StaticPaymentOutputDescriptor_set_channel_transaction_parameters(long this_ptr, long val);
12581 // 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);
12582 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);
12583 // uint64_t StaticPaymentOutputDescriptor_clone_ptr(LDKStaticPaymentOutputDescriptor *NONNULL_PTR arg);
12584 public static native long StaticPaymentOutputDescriptor_clone_ptr(long arg);
12585 // struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig);
12586 public static native long StaticPaymentOutputDescriptor_clone(long orig);
12587 // uint64_t StaticPaymentOutputDescriptor_hash(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR o);
12588 public static native long StaticPaymentOutputDescriptor_hash(long o);
12589 // bool StaticPaymentOutputDescriptor_eq(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR b);
12590 public static native boolean StaticPaymentOutputDescriptor_eq(long a, long b);
12591 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ StaticPaymentOutputDescriptor_witness_script(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_arg);
12592 public static native long StaticPaymentOutputDescriptor_witness_script(long this_arg);
12593 // MUST_USE_RES uint64_t StaticPaymentOutputDescriptor_max_witness_length(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_arg);
12594 public static native long StaticPaymentOutputDescriptor_max_witness_length(long this_arg);
12595 // struct LDKCVec_u8Z StaticPaymentOutputDescriptor_write(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR obj);
12596 public static native byte[] StaticPaymentOutputDescriptor_write(long obj);
12597 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ StaticPaymentOutputDescriptor_read(struct LDKu8slice ser);
12598 public static native long StaticPaymentOutputDescriptor_read(byte[] ser);
12599 // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr);
12600 public static native void SpendableOutputDescriptor_free(long this_ptr);
12601 // uint64_t SpendableOutputDescriptor_clone_ptr(LDKSpendableOutputDescriptor *NONNULL_PTR arg);
12602 public static native long SpendableOutputDescriptor_clone_ptr(long arg);
12603 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig);
12604 public static native long SpendableOutputDescriptor_clone(long orig);
12605 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_output(struct LDKOutPoint outpoint, struct LDKTxOut output, struct LDKThirtyTwoBytes channel_keys_id);
12606 public static native long SpendableOutputDescriptor_static_output(long outpoint, long output, byte[] channel_keys_id);
12607 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_delayed_payment_output(struct LDKDelayedPaymentOutputDescriptor a);
12608 public static native long SpendableOutputDescriptor_delayed_payment_output(long a);
12609 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_payment_output(struct LDKStaticPaymentOutputDescriptor a);
12610 public static native long SpendableOutputDescriptor_static_payment_output(long a);
12611 // uint64_t SpendableOutputDescriptor_hash(const struct LDKSpendableOutputDescriptor *NONNULL_PTR o);
12612 public static native long SpendableOutputDescriptor_hash(long o);
12613 // bool SpendableOutputDescriptor_eq(const struct LDKSpendableOutputDescriptor *NONNULL_PTR a, const struct LDKSpendableOutputDescriptor *NONNULL_PTR b);
12614 public static native boolean SpendableOutputDescriptor_eq(long a, long b);
12615 // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj);
12616 public static native byte[] SpendableOutputDescriptor_write(long obj);
12617 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser);
12618 public static native long SpendableOutputDescriptor_read(byte[] ser);
12619 // 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);
12620 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);
12621 // void ChannelDerivationParameters_free(struct LDKChannelDerivationParameters this_obj);
12622 public static native void ChannelDerivationParameters_free(long this_obj);
12623 // uint64_t ChannelDerivationParameters_get_value_satoshis(const struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr);
12624 public static native long ChannelDerivationParameters_get_value_satoshis(long this_ptr);
12625 // void ChannelDerivationParameters_set_value_satoshis(struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr, uint64_t val);
12626 public static native void ChannelDerivationParameters_set_value_satoshis(long this_ptr, long val);
12627 // const uint8_t (*ChannelDerivationParameters_get_keys_id(const struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr))[32];
12628 public static native byte[] ChannelDerivationParameters_get_keys_id(long this_ptr);
12629 // void ChannelDerivationParameters_set_keys_id(struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
12630 public static native void ChannelDerivationParameters_set_keys_id(long this_ptr, byte[] val);
12631 // struct LDKChannelTransactionParameters ChannelDerivationParameters_get_transaction_parameters(const struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr);
12632 public static native long ChannelDerivationParameters_get_transaction_parameters(long this_ptr);
12633 // void ChannelDerivationParameters_set_transaction_parameters(struct LDKChannelDerivationParameters *NONNULL_PTR this_ptr, struct LDKChannelTransactionParameters val);
12634 public static native void ChannelDerivationParameters_set_transaction_parameters(long this_ptr, long val);
12635 // MUST_USE_RES struct LDKChannelDerivationParameters ChannelDerivationParameters_new(uint64_t value_satoshis_arg, struct LDKThirtyTwoBytes keys_id_arg, struct LDKChannelTransactionParameters transaction_parameters_arg);
12636 public static native long ChannelDerivationParameters_new(long value_satoshis_arg, byte[] keys_id_arg, long transaction_parameters_arg);
12637 // uint64_t ChannelDerivationParameters_clone_ptr(LDKChannelDerivationParameters *NONNULL_PTR arg);
12638 public static native long ChannelDerivationParameters_clone_ptr(long arg);
12639 // struct LDKChannelDerivationParameters ChannelDerivationParameters_clone(const struct LDKChannelDerivationParameters *NONNULL_PTR orig);
12640 public static native long ChannelDerivationParameters_clone(long orig);
12641 // bool ChannelDerivationParameters_eq(const struct LDKChannelDerivationParameters *NONNULL_PTR a, const struct LDKChannelDerivationParameters *NONNULL_PTR b);
12642 public static native boolean ChannelDerivationParameters_eq(long a, long b);
12643 // struct LDKCVec_u8Z ChannelDerivationParameters_write(const struct LDKChannelDerivationParameters *NONNULL_PTR obj);
12644 public static native byte[] ChannelDerivationParameters_write(long obj);
12645 // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ ChannelDerivationParameters_read(struct LDKu8slice ser);
12646 public static native long ChannelDerivationParameters_read(byte[] ser);
12647 // void HTLCDescriptor_free(struct LDKHTLCDescriptor this_obj);
12648 public static native void HTLCDescriptor_free(long this_obj);
12649 // struct LDKChannelDerivationParameters HTLCDescriptor_get_channel_derivation_parameters(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
12650 public static native long HTLCDescriptor_get_channel_derivation_parameters(long this_ptr);
12651 // void HTLCDescriptor_set_channel_derivation_parameters(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKChannelDerivationParameters val);
12652 public static native void HTLCDescriptor_set_channel_derivation_parameters(long this_ptr, long val);
12653 // uint64_t HTLCDescriptor_get_per_commitment_number(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
12654 public static native long HTLCDescriptor_get_per_commitment_number(long this_ptr);
12655 // void HTLCDescriptor_set_per_commitment_number(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, uint64_t val);
12656 public static native void HTLCDescriptor_set_per_commitment_number(long this_ptr, long val);
12657 // struct LDKPublicKey HTLCDescriptor_get_per_commitment_point(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
12658 public static native byte[] HTLCDescriptor_get_per_commitment_point(long this_ptr);
12659 // void HTLCDescriptor_set_per_commitment_point(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
12660 public static native void HTLCDescriptor_set_per_commitment_point(long this_ptr, byte[] val);
12661 // uint32_t HTLCDescriptor_get_feerate_per_kw(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
12662 public static native int HTLCDescriptor_get_feerate_per_kw(long this_ptr);
12663 // void HTLCDescriptor_set_feerate_per_kw(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, uint32_t val);
12664 public static native void HTLCDescriptor_set_feerate_per_kw(long this_ptr, int val);
12665 // struct LDKHTLCOutputInCommitment HTLCDescriptor_get_htlc(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
12666 public static native long HTLCDescriptor_get_htlc(long this_ptr);
12667 // void HTLCDescriptor_set_htlc(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKHTLCOutputInCommitment val);
12668 public static native void HTLCDescriptor_set_htlc(long this_ptr, long val);
12669 // struct LDKCOption_ThirtyTwoBytesZ HTLCDescriptor_get_preimage(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
12670 public static native long HTLCDescriptor_get_preimage(long this_ptr);
12671 // void HTLCDescriptor_set_preimage(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val);
12672 public static native void HTLCDescriptor_set_preimage(long this_ptr, long val);
12673 // struct LDKECDSASignature HTLCDescriptor_get_counterparty_sig(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr);
12674 public static native byte[] HTLCDescriptor_get_counterparty_sig(long this_ptr);
12675 // void HTLCDescriptor_set_counterparty_sig(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKECDSASignature val);
12676 public static native void HTLCDescriptor_set_counterparty_sig(long this_ptr, byte[] val);
12677 // uint64_t HTLCDescriptor_clone_ptr(LDKHTLCDescriptor *NONNULL_PTR arg);
12678 public static native long HTLCDescriptor_clone_ptr(long arg);
12679 // struct LDKHTLCDescriptor HTLCDescriptor_clone(const struct LDKHTLCDescriptor *NONNULL_PTR orig);
12680 public static native long HTLCDescriptor_clone(long orig);
12681 // bool HTLCDescriptor_eq(const struct LDKHTLCDescriptor *NONNULL_PTR a, const struct LDKHTLCDescriptor *NONNULL_PTR b);
12682 public static native boolean HTLCDescriptor_eq(long a, long b);
12683 // struct LDKCVec_u8Z HTLCDescriptor_write(const struct LDKHTLCDescriptor *NONNULL_PTR obj);
12684 public static native byte[] HTLCDescriptor_write(long obj);
12685 // struct LDKCResult_HTLCDescriptorDecodeErrorZ HTLCDescriptor_read(struct LDKu8slice ser);
12686 public static native long HTLCDescriptor_read(byte[] ser);
12687 // MUST_USE_RES struct LDKOutPoint HTLCDescriptor_outpoint(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
12688 public static native long HTLCDescriptor_outpoint(long this_arg);
12689 // MUST_USE_RES struct LDKTxOut HTLCDescriptor_previous_utxo(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
12690 public static native long HTLCDescriptor_previous_utxo(long this_arg);
12691 // MUST_USE_RES struct LDKTxIn HTLCDescriptor_unsigned_tx_input(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
12692 public static native long HTLCDescriptor_unsigned_tx_input(long this_arg);
12693 // MUST_USE_RES struct LDKTxOut HTLCDescriptor_tx_output(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
12694 public static native long HTLCDescriptor_tx_output(long this_arg);
12695 // MUST_USE_RES struct LDKCVec_u8Z HTLCDescriptor_witness_script(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg);
12696 public static native byte[] HTLCDescriptor_witness_script(long this_arg);
12697 // MUST_USE_RES struct LDKWitness HTLCDescriptor_tx_input_witness(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg, struct LDKECDSASignature signature, struct LDKu8slice witness_script);
12698 public static native byte[] HTLCDescriptor_tx_input_witness(long this_arg, byte[] signature, byte[] witness_script);
12699 // MUST_USE_RES struct LDKWriteableEcdsaChannelSigner HTLCDescriptor_derive_channel_signer(const struct LDKHTLCDescriptor *NONNULL_PTR this_arg, const struct LDKSignerProvider *NONNULL_PTR signer_provider);
12700 public static native long HTLCDescriptor_derive_channel_signer(long this_arg, long signer_provider);
12701 // void ChannelSigner_free(struct LDKChannelSigner this_ptr);
12702 public static native void ChannelSigner_free(long this_ptr);
12703 // enum LDKRecipient Recipient_clone(const enum LDKRecipient *NONNULL_PTR orig);
12704 public static native Recipient Recipient_clone(long orig);
12705 // enum LDKRecipient Recipient_node(void);
12706 public static native Recipient Recipient_node();
12707 // enum LDKRecipient Recipient_phantom_node(void);
12708 public static native Recipient Recipient_phantom_node();
12709 // void EntropySource_free(struct LDKEntropySource this_ptr);
12710 public static native void EntropySource_free(long this_ptr);
12711 // void NodeSigner_free(struct LDKNodeSigner this_ptr);
12712 public static native void NodeSigner_free(long this_ptr);
12713 // void SignerProvider_free(struct LDKSignerProvider this_ptr);
12714 public static native void SignerProvider_free(long this_ptr);
12715 // void InMemorySigner_free(struct LDKInMemorySigner this_obj);
12716 public static native void InMemorySigner_free(long this_obj);
12717 // const uint8_t (*InMemorySigner_get_funding_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
12718 public static native byte[] InMemorySigner_get_funding_key(long this_ptr);
12719 // void InMemorySigner_set_funding_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
12720 public static native void InMemorySigner_set_funding_key(long this_ptr, byte[] val);
12721 // const uint8_t (*InMemorySigner_get_revocation_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
12722 public static native byte[] InMemorySigner_get_revocation_base_key(long this_ptr);
12723 // void InMemorySigner_set_revocation_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
12724 public static native void InMemorySigner_set_revocation_base_key(long this_ptr, byte[] val);
12725 // const uint8_t (*InMemorySigner_get_payment_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
12726 public static native byte[] InMemorySigner_get_payment_key(long this_ptr);
12727 // void InMemorySigner_set_payment_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
12728 public static native void InMemorySigner_set_payment_key(long this_ptr, byte[] val);
12729 // const uint8_t (*InMemorySigner_get_delayed_payment_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
12730 public static native byte[] InMemorySigner_get_delayed_payment_base_key(long this_ptr);
12731 // void InMemorySigner_set_delayed_payment_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
12732 public static native void InMemorySigner_set_delayed_payment_base_key(long this_ptr, byte[] val);
12733 // const uint8_t (*InMemorySigner_get_htlc_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
12734 public static native byte[] InMemorySigner_get_htlc_base_key(long this_ptr);
12735 // void InMemorySigner_set_htlc_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
12736 public static native void InMemorySigner_set_htlc_base_key(long this_ptr, byte[] val);
12737 // const uint8_t (*InMemorySigner_get_commitment_seed(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
12738 public static native byte[] InMemorySigner_get_commitment_seed(long this_ptr);
12739 // void InMemorySigner_set_commitment_seed(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
12740 public static native void InMemorySigner_set_commitment_seed(long this_ptr, byte[] val);
12741 // uint64_t InMemorySigner_clone_ptr(LDKInMemorySigner *NONNULL_PTR arg);
12742 public static native long InMemorySigner_clone_ptr(long arg);
12743 // struct LDKInMemorySigner InMemorySigner_clone(const struct LDKInMemorySigner *NONNULL_PTR orig);
12744 public static native long InMemorySigner_clone(long orig);
12745 // 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);
12746 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);
12747 // MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
12748 public static native long InMemorySigner_counterparty_pubkeys(long this_arg);
12749 // MUST_USE_RES struct LDKCOption_u16Z InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
12750 public static native long InMemorySigner_counterparty_selected_contest_delay(long this_arg);
12751 // MUST_USE_RES struct LDKCOption_u16Z InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
12752 public static native long InMemorySigner_holder_selected_contest_delay(long this_arg);
12753 // MUST_USE_RES struct LDKCOption_boolZ InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
12754 public static native long InMemorySigner_is_outbound(long this_arg);
12755 // MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
12756 public static native long InMemorySigner_funding_outpoint(long this_arg);
12757 // MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
12758 public static native long InMemorySigner_get_channel_parameters(long this_arg);
12759 // MUST_USE_RES struct LDKChannelTypeFeatures InMemorySigner_channel_type_features(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
12760 public static native long InMemorySigner_channel_type_features(long this_arg);
12761 // 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);
12762 public static native long InMemorySigner_sign_counterparty_payment_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
12763 // 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);
12764 public static native long InMemorySigner_sign_dynamic_p2wsh_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
12765 // struct LDKEntropySource InMemorySigner_as_EntropySource(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
12766 public static native long InMemorySigner_as_EntropySource(long this_arg);
12767 // struct LDKChannelSigner InMemorySigner_as_ChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
12768 public static native long InMemorySigner_as_ChannelSigner(long this_arg);
12769 // struct LDKEcdsaChannelSigner InMemorySigner_as_EcdsaChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
12770 public static native long InMemorySigner_as_EcdsaChannelSigner(long this_arg);
12771 // struct LDKWriteableEcdsaChannelSigner InMemorySigner_as_WriteableEcdsaChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
12772 public static native long InMemorySigner_as_WriteableEcdsaChannelSigner(long this_arg);
12773 // struct LDKCVec_u8Z InMemorySigner_write(const struct LDKInMemorySigner *NONNULL_PTR obj);
12774 public static native byte[] InMemorySigner_write(long obj);
12775 // struct LDKCResult_InMemorySignerDecodeErrorZ InMemorySigner_read(struct LDKu8slice ser, struct LDKEntropySource arg);
12776 public static native long InMemorySigner_read(byte[] ser, long arg);
12777 // void KeysManager_free(struct LDKKeysManager this_obj);
12778 public static native void KeysManager_free(long this_obj);
12779 // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos);
12780 public static native long KeysManager_new(byte[] seed, long starting_time_secs, int starting_time_nanos);
12781 // MUST_USE_RES struct LDKSecretKey KeysManager_get_node_secret_key(const struct LDKKeysManager *NONNULL_PTR this_arg);
12782 public static native byte[] KeysManager_get_node_secret_key(long this_arg);
12783 // 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]);
12784 public static native long KeysManager_derive_channel_keys(long this_arg, long channel_value_satoshis, byte[] params);
12785 // 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);
12786 public static native long KeysManager_sign_spendable_outputs_psbt(long this_arg, long[] descriptors, byte[] psbt);
12787 // MUST_USE_RES struct LDKCResult_TransactionNoneZ KeysManager_spend_spendable_outputs(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_u32Z locktime);
12788 public static native long KeysManager_spend_spendable_outputs(long this_arg, long[] descriptors, long[] outputs, byte[] change_destination_script, int feerate_sat_per_1000_weight, long locktime);
12789 // struct LDKEntropySource KeysManager_as_EntropySource(const struct LDKKeysManager *NONNULL_PTR this_arg);
12790 public static native long KeysManager_as_EntropySource(long this_arg);
12791 // struct LDKNodeSigner KeysManager_as_NodeSigner(const struct LDKKeysManager *NONNULL_PTR this_arg);
12792 public static native long KeysManager_as_NodeSigner(long this_arg);
12793 // struct LDKSignerProvider KeysManager_as_SignerProvider(const struct LDKKeysManager *NONNULL_PTR this_arg);
12794 public static native long KeysManager_as_SignerProvider(long this_arg);
12795 // void PhantomKeysManager_free(struct LDKPhantomKeysManager this_obj);
12796 public static native void PhantomKeysManager_free(long this_obj);
12797 // struct LDKEntropySource PhantomKeysManager_as_EntropySource(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
12798 public static native long PhantomKeysManager_as_EntropySource(long this_arg);
12799 // struct LDKNodeSigner PhantomKeysManager_as_NodeSigner(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
12800 public static native long PhantomKeysManager_as_NodeSigner(long this_arg);
12801 // struct LDKSignerProvider PhantomKeysManager_as_SignerProvider(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
12802 public static native long PhantomKeysManager_as_SignerProvider(long this_arg);
12803 // 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]);
12804 public static native long PhantomKeysManager_new(byte[] seed, long starting_time_secs, int starting_time_nanos, byte[] cross_node_seed);
12805 // MUST_USE_RES struct LDKCResult_TransactionNoneZ PhantomKeysManager_spend_spendable_outputs(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_u32Z locktime);
12806 public static native long PhantomKeysManager_spend_spendable_outputs(long this_arg, long[] descriptors, long[] outputs, byte[] change_destination_script, int feerate_sat_per_1000_weight, long locktime);
12807 // 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]);
12808 public static native long PhantomKeysManager_derive_channel_keys(long this_arg, long channel_value_satoshis, byte[] params);
12809 // MUST_USE_RES struct LDKSecretKey PhantomKeysManager_get_node_secret_key(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
12810 public static native byte[] PhantomKeysManager_get_node_secret_key(long this_arg);
12811 // MUST_USE_RES struct LDKSecretKey PhantomKeysManager_get_phantom_node_secret_key(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
12812 public static native byte[] PhantomKeysManager_get_phantom_node_secret_key(long this_arg);
12813 // void EcdsaChannelSigner_free(struct LDKEcdsaChannelSigner this_ptr);
12814 public static native void EcdsaChannelSigner_free(long this_ptr);
12815 // uint64_t WriteableEcdsaChannelSigner_clone_ptr(LDKWriteableEcdsaChannelSigner *NONNULL_PTR arg);
12816 public static native long WriteableEcdsaChannelSigner_clone_ptr(long arg);
12817 // struct LDKWriteableEcdsaChannelSigner WriteableEcdsaChannelSigner_clone(const struct LDKWriteableEcdsaChannelSigner *NONNULL_PTR orig);
12818 public static native long WriteableEcdsaChannelSigner_clone(long orig);
12819 // void WriteableEcdsaChannelSigner_free(struct LDKWriteableEcdsaChannelSigner this_ptr);
12820 public static native void WriteableEcdsaChannelSigner_free(long this_ptr);
12821 // void OnionMessenger_free(struct LDKOnionMessenger this_obj);
12822 public static native void OnionMessenger_free(long this_obj);
12823 // void MessageRouter_free(struct LDKMessageRouter this_ptr);
12824 public static native void MessageRouter_free(long this_ptr);
12825 // void DefaultMessageRouter_free(struct LDKDefaultMessageRouter this_obj);
12826 public static native void DefaultMessageRouter_free(long this_obj);
12827 // MUST_USE_RES struct LDKDefaultMessageRouter DefaultMessageRouter_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKEntropySource entropy_source);
12828 public static native long DefaultMessageRouter_new(long network_graph, long entropy_source);
12829 // struct LDKMessageRouter DefaultMessageRouter_as_MessageRouter(const struct LDKDefaultMessageRouter *NONNULL_PTR this_arg);
12830 public static native long DefaultMessageRouter_as_MessageRouter(long this_arg);
12831 // void OnionMessagePath_free(struct LDKOnionMessagePath this_obj);
12832 public static native void OnionMessagePath_free(long this_obj);
12833 // struct LDKCVec_PublicKeyZ OnionMessagePath_get_intermediate_nodes(const struct LDKOnionMessagePath *NONNULL_PTR this_ptr);
12834 public static native byte[][] OnionMessagePath_get_intermediate_nodes(long this_ptr);
12835 // void OnionMessagePath_set_intermediate_nodes(struct LDKOnionMessagePath *NONNULL_PTR this_ptr, struct LDKCVec_PublicKeyZ val);
12836 public static native void OnionMessagePath_set_intermediate_nodes(long this_ptr, byte[][] val);
12837 // struct LDKDestination OnionMessagePath_get_destination(const struct LDKOnionMessagePath *NONNULL_PTR this_ptr);
12838 public static native long OnionMessagePath_get_destination(long this_ptr);
12839 // void OnionMessagePath_set_destination(struct LDKOnionMessagePath *NONNULL_PTR this_ptr, struct LDKDestination val);
12840 public static native void OnionMessagePath_set_destination(long this_ptr, long val);
12841 // struct LDKCOption_CVec_SocketAddressZZ OnionMessagePath_get_first_node_addresses(const struct LDKOnionMessagePath *NONNULL_PTR this_ptr);
12842 public static native long OnionMessagePath_get_first_node_addresses(long this_ptr);
12843 // void OnionMessagePath_set_first_node_addresses(struct LDKOnionMessagePath *NONNULL_PTR this_ptr, struct LDKCOption_CVec_SocketAddressZZ val);
12844 public static native void OnionMessagePath_set_first_node_addresses(long this_ptr, long val);
12845 // 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);
12846 public static native long OnionMessagePath_new(byte[][] intermediate_nodes_arg, long destination_arg, long first_node_addresses_arg);
12847 // uint64_t OnionMessagePath_clone_ptr(LDKOnionMessagePath *NONNULL_PTR arg);
12848 public static native long OnionMessagePath_clone_ptr(long arg);
12849 // struct LDKOnionMessagePath OnionMessagePath_clone(const struct LDKOnionMessagePath *NONNULL_PTR orig);
12850 public static native long OnionMessagePath_clone(long orig);
12851 // MUST_USE_RES struct LDKPublicKey OnionMessagePath_first_node(const struct LDKOnionMessagePath *NONNULL_PTR this_arg);
12852 public static native byte[] OnionMessagePath_first_node(long this_arg);
12853 // void Destination_free(struct LDKDestination this_ptr);
12854 public static native void Destination_free(long this_ptr);
12855 // uint64_t Destination_clone_ptr(LDKDestination *NONNULL_PTR arg);
12856 public static native long Destination_clone_ptr(long arg);
12857 // struct LDKDestination Destination_clone(const struct LDKDestination *NONNULL_PTR orig);
12858 public static native long Destination_clone(long orig);
12859 // struct LDKDestination Destination_node(struct LDKPublicKey a);
12860 public static native long Destination_node(byte[] a);
12861 // struct LDKDestination Destination_blinded_path(struct LDKBlindedPath a);
12862 public static native long Destination_blinded_path(long a);
12863 // void SendSuccess_free(struct LDKSendSuccess this_ptr);
12864 public static native void SendSuccess_free(long this_ptr);
12865 // uint64_t SendSuccess_clone_ptr(LDKSendSuccess *NONNULL_PTR arg);
12866 public static native long SendSuccess_clone_ptr(long arg);
12867 // struct LDKSendSuccess SendSuccess_clone(const struct LDKSendSuccess *NONNULL_PTR orig);
12868 public static native long SendSuccess_clone(long orig);
12869 // struct LDKSendSuccess SendSuccess_buffered(void);
12870 public static native long SendSuccess_buffered();
12871 // struct LDKSendSuccess SendSuccess_buffered_awaiting_connection(struct LDKPublicKey a);
12872 public static native long SendSuccess_buffered_awaiting_connection(byte[] a);
12873 // bool SendSuccess_eq(const struct LDKSendSuccess *NONNULL_PTR a, const struct LDKSendSuccess *NONNULL_PTR b);
12874 public static native boolean SendSuccess_eq(long a, long b);
12875 // void SendError_free(struct LDKSendError this_ptr);
12876 public static native void SendError_free(long this_ptr);
12877 // uint64_t SendError_clone_ptr(LDKSendError *NONNULL_PTR arg);
12878 public static native long SendError_clone_ptr(long arg);
12879 // struct LDKSendError SendError_clone(const struct LDKSendError *NONNULL_PTR orig);
12880 public static native long SendError_clone(long orig);
12881 // struct LDKSendError SendError_secp256k1(enum LDKSecp256k1Error a);
12882 public static native long SendError_secp256k1(Secp256k1Error a);
12883 // struct LDKSendError SendError_too_big_packet(void);
12884 public static native long SendError_too_big_packet();
12885 // struct LDKSendError SendError_too_few_blinded_hops(void);
12886 public static native long SendError_too_few_blinded_hops();
12887 // struct LDKSendError SendError_invalid_first_hop(struct LDKPublicKey a);
12888 public static native long SendError_invalid_first_hop(byte[] a);
12889 // struct LDKSendError SendError_path_not_found(void);
12890 public static native long SendError_path_not_found();
12891 // struct LDKSendError SendError_invalid_message(void);
12892 public static native long SendError_invalid_message();
12893 // struct LDKSendError SendError_buffer_full(void);
12894 public static native long SendError_buffer_full();
12895 // struct LDKSendError SendError_get_node_id_failed(void);
12896 public static native long SendError_get_node_id_failed();
12897 // struct LDKSendError SendError_blinded_path_advance_failed(void);
12898 public static native long SendError_blinded_path_advance_failed();
12899 // bool SendError_eq(const struct LDKSendError *NONNULL_PTR a, const struct LDKSendError *NONNULL_PTR b);
12900 public static native boolean SendError_eq(long a, long b);
12901 // void CustomOnionMessageHandler_free(struct LDKCustomOnionMessageHandler this_ptr);
12902 public static native void CustomOnionMessageHandler_free(long this_ptr);
12903 // void PeeledOnion_free(struct LDKPeeledOnion this_ptr);
12904 public static native void PeeledOnion_free(long this_ptr);
12905 // uint64_t PeeledOnion_clone_ptr(LDKPeeledOnion *NONNULL_PTR arg);
12906 public static native long PeeledOnion_clone_ptr(long arg);
12907 // struct LDKPeeledOnion PeeledOnion_clone(const struct LDKPeeledOnion *NONNULL_PTR orig);
12908 public static native long PeeledOnion_clone(long orig);
12909 // struct LDKPeeledOnion PeeledOnion_forward(struct LDKPublicKey a, struct LDKOnionMessage b);
12910 public static native long PeeledOnion_forward(byte[] a, long b);
12911 // struct LDKPeeledOnion PeeledOnion_receive(struct LDKParsedOnionMessageContents a, struct LDKThirtyTwoBytes b, struct LDKBlindedPath c);
12912 public static native long PeeledOnion_receive(long a, byte[] b, long c);
12913 // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ create_onion_message(const struct LDKEntropySource *NONNULL_PTR entropy_source, const struct LDKNodeSigner *NONNULL_PTR node_signer, struct LDKOnionMessagePath path, struct LDKOnionMessageContents contents, struct LDKBlindedPath reply_path);
12914 public static native long create_onion_message(long entropy_source, long node_signer, long path, long contents, long reply_path);
12915 // struct LDKCResult_PeeledOnionNoneZ peel_onion_message(const struct LDKOnionMessage *NONNULL_PTR msg, struct LDKNodeSigner node_signer, struct LDKLogger logger, struct LDKCustomOnionMessageHandler custom_handler);
12916 public static native long peel_onion_message(long msg, long node_signer, long logger, long custom_handler);
12917 // MUST_USE_RES struct LDKOnionMessenger OnionMessenger_new(struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, struct LDKMessageRouter message_router, struct LDKOffersMessageHandler offers_handler, struct LDKCustomOnionMessageHandler custom_handler);
12918 public static native long OnionMessenger_new(long entropy_source, long node_signer, long logger, long message_router, long offers_handler, long custom_handler);
12919 // 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);
12920 public static native long OnionMessenger_send_onion_message(long this_arg, long contents, long destination, long reply_path);
12921 // struct LDKOnionMessageHandler OnionMessenger_as_OnionMessageHandler(const struct LDKOnionMessenger *NONNULL_PTR this_arg);
12922 public static native long OnionMessenger_as_OnionMessageHandler(long this_arg);
12923 // void OffersMessageHandler_free(struct LDKOffersMessageHandler this_ptr);
12924 public static native void OffersMessageHandler_free(long this_ptr);
12925 // void OffersMessage_free(struct LDKOffersMessage this_ptr);
12926 public static native void OffersMessage_free(long this_ptr);
12927 // uint64_t OffersMessage_clone_ptr(LDKOffersMessage *NONNULL_PTR arg);
12928 public static native long OffersMessage_clone_ptr(long arg);
12929 // struct LDKOffersMessage OffersMessage_clone(const struct LDKOffersMessage *NONNULL_PTR orig);
12930 public static native long OffersMessage_clone(long orig);
12931 // struct LDKOffersMessage OffersMessage_invoice_request(struct LDKInvoiceRequest a);
12932 public static native long OffersMessage_invoice_request(long a);
12933 // struct LDKOffersMessage OffersMessage_invoice(struct LDKBolt12Invoice a);
12934 public static native long OffersMessage_invoice(long a);
12935 // struct LDKOffersMessage OffersMessage_invoice_error(struct LDKInvoiceError a);
12936 public static native long OffersMessage_invoice_error(long a);
12937 // MUST_USE_RES bool OffersMessage_is_known_type(uint64_t tlv_type);
12938 public static native boolean OffersMessage_is_known_type(long tlv_type);
12939 // struct LDKOnionMessageContents OffersMessage_as_OnionMessageContents(const struct LDKOffersMessage *NONNULL_PTR this_arg);
12940 public static native long OffersMessage_as_OnionMessageContents(long this_arg);
12941 // struct LDKCVec_u8Z OffersMessage_write(const struct LDKOffersMessage *NONNULL_PTR obj);
12942 public static native byte[] OffersMessage_write(long obj);
12943 // struct LDKCResult_OffersMessageDecodeErrorZ OffersMessage_read(struct LDKu8slice ser, uint64_t arg_a, const struct LDKLogger *NONNULL_PTR arg_b);
12944 public static native long OffersMessage_read(byte[] ser, long arg_a, long arg_b);
12945 // void Packet_free(struct LDKPacket this_obj);
12946 public static native void Packet_free(long this_obj);
12947 // uint8_t Packet_get_version(const struct LDKPacket *NONNULL_PTR this_ptr);
12948 public static native byte Packet_get_version(long this_ptr);
12949 // void Packet_set_version(struct LDKPacket *NONNULL_PTR this_ptr, uint8_t val);
12950 public static native void Packet_set_version(long this_ptr, byte val);
12951 // struct LDKPublicKey Packet_get_public_key(const struct LDKPacket *NONNULL_PTR this_ptr);
12952 public static native byte[] Packet_get_public_key(long this_ptr);
12953 // void Packet_set_public_key(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKPublicKey val);
12954 public static native void Packet_set_public_key(long this_ptr, byte[] val);
12955 // struct LDKCVec_u8Z Packet_get_hop_data(const struct LDKPacket *NONNULL_PTR this_ptr);
12956 public static native byte[] Packet_get_hop_data(long this_ptr);
12957 // void Packet_set_hop_data(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
12958 public static native void Packet_set_hop_data(long this_ptr, byte[] val);
12959 // const uint8_t (*Packet_get_hmac(const struct LDKPacket *NONNULL_PTR this_ptr))[32];
12960 public static native byte[] Packet_get_hmac(long this_ptr);
12961 // void Packet_set_hmac(struct LDKPacket *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
12962 public static native void Packet_set_hmac(long this_ptr, byte[] val);
12963 // 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);
12964 public static native long Packet_new(byte version_arg, byte[] public_key_arg, byte[] hop_data_arg, byte[] hmac_arg);
12965 // uint64_t Packet_clone_ptr(LDKPacket *NONNULL_PTR arg);
12966 public static native long Packet_clone_ptr(long arg);
12967 // struct LDKPacket Packet_clone(const struct LDKPacket *NONNULL_PTR orig);
12968 public static native long Packet_clone(long orig);
12969 // uint64_t Packet_hash(const struct LDKPacket *NONNULL_PTR o);
12970 public static native long Packet_hash(long o);
12971 // bool Packet_eq(const struct LDKPacket *NONNULL_PTR a, const struct LDKPacket *NONNULL_PTR b);
12972 public static native boolean Packet_eq(long a, long b);
12973 // struct LDKCVec_u8Z Packet_write(const struct LDKPacket *NONNULL_PTR obj);
12974 public static native byte[] Packet_write(long obj);
12975 // void ParsedOnionMessageContents_free(struct LDKParsedOnionMessageContents this_ptr);
12976 public static native void ParsedOnionMessageContents_free(long this_ptr);
12977 // uint64_t ParsedOnionMessageContents_clone_ptr(LDKParsedOnionMessageContents *NONNULL_PTR arg);
12978 public static native long ParsedOnionMessageContents_clone_ptr(long arg);
12979 // struct LDKParsedOnionMessageContents ParsedOnionMessageContents_clone(const struct LDKParsedOnionMessageContents *NONNULL_PTR orig);
12980 public static native long ParsedOnionMessageContents_clone(long orig);
12981 // struct LDKParsedOnionMessageContents ParsedOnionMessageContents_offers(struct LDKOffersMessage a);
12982 public static native long ParsedOnionMessageContents_offers(long a);
12983 // struct LDKParsedOnionMessageContents ParsedOnionMessageContents_custom(struct LDKOnionMessageContents a);
12984 public static native long ParsedOnionMessageContents_custom(long a);
12985 // struct LDKOnionMessageContents ParsedOnionMessageContents_as_OnionMessageContents(const struct LDKParsedOnionMessageContents *NONNULL_PTR this_arg);
12986 public static native long ParsedOnionMessageContents_as_OnionMessageContents(long this_arg);
12987 // struct LDKCVec_u8Z ParsedOnionMessageContents_write(const struct LDKParsedOnionMessageContents *NONNULL_PTR obj);
12988 public static native byte[] ParsedOnionMessageContents_write(long obj);
12989 // uint64_t OnionMessageContents_clone_ptr(LDKOnionMessageContents *NONNULL_PTR arg);
12990 public static native long OnionMessageContents_clone_ptr(long arg);
12991 // struct LDKOnionMessageContents OnionMessageContents_clone(const struct LDKOnionMessageContents *NONNULL_PTR orig);
12992 public static native long OnionMessageContents_clone(long orig);
12993 // void OnionMessageContents_free(struct LDKOnionMessageContents this_ptr);
12994 public static native void OnionMessageContents_free(long this_ptr);
12995 // void BlindedPath_free(struct LDKBlindedPath this_obj);
12996 public static native void BlindedPath_free(long this_obj);
12997 // struct LDKPublicKey BlindedPath_get_introduction_node_id(const struct LDKBlindedPath *NONNULL_PTR this_ptr);
12998 public static native byte[] BlindedPath_get_introduction_node_id(long this_ptr);
12999 // void BlindedPath_set_introduction_node_id(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKPublicKey val);
13000 public static native void BlindedPath_set_introduction_node_id(long this_ptr, byte[] val);
13001 // struct LDKPublicKey BlindedPath_get_blinding_point(const struct LDKBlindedPath *NONNULL_PTR this_ptr);
13002 public static native byte[] BlindedPath_get_blinding_point(long this_ptr);
13003 // void BlindedPath_set_blinding_point(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKPublicKey val);
13004 public static native void BlindedPath_set_blinding_point(long this_ptr, byte[] val);
13005 // struct LDKCVec_BlindedHopZ BlindedPath_get_blinded_hops(const struct LDKBlindedPath *NONNULL_PTR this_ptr);
13006 public static native long[] BlindedPath_get_blinded_hops(long this_ptr);
13007 // void BlindedPath_set_blinded_hops(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKCVec_BlindedHopZ val);
13008 public static native void BlindedPath_set_blinded_hops(long this_ptr, long[] val);
13009 // MUST_USE_RES struct LDKBlindedPath BlindedPath_new(struct LDKPublicKey introduction_node_id_arg, struct LDKPublicKey blinding_point_arg, struct LDKCVec_BlindedHopZ blinded_hops_arg);
13010 public static native long BlindedPath_new(byte[] introduction_node_id_arg, byte[] blinding_point_arg, long[] blinded_hops_arg);
13011 // uint64_t BlindedPath_clone_ptr(LDKBlindedPath *NONNULL_PTR arg);
13012 public static native long BlindedPath_clone_ptr(long arg);
13013 // struct LDKBlindedPath BlindedPath_clone(const struct LDKBlindedPath *NONNULL_PTR orig);
13014 public static native long BlindedPath_clone(long orig);
13015 // uint64_t BlindedPath_hash(const struct LDKBlindedPath *NONNULL_PTR o);
13016 public static native long BlindedPath_hash(long o);
13017 // bool BlindedPath_eq(const struct LDKBlindedPath *NONNULL_PTR a, const struct LDKBlindedPath *NONNULL_PTR b);
13018 public static native boolean BlindedPath_eq(long a, long b);
13019 // void BlindedHop_free(struct LDKBlindedHop this_obj);
13020 public static native void BlindedHop_free(long this_obj);
13021 // struct LDKPublicKey BlindedHop_get_blinded_node_id(const struct LDKBlindedHop *NONNULL_PTR this_ptr);
13022 public static native byte[] BlindedHop_get_blinded_node_id(long this_ptr);
13023 // void BlindedHop_set_blinded_node_id(struct LDKBlindedHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
13024 public static native void BlindedHop_set_blinded_node_id(long this_ptr, byte[] val);
13025 // struct LDKCVec_u8Z BlindedHop_get_encrypted_payload(const struct LDKBlindedHop *NONNULL_PTR this_ptr);
13026 public static native byte[] BlindedHop_get_encrypted_payload(long this_ptr);
13027 // void BlindedHop_set_encrypted_payload(struct LDKBlindedHop *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
13028 public static native void BlindedHop_set_encrypted_payload(long this_ptr, byte[] val);
13029 // MUST_USE_RES struct LDKBlindedHop BlindedHop_new(struct LDKPublicKey blinded_node_id_arg, struct LDKCVec_u8Z encrypted_payload_arg);
13030 public static native long BlindedHop_new(byte[] blinded_node_id_arg, byte[] encrypted_payload_arg);
13031 // uint64_t BlindedHop_clone_ptr(LDKBlindedHop *NONNULL_PTR arg);
13032 public static native long BlindedHop_clone_ptr(long arg);
13033 // struct LDKBlindedHop BlindedHop_clone(const struct LDKBlindedHop *NONNULL_PTR orig);
13034 public static native long BlindedHop_clone(long orig);
13035 // uint64_t BlindedHop_hash(const struct LDKBlindedHop *NONNULL_PTR o);
13036 public static native long BlindedHop_hash(long o);
13037 // bool BlindedHop_eq(const struct LDKBlindedHop *NONNULL_PTR a, const struct LDKBlindedHop *NONNULL_PTR b);
13038 public static native boolean BlindedHop_eq(long a, long b);
13039 // MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_one_hop_for_message(struct LDKPublicKey recipient_node_id, const struct LDKEntropySource *NONNULL_PTR entropy_source);
13040 public static native long BlindedPath_one_hop_for_message(byte[] recipient_node_id, long entropy_source);
13041 // MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_new_for_message(struct LDKCVec_PublicKeyZ node_pks, const struct LDKEntropySource *NONNULL_PTR entropy_source);
13042 public static native long BlindedPath_new_for_message(byte[][] node_pks, long entropy_source);
13043 // MUST_USE_RES struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ BlindedPath_one_hop_for_payment(struct LDKPublicKey payee_node_id, struct LDKReceiveTlvs payee_tlvs, const struct LDKEntropySource *NONNULL_PTR entropy_source);
13044 public static native long BlindedPath_one_hop_for_payment(byte[] payee_node_id, long payee_tlvs, long entropy_source);
13045 // 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, const struct LDKEntropySource *NONNULL_PTR entropy_source);
13046 public static native long BlindedPath_new_for_payment(long[] intermediate_nodes, byte[] payee_node_id, long payee_tlvs, long htlc_maximum_msat, long entropy_source);
13047 // struct LDKCVec_u8Z BlindedPath_write(const struct LDKBlindedPath *NONNULL_PTR obj);
13048 public static native byte[] BlindedPath_write(long obj);
13049 // struct LDKCResult_BlindedPathDecodeErrorZ BlindedPath_read(struct LDKu8slice ser);
13050 public static native long BlindedPath_read(byte[] ser);
13051 // struct LDKCVec_u8Z BlindedHop_write(const struct LDKBlindedHop *NONNULL_PTR obj);
13052 public static native byte[] BlindedHop_write(long obj);
13053 // struct LDKCResult_BlindedHopDecodeErrorZ BlindedHop_read(struct LDKu8slice ser);
13054 public static native long BlindedHop_read(byte[] ser);
13055 // void ForwardNode_free(struct LDKForwardNode this_obj);
13056 public static native void ForwardNode_free(long this_obj);
13057 // struct LDKForwardTlvs ForwardNode_get_tlvs(const struct LDKForwardNode *NONNULL_PTR this_ptr);
13058 public static native long ForwardNode_get_tlvs(long this_ptr);
13059 // void ForwardNode_set_tlvs(struct LDKForwardNode *NONNULL_PTR this_ptr, struct LDKForwardTlvs val);
13060 public static native void ForwardNode_set_tlvs(long this_ptr, long val);
13061 // struct LDKPublicKey ForwardNode_get_node_id(const struct LDKForwardNode *NONNULL_PTR this_ptr);
13062 public static native byte[] ForwardNode_get_node_id(long this_ptr);
13063 // void ForwardNode_set_node_id(struct LDKForwardNode *NONNULL_PTR this_ptr, struct LDKPublicKey val);
13064 public static native void ForwardNode_set_node_id(long this_ptr, byte[] val);
13065 // uint64_t ForwardNode_get_htlc_maximum_msat(const struct LDKForwardNode *NONNULL_PTR this_ptr);
13066 public static native long ForwardNode_get_htlc_maximum_msat(long this_ptr);
13067 // void ForwardNode_set_htlc_maximum_msat(struct LDKForwardNode *NONNULL_PTR this_ptr, uint64_t val);
13068 public static native void ForwardNode_set_htlc_maximum_msat(long this_ptr, long val);
13069 // MUST_USE_RES struct LDKForwardNode ForwardNode_new(struct LDKForwardTlvs tlvs_arg, struct LDKPublicKey node_id_arg, uint64_t htlc_maximum_msat_arg);
13070 public static native long ForwardNode_new(long tlvs_arg, byte[] node_id_arg, long htlc_maximum_msat_arg);
13071 // uint64_t ForwardNode_clone_ptr(LDKForwardNode *NONNULL_PTR arg);
13072 public static native long ForwardNode_clone_ptr(long arg);
13073 // struct LDKForwardNode ForwardNode_clone(const struct LDKForwardNode *NONNULL_PTR orig);
13074 public static native long ForwardNode_clone(long orig);
13075 // void ForwardTlvs_free(struct LDKForwardTlvs this_obj);
13076 public static native void ForwardTlvs_free(long this_obj);
13077 // uint64_t ForwardTlvs_get_short_channel_id(const struct LDKForwardTlvs *NONNULL_PTR this_ptr);
13078 public static native long ForwardTlvs_get_short_channel_id(long this_ptr);
13079 // void ForwardTlvs_set_short_channel_id(struct LDKForwardTlvs *NONNULL_PTR this_ptr, uint64_t val);
13080 public static native void ForwardTlvs_set_short_channel_id(long this_ptr, long val);
13081 // struct LDKPaymentRelay ForwardTlvs_get_payment_relay(const struct LDKForwardTlvs *NONNULL_PTR this_ptr);
13082 public static native long ForwardTlvs_get_payment_relay(long this_ptr);
13083 // void ForwardTlvs_set_payment_relay(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKPaymentRelay val);
13084 public static native void ForwardTlvs_set_payment_relay(long this_ptr, long val);
13085 // struct LDKPaymentConstraints ForwardTlvs_get_payment_constraints(const struct LDKForwardTlvs *NONNULL_PTR this_ptr);
13086 public static native long ForwardTlvs_get_payment_constraints(long this_ptr);
13087 // void ForwardTlvs_set_payment_constraints(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKPaymentConstraints val);
13088 public static native void ForwardTlvs_set_payment_constraints(long this_ptr, long val);
13089 // struct LDKBlindedHopFeatures ForwardTlvs_get_features(const struct LDKForwardTlvs *NONNULL_PTR this_ptr);
13090 public static native long ForwardTlvs_get_features(long this_ptr);
13091 // void ForwardTlvs_set_features(struct LDKForwardTlvs *NONNULL_PTR this_ptr, struct LDKBlindedHopFeatures val);
13092 public static native void ForwardTlvs_set_features(long this_ptr, long val);
13093 // 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);
13094 public static native long ForwardTlvs_new(long short_channel_id_arg, long payment_relay_arg, long payment_constraints_arg, long features_arg);
13095 // uint64_t ForwardTlvs_clone_ptr(LDKForwardTlvs *NONNULL_PTR arg);
13096 public static native long ForwardTlvs_clone_ptr(long arg);
13097 // struct LDKForwardTlvs ForwardTlvs_clone(const struct LDKForwardTlvs *NONNULL_PTR orig);
13098 public static native long ForwardTlvs_clone(long orig);
13099 // void ReceiveTlvs_free(struct LDKReceiveTlvs this_obj);
13100 public static native void ReceiveTlvs_free(long this_obj);
13101 // const uint8_t (*ReceiveTlvs_get_payment_secret(const struct LDKReceiveTlvs *NONNULL_PTR this_ptr))[32];
13102 public static native byte[] ReceiveTlvs_get_payment_secret(long this_ptr);
13103 // void ReceiveTlvs_set_payment_secret(struct LDKReceiveTlvs *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
13104 public static native void ReceiveTlvs_set_payment_secret(long this_ptr, byte[] val);
13105 // struct LDKPaymentConstraints ReceiveTlvs_get_payment_constraints(const struct LDKReceiveTlvs *NONNULL_PTR this_ptr);
13106 public static native long ReceiveTlvs_get_payment_constraints(long this_ptr);
13107 // void ReceiveTlvs_set_payment_constraints(struct LDKReceiveTlvs *NONNULL_PTR this_ptr, struct LDKPaymentConstraints val);
13108 public static native void ReceiveTlvs_set_payment_constraints(long this_ptr, long val);
13109 // MUST_USE_RES struct LDKReceiveTlvs ReceiveTlvs_new(struct LDKThirtyTwoBytes payment_secret_arg, struct LDKPaymentConstraints payment_constraints_arg);
13110 public static native long ReceiveTlvs_new(byte[] payment_secret_arg, long payment_constraints_arg);
13111 // uint64_t ReceiveTlvs_clone_ptr(LDKReceiveTlvs *NONNULL_PTR arg);
13112 public static native long ReceiveTlvs_clone_ptr(long arg);
13113 // struct LDKReceiveTlvs ReceiveTlvs_clone(const struct LDKReceiveTlvs *NONNULL_PTR orig);
13114 public static native long ReceiveTlvs_clone(long orig);
13115 // void PaymentRelay_free(struct LDKPaymentRelay this_obj);
13116 public static native void PaymentRelay_free(long this_obj);
13117 // uint16_t PaymentRelay_get_cltv_expiry_delta(const struct LDKPaymentRelay *NONNULL_PTR this_ptr);
13118 public static native short PaymentRelay_get_cltv_expiry_delta(long this_ptr);
13119 // void PaymentRelay_set_cltv_expiry_delta(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint16_t val);
13120 public static native void PaymentRelay_set_cltv_expiry_delta(long this_ptr, short val);
13121 // uint32_t PaymentRelay_get_fee_proportional_millionths(const struct LDKPaymentRelay *NONNULL_PTR this_ptr);
13122 public static native int PaymentRelay_get_fee_proportional_millionths(long this_ptr);
13123 // void PaymentRelay_set_fee_proportional_millionths(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint32_t val);
13124 public static native void PaymentRelay_set_fee_proportional_millionths(long this_ptr, int val);
13125 // uint32_t PaymentRelay_get_fee_base_msat(const struct LDKPaymentRelay *NONNULL_PTR this_ptr);
13126 public static native int PaymentRelay_get_fee_base_msat(long this_ptr);
13127 // void PaymentRelay_set_fee_base_msat(struct LDKPaymentRelay *NONNULL_PTR this_ptr, uint32_t val);
13128 public static native void PaymentRelay_set_fee_base_msat(long this_ptr, int val);
13129 // 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);
13130 public static native long PaymentRelay_new(short cltv_expiry_delta_arg, int fee_proportional_millionths_arg, int fee_base_msat_arg);
13131 // uint64_t PaymentRelay_clone_ptr(LDKPaymentRelay *NONNULL_PTR arg);
13132 public static native long PaymentRelay_clone_ptr(long arg);
13133 // struct LDKPaymentRelay PaymentRelay_clone(const struct LDKPaymentRelay *NONNULL_PTR orig);
13134 public static native long PaymentRelay_clone(long orig);
13135 // void PaymentConstraints_free(struct LDKPaymentConstraints this_obj);
13136 public static native void PaymentConstraints_free(long this_obj);
13137 // uint32_t PaymentConstraints_get_max_cltv_expiry(const struct LDKPaymentConstraints *NONNULL_PTR this_ptr);
13138 public static native int PaymentConstraints_get_max_cltv_expiry(long this_ptr);
13139 // void PaymentConstraints_set_max_cltv_expiry(struct LDKPaymentConstraints *NONNULL_PTR this_ptr, uint32_t val);
13140 public static native void PaymentConstraints_set_max_cltv_expiry(long this_ptr, int val);
13141 // uint64_t PaymentConstraints_get_htlc_minimum_msat(const struct LDKPaymentConstraints *NONNULL_PTR this_ptr);
13142 public static native long PaymentConstraints_get_htlc_minimum_msat(long this_ptr);
13143 // void PaymentConstraints_set_htlc_minimum_msat(struct LDKPaymentConstraints *NONNULL_PTR this_ptr, uint64_t val);
13144 public static native void PaymentConstraints_set_htlc_minimum_msat(long this_ptr, long val);
13145 // MUST_USE_RES struct LDKPaymentConstraints PaymentConstraints_new(uint32_t max_cltv_expiry_arg, uint64_t htlc_minimum_msat_arg);
13146 public static native long PaymentConstraints_new(int max_cltv_expiry_arg, long htlc_minimum_msat_arg);
13147 // uint64_t PaymentConstraints_clone_ptr(LDKPaymentConstraints *NONNULL_PTR arg);
13148 public static native long PaymentConstraints_clone_ptr(long arg);
13149 // struct LDKPaymentConstraints PaymentConstraints_clone(const struct LDKPaymentConstraints *NONNULL_PTR orig);
13150 public static native long PaymentConstraints_clone(long orig);
13151 // struct LDKCVec_u8Z ForwardTlvs_write(const struct LDKForwardTlvs *NONNULL_PTR obj);
13152 public static native byte[] ForwardTlvs_write(long obj);
13153 // struct LDKCVec_u8Z ReceiveTlvs_write(const struct LDKReceiveTlvs *NONNULL_PTR obj);
13154 public static native byte[] ReceiveTlvs_write(long obj);
13155 // struct LDKCVec_u8Z PaymentRelay_write(const struct LDKPaymentRelay *NONNULL_PTR obj);
13156 public static native byte[] PaymentRelay_write(long obj);
13157 // struct LDKCResult_PaymentRelayDecodeErrorZ PaymentRelay_read(struct LDKu8slice ser);
13158 public static native long PaymentRelay_read(byte[] ser);
13159 // struct LDKCVec_u8Z PaymentConstraints_write(const struct LDKPaymentConstraints *NONNULL_PTR obj);
13160 public static native byte[] PaymentConstraints_write(long obj);
13161 // struct LDKCResult_PaymentConstraintsDecodeErrorZ PaymentConstraints_read(struct LDKu8slice ser);
13162 public static native long PaymentConstraints_read(byte[] ser);
13163 // void PaymentPurpose_free(struct LDKPaymentPurpose this_ptr);
13164 public static native void PaymentPurpose_free(long this_ptr);
13165 // uint64_t PaymentPurpose_clone_ptr(LDKPaymentPurpose *NONNULL_PTR arg);
13166 public static native long PaymentPurpose_clone_ptr(long arg);
13167 // struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NONNULL_PTR orig);
13168 public static native long PaymentPurpose_clone(long orig);
13169 // struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKThirtyTwoBytes payment_secret);
13170 public static native long PaymentPurpose_invoice_payment(long payment_preimage, byte[] payment_secret);
13171 // struct LDKPaymentPurpose PaymentPurpose_spontaneous_payment(struct LDKThirtyTwoBytes a);
13172 public static native long PaymentPurpose_spontaneous_payment(byte[] a);
13173 // bool PaymentPurpose_eq(const struct LDKPaymentPurpose *NONNULL_PTR a, const struct LDKPaymentPurpose *NONNULL_PTR b);
13174 public static native boolean PaymentPurpose_eq(long a, long b);
13175 // MUST_USE_RES struct LDKCOption_ThirtyTwoBytesZ PaymentPurpose_preimage(const struct LDKPaymentPurpose *NONNULL_PTR this_arg);
13176 public static native long PaymentPurpose_preimage(long this_arg);
13177 // struct LDKCVec_u8Z PaymentPurpose_write(const struct LDKPaymentPurpose *NONNULL_PTR obj);
13178 public static native byte[] PaymentPurpose_write(long obj);
13179 // struct LDKCResult_PaymentPurposeDecodeErrorZ PaymentPurpose_read(struct LDKu8slice ser);
13180 public static native long PaymentPurpose_read(byte[] ser);
13181 // void ClaimedHTLC_free(struct LDKClaimedHTLC this_obj);
13182 public static native void ClaimedHTLC_free(long this_obj);
13183 // const uint8_t (*ClaimedHTLC_get_channel_id(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr))[32];
13184 public static native byte[] ClaimedHTLC_get_channel_id(long this_ptr);
13185 // void ClaimedHTLC_set_channel_id(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
13186 public static native void ClaimedHTLC_set_channel_id(long this_ptr, byte[] val);
13187 // struct LDKU128 ClaimedHTLC_get_user_channel_id(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr);
13188 public static native byte[] ClaimedHTLC_get_user_channel_id(long this_ptr);
13189 // void ClaimedHTLC_set_user_channel_id(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, struct LDKU128 val);
13190 public static native void ClaimedHTLC_set_user_channel_id(long this_ptr, byte[] val);
13191 // uint32_t ClaimedHTLC_get_cltv_expiry(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr);
13192 public static native int ClaimedHTLC_get_cltv_expiry(long this_ptr);
13193 // void ClaimedHTLC_set_cltv_expiry(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, uint32_t val);
13194 public static native void ClaimedHTLC_set_cltv_expiry(long this_ptr, int val);
13195 // uint64_t ClaimedHTLC_get_value_msat(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr);
13196 public static native long ClaimedHTLC_get_value_msat(long this_ptr);
13197 // void ClaimedHTLC_set_value_msat(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, uint64_t val);
13198 public static native void ClaimedHTLC_set_value_msat(long this_ptr, long val);
13199 // uint64_t ClaimedHTLC_get_counterparty_skimmed_fee_msat(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr);
13200 public static native long ClaimedHTLC_get_counterparty_skimmed_fee_msat(long this_ptr);
13201 // void ClaimedHTLC_set_counterparty_skimmed_fee_msat(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, uint64_t val);
13202 public static native void ClaimedHTLC_set_counterparty_skimmed_fee_msat(long this_ptr, long val);
13203 // MUST_USE_RES struct LDKClaimedHTLC ClaimedHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKU128 user_channel_id_arg, uint32_t cltv_expiry_arg, uint64_t value_msat_arg, uint64_t counterparty_skimmed_fee_msat_arg);
13204 public static native long ClaimedHTLC_new(byte[] channel_id_arg, byte[] user_channel_id_arg, int cltv_expiry_arg, long value_msat_arg, long counterparty_skimmed_fee_msat_arg);
13205 // uint64_t ClaimedHTLC_clone_ptr(LDKClaimedHTLC *NONNULL_PTR arg);
13206 public static native long ClaimedHTLC_clone_ptr(long arg);
13207 // struct LDKClaimedHTLC ClaimedHTLC_clone(const struct LDKClaimedHTLC *NONNULL_PTR orig);
13208 public static native long ClaimedHTLC_clone(long orig);
13209 // bool ClaimedHTLC_eq(const struct LDKClaimedHTLC *NONNULL_PTR a, const struct LDKClaimedHTLC *NONNULL_PTR b);
13210 public static native boolean ClaimedHTLC_eq(long a, long b);
13211 // struct LDKCVec_u8Z ClaimedHTLC_write(const struct LDKClaimedHTLC *NONNULL_PTR obj);
13212 public static native byte[] ClaimedHTLC_write(long obj);
13213 // struct LDKCResult_ClaimedHTLCDecodeErrorZ ClaimedHTLC_read(struct LDKu8slice ser);
13214 public static native long ClaimedHTLC_read(byte[] ser);
13215 // void PathFailure_free(struct LDKPathFailure this_ptr);
13216 public static native void PathFailure_free(long this_ptr);
13217 // uint64_t PathFailure_clone_ptr(LDKPathFailure *NONNULL_PTR arg);
13218 public static native long PathFailure_clone_ptr(long arg);
13219 // struct LDKPathFailure PathFailure_clone(const struct LDKPathFailure *NONNULL_PTR orig);
13220 public static native long PathFailure_clone(long orig);
13221 // struct LDKPathFailure PathFailure_initial_send(struct LDKAPIError err);
13222 public static native long PathFailure_initial_send(long err);
13223 // struct LDKPathFailure PathFailure_on_path(struct LDKCOption_NetworkUpdateZ network_update);
13224 public static native long PathFailure_on_path(long network_update);
13225 // bool PathFailure_eq(const struct LDKPathFailure *NONNULL_PTR a, const struct LDKPathFailure *NONNULL_PTR b);
13226 public static native boolean PathFailure_eq(long a, long b);
13227 // struct LDKCVec_u8Z PathFailure_write(const struct LDKPathFailure *NONNULL_PTR obj);
13228 public static native byte[] PathFailure_write(long obj);
13229 // struct LDKCResult_COption_PathFailureZDecodeErrorZ PathFailure_read(struct LDKu8slice ser);
13230 public static native long PathFailure_read(byte[] ser);
13231 // void ClosureReason_free(struct LDKClosureReason this_ptr);
13232 public static native void ClosureReason_free(long this_ptr);
13233 // uint64_t ClosureReason_clone_ptr(LDKClosureReason *NONNULL_PTR arg);
13234 public static native long ClosureReason_clone_ptr(long arg);
13235 // struct LDKClosureReason ClosureReason_clone(const struct LDKClosureReason *NONNULL_PTR orig);
13236 public static native long ClosureReason_clone(long orig);
13237 // struct LDKClosureReason ClosureReason_counterparty_force_closed(struct LDKUntrustedString peer_msg);
13238 public static native long ClosureReason_counterparty_force_closed(long peer_msg);
13239 // struct LDKClosureReason ClosureReason_holder_force_closed(void);
13240 public static native long ClosureReason_holder_force_closed();
13241 // struct LDKClosureReason ClosureReason_cooperative_closure(void);
13242 public static native long ClosureReason_cooperative_closure();
13243 // struct LDKClosureReason ClosureReason_commitment_tx_confirmed(void);
13244 public static native long ClosureReason_commitment_tx_confirmed();
13245 // struct LDKClosureReason ClosureReason_funding_timed_out(void);
13246 public static native long ClosureReason_funding_timed_out();
13247 // struct LDKClosureReason ClosureReason_processing_error(struct LDKStr err);
13248 public static native long ClosureReason_processing_error(String err);
13249 // struct LDKClosureReason ClosureReason_disconnected_peer(void);
13250 public static native long ClosureReason_disconnected_peer();
13251 // struct LDKClosureReason ClosureReason_outdated_channel_manager(void);
13252 public static native long ClosureReason_outdated_channel_manager();
13253 // struct LDKClosureReason ClosureReason_counterparty_coop_closed_unfunded_channel(void);
13254 public static native long ClosureReason_counterparty_coop_closed_unfunded_channel();
13255 // struct LDKClosureReason ClosureReason_funding_batch_closure(void);
13256 public static native long ClosureReason_funding_batch_closure();
13257 // bool ClosureReason_eq(const struct LDKClosureReason *NONNULL_PTR a, const struct LDKClosureReason *NONNULL_PTR b);
13258 public static native boolean ClosureReason_eq(long a, long b);
13259 // struct LDKCVec_u8Z ClosureReason_write(const struct LDKClosureReason *NONNULL_PTR obj);
13260 public static native byte[] ClosureReason_write(long obj);
13261 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(struct LDKu8slice ser);
13262 public static native long ClosureReason_read(byte[] ser);
13263 // void HTLCDestination_free(struct LDKHTLCDestination this_ptr);
13264 public static native void HTLCDestination_free(long this_ptr);
13265 // uint64_t HTLCDestination_clone_ptr(LDKHTLCDestination *NONNULL_PTR arg);
13266 public static native long HTLCDestination_clone_ptr(long arg);
13267 // struct LDKHTLCDestination HTLCDestination_clone(const struct LDKHTLCDestination *NONNULL_PTR orig);
13268 public static native long HTLCDestination_clone(long orig);
13269 // struct LDKHTLCDestination HTLCDestination_next_hop_channel(struct LDKPublicKey node_id, struct LDKThirtyTwoBytes channel_id);
13270 public static native long HTLCDestination_next_hop_channel(byte[] node_id, byte[] channel_id);
13271 // struct LDKHTLCDestination HTLCDestination_unknown_next_hop(uint64_t requested_forward_scid);
13272 public static native long HTLCDestination_unknown_next_hop(long requested_forward_scid);
13273 // struct LDKHTLCDestination HTLCDestination_invalid_forward(uint64_t requested_forward_scid);
13274 public static native long HTLCDestination_invalid_forward(long requested_forward_scid);
13275 // struct LDKHTLCDestination HTLCDestination_failed_payment(struct LDKThirtyTwoBytes payment_hash);
13276 public static native long HTLCDestination_failed_payment(byte[] payment_hash);
13277 // bool HTLCDestination_eq(const struct LDKHTLCDestination *NONNULL_PTR a, const struct LDKHTLCDestination *NONNULL_PTR b);
13278 public static native boolean HTLCDestination_eq(long a, long b);
13279 // struct LDKCVec_u8Z HTLCDestination_write(const struct LDKHTLCDestination *NONNULL_PTR obj);
13280 public static native byte[] HTLCDestination_write(long obj);
13281 // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ HTLCDestination_read(struct LDKu8slice ser);
13282 public static native long HTLCDestination_read(byte[] ser);
13283 // enum LDKPaymentFailureReason PaymentFailureReason_clone(const enum LDKPaymentFailureReason *NONNULL_PTR orig);
13284 public static native PaymentFailureReason PaymentFailureReason_clone(long orig);
13285 // enum LDKPaymentFailureReason PaymentFailureReason_recipient_rejected(void);
13286 public static native PaymentFailureReason PaymentFailureReason_recipient_rejected();
13287 // enum LDKPaymentFailureReason PaymentFailureReason_user_abandoned(void);
13288 public static native PaymentFailureReason PaymentFailureReason_user_abandoned();
13289 // enum LDKPaymentFailureReason PaymentFailureReason_retries_exhausted(void);
13290 public static native PaymentFailureReason PaymentFailureReason_retries_exhausted();
13291 // enum LDKPaymentFailureReason PaymentFailureReason_payment_expired(void);
13292 public static native PaymentFailureReason PaymentFailureReason_payment_expired();
13293 // enum LDKPaymentFailureReason PaymentFailureReason_route_not_found(void);
13294 public static native PaymentFailureReason PaymentFailureReason_route_not_found();
13295 // enum LDKPaymentFailureReason PaymentFailureReason_unexpected_error(void);
13296 public static native PaymentFailureReason PaymentFailureReason_unexpected_error();
13297 // bool PaymentFailureReason_eq(const enum LDKPaymentFailureReason *NONNULL_PTR a, const enum LDKPaymentFailureReason *NONNULL_PTR b);
13298 public static native boolean PaymentFailureReason_eq(long a, long b);
13299 // struct LDKCVec_u8Z PaymentFailureReason_write(const enum LDKPaymentFailureReason *NONNULL_PTR obj);
13300 public static native byte[] PaymentFailureReason_write(long obj);
13301 // struct LDKCResult_PaymentFailureReasonDecodeErrorZ PaymentFailureReason_read(struct LDKu8slice ser);
13302 public static native long PaymentFailureReason_read(byte[] ser);
13303 // void Event_free(struct LDKEvent this_ptr);
13304 public static native void Event_free(long this_ptr);
13305 // uint64_t Event_clone_ptr(LDKEvent *NONNULL_PTR arg);
13306 public static native long Event_clone_ptr(long arg);
13307 // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
13308 public static native long Event_clone(long orig);
13309 // struct LDKEvent Event_funding_generation_ready(struct LDKThirtyTwoBytes temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t channel_value_satoshis, struct LDKCVec_u8Z output_script, struct LDKU128 user_channel_id);
13310 public static native long Event_funding_generation_ready(byte[] temporary_channel_id, byte[] counterparty_node_id, long channel_value_satoshis, byte[] output_script, byte[] user_channel_id);
13311 // struct LDKEvent Event_payment_claimable(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields onion_fields, uint64_t amount_msat, uint64_t counterparty_skimmed_fee_msat, struct LDKPaymentPurpose purpose, struct LDKCOption_ThirtyTwoBytesZ via_channel_id, struct LDKCOption_U128Z via_user_channel_id, struct LDKCOption_u32Z claim_deadline);
13312 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);
13313 // 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);
13314 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);
13315 // struct LDKEvent Event_connection_needed(struct LDKPublicKey node_id, struct LDKCVec_SocketAddressZ addresses);
13316 public static native long Event_connection_needed(byte[] node_id, long[] addresses);
13317 // struct LDKEvent Event_invoice_request_failed(struct LDKThirtyTwoBytes payment_id);
13318 public static native long Event_invoice_request_failed(byte[] payment_id);
13319 // struct LDKEvent Event_payment_sent(struct LDKCOption_ThirtyTwoBytesZ payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat);
13320 public static native long Event_payment_sent(long payment_id, byte[] payment_preimage, byte[] payment_hash, long fee_paid_msat);
13321 // struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_PaymentFailureReasonZ reason);
13322 public static native long Event_payment_failed(byte[] payment_id, byte[] payment_hash, long reason);
13323 // struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKCOption_ThirtyTwoBytesZ payment_hash, struct LDKPath path);
13324 public static native long Event_payment_path_successful(byte[] payment_id, long payment_hash, long path);
13325 // 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);
13326 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);
13327 // struct LDKEvent Event_probe_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKPath path);
13328 public static native long Event_probe_successful(byte[] payment_id, byte[] payment_hash, long path);
13329 // struct LDKEvent Event_probe_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKPath path, struct LDKCOption_u64Z short_channel_id);
13330 public static native long Event_probe_failed(byte[] payment_id, byte[] payment_hash, long path, long short_channel_id);
13331 // struct LDKEvent Event_pending_htlcs_forwardable(uint64_t time_forwardable);
13332 public static native long Event_pending_htlcs_forwardable(long time_forwardable);
13333 // 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);
13334 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);
13335 // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs, struct LDKCOption_ThirtyTwoBytesZ channel_id);
13336 public static native long Event_spendable_outputs(long[] outputs, long channel_id);
13337 // struct LDKEvent Event_payment_forwarded(struct LDKCOption_ThirtyTwoBytesZ prev_channel_id, struct LDKCOption_ThirtyTwoBytesZ next_channel_id, struct LDKCOption_u64Z fee_earned_msat, bool claim_from_onchain_tx, struct LDKCOption_u64Z outbound_amount_forwarded_msat);
13338 public static native long Event_payment_forwarded(long prev_channel_id, long next_channel_id, long fee_earned_msat, boolean claim_from_onchain_tx, long outbound_amount_forwarded_msat);
13339 // struct LDKEvent Event_channel_pending(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKCOption_ThirtyTwoBytesZ former_temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKOutPoint funding_txo);
13340 public static native long Event_channel_pending(byte[] channel_id, byte[] user_channel_id, long former_temporary_channel_id, byte[] counterparty_node_id, long funding_txo);
13341 // struct LDKEvent Event_channel_ready(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKChannelTypeFeatures channel_type);
13342 public static native long Event_channel_ready(byte[] channel_id, byte[] user_channel_id, byte[] counterparty_node_id, long channel_type);
13343 // struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKClosureReason reason, struct LDKPublicKey counterparty_node_id, struct LDKCOption_u64Z channel_capacity_sats, struct LDKOutPoint channel_funding_txo);
13344 public static native long Event_channel_closed(byte[] channel_id, byte[] user_channel_id, long reason, byte[] counterparty_node_id, long channel_capacity_sats, long channel_funding_txo);
13345 // struct LDKEvent Event_discard_funding(struct LDKThirtyTwoBytes channel_id, struct LDKTransaction transaction);
13346 public static native long Event_discard_funding(byte[] channel_id, byte[] transaction);
13347 // struct LDKEvent Event_open_channel_request(struct LDKThirtyTwoBytes temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t funding_satoshis, uint64_t push_msat, struct LDKChannelTypeFeatures channel_type);
13348 public static native long Event_open_channel_request(byte[] temporary_channel_id, byte[] counterparty_node_id, long funding_satoshis, long push_msat, long channel_type);
13349 // struct LDKEvent Event_htlchandling_failed(struct LDKThirtyTwoBytes prev_channel_id, struct LDKHTLCDestination failed_next_destination);
13350 public static native long Event_htlchandling_failed(byte[] prev_channel_id, long failed_next_destination);
13351 // struct LDKEvent Event_bump_transaction(struct LDKBumpTransactionEvent a);
13352 public static native long Event_bump_transaction(long a);
13353 // bool Event_eq(const struct LDKEvent *NONNULL_PTR a, const struct LDKEvent *NONNULL_PTR b);
13354 public static native boolean Event_eq(long a, long b);
13355 // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
13356 public static native byte[] Event_write(long obj);
13357 // struct LDKCResult_COption_EventZDecodeErrorZ Event_read(struct LDKu8slice ser);
13358 public static native long Event_read(byte[] ser);
13359 // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
13360 public static native void MessageSendEvent_free(long this_ptr);
13361 // uint64_t MessageSendEvent_clone_ptr(LDKMessageSendEvent *NONNULL_PTR arg);
13362 public static native long MessageSendEvent_clone_ptr(long arg);
13363 // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
13364 public static native long MessageSendEvent_clone(long orig);
13365 // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel(struct LDKPublicKey node_id, struct LDKAcceptChannel msg);
13366 public static native long MessageSendEvent_send_accept_channel(byte[] node_id, long msg);
13367 // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel_v2(struct LDKPublicKey node_id, struct LDKAcceptChannelV2 msg);
13368 public static native long MessageSendEvent_send_accept_channel_v2(byte[] node_id, long msg);
13369 // struct LDKMessageSendEvent MessageSendEvent_send_open_channel(struct LDKPublicKey node_id, struct LDKOpenChannel msg);
13370 public static native long MessageSendEvent_send_open_channel(byte[] node_id, long msg);
13371 // struct LDKMessageSendEvent MessageSendEvent_send_open_channel_v2(struct LDKPublicKey node_id, struct LDKOpenChannelV2 msg);
13372 public static native long MessageSendEvent_send_open_channel_v2(byte[] node_id, long msg);
13373 // struct LDKMessageSendEvent MessageSendEvent_send_funding_created(struct LDKPublicKey node_id, struct LDKFundingCreated msg);
13374 public static native long MessageSendEvent_send_funding_created(byte[] node_id, long msg);
13375 // struct LDKMessageSendEvent MessageSendEvent_send_funding_signed(struct LDKPublicKey node_id, struct LDKFundingSigned msg);
13376 public static native long MessageSendEvent_send_funding_signed(byte[] node_id, long msg);
13377 // struct LDKMessageSendEvent MessageSendEvent_send_stfu(struct LDKPublicKey node_id, struct LDKStfu msg);
13378 public static native long MessageSendEvent_send_stfu(byte[] node_id, long msg);
13379 // struct LDKMessageSendEvent MessageSendEvent_send_splice(struct LDKPublicKey node_id, struct LDKSplice msg);
13380 public static native long MessageSendEvent_send_splice(byte[] node_id, long msg);
13381 // struct LDKMessageSendEvent MessageSendEvent_send_splice_ack(struct LDKPublicKey node_id, struct LDKSpliceAck msg);
13382 public static native long MessageSendEvent_send_splice_ack(byte[] node_id, long msg);
13383 // struct LDKMessageSendEvent MessageSendEvent_send_splice_locked(struct LDKPublicKey node_id, struct LDKSpliceLocked msg);
13384 public static native long MessageSendEvent_send_splice_locked(byte[] node_id, long msg);
13385 // struct LDKMessageSendEvent MessageSendEvent_send_tx_add_input(struct LDKPublicKey node_id, struct LDKTxAddInput msg);
13386 public static native long MessageSendEvent_send_tx_add_input(byte[] node_id, long msg);
13387 // struct LDKMessageSendEvent MessageSendEvent_send_tx_add_output(struct LDKPublicKey node_id, struct LDKTxAddOutput msg);
13388 public static native long MessageSendEvent_send_tx_add_output(byte[] node_id, long msg);
13389 // struct LDKMessageSendEvent MessageSendEvent_send_tx_remove_input(struct LDKPublicKey node_id, struct LDKTxRemoveInput msg);
13390 public static native long MessageSendEvent_send_tx_remove_input(byte[] node_id, long msg);
13391 // struct LDKMessageSendEvent MessageSendEvent_send_tx_remove_output(struct LDKPublicKey node_id, struct LDKTxRemoveOutput msg);
13392 public static native long MessageSendEvent_send_tx_remove_output(byte[] node_id, long msg);
13393 // struct LDKMessageSendEvent MessageSendEvent_send_tx_complete(struct LDKPublicKey node_id, struct LDKTxComplete msg);
13394 public static native long MessageSendEvent_send_tx_complete(byte[] node_id, long msg);
13395 // struct LDKMessageSendEvent MessageSendEvent_send_tx_signatures(struct LDKPublicKey node_id, struct LDKTxSignatures msg);
13396 public static native long MessageSendEvent_send_tx_signatures(byte[] node_id, long msg);
13397 // struct LDKMessageSendEvent MessageSendEvent_send_tx_init_rbf(struct LDKPublicKey node_id, struct LDKTxInitRbf msg);
13398 public static native long MessageSendEvent_send_tx_init_rbf(byte[] node_id, long msg);
13399 // struct LDKMessageSendEvent MessageSendEvent_send_tx_ack_rbf(struct LDKPublicKey node_id, struct LDKTxAckRbf msg);
13400 public static native long MessageSendEvent_send_tx_ack_rbf(byte[] node_id, long msg);
13401 // struct LDKMessageSendEvent MessageSendEvent_send_tx_abort(struct LDKPublicKey node_id, struct LDKTxAbort msg);
13402 public static native long MessageSendEvent_send_tx_abort(byte[] node_id, long msg);
13403 // struct LDKMessageSendEvent MessageSendEvent_send_channel_ready(struct LDKPublicKey node_id, struct LDKChannelReady msg);
13404 public static native long MessageSendEvent_send_channel_ready(byte[] node_id, long msg);
13405 // struct LDKMessageSendEvent MessageSendEvent_send_announcement_signatures(struct LDKPublicKey node_id, struct LDKAnnouncementSignatures msg);
13406 public static native long MessageSendEvent_send_announcement_signatures(byte[] node_id, long msg);
13407 // struct LDKMessageSendEvent MessageSendEvent_update_htlcs(struct LDKPublicKey node_id, struct LDKCommitmentUpdate updates);
13408 public static native long MessageSendEvent_update_htlcs(byte[] node_id, long updates);
13409 // struct LDKMessageSendEvent MessageSendEvent_send_revoke_and_ack(struct LDKPublicKey node_id, struct LDKRevokeAndACK msg);
13410 public static native long MessageSendEvent_send_revoke_and_ack(byte[] node_id, long msg);
13411 // struct LDKMessageSendEvent MessageSendEvent_send_closing_signed(struct LDKPublicKey node_id, struct LDKClosingSigned msg);
13412 public static native long MessageSendEvent_send_closing_signed(byte[] node_id, long msg);
13413 // struct LDKMessageSendEvent MessageSendEvent_send_shutdown(struct LDKPublicKey node_id, struct LDKShutdown msg);
13414 public static native long MessageSendEvent_send_shutdown(byte[] node_id, long msg);
13415 // struct LDKMessageSendEvent MessageSendEvent_send_channel_reestablish(struct LDKPublicKey node_id, struct LDKChannelReestablish msg);
13416 public static native long MessageSendEvent_send_channel_reestablish(byte[] node_id, long msg);
13417 // struct LDKMessageSendEvent MessageSendEvent_send_channel_announcement(struct LDKPublicKey node_id, struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
13418 public static native long MessageSendEvent_send_channel_announcement(byte[] node_id, long msg, long update_msg);
13419 // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_announcement(struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
13420 public static native long MessageSendEvent_broadcast_channel_announcement(long msg, long update_msg);
13421 // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_update(struct LDKChannelUpdate msg);
13422 public static native long MessageSendEvent_broadcast_channel_update(long msg);
13423 // struct LDKMessageSendEvent MessageSendEvent_broadcast_node_announcement(struct LDKNodeAnnouncement msg);
13424 public static native long MessageSendEvent_broadcast_node_announcement(long msg);
13425 // struct LDKMessageSendEvent MessageSendEvent_send_channel_update(struct LDKPublicKey node_id, struct LDKChannelUpdate msg);
13426 public static native long MessageSendEvent_send_channel_update(byte[] node_id, long msg);
13427 // struct LDKMessageSendEvent MessageSendEvent_handle_error(struct LDKPublicKey node_id, struct LDKErrorAction action);
13428 public static native long MessageSendEvent_handle_error(byte[] node_id, long action);
13429 // struct LDKMessageSendEvent MessageSendEvent_send_channel_range_query(struct LDKPublicKey node_id, struct LDKQueryChannelRange msg);
13430 public static native long MessageSendEvent_send_channel_range_query(byte[] node_id, long msg);
13431 // struct LDKMessageSendEvent MessageSendEvent_send_short_ids_query(struct LDKPublicKey node_id, struct LDKQueryShortChannelIds msg);
13432 public static native long MessageSendEvent_send_short_ids_query(byte[] node_id, long msg);
13433 // struct LDKMessageSendEvent MessageSendEvent_send_reply_channel_range(struct LDKPublicKey node_id, struct LDKReplyChannelRange msg);
13434 public static native long MessageSendEvent_send_reply_channel_range(byte[] node_id, long msg);
13435 // struct LDKMessageSendEvent MessageSendEvent_send_gossip_timestamp_filter(struct LDKPublicKey node_id, struct LDKGossipTimestampFilter msg);
13436 public static native long MessageSendEvent_send_gossip_timestamp_filter(byte[] node_id, long msg);
13437 // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
13438 public static native void MessageSendEventsProvider_free(long this_ptr);
13439 // void EventsProvider_free(struct LDKEventsProvider this_ptr);
13440 public static native void EventsProvider_free(long this_ptr);
13441 // void EventHandler_free(struct LDKEventHandler this_ptr);
13442 public static native void EventHandler_free(long this_ptr);
13443 // void AnchorDescriptor_free(struct LDKAnchorDescriptor this_obj);
13444 public static native void AnchorDescriptor_free(long this_obj);
13445 // struct LDKChannelDerivationParameters AnchorDescriptor_get_channel_derivation_parameters(const struct LDKAnchorDescriptor *NONNULL_PTR this_ptr);
13446 public static native long AnchorDescriptor_get_channel_derivation_parameters(long this_ptr);
13447 // void AnchorDescriptor_set_channel_derivation_parameters(struct LDKAnchorDescriptor *NONNULL_PTR this_ptr, struct LDKChannelDerivationParameters val);
13448 public static native void AnchorDescriptor_set_channel_derivation_parameters(long this_ptr, long val);
13449 // struct LDKOutPoint AnchorDescriptor_get_outpoint(const struct LDKAnchorDescriptor *NONNULL_PTR this_ptr);
13450 public static native long AnchorDescriptor_get_outpoint(long this_ptr);
13451 // void AnchorDescriptor_set_outpoint(struct LDKAnchorDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
13452 public static native void AnchorDescriptor_set_outpoint(long this_ptr, long val);
13453 // MUST_USE_RES struct LDKAnchorDescriptor AnchorDescriptor_new(struct LDKChannelDerivationParameters channel_derivation_parameters_arg, struct LDKOutPoint outpoint_arg);
13454 public static native long AnchorDescriptor_new(long channel_derivation_parameters_arg, long outpoint_arg);
13455 // uint64_t AnchorDescriptor_clone_ptr(LDKAnchorDescriptor *NONNULL_PTR arg);
13456 public static native long AnchorDescriptor_clone_ptr(long arg);
13457 // struct LDKAnchorDescriptor AnchorDescriptor_clone(const struct LDKAnchorDescriptor *NONNULL_PTR orig);
13458 public static native long AnchorDescriptor_clone(long orig);
13459 // bool AnchorDescriptor_eq(const struct LDKAnchorDescriptor *NONNULL_PTR a, const struct LDKAnchorDescriptor *NONNULL_PTR b);
13460 public static native boolean AnchorDescriptor_eq(long a, long b);
13461 // MUST_USE_RES struct LDKTxOut AnchorDescriptor_previous_utxo(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg);
13462 public static native long AnchorDescriptor_previous_utxo(long this_arg);
13463 // MUST_USE_RES struct LDKTxIn AnchorDescriptor_unsigned_tx_input(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg);
13464 public static native long AnchorDescriptor_unsigned_tx_input(long this_arg);
13465 // MUST_USE_RES struct LDKCVec_u8Z AnchorDescriptor_witness_script(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg);
13466 public static native byte[] AnchorDescriptor_witness_script(long this_arg);
13467 // MUST_USE_RES struct LDKWitness AnchorDescriptor_tx_input_witness(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg, struct LDKECDSASignature signature);
13468 public static native byte[] AnchorDescriptor_tx_input_witness(long this_arg, byte[] signature);
13469 // MUST_USE_RES struct LDKWriteableEcdsaChannelSigner AnchorDescriptor_derive_channel_signer(const struct LDKAnchorDescriptor *NONNULL_PTR this_arg, const struct LDKSignerProvider *NONNULL_PTR signer_provider);
13470 public static native long AnchorDescriptor_derive_channel_signer(long this_arg, long signer_provider);
13471 // void BumpTransactionEvent_free(struct LDKBumpTransactionEvent this_ptr);
13472 public static native void BumpTransactionEvent_free(long this_ptr);
13473 // uint64_t BumpTransactionEvent_clone_ptr(LDKBumpTransactionEvent *NONNULL_PTR arg);
13474 public static native long BumpTransactionEvent_clone_ptr(long arg);
13475 // struct LDKBumpTransactionEvent BumpTransactionEvent_clone(const struct LDKBumpTransactionEvent *NONNULL_PTR orig);
13476 public static native long BumpTransactionEvent_clone(long orig);
13477 // struct LDKBumpTransactionEvent BumpTransactionEvent_channel_close(struct LDKThirtyTwoBytes claim_id, uint32_t package_target_feerate_sat_per_1000_weight, struct LDKTransaction commitment_tx, uint64_t commitment_tx_fee_satoshis, struct LDKAnchorDescriptor anchor_descriptor, struct LDKCVec_HTLCOutputInCommitmentZ pending_htlcs);
13478 public static native long BumpTransactionEvent_channel_close(byte[] claim_id, int package_target_feerate_sat_per_1000_weight, byte[] commitment_tx, long commitment_tx_fee_satoshis, long anchor_descriptor, long[] pending_htlcs);
13479 // struct LDKBumpTransactionEvent BumpTransactionEvent_htlcresolution(struct LDKThirtyTwoBytes claim_id, uint32_t target_feerate_sat_per_1000_weight, struct LDKCVec_HTLCDescriptorZ htlc_descriptors, uint32_t tx_lock_time);
13480 public static native long BumpTransactionEvent_htlcresolution(byte[] claim_id, int target_feerate_sat_per_1000_weight, long[] htlc_descriptors, int tx_lock_time);
13481 // bool BumpTransactionEvent_eq(const struct LDKBumpTransactionEvent *NONNULL_PTR a, const struct LDKBumpTransactionEvent *NONNULL_PTR b);
13482 public static native boolean BumpTransactionEvent_eq(long a, long b);
13483 // void Input_free(struct LDKInput this_obj);
13484 public static native void Input_free(long this_obj);
13485 // struct LDKOutPoint Input_get_outpoint(const struct LDKInput *NONNULL_PTR this_ptr);
13486 public static native long Input_get_outpoint(long this_ptr);
13487 // void Input_set_outpoint(struct LDKInput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
13488 public static native void Input_set_outpoint(long this_ptr, long val);
13489 // struct LDKTxOut Input_get_previous_utxo(const struct LDKInput *NONNULL_PTR this_ptr);
13490 public static native long Input_get_previous_utxo(long this_ptr);
13491 // void Input_set_previous_utxo(struct LDKInput *NONNULL_PTR this_ptr, struct LDKTxOut val);
13492 public static native void Input_set_previous_utxo(long this_ptr, long val);
13493 // uint64_t Input_get_satisfaction_weight(const struct LDKInput *NONNULL_PTR this_ptr);
13494 public static native long Input_get_satisfaction_weight(long this_ptr);
13495 // void Input_set_satisfaction_weight(struct LDKInput *NONNULL_PTR this_ptr, uint64_t val);
13496 public static native void Input_set_satisfaction_weight(long this_ptr, long val);
13497 // MUST_USE_RES struct LDKInput Input_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut previous_utxo_arg, uint64_t satisfaction_weight_arg);
13498 public static native long Input_new(long outpoint_arg, long previous_utxo_arg, long satisfaction_weight_arg);
13499 // uint64_t Input_clone_ptr(LDKInput *NONNULL_PTR arg);
13500 public static native long Input_clone_ptr(long arg);
13501 // struct LDKInput Input_clone(const struct LDKInput *NONNULL_PTR orig);
13502 public static native long Input_clone(long orig);
13503 // uint64_t Input_hash(const struct LDKInput *NONNULL_PTR o);
13504 public static native long Input_hash(long o);
13505 // bool Input_eq(const struct LDKInput *NONNULL_PTR a, const struct LDKInput *NONNULL_PTR b);
13506 public static native boolean Input_eq(long a, long b);
13507 // void Utxo_free(struct LDKUtxo this_obj);
13508 public static native void Utxo_free(long this_obj);
13509 // struct LDKOutPoint Utxo_get_outpoint(const struct LDKUtxo *NONNULL_PTR this_ptr);
13510 public static native long Utxo_get_outpoint(long this_ptr);
13511 // void Utxo_set_outpoint(struct LDKUtxo *NONNULL_PTR this_ptr, struct LDKOutPoint val);
13512 public static native void Utxo_set_outpoint(long this_ptr, long val);
13513 // struct LDKTxOut Utxo_get_output(const struct LDKUtxo *NONNULL_PTR this_ptr);
13514 public static native long Utxo_get_output(long this_ptr);
13515 // void Utxo_set_output(struct LDKUtxo *NONNULL_PTR this_ptr, struct LDKTxOut val);
13516 public static native void Utxo_set_output(long this_ptr, long val);
13517 // uint64_t Utxo_get_satisfaction_weight(const struct LDKUtxo *NONNULL_PTR this_ptr);
13518 public static native long Utxo_get_satisfaction_weight(long this_ptr);
13519 // void Utxo_set_satisfaction_weight(struct LDKUtxo *NONNULL_PTR this_ptr, uint64_t val);
13520 public static native void Utxo_set_satisfaction_weight(long this_ptr, long val);
13521 // MUST_USE_RES struct LDKUtxo Utxo_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut output_arg, uint64_t satisfaction_weight_arg);
13522 public static native long Utxo_new(long outpoint_arg, long output_arg, long satisfaction_weight_arg);
13523 // uint64_t Utxo_clone_ptr(LDKUtxo *NONNULL_PTR arg);
13524 public static native long Utxo_clone_ptr(long arg);
13525 // struct LDKUtxo Utxo_clone(const struct LDKUtxo *NONNULL_PTR orig);
13526 public static native long Utxo_clone(long orig);
13527 // uint64_t Utxo_hash(const struct LDKUtxo *NONNULL_PTR o);
13528 public static native long Utxo_hash(long o);
13529 // bool Utxo_eq(const struct LDKUtxo *NONNULL_PTR a, const struct LDKUtxo *NONNULL_PTR b);
13530 public static native boolean Utxo_eq(long a, long b);
13531 // MUST_USE_RES struct LDKUtxo Utxo_new_p2pkh(struct LDKOutPoint outpoint, uint64_t value, const uint8_t (*pubkey_hash)[20]);
13532 public static native long Utxo_new_p2pkh(long outpoint, long value, byte[] pubkey_hash);
13533 // void CoinSelection_free(struct LDKCoinSelection this_obj);
13534 public static native void CoinSelection_free(long this_obj);
13535 // struct LDKCVec_UtxoZ CoinSelection_get_confirmed_utxos(const struct LDKCoinSelection *NONNULL_PTR this_ptr);
13536 public static native long[] CoinSelection_get_confirmed_utxos(long this_ptr);
13537 // void CoinSelection_set_confirmed_utxos(struct LDKCoinSelection *NONNULL_PTR this_ptr, struct LDKCVec_UtxoZ val);
13538 public static native void CoinSelection_set_confirmed_utxos(long this_ptr, long[] val);
13539 // struct LDKCOption_TxOutZ CoinSelection_get_change_output(const struct LDKCoinSelection *NONNULL_PTR this_ptr);
13540 public static native long CoinSelection_get_change_output(long this_ptr);
13541 // void CoinSelection_set_change_output(struct LDKCoinSelection *NONNULL_PTR this_ptr, struct LDKCOption_TxOutZ val);
13542 public static native void CoinSelection_set_change_output(long this_ptr, long val);
13543 // MUST_USE_RES struct LDKCoinSelection CoinSelection_new(struct LDKCVec_UtxoZ confirmed_utxos_arg, struct LDKCOption_TxOutZ change_output_arg);
13544 public static native long CoinSelection_new(long[] confirmed_utxos_arg, long change_output_arg);
13545 // uint64_t CoinSelection_clone_ptr(LDKCoinSelection *NONNULL_PTR arg);
13546 public static native long CoinSelection_clone_ptr(long arg);
13547 // struct LDKCoinSelection CoinSelection_clone(const struct LDKCoinSelection *NONNULL_PTR orig);
13548 public static native long CoinSelection_clone(long orig);
13549 // void CoinSelectionSource_free(struct LDKCoinSelectionSource this_ptr);
13550 public static native void CoinSelectionSource_free(long this_ptr);
13551 // void WalletSource_free(struct LDKWalletSource this_ptr);
13552 public static native void WalletSource_free(long this_ptr);
13553 // void Wallet_free(struct LDKWallet this_obj);
13554 public static native void Wallet_free(long this_obj);
13555 // MUST_USE_RES struct LDKWallet Wallet_new(struct LDKWalletSource source, struct LDKLogger logger);
13556 public static native long Wallet_new(long source, long logger);
13557 // struct LDKCoinSelectionSource Wallet_as_CoinSelectionSource(const struct LDKWallet *NONNULL_PTR this_arg);
13558 public static native long Wallet_as_CoinSelectionSource(long this_arg);
13559 // void BumpTransactionEventHandler_free(struct LDKBumpTransactionEventHandler this_obj);
13560 public static native void BumpTransactionEventHandler_free(long this_obj);
13561 // MUST_USE_RES struct LDKBumpTransactionEventHandler BumpTransactionEventHandler_new(struct LDKBroadcasterInterface broadcaster, struct LDKCoinSelectionSource utxo_source, struct LDKSignerProvider signer_provider, struct LDKLogger logger);
13562 public static native long BumpTransactionEventHandler_new(long broadcaster, long utxo_source, long signer_provider, long logger);
13563 // void BumpTransactionEventHandler_handle_event(const struct LDKBumpTransactionEventHandler *NONNULL_PTR this_arg, const struct LDKBumpTransactionEvent *NONNULL_PTR event);
13564 public static native void BumpTransactionEventHandler_handle_event(long this_arg, long event);
13565 // void FilesystemStore_free(struct LDKFilesystemStore this_obj);
13566 public static native void FilesystemStore_free(long this_obj);
13567 // MUST_USE_RES struct LDKFilesystemStore FilesystemStore_new(struct LDKStr data_dir);
13568 public static native long FilesystemStore_new(String data_dir);
13569 // MUST_USE_RES struct LDKStr FilesystemStore_get_data_dir(const struct LDKFilesystemStore *NONNULL_PTR this_arg);
13570 public static native String FilesystemStore_get_data_dir(long this_arg);
13571 // struct LDKKVStore FilesystemStore_as_KVStore(const struct LDKFilesystemStore *NONNULL_PTR this_arg);
13572 public static native long FilesystemStore_as_KVStore(long this_arg);
13573 // void BackgroundProcessor_free(struct LDKBackgroundProcessor this_obj);
13574 public static native void BackgroundProcessor_free(long this_obj);
13575 // void GossipSync_free(struct LDKGossipSync this_ptr);
13576 public static native void GossipSync_free(long this_ptr);
13577 // struct LDKGossipSync GossipSync_p2_p(const struct LDKP2PGossipSync *NONNULL_PTR a);
13578 public static native long GossipSync_p2_p(long a);
13579 // struct LDKGossipSync GossipSync_rapid(const struct LDKRapidGossipSync *NONNULL_PTR a);
13580 public static native long GossipSync_rapid(long a);
13581 // struct LDKGossipSync GossipSync_none(void);
13582 public static native long GossipSync_none();
13583 // 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);
13584 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);
13585 // MUST_USE_RES struct LDKCResult_NoneIOErrorZ BackgroundProcessor_join(struct LDKBackgroundProcessor this_arg);
13586 public static native long BackgroundProcessor_join(long this_arg);
13587 // MUST_USE_RES struct LDKCResult_NoneIOErrorZ BackgroundProcessor_stop(struct LDKBackgroundProcessor this_arg);
13588 public static native long BackgroundProcessor_stop(long this_arg);
13589 // void Bolt11ParseError_free(struct LDKBolt11ParseError this_ptr);
13590 public static native void Bolt11ParseError_free(long this_ptr);
13591 // uint64_t Bolt11ParseError_clone_ptr(LDKBolt11ParseError *NONNULL_PTR arg);
13592 public static native long Bolt11ParseError_clone_ptr(long arg);
13593 // struct LDKBolt11ParseError Bolt11ParseError_clone(const struct LDKBolt11ParseError *NONNULL_PTR orig);
13594 public static native long Bolt11ParseError_clone(long orig);
13595 // struct LDKBolt11ParseError Bolt11ParseError_bech32_error(struct LDKBech32Error a);
13596 public static native long Bolt11ParseError_bech32_error(long a);
13597 // struct LDKBolt11ParseError Bolt11ParseError_parse_amount_error(struct LDKError a);
13598 public static native long Bolt11ParseError_parse_amount_error(int a);
13599 // struct LDKBolt11ParseError Bolt11ParseError_malformed_signature(enum LDKSecp256k1Error a);
13600 public static native long Bolt11ParseError_malformed_signature(Secp256k1Error a);
13601 // struct LDKBolt11ParseError Bolt11ParseError_bad_prefix(void);
13602 public static native long Bolt11ParseError_bad_prefix();
13603 // struct LDKBolt11ParseError Bolt11ParseError_unknown_currency(void);
13604 public static native long Bolt11ParseError_unknown_currency();
13605 // struct LDKBolt11ParseError Bolt11ParseError_unknown_si_prefix(void);
13606 public static native long Bolt11ParseError_unknown_si_prefix();
13607 // struct LDKBolt11ParseError Bolt11ParseError_malformed_hrp(void);
13608 public static native long Bolt11ParseError_malformed_hrp();
13609 // struct LDKBolt11ParseError Bolt11ParseError_too_short_data_part(void);
13610 public static native long Bolt11ParseError_too_short_data_part();
13611 // struct LDKBolt11ParseError Bolt11ParseError_unexpected_end_of_tagged_fields(void);
13612 public static native long Bolt11ParseError_unexpected_end_of_tagged_fields();
13613 // struct LDKBolt11ParseError Bolt11ParseError_description_decode_error(struct LDKError a);
13614 public static native long Bolt11ParseError_description_decode_error(int a);
13615 // struct LDKBolt11ParseError Bolt11ParseError_padding_error(void);
13616 public static native long Bolt11ParseError_padding_error();
13617 // struct LDKBolt11ParseError Bolt11ParseError_integer_overflow_error(void);
13618 public static native long Bolt11ParseError_integer_overflow_error();
13619 // struct LDKBolt11ParseError Bolt11ParseError_invalid_seg_wit_program_length(void);
13620 public static native long Bolt11ParseError_invalid_seg_wit_program_length();
13621 // struct LDKBolt11ParseError Bolt11ParseError_invalid_pub_key_hash_length(void);
13622 public static native long Bolt11ParseError_invalid_pub_key_hash_length();
13623 // struct LDKBolt11ParseError Bolt11ParseError_invalid_script_hash_length(void);
13624 public static native long Bolt11ParseError_invalid_script_hash_length();
13625 // struct LDKBolt11ParseError Bolt11ParseError_invalid_recovery_id(void);
13626 public static native long Bolt11ParseError_invalid_recovery_id();
13627 // struct LDKBolt11ParseError Bolt11ParseError_invalid_slice_length(struct LDKStr a);
13628 public static native long Bolt11ParseError_invalid_slice_length(String a);
13629 // struct LDKBolt11ParseError Bolt11ParseError_skip(void);
13630 public static native long Bolt11ParseError_skip();
13631 // bool Bolt11ParseError_eq(const struct LDKBolt11ParseError *NONNULL_PTR a, const struct LDKBolt11ParseError *NONNULL_PTR b);
13632 public static native boolean Bolt11ParseError_eq(long a, long b);
13633 // void ParseOrSemanticError_free(struct LDKParseOrSemanticError this_ptr);
13634 public static native void ParseOrSemanticError_free(long this_ptr);
13635 // uint64_t ParseOrSemanticError_clone_ptr(LDKParseOrSemanticError *NONNULL_PTR arg);
13636 public static native long ParseOrSemanticError_clone_ptr(long arg);
13637 // struct LDKParseOrSemanticError ParseOrSemanticError_clone(const struct LDKParseOrSemanticError *NONNULL_PTR orig);
13638 public static native long ParseOrSemanticError_clone(long orig);
13639 // struct LDKParseOrSemanticError ParseOrSemanticError_parse_error(struct LDKBolt11ParseError a);
13640 public static native long ParseOrSemanticError_parse_error(long a);
13641 // struct LDKParseOrSemanticError ParseOrSemanticError_semantic_error(enum LDKBolt11SemanticError a);
13642 public static native long ParseOrSemanticError_semantic_error(Bolt11SemanticError a);
13643 // bool ParseOrSemanticError_eq(const struct LDKParseOrSemanticError *NONNULL_PTR a, const struct LDKParseOrSemanticError *NONNULL_PTR b);
13644 public static native boolean ParseOrSemanticError_eq(long a, long b);
13645 // void Bolt11Invoice_free(struct LDKBolt11Invoice this_obj);
13646 public static native void Bolt11Invoice_free(long this_obj);
13647 // bool Bolt11Invoice_eq(const struct LDKBolt11Invoice *NONNULL_PTR a, const struct LDKBolt11Invoice *NONNULL_PTR b);
13648 public static native boolean Bolt11Invoice_eq(long a, long b);
13649 // uint64_t Bolt11Invoice_clone_ptr(LDKBolt11Invoice *NONNULL_PTR arg);
13650 public static native long Bolt11Invoice_clone_ptr(long arg);
13651 // struct LDKBolt11Invoice Bolt11Invoice_clone(const struct LDKBolt11Invoice *NONNULL_PTR orig);
13652 public static native long Bolt11Invoice_clone(long orig);
13653 // uint64_t Bolt11Invoice_hash(const struct LDKBolt11Invoice *NONNULL_PTR o);
13654 public static native long Bolt11Invoice_hash(long o);
13655 // void SignedRawBolt11Invoice_free(struct LDKSignedRawBolt11Invoice this_obj);
13656 public static native void SignedRawBolt11Invoice_free(long this_obj);
13657 // bool SignedRawBolt11Invoice_eq(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR a, const struct LDKSignedRawBolt11Invoice *NONNULL_PTR b);
13658 public static native boolean SignedRawBolt11Invoice_eq(long a, long b);
13659 // uint64_t SignedRawBolt11Invoice_clone_ptr(LDKSignedRawBolt11Invoice *NONNULL_PTR arg);
13660 public static native long SignedRawBolt11Invoice_clone_ptr(long arg);
13661 // struct LDKSignedRawBolt11Invoice SignedRawBolt11Invoice_clone(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR orig);
13662 public static native long SignedRawBolt11Invoice_clone(long orig);
13663 // uint64_t SignedRawBolt11Invoice_hash(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR o);
13664 public static native long SignedRawBolt11Invoice_hash(long o);
13665 // void RawBolt11Invoice_free(struct LDKRawBolt11Invoice this_obj);
13666 public static native void RawBolt11Invoice_free(long this_obj);
13667 // struct LDKRawDataPart RawBolt11Invoice_get_data(const struct LDKRawBolt11Invoice *NONNULL_PTR this_ptr);
13668 public static native long RawBolt11Invoice_get_data(long this_ptr);
13669 // void RawBolt11Invoice_set_data(struct LDKRawBolt11Invoice *NONNULL_PTR this_ptr, struct LDKRawDataPart val);
13670 public static native void RawBolt11Invoice_set_data(long this_ptr, long val);
13671 // bool RawBolt11Invoice_eq(const struct LDKRawBolt11Invoice *NONNULL_PTR a, const struct LDKRawBolt11Invoice *NONNULL_PTR b);
13672 public static native boolean RawBolt11Invoice_eq(long a, long b);
13673 // uint64_t RawBolt11Invoice_clone_ptr(LDKRawBolt11Invoice *NONNULL_PTR arg);
13674 public static native long RawBolt11Invoice_clone_ptr(long arg);
13675 // struct LDKRawBolt11Invoice RawBolt11Invoice_clone(const struct LDKRawBolt11Invoice *NONNULL_PTR orig);
13676 public static native long RawBolt11Invoice_clone(long orig);
13677 // uint64_t RawBolt11Invoice_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR o);
13678 public static native long RawBolt11Invoice_hash(long o);
13679 // void RawDataPart_free(struct LDKRawDataPart this_obj);
13680 public static native void RawDataPart_free(long this_obj);
13681 // struct LDKPositiveTimestamp RawDataPart_get_timestamp(const struct LDKRawDataPart *NONNULL_PTR this_ptr);
13682 public static native long RawDataPart_get_timestamp(long this_ptr);
13683 // void RawDataPart_set_timestamp(struct LDKRawDataPart *NONNULL_PTR this_ptr, struct LDKPositiveTimestamp val);
13684 public static native void RawDataPart_set_timestamp(long this_ptr, long val);
13685 // bool RawDataPart_eq(const struct LDKRawDataPart *NONNULL_PTR a, const struct LDKRawDataPart *NONNULL_PTR b);
13686 public static native boolean RawDataPart_eq(long a, long b);
13687 // uint64_t RawDataPart_clone_ptr(LDKRawDataPart *NONNULL_PTR arg);
13688 public static native long RawDataPart_clone_ptr(long arg);
13689 // struct LDKRawDataPart RawDataPart_clone(const struct LDKRawDataPart *NONNULL_PTR orig);
13690 public static native long RawDataPart_clone(long orig);
13691 // uint64_t RawDataPart_hash(const struct LDKRawDataPart *NONNULL_PTR o);
13692 public static native long RawDataPart_hash(long o);
13693 // void PositiveTimestamp_free(struct LDKPositiveTimestamp this_obj);
13694 public static native void PositiveTimestamp_free(long this_obj);
13695 // bool PositiveTimestamp_eq(const struct LDKPositiveTimestamp *NONNULL_PTR a, const struct LDKPositiveTimestamp *NONNULL_PTR b);
13696 public static native boolean PositiveTimestamp_eq(long a, long b);
13697 // uint64_t PositiveTimestamp_clone_ptr(LDKPositiveTimestamp *NONNULL_PTR arg);
13698 public static native long PositiveTimestamp_clone_ptr(long arg);
13699 // struct LDKPositiveTimestamp PositiveTimestamp_clone(const struct LDKPositiveTimestamp *NONNULL_PTR orig);
13700 public static native long PositiveTimestamp_clone(long orig);
13701 // uint64_t PositiveTimestamp_hash(const struct LDKPositiveTimestamp *NONNULL_PTR o);
13702 public static native long PositiveTimestamp_hash(long o);
13703 // enum LDKSiPrefix SiPrefix_clone(const enum LDKSiPrefix *NONNULL_PTR orig);
13704 public static native SiPrefix SiPrefix_clone(long orig);
13705 // enum LDKSiPrefix SiPrefix_milli(void);
13706 public static native SiPrefix SiPrefix_milli();
13707 // enum LDKSiPrefix SiPrefix_micro(void);
13708 public static native SiPrefix SiPrefix_micro();
13709 // enum LDKSiPrefix SiPrefix_nano(void);
13710 public static native SiPrefix SiPrefix_nano();
13711 // enum LDKSiPrefix SiPrefix_pico(void);
13712 public static native SiPrefix SiPrefix_pico();
13713 // bool SiPrefix_eq(const enum LDKSiPrefix *NONNULL_PTR a, const enum LDKSiPrefix *NONNULL_PTR b);
13714 public static native boolean SiPrefix_eq(long a, long b);
13715 // uint64_t SiPrefix_hash(const enum LDKSiPrefix *NONNULL_PTR o);
13716 public static native long SiPrefix_hash(long o);
13717 // MUST_USE_RES uint64_t SiPrefix_multiplier(const enum LDKSiPrefix *NONNULL_PTR this_arg);
13718 public static native long SiPrefix_multiplier(long this_arg);
13719 // enum LDKCurrency Currency_clone(const enum LDKCurrency *NONNULL_PTR orig);
13720 public static native Currency Currency_clone(long orig);
13721 // enum LDKCurrency Currency_bitcoin(void);
13722 public static native Currency Currency_bitcoin();
13723 // enum LDKCurrency Currency_bitcoin_testnet(void);
13724 public static native Currency Currency_bitcoin_testnet();
13725 // enum LDKCurrency Currency_regtest(void);
13726 public static native Currency Currency_regtest();
13727 // enum LDKCurrency Currency_simnet(void);
13728 public static native Currency Currency_simnet();
13729 // enum LDKCurrency Currency_signet(void);
13730 public static native Currency Currency_signet();
13731 // uint64_t Currency_hash(const enum LDKCurrency *NONNULL_PTR o);
13732 public static native long Currency_hash(long o);
13733 // bool Currency_eq(const enum LDKCurrency *NONNULL_PTR a, const enum LDKCurrency *NONNULL_PTR b);
13734 public static native boolean Currency_eq(long a, long b);
13735 // void Sha256_free(struct LDKSha256 this_obj);
13736 public static native void Sha256_free(long this_obj);
13737 // uint64_t Sha256_clone_ptr(LDKSha256 *NONNULL_PTR arg);
13738 public static native long Sha256_clone_ptr(long arg);
13739 // struct LDKSha256 Sha256_clone(const struct LDKSha256 *NONNULL_PTR orig);
13740 public static native long Sha256_clone(long orig);
13741 // uint64_t Sha256_hash(const struct LDKSha256 *NONNULL_PTR o);
13742 public static native long Sha256_hash(long o);
13743 // bool Sha256_eq(const struct LDKSha256 *NONNULL_PTR a, const struct LDKSha256 *NONNULL_PTR b);
13744 public static native boolean Sha256_eq(long a, long b);
13745 // MUST_USE_RES struct LDKSha256 Sha256_from_bytes(const uint8_t (*bytes)[32]);
13746 public static native long Sha256_from_bytes(byte[] bytes);
13747 // void Description_free(struct LDKDescription this_obj);
13748 public static native void Description_free(long this_obj);
13749 // uint64_t Description_clone_ptr(LDKDescription *NONNULL_PTR arg);
13750 public static native long Description_clone_ptr(long arg);
13751 // struct LDKDescription Description_clone(const struct LDKDescription *NONNULL_PTR orig);
13752 public static native long Description_clone(long orig);
13753 // uint64_t Description_hash(const struct LDKDescription *NONNULL_PTR o);
13754 public static native long Description_hash(long o);
13755 // bool Description_eq(const struct LDKDescription *NONNULL_PTR a, const struct LDKDescription *NONNULL_PTR b);
13756 public static native boolean Description_eq(long a, long b);
13757 // void PayeePubKey_free(struct LDKPayeePubKey this_obj);
13758 public static native void PayeePubKey_free(long this_obj);
13759 // struct LDKPublicKey PayeePubKey_get_a(const struct LDKPayeePubKey *NONNULL_PTR this_ptr);
13760 public static native byte[] PayeePubKey_get_a(long this_ptr);
13761 // void PayeePubKey_set_a(struct LDKPayeePubKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
13762 public static native void PayeePubKey_set_a(long this_ptr, byte[] val);
13763 // MUST_USE_RES struct LDKPayeePubKey PayeePubKey_new(struct LDKPublicKey a_arg);
13764 public static native long PayeePubKey_new(byte[] a_arg);
13765 // uint64_t PayeePubKey_clone_ptr(LDKPayeePubKey *NONNULL_PTR arg);
13766 public static native long PayeePubKey_clone_ptr(long arg);
13767 // struct LDKPayeePubKey PayeePubKey_clone(const struct LDKPayeePubKey *NONNULL_PTR orig);
13768 public static native long PayeePubKey_clone(long orig);
13769 // uint64_t PayeePubKey_hash(const struct LDKPayeePubKey *NONNULL_PTR o);
13770 public static native long PayeePubKey_hash(long o);
13771 // bool PayeePubKey_eq(const struct LDKPayeePubKey *NONNULL_PTR a, const struct LDKPayeePubKey *NONNULL_PTR b);
13772 public static native boolean PayeePubKey_eq(long a, long b);
13773 // void ExpiryTime_free(struct LDKExpiryTime this_obj);
13774 public static native void ExpiryTime_free(long this_obj);
13775 // uint64_t ExpiryTime_clone_ptr(LDKExpiryTime *NONNULL_PTR arg);
13776 public static native long ExpiryTime_clone_ptr(long arg);
13777 // struct LDKExpiryTime ExpiryTime_clone(const struct LDKExpiryTime *NONNULL_PTR orig);
13778 public static native long ExpiryTime_clone(long orig);
13779 // uint64_t ExpiryTime_hash(const struct LDKExpiryTime *NONNULL_PTR o);
13780 public static native long ExpiryTime_hash(long o);
13781 // bool ExpiryTime_eq(const struct LDKExpiryTime *NONNULL_PTR a, const struct LDKExpiryTime *NONNULL_PTR b);
13782 public static native boolean ExpiryTime_eq(long a, long b);
13783 // void MinFinalCltvExpiryDelta_free(struct LDKMinFinalCltvExpiryDelta this_obj);
13784 public static native void MinFinalCltvExpiryDelta_free(long this_obj);
13785 // uint64_t MinFinalCltvExpiryDelta_get_a(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR this_ptr);
13786 public static native long MinFinalCltvExpiryDelta_get_a(long this_ptr);
13787 // void MinFinalCltvExpiryDelta_set_a(struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR this_ptr, uint64_t val);
13788 public static native void MinFinalCltvExpiryDelta_set_a(long this_ptr, long val);
13789 // MUST_USE_RES struct LDKMinFinalCltvExpiryDelta MinFinalCltvExpiryDelta_new(uint64_t a_arg);
13790 public static native long MinFinalCltvExpiryDelta_new(long a_arg);
13791 // uint64_t MinFinalCltvExpiryDelta_clone_ptr(LDKMinFinalCltvExpiryDelta *NONNULL_PTR arg);
13792 public static native long MinFinalCltvExpiryDelta_clone_ptr(long arg);
13793 // struct LDKMinFinalCltvExpiryDelta MinFinalCltvExpiryDelta_clone(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR orig);
13794 public static native long MinFinalCltvExpiryDelta_clone(long orig);
13795 // uint64_t MinFinalCltvExpiryDelta_hash(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR o);
13796 public static native long MinFinalCltvExpiryDelta_hash(long o);
13797 // bool MinFinalCltvExpiryDelta_eq(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR a, const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR b);
13798 public static native boolean MinFinalCltvExpiryDelta_eq(long a, long b);
13799 // void Fallback_free(struct LDKFallback this_ptr);
13800 public static native void Fallback_free(long this_ptr);
13801 // uint64_t Fallback_clone_ptr(LDKFallback *NONNULL_PTR arg);
13802 public static native long Fallback_clone_ptr(long arg);
13803 // struct LDKFallback Fallback_clone(const struct LDKFallback *NONNULL_PTR orig);
13804 public static native long Fallback_clone(long orig);
13805 // struct LDKFallback Fallback_seg_wit_program(struct LDKWitnessVersion version, struct LDKCVec_u8Z program);
13806 public static native long Fallback_seg_wit_program(byte version, byte[] program);
13807 // struct LDKFallback Fallback_pub_key_hash(struct LDKTwentyBytes a);
13808 public static native long Fallback_pub_key_hash(byte[] a);
13809 // struct LDKFallback Fallback_script_hash(struct LDKTwentyBytes a);
13810 public static native long Fallback_script_hash(byte[] a);
13811 // uint64_t Fallback_hash(const struct LDKFallback *NONNULL_PTR o);
13812 public static native long Fallback_hash(long o);
13813 // bool Fallback_eq(const struct LDKFallback *NONNULL_PTR a, const struct LDKFallback *NONNULL_PTR b);
13814 public static native boolean Fallback_eq(long a, long b);
13815 // void Bolt11InvoiceSignature_free(struct LDKBolt11InvoiceSignature this_obj);
13816 public static native void Bolt11InvoiceSignature_free(long this_obj);
13817 // uint64_t Bolt11InvoiceSignature_clone_ptr(LDKBolt11InvoiceSignature *NONNULL_PTR arg);
13818 public static native long Bolt11InvoiceSignature_clone_ptr(long arg);
13819 // struct LDKBolt11InvoiceSignature Bolt11InvoiceSignature_clone(const struct LDKBolt11InvoiceSignature *NONNULL_PTR orig);
13820 public static native long Bolt11InvoiceSignature_clone(long orig);
13821 // uint64_t Bolt11InvoiceSignature_hash(const struct LDKBolt11InvoiceSignature *NONNULL_PTR o);
13822 public static native long Bolt11InvoiceSignature_hash(long o);
13823 // bool Bolt11InvoiceSignature_eq(const struct LDKBolt11InvoiceSignature *NONNULL_PTR a, const struct LDKBolt11InvoiceSignature *NONNULL_PTR b);
13824 public static native boolean Bolt11InvoiceSignature_eq(long a, long b);
13825 // void PrivateRoute_free(struct LDKPrivateRoute this_obj);
13826 public static native void PrivateRoute_free(long this_obj);
13827 // uint64_t PrivateRoute_clone_ptr(LDKPrivateRoute *NONNULL_PTR arg);
13828 public static native long PrivateRoute_clone_ptr(long arg);
13829 // struct LDKPrivateRoute PrivateRoute_clone(const struct LDKPrivateRoute *NONNULL_PTR orig);
13830 public static native long PrivateRoute_clone(long orig);
13831 // uint64_t PrivateRoute_hash(const struct LDKPrivateRoute *NONNULL_PTR o);
13832 public static native long PrivateRoute_hash(long o);
13833 // bool PrivateRoute_eq(const struct LDKPrivateRoute *NONNULL_PTR a, const struct LDKPrivateRoute *NONNULL_PTR b);
13834 public static native boolean PrivateRoute_eq(long a, long b);
13835 // MUST_USE_RES struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ SignedRawBolt11Invoice_into_parts(struct LDKSignedRawBolt11Invoice this_arg);
13836 public static native long SignedRawBolt11Invoice_into_parts(long this_arg);
13837 // MUST_USE_RES struct LDKRawBolt11Invoice SignedRawBolt11Invoice_raw_invoice(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg);
13838 public static native long SignedRawBolt11Invoice_raw_invoice(long this_arg);
13839 // MUST_USE_RES const uint8_t (*SignedRawBolt11Invoice_signable_hash(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg))[32];
13840 public static native byte[] SignedRawBolt11Invoice_signable_hash(long this_arg);
13841 // MUST_USE_RES struct LDKBolt11InvoiceSignature SignedRawBolt11Invoice_signature(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg);
13842 public static native long SignedRawBolt11Invoice_signature(long this_arg);
13843 // MUST_USE_RES struct LDKCResult_PayeePubKeySecp256k1ErrorZ SignedRawBolt11Invoice_recover_payee_pub_key(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg);
13844 public static native long SignedRawBolt11Invoice_recover_payee_pub_key(long this_arg);
13845 // MUST_USE_RES bool SignedRawBolt11Invoice_check_signature(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR this_arg);
13846 public static native boolean SignedRawBolt11Invoice_check_signature(long this_arg);
13847 // MUST_USE_RES struct LDKThirtyTwoBytes RawBolt11Invoice_signable_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
13848 public static native byte[] RawBolt11Invoice_signable_hash(long this_arg);
13849 // MUST_USE_RES struct LDKSha256 RawBolt11Invoice_payment_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
13850 public static native long RawBolt11Invoice_payment_hash(long this_arg);
13851 // MUST_USE_RES struct LDKDescription RawBolt11Invoice_description(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
13852 public static native long RawBolt11Invoice_description(long this_arg);
13853 // MUST_USE_RES struct LDKPayeePubKey RawBolt11Invoice_payee_pub_key(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
13854 public static native long RawBolt11Invoice_payee_pub_key(long this_arg);
13855 // MUST_USE_RES struct LDKSha256 RawBolt11Invoice_description_hash(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
13856 public static native long RawBolt11Invoice_description_hash(long this_arg);
13857 // MUST_USE_RES struct LDKExpiryTime RawBolt11Invoice_expiry_time(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
13858 public static native long RawBolt11Invoice_expiry_time(long this_arg);
13859 // MUST_USE_RES struct LDKMinFinalCltvExpiryDelta RawBolt11Invoice_min_final_cltv_expiry_delta(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
13860 public static native long RawBolt11Invoice_min_final_cltv_expiry_delta(long this_arg);
13861 // MUST_USE_RES struct LDKCOption_ThirtyTwoBytesZ RawBolt11Invoice_payment_secret(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
13862 public static native long RawBolt11Invoice_payment_secret(long this_arg);
13863 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ RawBolt11Invoice_payment_metadata(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
13864 public static native long RawBolt11Invoice_payment_metadata(long this_arg);
13865 // MUST_USE_RES struct LDKBolt11InvoiceFeatures RawBolt11Invoice_features(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
13866 public static native long RawBolt11Invoice_features(long this_arg);
13867 // MUST_USE_RES struct LDKCVec_PrivateRouteZ RawBolt11Invoice_private_routes(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
13868 public static native long[] RawBolt11Invoice_private_routes(long this_arg);
13869 // MUST_USE_RES struct LDKCOption_u64Z RawBolt11Invoice_amount_pico_btc(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
13870 public static native long RawBolt11Invoice_amount_pico_btc(long this_arg);
13871 // MUST_USE_RES enum LDKCurrency RawBolt11Invoice_currency(const struct LDKRawBolt11Invoice *NONNULL_PTR this_arg);
13872 public static native Currency RawBolt11Invoice_currency(long this_arg);
13873 // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_unix_timestamp(uint64_t unix_seconds);
13874 public static native long PositiveTimestamp_from_unix_timestamp(long unix_seconds);
13875 // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_system_time(uint64_t time);
13876 public static native long PositiveTimestamp_from_system_time(long time);
13877 // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_duration_since_epoch(uint64_t duration);
13878 public static native long PositiveTimestamp_from_duration_since_epoch(long duration);
13879 // MUST_USE_RES uint64_t PositiveTimestamp_as_unix_timestamp(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
13880 public static native long PositiveTimestamp_as_unix_timestamp(long this_arg);
13881 // MUST_USE_RES uint64_t PositiveTimestamp_as_duration_since_epoch(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
13882 public static native long PositiveTimestamp_as_duration_since_epoch(long this_arg);
13883 // MUST_USE_RES uint64_t PositiveTimestamp_as_time(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
13884 public static native long PositiveTimestamp_as_time(long this_arg);
13885 // MUST_USE_RES struct LDKThirtyTwoBytes Bolt11Invoice_signable_hash(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13886 public static native byte[] Bolt11Invoice_signable_hash(long this_arg);
13887 // MUST_USE_RES struct LDKSignedRawBolt11Invoice Bolt11Invoice_into_signed_raw(struct LDKBolt11Invoice this_arg);
13888 public static native long Bolt11Invoice_into_signed_raw(long this_arg);
13889 // MUST_USE_RES struct LDKCResult_NoneBolt11SemanticErrorZ Bolt11Invoice_check_signature(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13890 public static native long Bolt11Invoice_check_signature(long this_arg);
13891 // MUST_USE_RES struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ Bolt11Invoice_from_signed(struct LDKSignedRawBolt11Invoice signed_invoice);
13892 public static native long Bolt11Invoice_from_signed(long signed_invoice);
13893 // MUST_USE_RES uint64_t Bolt11Invoice_timestamp(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13894 public static native long Bolt11Invoice_timestamp(long this_arg);
13895 // MUST_USE_RES uint64_t Bolt11Invoice_duration_since_epoch(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13896 public static native long Bolt11Invoice_duration_since_epoch(long this_arg);
13897 // MUST_USE_RES const uint8_t (*Bolt11Invoice_payment_hash(const struct LDKBolt11Invoice *NONNULL_PTR this_arg))[32];
13898 public static native byte[] Bolt11Invoice_payment_hash(long this_arg);
13899 // MUST_USE_RES struct LDKPublicKey Bolt11Invoice_payee_pub_key(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13900 public static native byte[] Bolt11Invoice_payee_pub_key(long this_arg);
13901 // MUST_USE_RES const uint8_t (*Bolt11Invoice_payment_secret(const struct LDKBolt11Invoice *NONNULL_PTR this_arg))[32];
13902 public static native byte[] Bolt11Invoice_payment_secret(long this_arg);
13903 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ Bolt11Invoice_payment_metadata(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13904 public static native long Bolt11Invoice_payment_metadata(long this_arg);
13905 // MUST_USE_RES struct LDKBolt11InvoiceFeatures Bolt11Invoice_features(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13906 public static native long Bolt11Invoice_features(long this_arg);
13907 // MUST_USE_RES struct LDKPublicKey Bolt11Invoice_recover_payee_pub_key(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13908 public static native byte[] Bolt11Invoice_recover_payee_pub_key(long this_arg);
13909 // MUST_USE_RES struct LDKCOption_u64Z Bolt11Invoice_expires_at(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13910 public static native long Bolt11Invoice_expires_at(long this_arg);
13911 // MUST_USE_RES uint64_t Bolt11Invoice_expiry_time(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13912 public static native long Bolt11Invoice_expiry_time(long this_arg);
13913 // MUST_USE_RES bool Bolt11Invoice_is_expired(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13914 public static native boolean Bolt11Invoice_is_expired(long this_arg);
13915 // MUST_USE_RES uint64_t Bolt11Invoice_duration_until_expiry(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13916 public static native long Bolt11Invoice_duration_until_expiry(long this_arg);
13917 // MUST_USE_RES uint64_t Bolt11Invoice_expiration_remaining_from_epoch(const struct LDKBolt11Invoice *NONNULL_PTR this_arg, uint64_t time);
13918 public static native long Bolt11Invoice_expiration_remaining_from_epoch(long this_arg, long time);
13919 // MUST_USE_RES bool Bolt11Invoice_would_expire(const struct LDKBolt11Invoice *NONNULL_PTR this_arg, uint64_t at_time);
13920 public static native boolean Bolt11Invoice_would_expire(long this_arg, long at_time);
13921 // MUST_USE_RES uint64_t Bolt11Invoice_min_final_cltv_expiry_delta(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13922 public static native long Bolt11Invoice_min_final_cltv_expiry_delta(long this_arg);
13923 // MUST_USE_RES struct LDKCVec_StrZ Bolt11Invoice_fallback_addresses(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13924 public static native String[] Bolt11Invoice_fallback_addresses(long this_arg);
13925 // MUST_USE_RES struct LDKCVec_PrivateRouteZ Bolt11Invoice_private_routes(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13926 public static native long[] Bolt11Invoice_private_routes(long this_arg);
13927 // MUST_USE_RES struct LDKCVec_RouteHintZ Bolt11Invoice_route_hints(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13928 public static native long[] Bolt11Invoice_route_hints(long this_arg);
13929 // MUST_USE_RES enum LDKCurrency Bolt11Invoice_currency(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13930 public static native Currency Bolt11Invoice_currency(long this_arg);
13931 // MUST_USE_RES struct LDKCOption_u64Z Bolt11Invoice_amount_milli_satoshis(const struct LDKBolt11Invoice *NONNULL_PTR this_arg);
13932 public static native long Bolt11Invoice_amount_milli_satoshis(long this_arg);
13933 // MUST_USE_RES struct LDKCResult_DescriptionCreationErrorZ Description_new(struct LDKStr description);
13934 public static native long Description_new(String description);
13935 // MUST_USE_RES struct LDKUntrustedString Description_into_inner(struct LDKDescription this_arg);
13936 public static native long Description_into_inner(long this_arg);
13937 // struct LDKStr Description_to_str(const struct LDKDescription *NONNULL_PTR o);
13938 public static native String Description_to_str(long o);
13939 // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_seconds(uint64_t seconds);
13940 public static native long ExpiryTime_from_seconds(long seconds);
13941 // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_duration(uint64_t duration);
13942 public static native long ExpiryTime_from_duration(long duration);
13943 // MUST_USE_RES uint64_t ExpiryTime_as_seconds(const struct LDKExpiryTime *NONNULL_PTR this_arg);
13944 public static native long ExpiryTime_as_seconds(long this_arg);
13945 // MUST_USE_RES uint64_t ExpiryTime_as_duration(const struct LDKExpiryTime *NONNULL_PTR this_arg);
13946 public static native long ExpiryTime_as_duration(long this_arg);
13947 // MUST_USE_RES struct LDKCResult_PrivateRouteCreationErrorZ PrivateRoute_new(struct LDKRouteHint hops);
13948 public static native long PrivateRoute_new(long hops);
13949 // MUST_USE_RES struct LDKRouteHint PrivateRoute_into_inner(struct LDKPrivateRoute this_arg);
13950 public static native long PrivateRoute_into_inner(long this_arg);
13951 // enum LDKCreationError CreationError_clone(const enum LDKCreationError *NONNULL_PTR orig);
13952 public static native CreationError CreationError_clone(long orig);
13953 // enum LDKCreationError CreationError_description_too_long(void);
13954 public static native CreationError CreationError_description_too_long();
13955 // enum LDKCreationError CreationError_route_too_long(void);
13956 public static native CreationError CreationError_route_too_long();
13957 // enum LDKCreationError CreationError_timestamp_out_of_bounds(void);
13958 public static native CreationError CreationError_timestamp_out_of_bounds();
13959 // enum LDKCreationError CreationError_invalid_amount(void);
13960 public static native CreationError CreationError_invalid_amount();
13961 // enum LDKCreationError CreationError_missing_route_hints(void);
13962 public static native CreationError CreationError_missing_route_hints();
13963 // enum LDKCreationError CreationError_min_final_cltv_expiry_delta_too_short(void);
13964 public static native CreationError CreationError_min_final_cltv_expiry_delta_too_short();
13965 // bool CreationError_eq(const enum LDKCreationError *NONNULL_PTR a, const enum LDKCreationError *NONNULL_PTR b);
13966 public static native boolean CreationError_eq(long a, long b);
13967 // struct LDKStr CreationError_to_str(const enum LDKCreationError *NONNULL_PTR o);
13968 public static native String CreationError_to_str(long o);
13969 // enum LDKBolt11SemanticError Bolt11SemanticError_clone(const enum LDKBolt11SemanticError *NONNULL_PTR orig);
13970 public static native Bolt11SemanticError Bolt11SemanticError_clone(long orig);
13971 // enum LDKBolt11SemanticError Bolt11SemanticError_no_payment_hash(void);
13972 public static native Bolt11SemanticError Bolt11SemanticError_no_payment_hash();
13973 // enum LDKBolt11SemanticError Bolt11SemanticError_multiple_payment_hashes(void);
13974 public static native Bolt11SemanticError Bolt11SemanticError_multiple_payment_hashes();
13975 // enum LDKBolt11SemanticError Bolt11SemanticError_no_description(void);
13976 public static native Bolt11SemanticError Bolt11SemanticError_no_description();
13977 // enum LDKBolt11SemanticError Bolt11SemanticError_multiple_descriptions(void);
13978 public static native Bolt11SemanticError Bolt11SemanticError_multiple_descriptions();
13979 // enum LDKBolt11SemanticError Bolt11SemanticError_no_payment_secret(void);
13980 public static native Bolt11SemanticError Bolt11SemanticError_no_payment_secret();
13981 // enum LDKBolt11SemanticError Bolt11SemanticError_multiple_payment_secrets(void);
13982 public static native Bolt11SemanticError Bolt11SemanticError_multiple_payment_secrets();
13983 // enum LDKBolt11SemanticError Bolt11SemanticError_invalid_features(void);
13984 public static native Bolt11SemanticError Bolt11SemanticError_invalid_features();
13985 // enum LDKBolt11SemanticError Bolt11SemanticError_invalid_recovery_id(void);
13986 public static native Bolt11SemanticError Bolt11SemanticError_invalid_recovery_id();
13987 // enum LDKBolt11SemanticError Bolt11SemanticError_invalid_signature(void);
13988 public static native Bolt11SemanticError Bolt11SemanticError_invalid_signature();
13989 // enum LDKBolt11SemanticError Bolt11SemanticError_imprecise_amount(void);
13990 public static native Bolt11SemanticError Bolt11SemanticError_imprecise_amount();
13991 // bool Bolt11SemanticError_eq(const enum LDKBolt11SemanticError *NONNULL_PTR a, const enum LDKBolt11SemanticError *NONNULL_PTR b);
13992 public static native boolean Bolt11SemanticError_eq(long a, long b);
13993 // struct LDKStr Bolt11SemanticError_to_str(const enum LDKBolt11SemanticError *NONNULL_PTR o);
13994 public static native String Bolt11SemanticError_to_str(long o);
13995 // void SignOrCreationError_free(struct LDKSignOrCreationError this_ptr);
13996 public static native void SignOrCreationError_free(long this_ptr);
13997 // uint64_t SignOrCreationError_clone_ptr(LDKSignOrCreationError *NONNULL_PTR arg);
13998 public static native long SignOrCreationError_clone_ptr(long arg);
13999 // struct LDKSignOrCreationError SignOrCreationError_clone(const struct LDKSignOrCreationError *NONNULL_PTR orig);
14000 public static native long SignOrCreationError_clone(long orig);
14001 // struct LDKSignOrCreationError SignOrCreationError_sign_error(void);
14002 public static native long SignOrCreationError_sign_error();
14003 // struct LDKSignOrCreationError SignOrCreationError_creation_error(enum LDKCreationError a);
14004 public static native long SignOrCreationError_creation_error(CreationError a);
14005 // bool SignOrCreationError_eq(const struct LDKSignOrCreationError *NONNULL_PTR a, const struct LDKSignOrCreationError *NONNULL_PTR b);
14006 public static native boolean SignOrCreationError_eq(long a, long b);
14007 // struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NONNULL_PTR o);
14008 public static native String SignOrCreationError_to_str(long o);
14009 // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ payment_parameters_from_zero_amount_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice, uint64_t amount_msat);
14010 public static native long payment_parameters_from_zero_amount_invoice(long invoice, long amount_msat);
14011 // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ payment_parameters_from_invoice(const struct LDKBolt11Invoice *NONNULL_PTR invoice);
14012 public static native long payment_parameters_from_invoice(long invoice);
14013 // 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);
14014 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);
14015 // 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);
14016 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);
14017 // 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);
14018 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);
14019 // 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);
14020 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);
14021 // 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);
14022 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);
14023 // 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);
14024 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);
14025 // 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);
14026 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);
14027 // struct LDKCResult_SiPrefixBolt11ParseErrorZ SiPrefix_from_str(struct LDKStr s);
14028 public static native long SiPrefix_from_str(String s);
14029 // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ Bolt11Invoice_from_str(struct LDKStr s);
14030 public static native long Bolt11Invoice_from_str(String s);
14031 // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ SignedRawBolt11Invoice_from_str(struct LDKStr s);
14032 public static native long SignedRawBolt11Invoice_from_str(String s);
14033 // struct LDKStr Bolt11ParseError_to_str(const struct LDKBolt11ParseError *NONNULL_PTR o);
14034 public static native String Bolt11ParseError_to_str(long o);
14035 // struct LDKStr ParseOrSemanticError_to_str(const struct LDKParseOrSemanticError *NONNULL_PTR o);
14036 public static native String ParseOrSemanticError_to_str(long o);
14037 // struct LDKStr Bolt11Invoice_to_str(const struct LDKBolt11Invoice *NONNULL_PTR o);
14038 public static native String Bolt11Invoice_to_str(long o);
14039 // struct LDKStr SignedRawBolt11Invoice_to_str(const struct LDKSignedRawBolt11Invoice *NONNULL_PTR o);
14040 public static native String SignedRawBolt11Invoice_to_str(long o);
14041 // struct LDKStr Currency_to_str(const enum LDKCurrency *NONNULL_PTR o);
14042 public static native String Currency_to_str(long o);
14043 // struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o);
14044 public static native String SiPrefix_to_str(long o);
14045 // void GraphSyncError_free(struct LDKGraphSyncError this_ptr);
14046 public static native void GraphSyncError_free(long this_ptr);
14047 // uint64_t GraphSyncError_clone_ptr(LDKGraphSyncError *NONNULL_PTR arg);
14048 public static native long GraphSyncError_clone_ptr(long arg);
14049 // struct LDKGraphSyncError GraphSyncError_clone(const struct LDKGraphSyncError *NONNULL_PTR orig);
14050 public static native long GraphSyncError_clone(long orig);
14051 // struct LDKGraphSyncError GraphSyncError_decode_error(struct LDKDecodeError a);
14052 public static native long GraphSyncError_decode_error(long a);
14053 // struct LDKGraphSyncError GraphSyncError_lightning_error(struct LDKLightningError a);
14054 public static native long GraphSyncError_lightning_error(long a);
14055 // void RapidGossipSync_free(struct LDKRapidGossipSync this_obj);
14056 public static native void RapidGossipSync_free(long this_obj);
14057 // MUST_USE_RES struct LDKRapidGossipSync RapidGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
14058 public static native long RapidGossipSync_new(long network_graph, long logger);
14059 // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_sync_network_graph_with_file_path(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKStr sync_path);
14060 public static native long RapidGossipSync_sync_network_graph_with_file_path(long this_arg, String sync_path);
14061 // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_update_network_graph(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKu8slice update_data);
14062 public static native long RapidGossipSync_update_network_graph(long this_arg, byte[] update_data);
14063 // 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);
14064 public static native long RapidGossipSync_update_network_graph_no_std(long this_arg, byte[] update_data, long current_time_unix);
14065 // MUST_USE_RES bool RapidGossipSync_is_initial_sync_complete(const struct LDKRapidGossipSync *NONNULL_PTR this_arg);
14066 public static native boolean RapidGossipSync_is_initial_sync_complete(long this_arg);