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 { COption_NoneZ.values(); /* Force enum statics to run */ }
49 static { ChannelMonitorUpdateStatus.values(); /* Force enum statics to run */ }
50 static { ConfirmationTarget.values(); /* Force enum statics to run */ }
51 static { CreationError.values(); /* Force enum statics to run */ }
52 static { Currency.values(); /* Force enum statics to run */ }
53 static { FailureCode.values(); /* Force enum statics to run */ }
54 static { HTLCClaim.values(); /* Force enum statics to run */ }
55 static { IOError.values(); /* Force enum statics to run */ }
56 static { Level.values(); /* Force enum statics to run */ }
57 static { Network.values(); /* Force enum statics to run */ }
58 static { Recipient.values(); /* Force enum statics to run */ }
59 static { RetryableSendFailure.values(); /* Force enum statics to run */ }
60 static { Secp256k1Error.values(); /* Force enum statics to run */ }
61 static { SemanticError.values(); /* Force enum statics to run */ }
62 static { SiPrefix.values(); /* Force enum statics to run */ }
63 static { UtxoLookupError.values(); /* Force enum statics to run */ }
64 // struct LDKThirtyTwoBytes BigEndianScalar_get_bytes (struct LDKBigEndianScalar* thing)
65 public static native byte[] BigEndianScalar_get_bytes(long thing);
66 // static void BigEndianScalar_free (struct LDKBigEndianScalar thing)
67 public static native void BigEndianScalar_free(long thing);
68 public static class LDKBech32Error {
69 private LDKBech32Error() {}
70 public final static class MissingSeparator extends LDKBech32Error {
71 MissingSeparator() { }
73 public final static class InvalidChecksum extends LDKBech32Error {
76 public final static class InvalidLength extends LDKBech32Error {
79 public final static class InvalidChar extends LDKBech32Error {
80 public int invalid_char;
81 InvalidChar(int invalid_char) { this.invalid_char = invalid_char; }
83 public final static class InvalidData extends LDKBech32Error {
84 public byte invalid_data;
85 InvalidData(byte invalid_data) { this.invalid_data = invalid_data; }
87 public final static class InvalidPadding extends LDKBech32Error {
90 public final static class MixedCase extends LDKBech32Error {
93 static native void init();
95 static { LDKBech32Error.init(); }
96 public static native LDKBech32Error LDKBech32Error_ref_from_ptr(long ptr);
97 // struct LDKCVec_u8Z TxOut_get_script_pubkey (struct LDKTxOut* thing)
98 public static native byte[] TxOut_get_script_pubkey(long thing);
99 // uint64_t TxOut_get_value (struct LDKTxOut* thing)
100 public static native long TxOut_get_value(long thing);
101 public static class LDKAPIError {
102 private LDKAPIError() {}
103 public final static class APIMisuseError extends LDKAPIError {
104 public java.lang.String err;
105 APIMisuseError(java.lang.String err) { this.err = err; }
107 public final static class FeeRateTooHigh extends LDKAPIError {
108 public java.lang.String err;
110 FeeRateTooHigh(java.lang.String err, int feerate) { this.err = err; this.feerate = feerate; }
112 public final static class InvalidRoute extends LDKAPIError {
113 public java.lang.String err;
114 InvalidRoute(java.lang.String err) { this.err = err; }
116 public final static class ChannelUnavailable extends LDKAPIError {
117 public java.lang.String err;
118 ChannelUnavailable(java.lang.String err) { this.err = err; }
120 public final static class MonitorUpdateInProgress extends LDKAPIError {
121 MonitorUpdateInProgress() { }
123 public final static class IncompatibleShutdownScript extends LDKAPIError {
125 IncompatibleShutdownScript(long script) { this.script = script; }
127 static native void init();
129 static { LDKAPIError.init(); }
130 public static native LDKAPIError LDKAPIError_ref_from_ptr(long ptr);
131 // void CResult_NoneAPIErrorZ_get_ok(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
132 public static native void CResult_NoneAPIErrorZ_get_ok(long owner);
133 // struct LDKAPIError CResult_NoneAPIErrorZ_get_err(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
134 public static native long CResult_NoneAPIErrorZ_get_err(long owner);
135 public static class LDKCOption_HTLCClaimZ {
136 private LDKCOption_HTLCClaimZ() {}
137 public final static class Some extends LDKCOption_HTLCClaimZ {
138 public org.ldk.enums.HTLCClaim some;
139 Some(org.ldk.enums.HTLCClaim some) { this.some = some; }
141 public final static class None extends LDKCOption_HTLCClaimZ {
144 static native void init();
146 static { LDKCOption_HTLCClaimZ.init(); }
147 public static native LDKCOption_HTLCClaimZ LDKCOption_HTLCClaimZ_ref_from_ptr(long ptr);
148 // void CResult_NoneNoneZ_get_ok(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
149 public static native void CResult_NoneNoneZ_get_ok(long owner);
150 // void CResult_NoneNoneZ_get_err(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
151 public static native void CResult_NoneNoneZ_get_err(long owner);
152 public static class LDKDecodeError {
153 private LDKDecodeError() {}
154 public final static class UnknownVersion extends LDKDecodeError {
157 public final static class UnknownRequiredFeature extends LDKDecodeError {
158 UnknownRequiredFeature() { }
160 public final static class InvalidValue extends LDKDecodeError {
163 public final static class ShortRead extends LDKDecodeError {
166 public final static class BadLengthDescriptor extends LDKDecodeError {
167 BadLengthDescriptor() { }
169 public final static class Io extends LDKDecodeError {
170 public org.ldk.enums.IOError io;
171 Io(org.ldk.enums.IOError io) { this.io = io; }
173 public final static class UnsupportedCompression extends LDKDecodeError {
174 UnsupportedCompression() { }
176 static native void init();
178 static { LDKDecodeError.init(); }
179 public static native LDKDecodeError LDKDecodeError_ref_from_ptr(long ptr);
180 // struct LDKCounterpartyCommitmentSecrets CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
181 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(long owner);
182 // struct LDKDecodeError CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
183 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(long owner);
184 // struct LDKTxCreationKeys CResult_TxCreationKeysDecodeErrorZ_get_ok(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
185 public static native long CResult_TxCreationKeysDecodeErrorZ_get_ok(long owner);
186 // struct LDKDecodeError CResult_TxCreationKeysDecodeErrorZ_get_err(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
187 public static native long CResult_TxCreationKeysDecodeErrorZ_get_err(long owner);
188 // struct LDKChannelPublicKeys CResult_ChannelPublicKeysDecodeErrorZ_get_ok(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
189 public static native long CResult_ChannelPublicKeysDecodeErrorZ_get_ok(long owner);
190 // struct LDKDecodeError CResult_ChannelPublicKeysDecodeErrorZ_get_err(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
191 public static native long CResult_ChannelPublicKeysDecodeErrorZ_get_err(long owner);
192 public static class LDKCOption_u32Z {
193 private LDKCOption_u32Z() {}
194 public final static class Some extends LDKCOption_u32Z {
196 Some(int some) { this.some = some; }
198 public final static class None extends LDKCOption_u32Z {
201 static native void init();
203 static { LDKCOption_u32Z.init(); }
204 public static native LDKCOption_u32Z LDKCOption_u32Z_ref_from_ptr(long ptr);
205 // struct LDKHTLCOutputInCommitment CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
206 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(long owner);
207 // struct LDKDecodeError CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
208 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(long owner);
209 // struct LDKCounterpartyChannelTransactionParameters CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
210 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(long owner);
211 // struct LDKDecodeError CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
212 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(long owner);
213 // struct LDKChannelTransactionParameters CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
214 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(long owner);
215 // struct LDKDecodeError CResult_ChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
216 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_get_err(long owner);
217 // struct LDKHolderCommitmentTransaction CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
218 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(long owner);
219 // struct LDKDecodeError CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
220 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(long owner);
221 // struct LDKBuiltCommitmentTransaction CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
222 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(long owner);
223 // struct LDKDecodeError CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
224 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(long owner);
225 // struct LDKTrustedClosingTransaction CResult_TrustedClosingTransactionNoneZ_get_ok(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
226 public static native long CResult_TrustedClosingTransactionNoneZ_get_ok(long owner);
227 // void CResult_TrustedClosingTransactionNoneZ_get_err(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
228 public static native void CResult_TrustedClosingTransactionNoneZ_get_err(long owner);
229 // struct LDKCommitmentTransaction CResult_CommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
230 public static native long CResult_CommitmentTransactionDecodeErrorZ_get_ok(long owner);
231 // struct LDKDecodeError CResult_CommitmentTransactionDecodeErrorZ_get_err(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
232 public static native long CResult_CommitmentTransactionDecodeErrorZ_get_err(long owner);
233 // struct LDKTrustedCommitmentTransaction CResult_TrustedCommitmentTransactionNoneZ_get_ok(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
234 public static native long CResult_TrustedCommitmentTransactionNoneZ_get_ok(long owner);
235 // void CResult_TrustedCommitmentTransactionNoneZ_get_err(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
236 public static native void CResult_TrustedCommitmentTransactionNoneZ_get_err(long owner);
237 // struct LDKCVec_SignatureZ CResult_CVec_SignatureZNoneZ_get_ok(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
238 public static native byte[][] CResult_CVec_SignatureZNoneZ_get_ok(long owner);
239 // void CResult_CVec_SignatureZNoneZ_get_err(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
240 public static native void CResult_CVec_SignatureZNoneZ_get_err(long owner);
241 // struct LDKShutdownScript CResult_ShutdownScriptDecodeErrorZ_get_ok(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
242 public static native long CResult_ShutdownScriptDecodeErrorZ_get_ok(long owner);
243 // struct LDKDecodeError CResult_ShutdownScriptDecodeErrorZ_get_err(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
244 public static native long CResult_ShutdownScriptDecodeErrorZ_get_err(long owner);
245 // struct LDKShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
246 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(long owner);
247 // struct LDKInvalidShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
248 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(long owner);
249 // struct LDKBlindedPath CResult_BlindedPathNoneZ_get_ok(LDKCResult_BlindedPathNoneZ *NONNULL_PTR owner);
250 public static native long CResult_BlindedPathNoneZ_get_ok(long owner);
251 // void CResult_BlindedPathNoneZ_get_err(LDKCResult_BlindedPathNoneZ *NONNULL_PTR owner);
252 public static native void CResult_BlindedPathNoneZ_get_err(long owner);
253 // struct LDKBlindedPath CResult_BlindedPathDecodeErrorZ_get_ok(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR owner);
254 public static native long CResult_BlindedPathDecodeErrorZ_get_ok(long owner);
255 // struct LDKDecodeError CResult_BlindedPathDecodeErrorZ_get_err(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR owner);
256 public static native long CResult_BlindedPathDecodeErrorZ_get_err(long owner);
257 // struct LDKBlindedHop CResult_BlindedHopDecodeErrorZ_get_ok(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner);
258 public static native long CResult_BlindedHopDecodeErrorZ_get_ok(long owner);
259 // struct LDKDecodeError CResult_BlindedHopDecodeErrorZ_get_err(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner);
260 public static native long CResult_BlindedHopDecodeErrorZ_get_err(long owner);
261 public interface LDKScore {
262 long channel_penalty_msat(long short_channel_id, long source, long target, long usage);
263 void payment_path_failed(long[] path, long short_channel_id);
264 void payment_path_successful(long[] path);
265 void probe_failed(long[] path, long short_channel_id);
266 void probe_successful(long[] path);
269 public static native long LDKScore_new(LDKScore impl);
270 // uint64_t Score_channel_penalty_msat LDKScore *NONNULL_PTR this_arg, uint64_t short_channel_id, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target, struct LDKChannelUsage usage
271 public static native long Score_channel_penalty_msat(long this_arg, long short_channel_id, long source, long target, long usage);
272 // void Score_payment_path_failed LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path, uint64_t short_channel_id
273 public static native void Score_payment_path_failed(long this_arg, long[] path, long short_channel_id);
274 // void Score_payment_path_successful LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path
275 public static native void Score_payment_path_successful(long this_arg, long[] path);
276 // void Score_probe_failed LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path, uint64_t short_channel_id
277 public static native void Score_probe_failed(long this_arg, long[] path, long short_channel_id);
278 // void Score_probe_successful LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path
279 public static native void Score_probe_successful(long this_arg, long[] path);
280 // LDKCVec_u8Z Score_write LDKScore *NONNULL_PTR this_arg
281 public static native byte[] Score_write(long this_arg);
282 public interface LDKLockableScore {
285 public static native long LDKLockableScore_new(LDKLockableScore impl);
286 // LDKScore LockableScore_lock LDKLockableScore *NONNULL_PTR this_arg
287 public static native long LockableScore_lock(long this_arg);
288 public interface LDKWriteableScore {
291 public static native long LDKWriteableScore_new(LDKWriteableScore impl, LDKLockableScore LockableScore);
292 public static native long LDKWriteableScore_get_LockableScore(long arg);
293 // LDKCVec_u8Z WriteableScore_write LDKWriteableScore *NONNULL_PTR this_arg
294 public static native byte[] WriteableScore_write(long this_arg);
295 public static class LDKCOption_WriteableScoreZ {
296 private LDKCOption_WriteableScoreZ() {}
297 public final static class Some extends LDKCOption_WriteableScoreZ {
299 Some(long some) { this.some = some; }
301 public final static class None extends LDKCOption_WriteableScoreZ {
304 static native void init();
306 static { LDKCOption_WriteableScoreZ.init(); }
307 public static native LDKCOption_WriteableScoreZ LDKCOption_WriteableScoreZ_ref_from_ptr(long ptr);
308 // void CResult_NoneErrorZ_get_ok(LDKCResult_NoneErrorZ *NONNULL_PTR owner);
309 public static native void CResult_NoneErrorZ_get_ok(long owner);
310 // enum LDKIOError CResult_NoneErrorZ_get_err(LDKCResult_NoneErrorZ *NONNULL_PTR owner);
311 public static native IOError CResult_NoneErrorZ_get_err(long owner);
312 // struct LDKRoute CResult_RouteLightningErrorZ_get_ok(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
313 public static native long CResult_RouteLightningErrorZ_get_ok(long owner);
314 // struct LDKLightningError CResult_RouteLightningErrorZ_get_err(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
315 public static native long CResult_RouteLightningErrorZ_get_err(long owner);
316 public static class LDKCOption_u64Z {
317 private LDKCOption_u64Z() {}
318 public final static class Some extends LDKCOption_u64Z {
320 Some(long some) { this.some = some; }
322 public final static class None extends LDKCOption_u64Z {
325 static native void init();
327 static { LDKCOption_u64Z.init(); }
328 public static native LDKCOption_u64Z LDKCOption_u64Z_ref_from_ptr(long ptr);
329 // struct LDKInFlightHtlcs CResult_InFlightHtlcsDecodeErrorZ_get_ok(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR owner);
330 public static native long CResult_InFlightHtlcsDecodeErrorZ_get_ok(long owner);
331 // struct LDKDecodeError CResult_InFlightHtlcsDecodeErrorZ_get_err(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR owner);
332 public static native long CResult_InFlightHtlcsDecodeErrorZ_get_err(long owner);
333 // struct LDKRouteHop CResult_RouteHopDecodeErrorZ_get_ok(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
334 public static native long CResult_RouteHopDecodeErrorZ_get_ok(long owner);
335 // struct LDKDecodeError CResult_RouteHopDecodeErrorZ_get_err(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
336 public static native long CResult_RouteHopDecodeErrorZ_get_err(long owner);
337 // struct LDKRoute CResult_RouteDecodeErrorZ_get_ok(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
338 public static native long CResult_RouteDecodeErrorZ_get_ok(long owner);
339 // struct LDKDecodeError CResult_RouteDecodeErrorZ_get_err(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
340 public static native long CResult_RouteDecodeErrorZ_get_err(long owner);
341 // struct LDKRouteParameters CResult_RouteParametersDecodeErrorZ_get_ok(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
342 public static native long CResult_RouteParametersDecodeErrorZ_get_ok(long owner);
343 // struct LDKDecodeError CResult_RouteParametersDecodeErrorZ_get_err(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
344 public static native long CResult_RouteParametersDecodeErrorZ_get_err(long owner);
345 // struct LDKPaymentParameters CResult_PaymentParametersDecodeErrorZ_get_ok(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
346 public static native long CResult_PaymentParametersDecodeErrorZ_get_ok(long owner);
347 // struct LDKDecodeError CResult_PaymentParametersDecodeErrorZ_get_err(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
348 public static native long CResult_PaymentParametersDecodeErrorZ_get_err(long owner);
349 // struct LDKRouteHint CResult_RouteHintDecodeErrorZ_get_ok(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
350 public static native long CResult_RouteHintDecodeErrorZ_get_ok(long owner);
351 // struct LDKDecodeError CResult_RouteHintDecodeErrorZ_get_err(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
352 public static native long CResult_RouteHintDecodeErrorZ_get_err(long owner);
353 // struct LDKRouteHintHop CResult_RouteHintHopDecodeErrorZ_get_ok(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
354 public static native long CResult_RouteHintHopDecodeErrorZ_get_ok(long owner);
355 // struct LDKDecodeError CResult_RouteHintHopDecodeErrorZ_get_err(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
356 public static native long CResult_RouteHintHopDecodeErrorZ_get_err(long owner);
357 public static class LDKPaymentPurpose {
358 private LDKPaymentPurpose() {}
359 public final static class InvoicePayment extends LDKPaymentPurpose {
360 public byte[] payment_preimage;
361 public byte[] payment_secret;
362 InvoicePayment(byte[] payment_preimage, byte[] payment_secret) { this.payment_preimage = payment_preimage; this.payment_secret = payment_secret; }
364 public final static class SpontaneousPayment extends LDKPaymentPurpose {
365 public byte[] spontaneous_payment;
366 SpontaneousPayment(byte[] spontaneous_payment) { this.spontaneous_payment = spontaneous_payment; }
368 static native void init();
370 static { LDKPaymentPurpose.init(); }
371 public static native LDKPaymentPurpose LDKPaymentPurpose_ref_from_ptr(long ptr);
372 // struct LDKPaymentPurpose CResult_PaymentPurposeDecodeErrorZ_get_ok(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
373 public static native long CResult_PaymentPurposeDecodeErrorZ_get_ok(long owner);
374 // struct LDKDecodeError CResult_PaymentPurposeDecodeErrorZ_get_err(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
375 public static native long CResult_PaymentPurposeDecodeErrorZ_get_err(long owner);
376 public static class LDKNetworkUpdate {
377 private LDKNetworkUpdate() {}
378 public final static class ChannelUpdateMessage extends LDKNetworkUpdate {
380 ChannelUpdateMessage(long msg) { this.msg = msg; }
382 public final static class ChannelFailure extends LDKNetworkUpdate {
383 public long short_channel_id;
384 public boolean is_permanent;
385 ChannelFailure(long short_channel_id, boolean is_permanent) { this.short_channel_id = short_channel_id; this.is_permanent = is_permanent; }
387 public final static class NodeFailure extends LDKNetworkUpdate {
388 public byte[] node_id;
389 public boolean is_permanent;
390 NodeFailure(byte[] node_id, boolean is_permanent) { this.node_id = node_id; this.is_permanent = is_permanent; }
392 static native void init();
394 static { LDKNetworkUpdate.init(); }
395 public static native LDKNetworkUpdate LDKNetworkUpdate_ref_from_ptr(long ptr);
396 public static class LDKCOption_NetworkUpdateZ {
397 private LDKCOption_NetworkUpdateZ() {}
398 public final static class Some extends LDKCOption_NetworkUpdateZ {
400 Some(long some) { this.some = some; }
402 public final static class None extends LDKCOption_NetworkUpdateZ {
405 static native void init();
407 static { LDKCOption_NetworkUpdateZ.init(); }
408 public static native LDKCOption_NetworkUpdateZ LDKCOption_NetworkUpdateZ_ref_from_ptr(long ptr);
409 public static class LDKPathFailure {
410 private LDKPathFailure() {}
411 public final static class InitialSend extends LDKPathFailure {
413 InitialSend(long err) { this.err = err; }
415 public final static class OnPath extends LDKPathFailure {
416 public long network_update;
417 OnPath(long network_update) { this.network_update = network_update; }
419 static native void init();
421 static { LDKPathFailure.init(); }
422 public static native LDKPathFailure LDKPathFailure_ref_from_ptr(long ptr);
423 public static class LDKCOption_PathFailureZ {
424 private LDKCOption_PathFailureZ() {}
425 public final static class Some extends LDKCOption_PathFailureZ {
427 Some(long some) { this.some = some; }
429 public final static class None extends LDKCOption_PathFailureZ {
432 static native void init();
434 static { LDKCOption_PathFailureZ.init(); }
435 public static native LDKCOption_PathFailureZ LDKCOption_PathFailureZ_ref_from_ptr(long ptr);
436 // struct LDKCOption_PathFailureZ CResult_COption_PathFailureZDecodeErrorZ_get_ok(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR owner);
437 public static native long CResult_COption_PathFailureZDecodeErrorZ_get_ok(long owner);
438 // struct LDKDecodeError CResult_COption_PathFailureZDecodeErrorZ_get_err(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR owner);
439 public static native long CResult_COption_PathFailureZDecodeErrorZ_get_err(long owner);
440 public static class LDKClosureReason {
441 private LDKClosureReason() {}
442 public final static class CounterpartyForceClosed extends LDKClosureReason {
443 public java.lang.String peer_msg;
444 CounterpartyForceClosed(java.lang.String peer_msg) { this.peer_msg = peer_msg; }
446 public final static class HolderForceClosed extends LDKClosureReason {
447 HolderForceClosed() { }
449 public final static class CooperativeClosure extends LDKClosureReason {
450 CooperativeClosure() { }
452 public final static class CommitmentTxConfirmed extends LDKClosureReason {
453 CommitmentTxConfirmed() { }
455 public final static class FundingTimedOut extends LDKClosureReason {
456 FundingTimedOut() { }
458 public final static class ProcessingError extends LDKClosureReason {
459 public java.lang.String err;
460 ProcessingError(java.lang.String err) { this.err = err; }
462 public final static class DisconnectedPeer extends LDKClosureReason {
463 DisconnectedPeer() { }
465 public final static class OutdatedChannelManager extends LDKClosureReason {
466 OutdatedChannelManager() { }
468 static native void init();
470 static { LDKClosureReason.init(); }
471 public static native LDKClosureReason LDKClosureReason_ref_from_ptr(long ptr);
472 public static class LDKCOption_ClosureReasonZ {
473 private LDKCOption_ClosureReasonZ() {}
474 public final static class Some extends LDKCOption_ClosureReasonZ {
476 Some(long some) { this.some = some; }
478 public final static class None extends LDKCOption_ClosureReasonZ {
481 static native void init();
483 static { LDKCOption_ClosureReasonZ.init(); }
484 public static native LDKCOption_ClosureReasonZ LDKCOption_ClosureReasonZ_ref_from_ptr(long ptr);
485 // struct LDKCOption_ClosureReasonZ CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
486 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(long owner);
487 // struct LDKDecodeError CResult_COption_ClosureReasonZDecodeErrorZ_get_err(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
488 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_get_err(long owner);
489 public static class LDKHTLCDestination {
490 private LDKHTLCDestination() {}
491 public final static class NextHopChannel extends LDKHTLCDestination {
492 public byte[] node_id;
493 public byte[] channel_id;
494 NextHopChannel(byte[] node_id, byte[] channel_id) { this.node_id = node_id; this.channel_id = channel_id; }
496 public final static class UnknownNextHop extends LDKHTLCDestination {
497 public long requested_forward_scid;
498 UnknownNextHop(long requested_forward_scid) { this.requested_forward_scid = requested_forward_scid; }
500 public final static class InvalidForward extends LDKHTLCDestination {
501 public long requested_forward_scid;
502 InvalidForward(long requested_forward_scid) { this.requested_forward_scid = requested_forward_scid; }
504 public final static class FailedPayment extends LDKHTLCDestination {
505 public byte[] payment_hash;
506 FailedPayment(byte[] payment_hash) { this.payment_hash = payment_hash; }
508 static native void init();
510 static { LDKHTLCDestination.init(); }
511 public static native LDKHTLCDestination LDKHTLCDestination_ref_from_ptr(long ptr);
512 public static class LDKCOption_HTLCDestinationZ {
513 private LDKCOption_HTLCDestinationZ() {}
514 public final static class Some extends LDKCOption_HTLCDestinationZ {
516 Some(long some) { this.some = some; }
518 public final static class None extends LDKCOption_HTLCDestinationZ {
521 static native void init();
523 static { LDKCOption_HTLCDestinationZ.init(); }
524 public static native LDKCOption_HTLCDestinationZ LDKCOption_HTLCDestinationZ_ref_from_ptr(long ptr);
525 // struct LDKCOption_HTLCDestinationZ CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner);
526 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(long owner);
527 // struct LDKDecodeError CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner);
528 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(long owner);
529 public static class LDKCOption_u128Z {
530 private LDKCOption_u128Z() {}
531 public final static class Some extends LDKCOption_u128Z {
533 Some(byte[] some) { this.some = some; }
535 public final static class None extends LDKCOption_u128Z {
538 static native void init();
540 static { LDKCOption_u128Z.init(); }
541 public static native LDKCOption_u128Z LDKCOption_u128Z_ref_from_ptr(long ptr);
542 public static class LDKSpendableOutputDescriptor {
543 private LDKSpendableOutputDescriptor() {}
544 public final static class StaticOutput extends LDKSpendableOutputDescriptor {
545 public long outpoint;
547 StaticOutput(long outpoint, long output) { this.outpoint = outpoint; this.output = output; }
549 public final static class DelayedPaymentOutput extends LDKSpendableOutputDescriptor {
550 public long delayed_payment_output;
551 DelayedPaymentOutput(long delayed_payment_output) { this.delayed_payment_output = delayed_payment_output; }
553 public final static class StaticPaymentOutput extends LDKSpendableOutputDescriptor {
554 public long static_payment_output;
555 StaticPaymentOutput(long static_payment_output) { this.static_payment_output = static_payment_output; }
557 static native void init();
559 static { LDKSpendableOutputDescriptor.init(); }
560 public static native LDKSpendableOutputDescriptor LDKSpendableOutputDescriptor_ref_from_ptr(long ptr);
561 public static class LDKEvent {
562 private LDKEvent() {}
563 public final static class FundingGenerationReady extends LDKEvent {
564 public byte[] temporary_channel_id;
565 public byte[] counterparty_node_id;
566 public long channel_value_satoshis;
567 public byte[] output_script;
568 public byte[] user_channel_id;
569 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; }
571 public final static class PaymentClaimable extends LDKEvent {
572 public byte[] receiver_node_id;
573 public byte[] payment_hash;
574 public long amount_msat;
576 public byte[] via_channel_id;
577 public long via_user_channel_id;
578 PaymentClaimable(byte[] receiver_node_id, byte[] payment_hash, long amount_msat, long purpose, byte[] via_channel_id, long via_user_channel_id) { this.receiver_node_id = receiver_node_id; this.payment_hash = payment_hash; this.amount_msat = amount_msat; this.purpose = purpose; this.via_channel_id = via_channel_id; this.via_user_channel_id = via_user_channel_id; }
580 public final static class PaymentClaimed extends LDKEvent {
581 public byte[] receiver_node_id;
582 public byte[] payment_hash;
583 public long amount_msat;
585 PaymentClaimed(byte[] receiver_node_id, byte[] payment_hash, long amount_msat, long purpose) { this.receiver_node_id = receiver_node_id; this.payment_hash = payment_hash; this.amount_msat = amount_msat; this.purpose = purpose; }
587 public final static class PaymentSent extends LDKEvent {
588 public byte[] payment_id;
589 public byte[] payment_preimage;
590 public byte[] payment_hash;
591 public long fee_paid_msat;
592 PaymentSent(byte[] payment_id, byte[] payment_preimage, byte[] payment_hash, long fee_paid_msat) { this.payment_id = payment_id; this.payment_preimage = payment_preimage; this.payment_hash = payment_hash; this.fee_paid_msat = fee_paid_msat; }
594 public final static class PaymentFailed extends LDKEvent {
595 public byte[] payment_id;
596 public byte[] payment_hash;
597 PaymentFailed(byte[] payment_id, byte[] payment_hash) { this.payment_id = payment_id; this.payment_hash = payment_hash; }
599 public final static class PaymentPathSuccessful extends LDKEvent {
600 public byte[] payment_id;
601 public byte[] payment_hash;
603 PaymentPathSuccessful(byte[] payment_id, byte[] payment_hash, long[] path) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.path = path; }
605 public final static class PaymentPathFailed extends LDKEvent {
606 public byte[] payment_id;
607 public byte[] payment_hash;
608 public boolean payment_failed_permanently;
611 public long short_channel_id;
613 PaymentPathFailed(byte[] payment_id, byte[] payment_hash, boolean payment_failed_permanently, long failure, long[] path, long short_channel_id, long retry) { 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; this.retry = retry; }
615 public final static class ProbeSuccessful extends LDKEvent {
616 public byte[] payment_id;
617 public byte[] payment_hash;
619 ProbeSuccessful(byte[] payment_id, byte[] payment_hash, long[] path) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.path = path; }
621 public final static class ProbeFailed extends LDKEvent {
622 public byte[] payment_id;
623 public byte[] payment_hash;
625 public long short_channel_id;
626 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; }
628 public final static class PendingHTLCsForwardable extends LDKEvent {
629 public long time_forwardable;
630 PendingHTLCsForwardable(long time_forwardable) { this.time_forwardable = time_forwardable; }
632 public final static class HTLCIntercepted extends LDKEvent {
633 public byte[] intercept_id;
634 public long requested_next_hop_scid;
635 public byte[] payment_hash;
636 public long inbound_amount_msat;
637 public long expected_outbound_amount_msat;
638 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; }
640 public final static class SpendableOutputs extends LDKEvent {
641 public long[] outputs;
642 SpendableOutputs(long[] outputs) { this.outputs = outputs; }
644 public final static class PaymentForwarded extends LDKEvent {
645 public byte[] prev_channel_id;
646 public byte[] next_channel_id;
647 public long fee_earned_msat;
648 public boolean claim_from_onchain_tx;
649 PaymentForwarded(byte[] prev_channel_id, byte[] next_channel_id, long fee_earned_msat, boolean claim_from_onchain_tx) { this.prev_channel_id = prev_channel_id; this.next_channel_id = next_channel_id; this.fee_earned_msat = fee_earned_msat; this.claim_from_onchain_tx = claim_from_onchain_tx; }
651 public final static class ChannelReady extends LDKEvent {
652 public byte[] channel_id;
653 public byte[] user_channel_id;
654 public byte[] counterparty_node_id;
655 public long channel_type;
656 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; }
658 public final static class ChannelClosed extends LDKEvent {
659 public byte[] channel_id;
660 public byte[] user_channel_id;
662 ChannelClosed(byte[] channel_id, byte[] user_channel_id, long reason) { this.channel_id = channel_id; this.user_channel_id = user_channel_id; this.reason = reason; }
664 public final static class DiscardFunding extends LDKEvent {
665 public byte[] channel_id;
666 public byte[] transaction;
667 DiscardFunding(byte[] channel_id, byte[] transaction) { this.channel_id = channel_id; this.transaction = transaction; }
669 public final static class OpenChannelRequest extends LDKEvent {
670 public byte[] temporary_channel_id;
671 public byte[] counterparty_node_id;
672 public long funding_satoshis;
673 public long push_msat;
674 public long channel_type;
675 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; }
677 public final static class HTLCHandlingFailed extends LDKEvent {
678 public byte[] prev_channel_id;
679 public long failed_next_destination;
680 HTLCHandlingFailed(byte[] prev_channel_id, long failed_next_destination) { this.prev_channel_id = prev_channel_id; this.failed_next_destination = failed_next_destination; }
682 static native void init();
684 static { LDKEvent.init(); }
685 public static native LDKEvent LDKEvent_ref_from_ptr(long ptr);
686 public static class LDKCOption_EventZ {
687 private LDKCOption_EventZ() {}
688 public final static class Some extends LDKCOption_EventZ {
690 Some(long some) { this.some = some; }
692 public final static class None extends LDKCOption_EventZ {
695 static native void init();
697 static { LDKCOption_EventZ.init(); }
698 public static native LDKCOption_EventZ LDKCOption_EventZ_ref_from_ptr(long ptr);
699 // struct LDKCOption_EventZ CResult_COption_EventZDecodeErrorZ_get_ok(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
700 public static native long CResult_COption_EventZDecodeErrorZ_get_ok(long owner);
701 // struct LDKDecodeError CResult_COption_EventZDecodeErrorZ_get_err(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
702 public static native long CResult_COption_EventZDecodeErrorZ_get_err(long owner);
703 public static class LDKErrorAction {
704 private LDKErrorAction() {}
705 public final static class DisconnectPeer extends LDKErrorAction {
707 DisconnectPeer(long msg) { this.msg = msg; }
709 public final static class IgnoreError extends LDKErrorAction {
712 public final static class IgnoreAndLog extends LDKErrorAction {
713 public org.ldk.enums.Level ignore_and_log;
714 IgnoreAndLog(org.ldk.enums.Level ignore_and_log) { this.ignore_and_log = ignore_and_log; }
716 public final static class IgnoreDuplicateGossip extends LDKErrorAction {
717 IgnoreDuplicateGossip() { }
719 public final static class SendErrorMessage extends LDKErrorAction {
721 SendErrorMessage(long msg) { this.msg = msg; }
723 public final static class SendWarningMessage extends LDKErrorAction {
725 public org.ldk.enums.Level log_level;
726 SendWarningMessage(long msg, org.ldk.enums.Level log_level) { this.msg = msg; this.log_level = log_level; }
728 static native void init();
730 static { LDKErrorAction.init(); }
731 public static native LDKErrorAction LDKErrorAction_ref_from_ptr(long ptr);
732 public static class LDKMessageSendEvent {
733 private LDKMessageSendEvent() {}
734 public final static class SendAcceptChannel extends LDKMessageSendEvent {
735 public byte[] node_id;
737 SendAcceptChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
739 public final static class SendOpenChannel extends LDKMessageSendEvent {
740 public byte[] node_id;
742 SendOpenChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
744 public final static class SendFundingCreated extends LDKMessageSendEvent {
745 public byte[] node_id;
747 SendFundingCreated(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
749 public final static class SendFundingSigned extends LDKMessageSendEvent {
750 public byte[] node_id;
752 SendFundingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
754 public final static class SendChannelReady extends LDKMessageSendEvent {
755 public byte[] node_id;
757 SendChannelReady(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
759 public final static class SendAnnouncementSignatures extends LDKMessageSendEvent {
760 public byte[] node_id;
762 SendAnnouncementSignatures(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
764 public final static class UpdateHTLCs extends LDKMessageSendEvent {
765 public byte[] node_id;
767 UpdateHTLCs(byte[] node_id, long updates) { this.node_id = node_id; this.updates = updates; }
769 public final static class SendRevokeAndACK extends LDKMessageSendEvent {
770 public byte[] node_id;
772 SendRevokeAndACK(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
774 public final static class SendClosingSigned extends LDKMessageSendEvent {
775 public byte[] node_id;
777 SendClosingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
779 public final static class SendShutdown extends LDKMessageSendEvent {
780 public byte[] node_id;
782 SendShutdown(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
784 public final static class SendChannelReestablish extends LDKMessageSendEvent {
785 public byte[] node_id;
787 SendChannelReestablish(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
789 public final static class SendChannelAnnouncement extends LDKMessageSendEvent {
790 public byte[] node_id;
792 public long update_msg;
793 SendChannelAnnouncement(byte[] node_id, long msg, long update_msg) { this.node_id = node_id; this.msg = msg; this.update_msg = update_msg; }
795 public final static class BroadcastChannelAnnouncement extends LDKMessageSendEvent {
797 public long update_msg;
798 BroadcastChannelAnnouncement(long msg, long update_msg) { this.msg = msg; this.update_msg = update_msg; }
800 public final static class BroadcastChannelUpdate extends LDKMessageSendEvent {
802 BroadcastChannelUpdate(long msg) { this.msg = msg; }
804 public final static class BroadcastNodeAnnouncement extends LDKMessageSendEvent {
806 BroadcastNodeAnnouncement(long msg) { this.msg = msg; }
808 public final static class SendChannelUpdate extends LDKMessageSendEvent {
809 public byte[] node_id;
811 SendChannelUpdate(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
813 public final static class HandleError extends LDKMessageSendEvent {
814 public byte[] node_id;
816 HandleError(byte[] node_id, long action) { this.node_id = node_id; this.action = action; }
818 public final static class SendChannelRangeQuery extends LDKMessageSendEvent {
819 public byte[] node_id;
821 SendChannelRangeQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
823 public final static class SendShortIdsQuery extends LDKMessageSendEvent {
824 public byte[] node_id;
826 SendShortIdsQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
828 public final static class SendReplyChannelRange extends LDKMessageSendEvent {
829 public byte[] node_id;
831 SendReplyChannelRange(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
833 public final static class SendGossipTimestampFilter extends LDKMessageSendEvent {
834 public byte[] node_id;
836 SendGossipTimestampFilter(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
838 static native void init();
840 static { LDKMessageSendEvent.init(); }
841 public static native LDKMessageSendEvent LDKMessageSendEvent_ref_from_ptr(long ptr);
842 // uintptr_t C2Tuple_usizeTransactionZ_get_a(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
843 public static native long C2Tuple_usizeTransactionZ_get_a(long owner);
844 // struct LDKTransaction C2Tuple_usizeTransactionZ_get_b(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
845 public static native byte[] C2Tuple_usizeTransactionZ_get_b(long owner);
846 // struct LDKThirtyTwoBytes C2Tuple_TxidBlockHashZ_get_a(LDKC2Tuple_TxidBlockHashZ *NONNULL_PTR owner);
847 public static native byte[] C2Tuple_TxidBlockHashZ_get_a(long owner);
848 // struct LDKThirtyTwoBytes C2Tuple_TxidBlockHashZ_get_b(LDKC2Tuple_TxidBlockHashZ *NONNULL_PTR owner);
849 public static native byte[] C2Tuple_TxidBlockHashZ_get_b(long owner);
850 public static class LDKMonitorEvent {
851 private LDKMonitorEvent() {}
852 public final static class HTLCEvent extends LDKMonitorEvent {
853 public long htlc_event;
854 HTLCEvent(long htlc_event) { this.htlc_event = htlc_event; }
856 public final static class CommitmentTxConfirmed extends LDKMonitorEvent {
857 public long commitment_tx_confirmed;
858 CommitmentTxConfirmed(long commitment_tx_confirmed) { this.commitment_tx_confirmed = commitment_tx_confirmed; }
860 public final static class Completed extends LDKMonitorEvent {
861 public long funding_txo;
862 public long monitor_update_id;
863 Completed(long funding_txo, long monitor_update_id) { this.funding_txo = funding_txo; this.monitor_update_id = monitor_update_id; }
865 public final static class UpdateFailed extends LDKMonitorEvent {
866 public long update_failed;
867 UpdateFailed(long update_failed) { this.update_failed = update_failed; }
869 static native void init();
871 static { LDKMonitorEvent.init(); }
872 public static native LDKMonitorEvent LDKMonitorEvent_ref_from_ptr(long ptr);
873 // struct LDKOutPoint C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
874 public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(long owner);
875 // struct LDKCVec_MonitorEventZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
876 public static native long[] C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(long owner);
877 // struct LDKPublicKey C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
878 public static native byte[] C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(long owner);
879 // struct LDKFixedPenaltyScorer CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
880 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(long owner);
881 // struct LDKDecodeError CResult_FixedPenaltyScorerDecodeErrorZ_get_err(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
882 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_get_err(long owner);
883 // uint64_t C2Tuple_u64u64Z_get_a(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
884 public static native long C2Tuple_u64u64Z_get_a(long owner);
885 // uint64_t C2Tuple_u64u64Z_get_b(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
886 public static native long C2Tuple_u64u64Z_get_b(long owner);
887 public static class LDKCOption_C2Tuple_u64u64ZZ {
888 private LDKCOption_C2Tuple_u64u64ZZ() {}
889 public final static class Some extends LDKCOption_C2Tuple_u64u64ZZ {
891 Some(long some) { this.some = some; }
893 public final static class None extends LDKCOption_C2Tuple_u64u64ZZ {
896 static native void init();
898 static { LDKCOption_C2Tuple_u64u64ZZ.init(); }
899 public static native LDKCOption_C2Tuple_u64u64ZZ LDKCOption_C2Tuple_u64u64ZZ_ref_from_ptr(long ptr);
900 // struct LDKEightU16s C2Tuple_Z_get_a(LDKC2Tuple_Z *NONNULL_PTR owner);
901 public static native short[] C2Tuple_Z_get_a(long owner);
902 // struct LDKEightU16s C2Tuple_Z_get_b(LDKC2Tuple_Z *NONNULL_PTR owner);
903 public static native short[] C2Tuple_Z_get_b(long owner);
904 // struct LDKEightU16s C2Tuple__u168_u168Z_get_a(LDKC2Tuple__u168_u168Z *NONNULL_PTR owner);
905 public static native short[] C2Tuple__u168_u168Z_get_a(long owner);
906 // struct LDKEightU16s C2Tuple__u168_u168Z_get_b(LDKC2Tuple__u168_u168Z *NONNULL_PTR owner);
907 public static native short[] C2Tuple__u168_u168Z_get_b(long owner);
908 public static class LDKCOption_C2Tuple_EightU16sEightU16sZZ {
909 private LDKCOption_C2Tuple_EightU16sEightU16sZZ() {}
910 public final static class Some extends LDKCOption_C2Tuple_EightU16sEightU16sZZ {
912 Some(long some) { this.some = some; }
914 public final static class None extends LDKCOption_C2Tuple_EightU16sEightU16sZZ {
917 static native void init();
919 static { LDKCOption_C2Tuple_EightU16sEightU16sZZ.init(); }
920 public static native LDKCOption_C2Tuple_EightU16sEightU16sZZ LDKCOption_C2Tuple_EightU16sEightU16sZZ_ref_from_ptr(long ptr);
921 public interface LDKLogger {
922 void log(long record);
924 public static native long LDKLogger_new(LDKLogger impl);
925 // struct LDKProbabilisticScorer CResult_ProbabilisticScorerDecodeErrorZ_get_ok(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
926 public static native long CResult_ProbabilisticScorerDecodeErrorZ_get_ok(long owner);
927 // struct LDKDecodeError CResult_ProbabilisticScorerDecodeErrorZ_get_err(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
928 public static native long CResult_ProbabilisticScorerDecodeErrorZ_get_err(long owner);
929 // struct LDKInitFeatures CResult_InitFeaturesDecodeErrorZ_get_ok(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
930 public static native long CResult_InitFeaturesDecodeErrorZ_get_ok(long owner);
931 // struct LDKDecodeError CResult_InitFeaturesDecodeErrorZ_get_err(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
932 public static native long CResult_InitFeaturesDecodeErrorZ_get_err(long owner);
933 // struct LDKChannelFeatures CResult_ChannelFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
934 public static native long CResult_ChannelFeaturesDecodeErrorZ_get_ok(long owner);
935 // struct LDKDecodeError CResult_ChannelFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
936 public static native long CResult_ChannelFeaturesDecodeErrorZ_get_err(long owner);
937 // struct LDKNodeFeatures CResult_NodeFeaturesDecodeErrorZ_get_ok(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
938 public static native long CResult_NodeFeaturesDecodeErrorZ_get_ok(long owner);
939 // struct LDKDecodeError CResult_NodeFeaturesDecodeErrorZ_get_err(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
940 public static native long CResult_NodeFeaturesDecodeErrorZ_get_err(long owner);
941 // struct LDKInvoiceFeatures CResult_InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
942 public static native long CResult_InvoiceFeaturesDecodeErrorZ_get_ok(long owner);
943 // struct LDKDecodeError CResult_InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
944 public static native long CResult_InvoiceFeaturesDecodeErrorZ_get_err(long owner);
945 // struct LDKBlindedHopFeatures CResult_BlindedHopFeaturesDecodeErrorZ_get_ok(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR owner);
946 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_get_ok(long owner);
947 // struct LDKDecodeError CResult_BlindedHopFeaturesDecodeErrorZ_get_err(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR owner);
948 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_get_err(long owner);
949 // struct LDKChannelTypeFeatures CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
950 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(long owner);
951 // struct LDKDecodeError CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
952 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(long owner);
953 // struct LDKNodeId CResult_NodeIdDecodeErrorZ_get_ok(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
954 public static native long CResult_NodeIdDecodeErrorZ_get_ok(long owner);
955 // struct LDKDecodeError CResult_NodeIdDecodeErrorZ_get_err(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
956 public static native long CResult_NodeIdDecodeErrorZ_get_err(long owner);
957 // struct LDKCOption_NetworkUpdateZ CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
958 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(long owner);
959 // struct LDKDecodeError CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
960 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(long owner);
961 // struct LDKTxOut CResult_TxOutUtxoLookupErrorZ_get_ok(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR owner);
962 public static native long CResult_TxOutUtxoLookupErrorZ_get_ok(long owner);
963 // enum LDKUtxoLookupError CResult_TxOutUtxoLookupErrorZ_get_err(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR owner);
964 public static native UtxoLookupError CResult_TxOutUtxoLookupErrorZ_get_err(long owner);
965 public static class LDKUtxoResult {
966 private LDKUtxoResult() {}
967 public final static class Sync extends LDKUtxoResult {
969 Sync(long sync) { this.sync = sync; }
971 public final static class Async extends LDKUtxoResult {
973 Async(long async) { this.async = async; }
975 static native void init();
977 static { LDKUtxoResult.init(); }
978 public static native LDKUtxoResult LDKUtxoResult_ref_from_ptr(long ptr);
979 public interface LDKUtxoLookup {
980 long get_utxo(byte[] genesis_hash, long short_channel_id);
982 public static native long LDKUtxoLookup_new(LDKUtxoLookup impl);
983 // LDKUtxoResult UtxoLookup_get_utxo LDKUtxoLookup *NONNULL_PTR this_arg, const uint8_t (*genesis_hash)[32], uint64_t short_channel_id
984 public static native long UtxoLookup_get_utxo(long this_arg, byte[] genesis_hash, long short_channel_id);
985 public static class LDKCOption_UtxoLookupZ {
986 private LDKCOption_UtxoLookupZ() {}
987 public final static class Some extends LDKCOption_UtxoLookupZ {
989 Some(long some) { this.some = some; }
991 public final static class None extends LDKCOption_UtxoLookupZ {
994 static native void init();
996 static { LDKCOption_UtxoLookupZ.init(); }
997 public static native LDKCOption_UtxoLookupZ LDKCOption_UtxoLookupZ_ref_from_ptr(long ptr);
998 // bool CResult_boolLightningErrorZ_get_ok(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
999 public static native boolean CResult_boolLightningErrorZ_get_ok(long owner);
1000 // struct LDKLightningError CResult_boolLightningErrorZ_get_err(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
1001 public static native long CResult_boolLightningErrorZ_get_err(long owner);
1002 // struct LDKChannelAnnouncement C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
1003 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(long owner);
1004 // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
1005 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(long owner);
1006 // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
1007 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(long owner);
1008 public static class LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
1009 private LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ() {}
1010 public final static class Some extends LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
1012 Some(long some) { this.some = some; }
1014 public final static class None extends LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
1017 static native void init();
1019 static { LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ.init(); }
1020 public static native LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_ref_from_ptr(long ptr);
1021 // void CResult_NoneLightningErrorZ_get_ok(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
1022 public static native void CResult_NoneLightningErrorZ_get_ok(long owner);
1023 // struct LDKLightningError CResult_NoneLightningErrorZ_get_err(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
1024 public static native long CResult_NoneLightningErrorZ_get_err(long owner);
1025 // struct LDKChannelUpdateInfo CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
1026 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(long owner);
1027 // struct LDKDecodeError CResult_ChannelUpdateInfoDecodeErrorZ_get_err(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
1028 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_get_err(long owner);
1029 // struct LDKChannelInfo CResult_ChannelInfoDecodeErrorZ_get_ok(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
1030 public static native long CResult_ChannelInfoDecodeErrorZ_get_ok(long owner);
1031 // struct LDKDecodeError CResult_ChannelInfoDecodeErrorZ_get_err(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
1032 public static native long CResult_ChannelInfoDecodeErrorZ_get_err(long owner);
1033 // struct LDKRoutingFees CResult_RoutingFeesDecodeErrorZ_get_ok(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
1034 public static native long CResult_RoutingFeesDecodeErrorZ_get_ok(long owner);
1035 // struct LDKDecodeError CResult_RoutingFeesDecodeErrorZ_get_err(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
1036 public static native long CResult_RoutingFeesDecodeErrorZ_get_err(long owner);
1037 public static class LDKNetAddress {
1038 private LDKNetAddress() {}
1039 public final static class IPv4 extends LDKNetAddress {
1042 IPv4(byte[] addr, short port) { this.addr = addr; this.port = port; }
1044 public final static class IPv6 extends LDKNetAddress {
1047 IPv6(byte[] addr, short port) { this.addr = addr; this.port = port; }
1049 public final static class OnionV2 extends LDKNetAddress {
1050 public byte[] onion_v2;
1051 OnionV2(byte[] onion_v2) { this.onion_v2 = onion_v2; }
1053 public final static class OnionV3 extends LDKNetAddress {
1054 public byte[] ed25519_pubkey;
1055 public short checksum;
1056 public byte version;
1058 OnionV3(byte[] ed25519_pubkey, short checksum, byte version, short port) { this.ed25519_pubkey = ed25519_pubkey; this.checksum = checksum; this.version = version; this.port = port; }
1060 public final static class Hostname extends LDKNetAddress {
1061 public long hostname;
1063 Hostname(long hostname, short port) { this.hostname = hostname; this.port = port; }
1065 static native void init();
1067 static { LDKNetAddress.init(); }
1068 public static native LDKNetAddress LDKNetAddress_ref_from_ptr(long ptr);
1069 // struct LDKNodeAnnouncementInfo CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
1070 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(long owner);
1071 // struct LDKDecodeError CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
1072 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(long owner);
1073 // struct LDKNodeAlias CResult_NodeAliasDecodeErrorZ_get_ok(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
1074 public static native long CResult_NodeAliasDecodeErrorZ_get_ok(long owner);
1075 // struct LDKDecodeError CResult_NodeAliasDecodeErrorZ_get_err(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
1076 public static native long CResult_NodeAliasDecodeErrorZ_get_err(long owner);
1077 // struct LDKNodeInfo CResult_NodeInfoDecodeErrorZ_get_ok(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
1078 public static native long CResult_NodeInfoDecodeErrorZ_get_ok(long owner);
1079 // struct LDKDecodeError CResult_NodeInfoDecodeErrorZ_get_err(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
1080 public static native long CResult_NodeInfoDecodeErrorZ_get_err(long owner);
1081 // struct LDKNetworkGraph CResult_NetworkGraphDecodeErrorZ_get_ok(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
1082 public static native long CResult_NetworkGraphDecodeErrorZ_get_ok(long owner);
1083 // struct LDKDecodeError CResult_NetworkGraphDecodeErrorZ_get_err(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
1084 public static native long CResult_NetworkGraphDecodeErrorZ_get_err(long owner);
1085 public static class LDKCOption_CVec_NetAddressZZ {
1086 private LDKCOption_CVec_NetAddressZZ() {}
1087 public final static class Some extends LDKCOption_CVec_NetAddressZZ {
1089 Some(long[] some) { this.some = some; }
1091 public final static class None extends LDKCOption_CVec_NetAddressZZ {
1094 static native void init();
1096 static { LDKCOption_CVec_NetAddressZZ.init(); }
1097 public static native LDKCOption_CVec_NetAddressZZ LDKCOption_CVec_NetAddressZZ_ref_from_ptr(long ptr);
1098 // struct LDKDelayedPaymentOutputDescriptor CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
1099 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(long owner);
1100 // struct LDKDecodeError CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
1101 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(long owner);
1102 // struct LDKStaticPaymentOutputDescriptor CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
1103 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(long owner);
1104 // struct LDKDecodeError CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
1105 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(long owner);
1106 // struct LDKSpendableOutputDescriptor CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
1107 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(long owner);
1108 // struct LDKDecodeError CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
1109 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(long owner);
1110 // struct LDKSignature C2Tuple_SignatureCVec_SignatureZZ_get_a(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
1111 public static native byte[] C2Tuple_SignatureCVec_SignatureZZ_get_a(long owner);
1112 // struct LDKCVec_SignatureZ C2Tuple_SignatureCVec_SignatureZZ_get_b(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
1113 public static native byte[][] C2Tuple_SignatureCVec_SignatureZZ_get_b(long owner);
1114 // struct LDKC2Tuple_SignatureCVec_SignatureZZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
1115 public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(long owner);
1116 // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
1117 public static native void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(long owner);
1118 // struct LDKSignature CResult_SignatureNoneZ_get_ok(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
1119 public static native byte[] CResult_SignatureNoneZ_get_ok(long owner);
1120 // void CResult_SignatureNoneZ_get_err(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
1121 public static native void CResult_SignatureNoneZ_get_err(long owner);
1122 // struct LDKPublicKey CResult_PublicKeyNoneZ_get_ok(LDKCResult_PublicKeyNoneZ *NONNULL_PTR owner);
1123 public static native byte[] CResult_PublicKeyNoneZ_get_ok(long owner);
1124 // void CResult_PublicKeyNoneZ_get_err(LDKCResult_PublicKeyNoneZ *NONNULL_PTR owner);
1125 public static native void CResult_PublicKeyNoneZ_get_err(long owner);
1126 public static class LDKCOption_ScalarZ {
1127 private LDKCOption_ScalarZ() {}
1128 public final static class Some extends LDKCOption_ScalarZ {
1130 Some(long some) { this.some = some; }
1132 public final static class None extends LDKCOption_ScalarZ {
1135 static native void init();
1137 static { LDKCOption_ScalarZ.init(); }
1138 public static native LDKCOption_ScalarZ LDKCOption_ScalarZ_ref_from_ptr(long ptr);
1139 // struct LDKThirtyTwoBytes CResult_SharedSecretNoneZ_get_ok(LDKCResult_SharedSecretNoneZ *NONNULL_PTR owner);
1140 public static native byte[] CResult_SharedSecretNoneZ_get_ok(long owner);
1141 // void CResult_SharedSecretNoneZ_get_err(LDKCResult_SharedSecretNoneZ *NONNULL_PTR owner);
1142 public static native void CResult_SharedSecretNoneZ_get_err(long owner);
1143 // struct LDKRecoverableSignature CResult_RecoverableSignatureNoneZ_get_ok(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
1144 public static native byte[] CResult_RecoverableSignatureNoneZ_get_ok(long owner);
1145 // void CResult_RecoverableSignatureNoneZ_get_err(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
1146 public static native void CResult_RecoverableSignatureNoneZ_get_err(long owner);
1147 public interface LDKChannelSigner {
1148 byte[] get_per_commitment_point(long idx);
1149 byte[] release_commitment_secret(long idx);
1150 long validate_holder_commitment(long holder_tx, byte[][] preimages);
1151 byte[] channel_keys_id();
1152 void provide_channel_parameters(long channel_parameters);
1154 public static native long LDKChannelSigner_new(LDKChannelSigner impl, long pubkeys);
1155 // LDKPublicKey ChannelSigner_get_per_commitment_point LDKChannelSigner *NONNULL_PTR this_arg, uint64_t idx
1156 public static native byte[] ChannelSigner_get_per_commitment_point(long this_arg, long idx);
1157 // LDKThirtyTwoBytes ChannelSigner_release_commitment_secret LDKChannelSigner *NONNULL_PTR this_arg, uint64_t idx
1158 public static native byte[] ChannelSigner_release_commitment_secret(long this_arg, long idx);
1159 // LDKCResult_NoneNoneZ ChannelSigner_validate_holder_commitment LDKChannelSigner *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_PaymentPreimageZ preimages
1160 public static native long ChannelSigner_validate_holder_commitment(long this_arg, long holder_tx, byte[][] preimages);
1161 // LDKThirtyTwoBytes ChannelSigner_channel_keys_id LDKChannelSigner *NONNULL_PTR this_arg
1162 public static native byte[] ChannelSigner_channel_keys_id(long this_arg);
1163 // void ChannelSigner_provide_channel_parameters LDKChannelSigner *NONNULL_PTR this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
1164 public static native void ChannelSigner_provide_channel_parameters(long this_arg, long channel_parameters);
1165 // LDKChannelPublicKeys ChannelSigner_get_pubkeys LDKChannelSigner *NONNULL_PTR this_arg
1166 public static native long ChannelSigner_get_pubkeys(long this_arg);
1167 public interface LDKEcdsaChannelSigner {
1168 long sign_counterparty_commitment(long commitment_tx, byte[][] preimages);
1169 long validate_counterparty_revocation(long idx, byte[] secret);
1170 long sign_holder_commitment_and_htlcs(long commitment_tx);
1171 long sign_justice_revoked_output(byte[] justice_tx, long input, long amount, byte[] per_commitment_key);
1172 long sign_justice_revoked_htlc(byte[] justice_tx, long input, long amount, byte[] per_commitment_key, long htlc);
1173 long sign_counterparty_htlc_transaction(byte[] htlc_tx, long input, long amount, byte[] per_commitment_point, long htlc);
1174 long sign_closing_transaction(long closing_tx);
1175 long sign_holder_anchor_input(byte[] anchor_tx, long input);
1176 long sign_channel_announcement_with_funding_key(long msg);
1178 public static native long LDKEcdsaChannelSigner_new(LDKEcdsaChannelSigner impl, LDKChannelSigner ChannelSigner, long pubkeys);
1179 public static native long LDKEcdsaChannelSigner_get_ChannelSigner(long arg);
1180 // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ EcdsaChannelSigner_sign_counterparty_commitment LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx, struct LDKCVec_PaymentPreimageZ preimages
1181 public static native long EcdsaChannelSigner_sign_counterparty_commitment(long this_arg, long commitment_tx, byte[][] preimages);
1182 // LDKCResult_NoneNoneZ EcdsaChannelSigner_validate_counterparty_revocation LDKEcdsaChannelSigner *NONNULL_PTR this_arg, uint64_t idx, const uint8_t (*secret)[32]
1183 public static native long EcdsaChannelSigner_validate_counterparty_revocation(long this_arg, long idx, byte[] secret);
1184 // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ EcdsaChannelSigner_sign_holder_commitment_and_htlcs LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
1185 public static native long EcdsaChannelSigner_sign_holder_commitment_and_htlcs(long this_arg, long commitment_tx);
1186 // LDKCResult_SignatureNoneZ EcdsaChannelSigner_sign_justice_revoked_output LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32]
1187 public static native long EcdsaChannelSigner_sign_justice_revoked_output(long this_arg, byte[] justice_tx, long input, long amount, byte[] per_commitment_key);
1188 // LDKCResult_SignatureNoneZ EcdsaChannelSigner_sign_justice_revoked_htlc LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32], const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc
1189 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);
1190 // LDKCResult_SignatureNoneZ EcdsaChannelSigner_sign_counterparty_htlc_transaction LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction htlc_tx, uintptr_t input, uint64_t amount, struct LDKPublicKey per_commitment_point, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc
1191 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);
1192 // LDKCResult_SignatureNoneZ EcdsaChannelSigner_sign_closing_transaction LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx
1193 public static native long EcdsaChannelSigner_sign_closing_transaction(long this_arg, long closing_tx);
1194 // LDKCResult_SignatureNoneZ EcdsaChannelSigner_sign_holder_anchor_input LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction anchor_tx, uintptr_t input
1195 public static native long EcdsaChannelSigner_sign_holder_anchor_input(long this_arg, byte[] anchor_tx, long input);
1196 // LDKCResult_SignatureNoneZ EcdsaChannelSigner_sign_channel_announcement_with_funding_key LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
1197 public static native long EcdsaChannelSigner_sign_channel_announcement_with_funding_key(long this_arg, long msg);
1198 public interface LDKWriteableEcdsaChannelSigner {
1201 public static native long LDKWriteableEcdsaChannelSigner_new(LDKWriteableEcdsaChannelSigner impl, LDKEcdsaChannelSigner EcdsaChannelSigner, LDKChannelSigner ChannelSigner, long pubkeys);
1202 public static native long LDKWriteableEcdsaChannelSigner_get_EcdsaChannelSigner(long arg);
1203 public static native long LDKWriteableEcdsaChannelSigner_get_ChannelSigner(long arg);
1204 // LDKCVec_u8Z WriteableEcdsaChannelSigner_write LDKWriteableEcdsaChannelSigner *NONNULL_PTR this_arg
1205 public static native byte[] WriteableEcdsaChannelSigner_write(long this_arg);
1206 // struct LDKWriteableEcdsaChannelSigner CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR owner);
1207 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok(long owner);
1208 // struct LDKDecodeError CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR owner);
1209 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err(long owner);
1210 // struct LDKCVec_CVec_u8ZZ CResult_CVec_CVec_u8ZZNoneZ_get_ok(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
1211 public static native byte[][] CResult_CVec_CVec_u8ZZNoneZ_get_ok(long owner);
1212 // void CResult_CVec_CVec_u8ZZNoneZ_get_err(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
1213 public static native void CResult_CVec_CVec_u8ZZNoneZ_get_err(long owner);
1214 // struct LDKInMemorySigner CResult_InMemorySignerDecodeErrorZ_get_ok(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
1215 public static native long CResult_InMemorySignerDecodeErrorZ_get_ok(long owner);
1216 // struct LDKDecodeError CResult_InMemorySignerDecodeErrorZ_get_err(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
1217 public static native long CResult_InMemorySignerDecodeErrorZ_get_err(long owner);
1218 // struct LDKTransaction CResult_TransactionNoneZ_get_ok(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
1219 public static native byte[] CResult_TransactionNoneZ_get_ok(long owner);
1220 // void CResult_TransactionNoneZ_get_err(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
1221 public static native void CResult_TransactionNoneZ_get_err(long owner);
1222 // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelMonitorZ_get_a(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
1223 public static native byte[] C2Tuple_BlockHashChannelMonitorZ_get_a(long owner);
1224 // struct LDKChannelMonitor C2Tuple_BlockHashChannelMonitorZ_get_b(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
1225 public static native long C2Tuple_BlockHashChannelMonitorZ_get_b(long owner);
1226 // struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_ok(LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR owner);
1227 public static native long[] CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_ok(long owner);
1228 // enum LDKIOError CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_err(LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR owner);
1229 public static native IOError CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_err(long owner);
1230 public static class LDKCOption_u16Z {
1231 private LDKCOption_u16Z() {}
1232 public final static class Some extends LDKCOption_u16Z {
1234 Some(short some) { this.some = some; }
1236 public final static class None extends LDKCOption_u16Z {
1239 static native void init();
1241 static { LDKCOption_u16Z.init(); }
1242 public static native LDKCOption_u16Z LDKCOption_u16Z_ref_from_ptr(long ptr);
1243 // struct LDKThirtyTwoBytes CResult__u832APIErrorZ_get_ok(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
1244 public static native byte[] CResult__u832APIErrorZ_get_ok(long owner);
1245 // struct LDKAPIError CResult__u832APIErrorZ_get_err(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
1246 public static native long CResult__u832APIErrorZ_get_err(long owner);
1247 public static class LDKRecentPaymentDetails {
1248 private LDKRecentPaymentDetails() {}
1249 public final static class Pending extends LDKRecentPaymentDetails {
1250 public byte[] payment_hash;
1251 public long total_msat;
1252 Pending(byte[] payment_hash, long total_msat) { this.payment_hash = payment_hash; this.total_msat = total_msat; }
1254 public final static class Fulfilled extends LDKRecentPaymentDetails {
1255 public byte[] payment_hash;
1256 Fulfilled(byte[] payment_hash) { this.payment_hash = payment_hash; }
1258 public final static class Abandoned extends LDKRecentPaymentDetails {
1259 public byte[] payment_hash;
1260 Abandoned(byte[] payment_hash) { this.payment_hash = payment_hash; }
1262 static native void init();
1264 static { LDKRecentPaymentDetails.init(); }
1265 public static native LDKRecentPaymentDetails LDKRecentPaymentDetails_ref_from_ptr(long ptr);
1266 public static class LDKPaymentSendFailure {
1267 private LDKPaymentSendFailure() {}
1268 public final static class ParameterError extends LDKPaymentSendFailure {
1269 public long parameter_error;
1270 ParameterError(long parameter_error) { this.parameter_error = parameter_error; }
1272 public final static class PathParameterError extends LDKPaymentSendFailure {
1273 public long[] path_parameter_error;
1274 PathParameterError(long[] path_parameter_error) { this.path_parameter_error = path_parameter_error; }
1276 public final static class AllFailedResendSafe extends LDKPaymentSendFailure {
1277 public long[] all_failed_resend_safe;
1278 AllFailedResendSafe(long[] all_failed_resend_safe) { this.all_failed_resend_safe = all_failed_resend_safe; }
1280 public final static class DuplicatePayment extends LDKPaymentSendFailure {
1281 DuplicatePayment() { }
1283 public final static class PartialFailure extends LDKPaymentSendFailure {
1284 public long[] results;
1285 public long failed_paths_retry;
1286 public byte[] payment_id;
1287 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; }
1289 static native void init();
1291 static { LDKPaymentSendFailure.init(); }
1292 public static native LDKPaymentSendFailure LDKPaymentSendFailure_ref_from_ptr(long ptr);
1293 // void CResult_NonePaymentSendFailureZ_get_ok(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
1294 public static native void CResult_NonePaymentSendFailureZ_get_ok(long owner);
1295 // struct LDKPaymentSendFailure CResult_NonePaymentSendFailureZ_get_err(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
1296 public static native long CResult_NonePaymentSendFailureZ_get_err(long owner);
1297 // void CResult_NoneRetryableSendFailureZ_get_ok(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR owner);
1298 public static native void CResult_NoneRetryableSendFailureZ_get_ok(long owner);
1299 // enum LDKRetryableSendFailure CResult_NoneRetryableSendFailureZ_get_err(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR owner);
1300 public static native RetryableSendFailure CResult_NoneRetryableSendFailureZ_get_err(long owner);
1301 // struct LDKThirtyTwoBytes CResult_PaymentHashPaymentSendFailureZ_get_ok(LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR owner);
1302 public static native byte[] CResult_PaymentHashPaymentSendFailureZ_get_ok(long owner);
1303 // struct LDKPaymentSendFailure CResult_PaymentHashPaymentSendFailureZ_get_err(LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR owner);
1304 public static native long CResult_PaymentHashPaymentSendFailureZ_get_err(long owner);
1305 // struct LDKThirtyTwoBytes CResult_PaymentHashRetryableSendFailureZ_get_ok(LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR owner);
1306 public static native byte[] CResult_PaymentHashRetryableSendFailureZ_get_ok(long owner);
1307 // enum LDKRetryableSendFailure CResult_PaymentHashRetryableSendFailureZ_get_err(LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR owner);
1308 public static native RetryableSendFailure CResult_PaymentHashRetryableSendFailureZ_get_err(long owner);
1309 // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_a(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
1310 public static native byte[] C2Tuple_PaymentHashPaymentIdZ_get_a(long owner);
1311 // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_b(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
1312 public static native byte[] C2Tuple_PaymentHashPaymentIdZ_get_b(long owner);
1313 // struct LDKC2Tuple_PaymentHashPaymentIdZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
1314 public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(long owner);
1315 // struct LDKPaymentSendFailure CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
1316 public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(long owner);
1317 // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_a(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
1318 public static native byte[] C2Tuple_PaymentHashPaymentSecretZ_get_a(long owner);
1319 // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_b(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
1320 public static native byte[] C2Tuple_PaymentHashPaymentSecretZ_get_b(long owner);
1321 // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
1322 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(long owner);
1323 // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
1324 public static native void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(long owner);
1325 // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
1326 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(long owner);
1327 // struct LDKAPIError CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
1328 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(long owner);
1329 // struct LDKThirtyTwoBytes CResult_PaymentSecretNoneZ_get_ok(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
1330 public static native byte[] CResult_PaymentSecretNoneZ_get_ok(long owner);
1331 // void CResult_PaymentSecretNoneZ_get_err(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
1332 public static native void CResult_PaymentSecretNoneZ_get_err(long owner);
1333 // struct LDKThirtyTwoBytes CResult_PaymentSecretAPIErrorZ_get_ok(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
1334 public static native byte[] CResult_PaymentSecretAPIErrorZ_get_ok(long owner);
1335 // struct LDKAPIError CResult_PaymentSecretAPIErrorZ_get_err(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
1336 public static native long CResult_PaymentSecretAPIErrorZ_get_err(long owner);
1337 // struct LDKThirtyTwoBytes CResult_PaymentPreimageAPIErrorZ_get_ok(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
1338 public static native byte[] CResult_PaymentPreimageAPIErrorZ_get_ok(long owner);
1339 // struct LDKAPIError CResult_PaymentPreimageAPIErrorZ_get_err(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
1340 public static native long CResult_PaymentPreimageAPIErrorZ_get_err(long owner);
1341 // struct LDKCounterpartyForwardingInfo CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
1342 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(long owner);
1343 // struct LDKDecodeError CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
1344 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(long owner);
1345 // struct LDKChannelCounterparty CResult_ChannelCounterpartyDecodeErrorZ_get_ok(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
1346 public static native long CResult_ChannelCounterpartyDecodeErrorZ_get_ok(long owner);
1347 // struct LDKDecodeError CResult_ChannelCounterpartyDecodeErrorZ_get_err(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
1348 public static native long CResult_ChannelCounterpartyDecodeErrorZ_get_err(long owner);
1349 // struct LDKChannelDetails CResult_ChannelDetailsDecodeErrorZ_get_ok(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
1350 public static native long CResult_ChannelDetailsDecodeErrorZ_get_ok(long owner);
1351 // struct LDKDecodeError CResult_ChannelDetailsDecodeErrorZ_get_err(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
1352 public static native long CResult_ChannelDetailsDecodeErrorZ_get_err(long owner);
1353 // struct LDKPhantomRouteHints CResult_PhantomRouteHintsDecodeErrorZ_get_ok(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
1354 public static native long CResult_PhantomRouteHintsDecodeErrorZ_get_ok(long owner);
1355 // struct LDKDecodeError CResult_PhantomRouteHintsDecodeErrorZ_get_err(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
1356 public static native long CResult_PhantomRouteHintsDecodeErrorZ_get_err(long owner);
1357 public interface LDKWatch {
1358 ChannelMonitorUpdateStatus watch_channel(long funding_txo, long monitor);
1359 ChannelMonitorUpdateStatus update_channel(long funding_txo, long update);
1360 long[] release_pending_monitor_events();
1362 public static native long LDKWatch_new(LDKWatch impl);
1363 // LDKChannelMonitorUpdateStatus Watch_watch_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor
1364 public static native ChannelMonitorUpdateStatus Watch_watch_channel(long this_arg, long funding_txo, long monitor);
1365 // LDKChannelMonitorUpdateStatus Watch_update_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, const struct LDKChannelMonitorUpdate *NONNULL_PTR update
1366 public static native ChannelMonitorUpdateStatus Watch_update_channel(long this_arg, long funding_txo, long update);
1367 // LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ Watch_release_pending_monitor_events LDKWatch *NONNULL_PTR this_arg
1368 public static native long[] Watch_release_pending_monitor_events(long this_arg);
1369 public interface LDKBroadcasterInterface {
1370 void broadcast_transaction(byte[] tx);
1372 public static native long LDKBroadcasterInterface_new(LDKBroadcasterInterface impl);
1373 // void BroadcasterInterface_broadcast_transaction LDKBroadcasterInterface *NONNULL_PTR this_arg, struct LDKTransaction tx
1374 public static native void BroadcasterInterface_broadcast_transaction(long this_arg, byte[] tx);
1375 public interface LDKEntropySource {
1376 byte[] get_secure_random_bytes();
1378 public static native long LDKEntropySource_new(LDKEntropySource impl);
1379 // LDKThirtyTwoBytes EntropySource_get_secure_random_bytes LDKEntropySource *NONNULL_PTR this_arg
1380 public static native byte[] EntropySource_get_secure_random_bytes(long this_arg);
1381 public static class LDKUnsignedGossipMessage {
1382 private LDKUnsignedGossipMessage() {}
1383 public final static class ChannelAnnouncement extends LDKUnsignedGossipMessage {
1384 public long channel_announcement;
1385 ChannelAnnouncement(long channel_announcement) { this.channel_announcement = channel_announcement; }
1387 public final static class ChannelUpdate extends LDKUnsignedGossipMessage {
1388 public long channel_update;
1389 ChannelUpdate(long channel_update) { this.channel_update = channel_update; }
1391 public final static class NodeAnnouncement extends LDKUnsignedGossipMessage {
1392 public long node_announcement;
1393 NodeAnnouncement(long node_announcement) { this.node_announcement = node_announcement; }
1395 static native void init();
1397 static { LDKUnsignedGossipMessage.init(); }
1398 public static native LDKUnsignedGossipMessage LDKUnsignedGossipMessage_ref_from_ptr(long ptr);
1399 public interface LDKNodeSigner {
1400 byte[] get_inbound_payment_key_material();
1401 long get_node_id(Recipient recipient);
1402 long ecdh(Recipient recipient, byte[] other_key, long tweak);
1403 long sign_invoice(byte[] hrp_bytes, byte[] invoice_data, Recipient recipient);
1404 long sign_gossip_message(long msg);
1406 public static native long LDKNodeSigner_new(LDKNodeSigner impl);
1407 // LDKThirtyTwoBytes NodeSigner_get_inbound_payment_key_material LDKNodeSigner *NONNULL_PTR this_arg
1408 public static native byte[] NodeSigner_get_inbound_payment_key_material(long this_arg);
1409 // LDKCResult_PublicKeyNoneZ NodeSigner_get_node_id LDKNodeSigner *NONNULL_PTR this_arg, enum LDKRecipient recipient
1410 public static native long NodeSigner_get_node_id(long this_arg, Recipient recipient);
1411 // LDKCResult_SharedSecretNoneZ NodeSigner_ecdh LDKNodeSigner *NONNULL_PTR this_arg, enum LDKRecipient recipient, struct LDKPublicKey other_key, struct LDKCOption_ScalarZ tweak
1412 public static native long NodeSigner_ecdh(long this_arg, Recipient recipient, byte[] other_key, long tweak);
1413 // LDKCResult_RecoverableSignatureNoneZ NodeSigner_sign_invoice LDKNodeSigner *NONNULL_PTR this_arg, struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z invoice_data, enum LDKRecipient recipient
1414 public static native long NodeSigner_sign_invoice(long this_arg, byte[] hrp_bytes, byte[] invoice_data, Recipient recipient);
1415 // LDKCResult_SignatureNoneZ NodeSigner_sign_gossip_message LDKNodeSigner *NONNULL_PTR this_arg, struct LDKUnsignedGossipMessage msg
1416 public static native long NodeSigner_sign_gossip_message(long this_arg, long msg);
1417 public interface LDKSignerProvider {
1418 byte[] generate_channel_keys_id(boolean inbound, long channel_value_satoshis, byte[] user_channel_id);
1419 long derive_channel_signer(long channel_value_satoshis, byte[] channel_keys_id);
1420 long read_chan_signer(byte[] reader);
1421 byte[] get_destination_script();
1422 long get_shutdown_scriptpubkey();
1424 public static native long LDKSignerProvider_new(LDKSignerProvider impl);
1425 // LDKThirtyTwoBytes SignerProvider_generate_channel_keys_id LDKSignerProvider *NONNULL_PTR this_arg, bool inbound, uint64_t channel_value_satoshis, struct LDKU128 user_channel_id
1426 public static native byte[] SignerProvider_generate_channel_keys_id(long this_arg, boolean inbound, long channel_value_satoshis, byte[] user_channel_id);
1427 // LDKWriteableEcdsaChannelSigner SignerProvider_derive_channel_signer LDKSignerProvider *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, struct LDKThirtyTwoBytes channel_keys_id
1428 public static native long SignerProvider_derive_channel_signer(long this_arg, long channel_value_satoshis, byte[] channel_keys_id);
1429 // LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ SignerProvider_read_chan_signer LDKSignerProvider *NONNULL_PTR this_arg, struct LDKu8slice reader
1430 public static native long SignerProvider_read_chan_signer(long this_arg, byte[] reader);
1431 // LDKCVec_u8Z SignerProvider_get_destination_script LDKSignerProvider *NONNULL_PTR this_arg
1432 public static native byte[] SignerProvider_get_destination_script(long this_arg);
1433 // LDKShutdownScript SignerProvider_get_shutdown_scriptpubkey LDKSignerProvider *NONNULL_PTR this_arg
1434 public static native long SignerProvider_get_shutdown_scriptpubkey(long this_arg);
1435 public interface LDKFeeEstimator {
1436 int get_est_sat_per_1000_weight(ConfirmationTarget confirmation_target);
1438 public static native long LDKFeeEstimator_new(LDKFeeEstimator impl);
1439 // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator *NONNULL_PTR this_arg, enum LDKConfirmationTarget confirmation_target
1440 public static native int FeeEstimator_get_est_sat_per_1000_weight(long this_arg, ConfirmationTarget confirmation_target);
1441 public interface LDKRouter {
1442 long find_route(byte[] payer, long route_params, long[] first_hops, long inflight_htlcs);
1443 long find_route_with_id(byte[] payer, long route_params, long[] first_hops, long inflight_htlcs, byte[] _payment_hash, byte[] _payment_id);
1445 public static native long LDKRouter_new(LDKRouter impl);
1446 // 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, const struct LDKInFlightHtlcs *NONNULL_PTR inflight_htlcs
1447 public static native long Router_find_route(long this_arg, byte[] payer, long route_params, long[] first_hops, long inflight_htlcs);
1448 // 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, const struct LDKInFlightHtlcs *NONNULL_PTR inflight_htlcs, struct LDKThirtyTwoBytes _payment_hash, struct LDKThirtyTwoBytes _payment_id
1449 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);
1450 // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelManagerZ_get_a(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
1451 public static native byte[] C2Tuple_BlockHashChannelManagerZ_get_a(long owner);
1452 // struct LDKChannelManager C2Tuple_BlockHashChannelManagerZ_get_b(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
1453 public static native long C2Tuple_BlockHashChannelManagerZ_get_b(long owner);
1454 // struct LDKC2Tuple_BlockHashChannelManagerZ *CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
1455 public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(long owner);
1456 // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
1457 public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(long owner);
1458 // struct LDKChannelConfig CResult_ChannelConfigDecodeErrorZ_get_ok(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
1459 public static native long CResult_ChannelConfigDecodeErrorZ_get_ok(long owner);
1460 // struct LDKDecodeError CResult_ChannelConfigDecodeErrorZ_get_err(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
1461 public static native long CResult_ChannelConfigDecodeErrorZ_get_err(long owner);
1462 public static class LDKCOption_APIErrorZ {
1463 private LDKCOption_APIErrorZ() {}
1464 public final static class Some extends LDKCOption_APIErrorZ {
1466 Some(long some) { this.some = some; }
1468 public final static class None extends LDKCOption_APIErrorZ {
1471 static native void init();
1473 static { LDKCOption_APIErrorZ.init(); }
1474 public static native LDKCOption_APIErrorZ LDKCOption_APIErrorZ_ref_from_ptr(long ptr);
1475 // struct LDKCOption_APIErrorZ CResult_COption_APIErrorZDecodeErrorZ_get_ok(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR owner);
1476 public static native long CResult_COption_APIErrorZDecodeErrorZ_get_ok(long owner);
1477 // struct LDKDecodeError CResult_COption_APIErrorZDecodeErrorZ_get_err(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR owner);
1478 public static native long CResult_COption_APIErrorZDecodeErrorZ_get_err(long owner);
1479 // struct LDKOutPoint CResult_OutPointDecodeErrorZ_get_ok(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
1480 public static native long CResult_OutPointDecodeErrorZ_get_ok(long owner);
1481 // struct LDKDecodeError CResult_OutPointDecodeErrorZ_get_err(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
1482 public static native long CResult_OutPointDecodeErrorZ_get_err(long owner);
1483 public interface LDKType {
1488 public static native long LDKType_new(LDKType impl);
1489 // uint16_t Type_type_id LDKType *NONNULL_PTR this_arg
1490 public static native short Type_type_id(long this_arg);
1491 // LDKStr Type_debug_str LDKType *NONNULL_PTR this_arg
1492 public static native String Type_debug_str(long this_arg);
1493 // LDKCVec_u8Z Type_write LDKType *NONNULL_PTR this_arg
1494 public static native byte[] Type_write(long this_arg);
1495 public static class LDKCOption_TypeZ {
1496 private LDKCOption_TypeZ() {}
1497 public final static class Some extends LDKCOption_TypeZ {
1499 Some(long some) { this.some = some; }
1501 public final static class None extends LDKCOption_TypeZ {
1504 static native void init();
1506 static { LDKCOption_TypeZ.init(); }
1507 public static native LDKCOption_TypeZ LDKCOption_TypeZ_ref_from_ptr(long ptr);
1508 // struct LDKCOption_TypeZ CResult_COption_TypeZDecodeErrorZ_get_ok(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
1509 public static native long CResult_COption_TypeZDecodeErrorZ_get_ok(long owner);
1510 // struct LDKDecodeError CResult_COption_TypeZDecodeErrorZ_get_err(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
1511 public static native long CResult_COption_TypeZDecodeErrorZ_get_err(long owner);
1512 public static class LDKPaymentError {
1513 private LDKPaymentError() {}
1514 public final static class Invoice extends LDKPaymentError {
1515 public java.lang.String invoice;
1516 Invoice(java.lang.String invoice) { this.invoice = invoice; }
1518 public final static class Sending extends LDKPaymentError {
1519 public org.ldk.enums.RetryableSendFailure sending;
1520 Sending(org.ldk.enums.RetryableSendFailure sending) { this.sending = sending; }
1522 static native void init();
1524 static { LDKPaymentError.init(); }
1525 public static native LDKPaymentError LDKPaymentError_ref_from_ptr(long ptr);
1526 // struct LDKThirtyTwoBytes CResult_PaymentIdPaymentErrorZ_get_ok(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
1527 public static native byte[] CResult_PaymentIdPaymentErrorZ_get_ok(long owner);
1528 // struct LDKPaymentError CResult_PaymentIdPaymentErrorZ_get_err(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
1529 public static native long CResult_PaymentIdPaymentErrorZ_get_err(long owner);
1530 // void CResult_NonePaymentErrorZ_get_ok(LDKCResult_NonePaymentErrorZ *NONNULL_PTR owner);
1531 public static native void CResult_NonePaymentErrorZ_get_ok(long owner);
1532 // struct LDKPaymentError CResult_NonePaymentErrorZ_get_err(LDKCResult_NonePaymentErrorZ *NONNULL_PTR owner);
1533 public static native long CResult_NonePaymentErrorZ_get_err(long owner);
1534 // struct LDKStr CResult_StringErrorZ_get_ok(LDKCResult_StringErrorZ *NONNULL_PTR owner);
1535 public static native String CResult_StringErrorZ_get_ok(long owner);
1536 // enum LDKSecp256k1Error CResult_StringErrorZ_get_err(LDKCResult_StringErrorZ *NONNULL_PTR owner);
1537 public static native Secp256k1Error CResult_StringErrorZ_get_err(long owner);
1538 // struct LDKPublicKey CResult_PublicKeyErrorZ_get_ok(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
1539 public static native byte[] CResult_PublicKeyErrorZ_get_ok(long owner);
1540 // enum LDKSecp256k1Error CResult_PublicKeyErrorZ_get_err(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
1541 public static native Secp256k1Error CResult_PublicKeyErrorZ_get_err(long owner);
1542 // struct LDKChannelMonitorUpdate CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
1543 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(long owner);
1544 // struct LDKDecodeError CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
1545 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(long owner);
1546 public static class LDKCOption_MonitorEventZ {
1547 private LDKCOption_MonitorEventZ() {}
1548 public final static class Some extends LDKCOption_MonitorEventZ {
1550 Some(long some) { this.some = some; }
1552 public final static class None extends LDKCOption_MonitorEventZ {
1555 static native void init();
1557 static { LDKCOption_MonitorEventZ.init(); }
1558 public static native LDKCOption_MonitorEventZ LDKCOption_MonitorEventZ_ref_from_ptr(long ptr);
1559 // struct LDKCOption_MonitorEventZ CResult_COption_MonitorEventZDecodeErrorZ_get_ok(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
1560 public static native long CResult_COption_MonitorEventZDecodeErrorZ_get_ok(long owner);
1561 // struct LDKDecodeError CResult_COption_MonitorEventZDecodeErrorZ_get_err(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
1562 public static native long CResult_COption_MonitorEventZDecodeErrorZ_get_err(long owner);
1563 // struct LDKHTLCUpdate CResult_HTLCUpdateDecodeErrorZ_get_ok(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
1564 public static native long CResult_HTLCUpdateDecodeErrorZ_get_ok(long owner);
1565 // struct LDKDecodeError CResult_HTLCUpdateDecodeErrorZ_get_err(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
1566 public static native long CResult_HTLCUpdateDecodeErrorZ_get_err(long owner);
1567 // struct LDKOutPoint C2Tuple_OutPointScriptZ_get_a(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
1568 public static native long C2Tuple_OutPointScriptZ_get_a(long owner);
1569 // struct LDKCVec_u8Z C2Tuple_OutPointScriptZ_get_b(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
1570 public static native byte[] C2Tuple_OutPointScriptZ_get_b(long owner);
1571 // uint32_t C2Tuple_u32ScriptZ_get_a(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
1572 public static native int C2Tuple_u32ScriptZ_get_a(long owner);
1573 // struct LDKCVec_u8Z C2Tuple_u32ScriptZ_get_b(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
1574 public static native byte[] C2Tuple_u32ScriptZ_get_b(long owner);
1575 // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
1576 public static native byte[] C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(long owner);
1577 // struct LDKCVec_C2Tuple_u32ScriptZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
1578 public static native long[] C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(long owner);
1579 // uint32_t C2Tuple_u32TxOutZ_get_a(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
1580 public static native int C2Tuple_u32TxOutZ_get_a(long owner);
1581 // struct LDKTxOut C2Tuple_u32TxOutZ_get_b(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
1582 public static native long C2Tuple_u32TxOutZ_get_b(long owner);
1583 // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
1584 public static native byte[] C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(long owner);
1585 // struct LDKCVec_C2Tuple_u32TxOutZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
1586 public static native long[] C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(long owner);
1587 public static class LDKBalance {
1588 private LDKBalance() {}
1589 public final static class ClaimableOnChannelClose extends LDKBalance {
1590 public long claimable_amount_satoshis;
1591 ClaimableOnChannelClose(long claimable_amount_satoshis) { this.claimable_amount_satoshis = claimable_amount_satoshis; }
1593 public final static class ClaimableAwaitingConfirmations extends LDKBalance {
1594 public long claimable_amount_satoshis;
1595 public int confirmation_height;
1596 ClaimableAwaitingConfirmations(long claimable_amount_satoshis, int confirmation_height) { this.claimable_amount_satoshis = claimable_amount_satoshis; this.confirmation_height = confirmation_height; }
1598 public final static class ContentiousClaimable extends LDKBalance {
1599 public long claimable_amount_satoshis;
1600 public int timeout_height;
1601 ContentiousClaimable(long claimable_amount_satoshis, int timeout_height) { this.claimable_amount_satoshis = claimable_amount_satoshis; this.timeout_height = timeout_height; }
1603 public final static class MaybeTimeoutClaimableHTLC extends LDKBalance {
1604 public long claimable_amount_satoshis;
1605 public int claimable_height;
1606 MaybeTimeoutClaimableHTLC(long claimable_amount_satoshis, int claimable_height) { this.claimable_amount_satoshis = claimable_amount_satoshis; this.claimable_height = claimable_height; }
1608 public final static class MaybePreimageClaimableHTLC extends LDKBalance {
1609 public long claimable_amount_satoshis;
1610 public int expiry_height;
1611 MaybePreimageClaimableHTLC(long claimable_amount_satoshis, int expiry_height) { this.claimable_amount_satoshis = claimable_amount_satoshis; this.expiry_height = expiry_height; }
1613 public final static class CounterpartyRevokedOutputClaimable extends LDKBalance {
1614 public long claimable_amount_satoshis;
1615 CounterpartyRevokedOutputClaimable(long claimable_amount_satoshis) { this.claimable_amount_satoshis = claimable_amount_satoshis; }
1617 static native void init();
1619 static { LDKBalance.init(); }
1620 public static native LDKBalance LDKBalance_ref_from_ptr(long ptr);
1621 // struct LDKC2Tuple_BlockHashChannelMonitorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
1622 public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(long owner);
1623 // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
1624 public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(long owner);
1625 // struct LDKPublicKey C2Tuple_PublicKeyTypeZ_get_a(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
1626 public static native byte[] C2Tuple_PublicKeyTypeZ_get_a(long owner);
1627 // struct LDKType C2Tuple_PublicKeyTypeZ_get_b(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
1628 public static native long C2Tuple_PublicKeyTypeZ_get_b(long owner);
1629 public interface LDKCustomOnionMessageContents {
1633 public static native long LDKCustomOnionMessageContents_new(LDKCustomOnionMessageContents impl);
1634 // uint64_t CustomOnionMessageContents_tlv_type LDKCustomOnionMessageContents *NONNULL_PTR this_arg
1635 public static native long CustomOnionMessageContents_tlv_type(long this_arg);
1636 // LDKCVec_u8Z CustomOnionMessageContents_write LDKCustomOnionMessageContents *NONNULL_PTR this_arg
1637 public static native byte[] CustomOnionMessageContents_write(long this_arg);
1638 public static class LDKCOption_CustomOnionMessageContentsZ {
1639 private LDKCOption_CustomOnionMessageContentsZ() {}
1640 public final static class Some extends LDKCOption_CustomOnionMessageContentsZ {
1642 Some(long some) { this.some = some; }
1644 public final static class None extends LDKCOption_CustomOnionMessageContentsZ {
1647 static native void init();
1649 static { LDKCOption_CustomOnionMessageContentsZ.init(); }
1650 public static native LDKCOption_CustomOnionMessageContentsZ LDKCOption_CustomOnionMessageContentsZ_ref_from_ptr(long ptr);
1651 // struct LDKCOption_CustomOnionMessageContentsZ CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_get_ok(LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR owner);
1652 public static native long CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_get_ok(long owner);
1653 // struct LDKDecodeError CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_get_err(LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR owner);
1654 public static native long CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_get_err(long owner);
1655 public static class LDKCOption_NetAddressZ {
1656 private LDKCOption_NetAddressZ() {}
1657 public final static class Some extends LDKCOption_NetAddressZ {
1659 Some(long some) { this.some = some; }
1661 public final static class None extends LDKCOption_NetAddressZ {
1664 static native void init();
1666 static { LDKCOption_NetAddressZ.init(); }
1667 public static native LDKCOption_NetAddressZ LDKCOption_NetAddressZ_ref_from_ptr(long ptr);
1668 // struct LDKPublicKey C2Tuple_PublicKeyCOption_NetAddressZZ_get_a(LDKC2Tuple_PublicKeyCOption_NetAddressZZ *NONNULL_PTR owner);
1669 public static native byte[] C2Tuple_PublicKeyCOption_NetAddressZZ_get_a(long owner);
1670 // struct LDKCOption_NetAddressZ C2Tuple_PublicKeyCOption_NetAddressZZ_get_b(LDKC2Tuple_PublicKeyCOption_NetAddressZZ *NONNULL_PTR owner);
1671 public static native long C2Tuple_PublicKeyCOption_NetAddressZZ_get_b(long owner);
1672 // struct LDKCVec_u8Z CResult_CVec_u8ZPeerHandleErrorZ_get_ok(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
1673 public static native byte[] CResult_CVec_u8ZPeerHandleErrorZ_get_ok(long owner);
1674 // struct LDKPeerHandleError CResult_CVec_u8ZPeerHandleErrorZ_get_err(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
1675 public static native long CResult_CVec_u8ZPeerHandleErrorZ_get_err(long owner);
1676 // void CResult_NonePeerHandleErrorZ_get_ok(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
1677 public static native void CResult_NonePeerHandleErrorZ_get_ok(long owner);
1678 // struct LDKPeerHandleError CResult_NonePeerHandleErrorZ_get_err(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
1679 public static native long CResult_NonePeerHandleErrorZ_get_err(long owner);
1680 // bool CResult_boolPeerHandleErrorZ_get_ok(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
1681 public static native boolean CResult_boolPeerHandleErrorZ_get_ok(long owner);
1682 // struct LDKPeerHandleError CResult_boolPeerHandleErrorZ_get_err(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
1683 public static native long CResult_boolPeerHandleErrorZ_get_err(long owner);
1684 public static class LDKSendError {
1685 private LDKSendError() {}
1686 public final static class Secp256k1 extends LDKSendError {
1687 public org.ldk.enums.Secp256k1Error secp256k1;
1688 Secp256k1(org.ldk.enums.Secp256k1Error secp256k1) { this.secp256k1 = secp256k1; }
1690 public final static class TooBigPacket extends LDKSendError {
1693 public final static class TooFewBlindedHops extends LDKSendError {
1694 TooFewBlindedHops() { }
1696 public final static class InvalidFirstHop extends LDKSendError {
1697 InvalidFirstHop() { }
1699 public final static class InvalidMessage extends LDKSendError {
1700 InvalidMessage() { }
1702 public final static class BufferFull extends LDKSendError {
1705 public final static class GetNodeIdFailed extends LDKSendError {
1706 GetNodeIdFailed() { }
1708 public final static class BlindedPathAdvanceFailed extends LDKSendError {
1709 BlindedPathAdvanceFailed() { }
1711 static native void init();
1713 static { LDKSendError.init(); }
1714 public static native LDKSendError LDKSendError_ref_from_ptr(long ptr);
1715 // void CResult_NoneSendErrorZ_get_ok(LDKCResult_NoneSendErrorZ *NONNULL_PTR owner);
1716 public static native void CResult_NoneSendErrorZ_get_ok(long owner);
1717 // struct LDKSendError CResult_NoneSendErrorZ_get_err(LDKCResult_NoneSendErrorZ *NONNULL_PTR owner);
1718 public static native long CResult_NoneSendErrorZ_get_err(long owner);
1719 public static class LDKParseError {
1720 private LDKParseError() {}
1721 public final static class Bech32Error extends LDKParseError {
1722 public long bech32_error;
1723 Bech32Error(long bech32_error) { this.bech32_error = bech32_error; }
1725 public final static class ParseAmountError extends LDKParseError {
1726 public int parse_amount_error;
1727 ParseAmountError(int parse_amount_error) { this.parse_amount_error = parse_amount_error; }
1729 public final static class MalformedSignature extends LDKParseError {
1730 public org.ldk.enums.Secp256k1Error malformed_signature;
1731 MalformedSignature(org.ldk.enums.Secp256k1Error malformed_signature) { this.malformed_signature = malformed_signature; }
1733 public final static class BadPrefix extends LDKParseError {
1736 public final static class UnknownCurrency extends LDKParseError {
1737 UnknownCurrency() { }
1739 public final static class UnknownSiPrefix extends LDKParseError {
1740 UnknownSiPrefix() { }
1742 public final static class MalformedHRP extends LDKParseError {
1745 public final static class TooShortDataPart extends LDKParseError {
1746 TooShortDataPart() { }
1748 public final static class UnexpectedEndOfTaggedFields extends LDKParseError {
1749 UnexpectedEndOfTaggedFields() { }
1751 public final static class DescriptionDecodeError extends LDKParseError {
1752 public int description_decode_error;
1753 DescriptionDecodeError(int description_decode_error) { this.description_decode_error = description_decode_error; }
1755 public final static class PaddingError extends LDKParseError {
1758 public final static class IntegerOverflowError extends LDKParseError {
1759 IntegerOverflowError() { }
1761 public final static class InvalidSegWitProgramLength extends LDKParseError {
1762 InvalidSegWitProgramLength() { }
1764 public final static class InvalidPubKeyHashLength extends LDKParseError {
1765 InvalidPubKeyHashLength() { }
1767 public final static class InvalidScriptHashLength extends LDKParseError {
1768 InvalidScriptHashLength() { }
1770 public final static class InvalidRecoveryId extends LDKParseError {
1771 InvalidRecoveryId() { }
1773 public final static class InvalidSliceLength extends LDKParseError {
1774 public java.lang.String invalid_slice_length;
1775 InvalidSliceLength(java.lang.String invalid_slice_length) { this.invalid_slice_length = invalid_slice_length; }
1777 public final static class Skip extends LDKParseError {
1780 static native void init();
1782 static { LDKParseError.init(); }
1783 public static native LDKParseError LDKParseError_ref_from_ptr(long ptr);
1784 // enum LDKSiPrefix CResult_SiPrefixParseErrorZ_get_ok(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR owner);
1785 public static native SiPrefix CResult_SiPrefixParseErrorZ_get_ok(long owner);
1786 // struct LDKParseError CResult_SiPrefixParseErrorZ_get_err(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR owner);
1787 public static native long CResult_SiPrefixParseErrorZ_get_err(long owner);
1788 public static class LDKParseOrSemanticError {
1789 private LDKParseOrSemanticError() {}
1790 public final static class ParseError extends LDKParseOrSemanticError {
1791 public long parse_error;
1792 ParseError(long parse_error) { this.parse_error = parse_error; }
1794 public final static class SemanticError extends LDKParseOrSemanticError {
1795 public org.ldk.enums.SemanticError semantic_error;
1796 SemanticError(org.ldk.enums.SemanticError semantic_error) { this.semantic_error = semantic_error; }
1798 static native void init();
1800 static { LDKParseOrSemanticError.init(); }
1801 public static native LDKParseOrSemanticError LDKParseOrSemanticError_ref_from_ptr(long ptr);
1802 // struct LDKInvoice CResult_InvoiceParseOrSemanticErrorZ_get_ok(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
1803 public static native long CResult_InvoiceParseOrSemanticErrorZ_get_ok(long owner);
1804 // struct LDKParseOrSemanticError CResult_InvoiceParseOrSemanticErrorZ_get_err(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
1805 public static native long CResult_InvoiceParseOrSemanticErrorZ_get_err(long owner);
1806 // struct LDKSignedRawInvoice CResult_SignedRawInvoiceParseErrorZ_get_ok(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR owner);
1807 public static native long CResult_SignedRawInvoiceParseErrorZ_get_ok(long owner);
1808 // struct LDKParseError CResult_SignedRawInvoiceParseErrorZ_get_err(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR owner);
1809 public static native long CResult_SignedRawInvoiceParseErrorZ_get_err(long owner);
1810 // struct LDKRawInvoice C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
1811 public static native long C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(long owner);
1812 // struct LDKThirtyTwoBytes C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
1813 public static native byte[] C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(long owner);
1814 // struct LDKInvoiceSignature C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
1815 public static native long C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(long owner);
1816 // struct LDKPayeePubKey CResult_PayeePubKeyErrorZ_get_ok(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
1817 public static native long CResult_PayeePubKeyErrorZ_get_ok(long owner);
1818 // enum LDKSecp256k1Error CResult_PayeePubKeyErrorZ_get_err(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
1819 public static native Secp256k1Error CResult_PayeePubKeyErrorZ_get_err(long owner);
1820 // struct LDKPositiveTimestamp CResult_PositiveTimestampCreationErrorZ_get_ok(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
1821 public static native long CResult_PositiveTimestampCreationErrorZ_get_ok(long owner);
1822 // enum LDKCreationError CResult_PositiveTimestampCreationErrorZ_get_err(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
1823 public static native CreationError CResult_PositiveTimestampCreationErrorZ_get_err(long owner);
1824 // void CResult_NoneSemanticErrorZ_get_ok(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
1825 public static native void CResult_NoneSemanticErrorZ_get_ok(long owner);
1826 // enum LDKSemanticError CResult_NoneSemanticErrorZ_get_err(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
1827 public static native SemanticError CResult_NoneSemanticErrorZ_get_err(long owner);
1828 // struct LDKInvoice CResult_InvoiceSemanticErrorZ_get_ok(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
1829 public static native long CResult_InvoiceSemanticErrorZ_get_ok(long owner);
1830 // enum LDKSemanticError CResult_InvoiceSemanticErrorZ_get_err(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
1831 public static native SemanticError CResult_InvoiceSemanticErrorZ_get_err(long owner);
1832 // struct LDKDescription CResult_DescriptionCreationErrorZ_get_ok(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
1833 public static native long CResult_DescriptionCreationErrorZ_get_ok(long owner);
1834 // enum LDKCreationError CResult_DescriptionCreationErrorZ_get_err(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
1835 public static native CreationError CResult_DescriptionCreationErrorZ_get_err(long owner);
1836 // struct LDKPrivateRoute CResult_PrivateRouteCreationErrorZ_get_ok(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
1837 public static native long CResult_PrivateRouteCreationErrorZ_get_ok(long owner);
1838 // enum LDKCreationError CResult_PrivateRouteCreationErrorZ_get_err(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
1839 public static native CreationError CResult_PrivateRouteCreationErrorZ_get_err(long owner);
1840 public static class LDKGraphSyncError {
1841 private LDKGraphSyncError() {}
1842 public final static class DecodeError extends LDKGraphSyncError {
1843 public long decode_error;
1844 DecodeError(long decode_error) { this.decode_error = decode_error; }
1846 public final static class LightningError extends LDKGraphSyncError {
1847 public long lightning_error;
1848 LightningError(long lightning_error) { this.lightning_error = lightning_error; }
1850 static native void init();
1852 static { LDKGraphSyncError.init(); }
1853 public static native LDKGraphSyncError LDKGraphSyncError_ref_from_ptr(long ptr);
1854 // uint32_t CResult_u32GraphSyncErrorZ_get_ok(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner);
1855 public static native int CResult_u32GraphSyncErrorZ_get_ok(long owner);
1856 // struct LDKGraphSyncError CResult_u32GraphSyncErrorZ_get_err(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner);
1857 public static native long CResult_u32GraphSyncErrorZ_get_err(long owner);
1858 // struct LDKNetAddress CResult_NetAddressDecodeErrorZ_get_ok(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
1859 public static native long CResult_NetAddressDecodeErrorZ_get_ok(long owner);
1860 // struct LDKDecodeError CResult_NetAddressDecodeErrorZ_get_err(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
1861 public static native long CResult_NetAddressDecodeErrorZ_get_err(long owner);
1862 // struct LDKAcceptChannel CResult_AcceptChannelDecodeErrorZ_get_ok(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
1863 public static native long CResult_AcceptChannelDecodeErrorZ_get_ok(long owner);
1864 // struct LDKDecodeError CResult_AcceptChannelDecodeErrorZ_get_err(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
1865 public static native long CResult_AcceptChannelDecodeErrorZ_get_err(long owner);
1866 // struct LDKAnnouncementSignatures CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
1867 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(long owner);
1868 // struct LDKDecodeError CResult_AnnouncementSignaturesDecodeErrorZ_get_err(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
1869 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_get_err(long owner);
1870 // struct LDKChannelReestablish CResult_ChannelReestablishDecodeErrorZ_get_ok(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
1871 public static native long CResult_ChannelReestablishDecodeErrorZ_get_ok(long owner);
1872 // struct LDKDecodeError CResult_ChannelReestablishDecodeErrorZ_get_err(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
1873 public static native long CResult_ChannelReestablishDecodeErrorZ_get_err(long owner);
1874 // struct LDKClosingSigned CResult_ClosingSignedDecodeErrorZ_get_ok(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
1875 public static native long CResult_ClosingSignedDecodeErrorZ_get_ok(long owner);
1876 // struct LDKDecodeError CResult_ClosingSignedDecodeErrorZ_get_err(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
1877 public static native long CResult_ClosingSignedDecodeErrorZ_get_err(long owner);
1878 // struct LDKClosingSignedFeeRange CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
1879 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(long owner);
1880 // struct LDKDecodeError CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
1881 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(long owner);
1882 // struct LDKCommitmentSigned CResult_CommitmentSignedDecodeErrorZ_get_ok(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
1883 public static native long CResult_CommitmentSignedDecodeErrorZ_get_ok(long owner);
1884 // struct LDKDecodeError CResult_CommitmentSignedDecodeErrorZ_get_err(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
1885 public static native long CResult_CommitmentSignedDecodeErrorZ_get_err(long owner);
1886 // struct LDKFundingCreated CResult_FundingCreatedDecodeErrorZ_get_ok(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
1887 public static native long CResult_FundingCreatedDecodeErrorZ_get_ok(long owner);
1888 // struct LDKDecodeError CResult_FundingCreatedDecodeErrorZ_get_err(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
1889 public static native long CResult_FundingCreatedDecodeErrorZ_get_err(long owner);
1890 // struct LDKFundingSigned CResult_FundingSignedDecodeErrorZ_get_ok(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
1891 public static native long CResult_FundingSignedDecodeErrorZ_get_ok(long owner);
1892 // struct LDKDecodeError CResult_FundingSignedDecodeErrorZ_get_err(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
1893 public static native long CResult_FundingSignedDecodeErrorZ_get_err(long owner);
1894 // struct LDKChannelReady CResult_ChannelReadyDecodeErrorZ_get_ok(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
1895 public static native long CResult_ChannelReadyDecodeErrorZ_get_ok(long owner);
1896 // struct LDKDecodeError CResult_ChannelReadyDecodeErrorZ_get_err(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
1897 public static native long CResult_ChannelReadyDecodeErrorZ_get_err(long owner);
1898 // struct LDKInit CResult_InitDecodeErrorZ_get_ok(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
1899 public static native long CResult_InitDecodeErrorZ_get_ok(long owner);
1900 // struct LDKDecodeError CResult_InitDecodeErrorZ_get_err(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
1901 public static native long CResult_InitDecodeErrorZ_get_err(long owner);
1902 // struct LDKOpenChannel CResult_OpenChannelDecodeErrorZ_get_ok(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
1903 public static native long CResult_OpenChannelDecodeErrorZ_get_ok(long owner);
1904 // struct LDKDecodeError CResult_OpenChannelDecodeErrorZ_get_err(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
1905 public static native long CResult_OpenChannelDecodeErrorZ_get_err(long owner);
1906 // struct LDKRevokeAndACK CResult_RevokeAndACKDecodeErrorZ_get_ok(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
1907 public static native long CResult_RevokeAndACKDecodeErrorZ_get_ok(long owner);
1908 // struct LDKDecodeError CResult_RevokeAndACKDecodeErrorZ_get_err(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
1909 public static native long CResult_RevokeAndACKDecodeErrorZ_get_err(long owner);
1910 // struct LDKShutdown CResult_ShutdownDecodeErrorZ_get_ok(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
1911 public static native long CResult_ShutdownDecodeErrorZ_get_ok(long owner);
1912 // struct LDKDecodeError CResult_ShutdownDecodeErrorZ_get_err(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
1913 public static native long CResult_ShutdownDecodeErrorZ_get_err(long owner);
1914 // struct LDKUpdateFailHTLC CResult_UpdateFailHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
1915 public static native long CResult_UpdateFailHTLCDecodeErrorZ_get_ok(long owner);
1916 // struct LDKDecodeError CResult_UpdateFailHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
1917 public static native long CResult_UpdateFailHTLCDecodeErrorZ_get_err(long owner);
1918 // struct LDKUpdateFailMalformedHTLC CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
1919 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(long owner);
1920 // struct LDKDecodeError CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
1921 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(long owner);
1922 // struct LDKUpdateFee CResult_UpdateFeeDecodeErrorZ_get_ok(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
1923 public static native long CResult_UpdateFeeDecodeErrorZ_get_ok(long owner);
1924 // struct LDKDecodeError CResult_UpdateFeeDecodeErrorZ_get_err(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
1925 public static native long CResult_UpdateFeeDecodeErrorZ_get_err(long owner);
1926 // struct LDKUpdateFulfillHTLC CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
1927 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(long owner);
1928 // struct LDKDecodeError CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
1929 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(long owner);
1930 // struct LDKUpdateAddHTLC CResult_UpdateAddHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
1931 public static native long CResult_UpdateAddHTLCDecodeErrorZ_get_ok(long owner);
1932 // struct LDKDecodeError CResult_UpdateAddHTLCDecodeErrorZ_get_err(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
1933 public static native long CResult_UpdateAddHTLCDecodeErrorZ_get_err(long owner);
1934 // struct LDKOnionMessage CResult_OnionMessageDecodeErrorZ_get_ok(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR owner);
1935 public static native long CResult_OnionMessageDecodeErrorZ_get_ok(long owner);
1936 // struct LDKDecodeError CResult_OnionMessageDecodeErrorZ_get_err(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR owner);
1937 public static native long CResult_OnionMessageDecodeErrorZ_get_err(long owner);
1938 // struct LDKPing CResult_PingDecodeErrorZ_get_ok(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
1939 public static native long CResult_PingDecodeErrorZ_get_ok(long owner);
1940 // struct LDKDecodeError CResult_PingDecodeErrorZ_get_err(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
1941 public static native long CResult_PingDecodeErrorZ_get_err(long owner);
1942 // struct LDKPong CResult_PongDecodeErrorZ_get_ok(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
1943 public static native long CResult_PongDecodeErrorZ_get_ok(long owner);
1944 // struct LDKDecodeError CResult_PongDecodeErrorZ_get_err(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
1945 public static native long CResult_PongDecodeErrorZ_get_err(long owner);
1946 // struct LDKUnsignedChannelAnnouncement CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1947 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(long owner);
1948 // struct LDKDecodeError CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1949 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(long owner);
1950 // struct LDKChannelAnnouncement CResult_ChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1951 public static native long CResult_ChannelAnnouncementDecodeErrorZ_get_ok(long owner);
1952 // struct LDKDecodeError CResult_ChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1953 public static native long CResult_ChannelAnnouncementDecodeErrorZ_get_err(long owner);
1954 // struct LDKUnsignedChannelUpdate CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
1955 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(long owner);
1956 // struct LDKDecodeError CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
1957 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(long owner);
1958 // struct LDKChannelUpdate CResult_ChannelUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
1959 public static native long CResult_ChannelUpdateDecodeErrorZ_get_ok(long owner);
1960 // struct LDKDecodeError CResult_ChannelUpdateDecodeErrorZ_get_err(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
1961 public static native long CResult_ChannelUpdateDecodeErrorZ_get_err(long owner);
1962 // struct LDKErrorMessage CResult_ErrorMessageDecodeErrorZ_get_ok(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
1963 public static native long CResult_ErrorMessageDecodeErrorZ_get_ok(long owner);
1964 // struct LDKDecodeError CResult_ErrorMessageDecodeErrorZ_get_err(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
1965 public static native long CResult_ErrorMessageDecodeErrorZ_get_err(long owner);
1966 // struct LDKWarningMessage CResult_WarningMessageDecodeErrorZ_get_ok(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
1967 public static native long CResult_WarningMessageDecodeErrorZ_get_ok(long owner);
1968 // struct LDKDecodeError CResult_WarningMessageDecodeErrorZ_get_err(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
1969 public static native long CResult_WarningMessageDecodeErrorZ_get_err(long owner);
1970 // struct LDKUnsignedNodeAnnouncement CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1971 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(long owner);
1972 // struct LDKDecodeError CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1973 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(long owner);
1974 // struct LDKNodeAnnouncement CResult_NodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1975 public static native long CResult_NodeAnnouncementDecodeErrorZ_get_ok(long owner);
1976 // struct LDKDecodeError CResult_NodeAnnouncementDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
1977 public static native long CResult_NodeAnnouncementDecodeErrorZ_get_err(long owner);
1978 // struct LDKQueryShortChannelIds CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
1979 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(long owner);
1980 // struct LDKDecodeError CResult_QueryShortChannelIdsDecodeErrorZ_get_err(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
1981 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_get_err(long owner);
1982 // struct LDKReplyShortChannelIdsEnd CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
1983 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(long owner);
1984 // struct LDKDecodeError CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
1985 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(long owner);
1986 // struct LDKQueryChannelRange CResult_QueryChannelRangeDecodeErrorZ_get_ok(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
1987 public static native long CResult_QueryChannelRangeDecodeErrorZ_get_ok(long owner);
1988 // struct LDKDecodeError CResult_QueryChannelRangeDecodeErrorZ_get_err(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
1989 public static native long CResult_QueryChannelRangeDecodeErrorZ_get_err(long owner);
1990 // struct LDKReplyChannelRange CResult_ReplyChannelRangeDecodeErrorZ_get_ok(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
1991 public static native long CResult_ReplyChannelRangeDecodeErrorZ_get_ok(long owner);
1992 // struct LDKDecodeError CResult_ReplyChannelRangeDecodeErrorZ_get_err(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
1993 public static native long CResult_ReplyChannelRangeDecodeErrorZ_get_err(long owner);
1994 // struct LDKGossipTimestampFilter CResult_GossipTimestampFilterDecodeErrorZ_get_ok(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
1995 public static native long CResult_GossipTimestampFilterDecodeErrorZ_get_ok(long owner);
1996 // struct LDKDecodeError CResult_GossipTimestampFilterDecodeErrorZ_get_err(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
1997 public static native long CResult_GossipTimestampFilterDecodeErrorZ_get_err(long owner);
1998 public static class LDKSignOrCreationError {
1999 private LDKSignOrCreationError() {}
2000 public final static class SignError extends LDKSignOrCreationError {
2003 public final static class CreationError extends LDKSignOrCreationError {
2004 public org.ldk.enums.CreationError creation_error;
2005 CreationError(org.ldk.enums.CreationError creation_error) { this.creation_error = creation_error; }
2007 static native void init();
2009 static { LDKSignOrCreationError.init(); }
2010 public static native LDKSignOrCreationError LDKSignOrCreationError_ref_from_ptr(long ptr);
2011 // struct LDKInvoice CResult_InvoiceSignOrCreationErrorZ_get_ok(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
2012 public static native long CResult_InvoiceSignOrCreationErrorZ_get_ok(long owner);
2013 // struct LDKSignOrCreationError CResult_InvoiceSignOrCreationErrorZ_get_err(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
2014 public static native long CResult_InvoiceSignOrCreationErrorZ_get_err(long owner);
2015 public interface LDKFilter {
2016 void register_tx(byte[] txid, byte[] script_pubkey);
2017 void register_output(long output);
2019 public static native long LDKFilter_new(LDKFilter impl);
2020 // void Filter_register_tx LDKFilter *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
2021 public static native void Filter_register_tx(long this_arg, byte[] txid, byte[] script_pubkey);
2022 // void Filter_register_output LDKFilter *NONNULL_PTR this_arg, struct LDKWatchedOutput output
2023 public static native void Filter_register_output(long this_arg, long output);
2024 public static class LDKCOption_FilterZ {
2025 private LDKCOption_FilterZ() {}
2026 public final static class Some extends LDKCOption_FilterZ {
2028 Some(long some) { this.some = some; }
2030 public final static class None extends LDKCOption_FilterZ {
2033 static native void init();
2035 static { LDKCOption_FilterZ.init(); }
2036 public static native LDKCOption_FilterZ LDKCOption_FilterZ_ref_from_ptr(long ptr);
2037 // struct LDKLockedChannelMonitor CResult_LockedChannelMonitorNoneZ_get_ok(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
2038 public static native long CResult_LockedChannelMonitorNoneZ_get_ok(long owner);
2039 // void CResult_LockedChannelMonitorNoneZ_get_err(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
2040 public static native void CResult_LockedChannelMonitorNoneZ_get_err(long owner);
2041 // struct LDKOutPoint C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner);
2042 public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(long owner);
2043 // struct LDKCVec_MonitorUpdateIdZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner);
2044 public static native long[] C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(long owner);
2045 public interface LDKMessageSendEventsProvider {
2046 long[] get_and_clear_pending_msg_events();
2048 public static native long LDKMessageSendEventsProvider_new(LDKMessageSendEventsProvider impl);
2049 // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider *NONNULL_PTR this_arg
2050 public static native long[] MessageSendEventsProvider_get_and_clear_pending_msg_events(long this_arg);
2051 public interface LDKOnionMessageProvider {
2052 long next_onion_message_for_peer(byte[] peer_node_id);
2054 public static native long LDKOnionMessageProvider_new(LDKOnionMessageProvider impl);
2055 // LDKOnionMessage OnionMessageProvider_next_onion_message_for_peer LDKOnionMessageProvider *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id
2056 public static native long OnionMessageProvider_next_onion_message_for_peer(long this_arg, byte[] peer_node_id);
2057 public interface LDKEventHandler {
2058 void handle_event(long event);
2060 public static native long LDKEventHandler_new(LDKEventHandler impl);
2061 // void EventHandler_handle_event LDKEventHandler *NONNULL_PTR this_arg, struct LDKEvent event
2062 public static native void EventHandler_handle_event(long this_arg, long event);
2063 public interface LDKEventsProvider {
2064 void process_pending_events(long handler);
2066 public static native long LDKEventsProvider_new(LDKEventsProvider impl);
2067 // void EventsProvider_process_pending_events LDKEventsProvider *NONNULL_PTR this_arg, struct LDKEventHandler handler
2068 public static native void EventsProvider_process_pending_events(long this_arg, long handler);
2069 public interface LDKPersister {
2070 long persist_manager(long channel_manager);
2071 long persist_graph(long network_graph);
2072 long persist_scorer(long scorer);
2074 public static native long LDKPersister_new(LDKPersister impl);
2075 // LDKCResult_NoneErrorZ Persister_persist_manager LDKPersister *NONNULL_PTR this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager
2076 public static native long Persister_persist_manager(long this_arg, long channel_manager);
2077 // LDKCResult_NoneErrorZ Persister_persist_graph LDKPersister *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR network_graph
2078 public static native long Persister_persist_graph(long this_arg, long network_graph);
2079 // LDKCResult_NoneErrorZ Persister_persist_scorer LDKPersister *NONNULL_PTR this_arg, const struct LDKWriteableScore *NONNULL_PTR scorer
2080 public static native long Persister_persist_scorer(long this_arg, long scorer);
2081 public interface LDKFutureCallback {
2084 public static native long LDKFutureCallback_new(LDKFutureCallback impl);
2085 // void FutureCallback_call LDKFutureCallback *NONNULL_PTR this_arg
2086 public static native void FutureCallback_call(long this_arg);
2087 public interface LDKListen {
2088 void filtered_block_connected(byte[] header, long[] txdata, int height);
2089 void block_connected(byte[] block, int height);
2090 void block_disconnected(byte[] header, int height);
2092 public static native long LDKListen_new(LDKListen impl);
2093 // void Listen_filtered_block_connected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
2094 public static native void Listen_filtered_block_connected(long this_arg, byte[] header, long[] txdata, int height);
2095 // void Listen_block_connected LDKListen *NONNULL_PTR this_arg, struct LDKu8slice block, uint32_t height
2096 public static native void Listen_block_connected(long this_arg, byte[] block, int height);
2097 // void Listen_block_disconnected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
2098 public static native void Listen_block_disconnected(long this_arg, byte[] header, int height);
2099 public interface LDKConfirm {
2100 void transactions_confirmed(byte[] header, long[] txdata, int height);
2101 void transaction_unconfirmed(byte[] txid);
2102 void best_block_updated(byte[] header, int height);
2103 long[] get_relevant_txids();
2105 public static native long LDKConfirm_new(LDKConfirm impl);
2106 // void Confirm_transactions_confirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
2107 public static native void Confirm_transactions_confirmed(long this_arg, byte[] header, long[] txdata, int height);
2108 // void Confirm_transaction_unconfirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*txid)[32]
2109 public static native void Confirm_transaction_unconfirmed(long this_arg, byte[] txid);
2110 // void Confirm_best_block_updated LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
2111 public static native void Confirm_best_block_updated(long this_arg, byte[] header, int height);
2112 // LDKCVec_C2Tuple_TxidBlockHashZZ Confirm_get_relevant_txids LDKConfirm *NONNULL_PTR this_arg
2113 public static native long[] Confirm_get_relevant_txids(long this_arg);
2114 public interface LDKPersist {
2115 ChannelMonitorUpdateStatus persist_new_channel(long channel_id, long data, long update_id);
2116 ChannelMonitorUpdateStatus update_persisted_channel(long channel_id, long update, long data, long update_id);
2118 public static native long LDKPersist_new(LDKPersist impl);
2119 // LDKChannelMonitorUpdateStatus Persist_persist_new_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_id, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id
2120 public static native ChannelMonitorUpdateStatus Persist_persist_new_channel(long this_arg, long channel_id, long data, long update_id);
2121 // 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
2122 public static native ChannelMonitorUpdateStatus Persist_update_persisted_channel(long this_arg, long channel_id, long update, long data, long update_id);
2123 public static class LDKRetry {
2124 private LDKRetry() {}
2125 public final static class Attempts extends LDKRetry {
2126 public long attempts;
2127 Attempts(long attempts) { this.attempts = attempts; }
2129 public final static class Timeout extends LDKRetry {
2130 public long timeout;
2131 Timeout(long timeout) { this.timeout = timeout; }
2133 static native void init();
2135 static { LDKRetry.init(); }
2136 public static native LDKRetry LDKRetry_ref_from_ptr(long ptr);
2137 public interface LDKChannelMessageHandler {
2138 void handle_open_channel(byte[] their_node_id, long msg);
2139 void handle_accept_channel(byte[] their_node_id, long msg);
2140 void handle_funding_created(byte[] their_node_id, long msg);
2141 void handle_funding_signed(byte[] their_node_id, long msg);
2142 void handle_channel_ready(byte[] their_node_id, long msg);
2143 void handle_shutdown(byte[] their_node_id, long msg);
2144 void handle_closing_signed(byte[] their_node_id, long msg);
2145 void handle_update_add_htlc(byte[] their_node_id, long msg);
2146 void handle_update_fulfill_htlc(byte[] their_node_id, long msg);
2147 void handle_update_fail_htlc(byte[] their_node_id, long msg);
2148 void handle_update_fail_malformed_htlc(byte[] their_node_id, long msg);
2149 void handle_commitment_signed(byte[] their_node_id, long msg);
2150 void handle_revoke_and_ack(byte[] their_node_id, long msg);
2151 void handle_update_fee(byte[] their_node_id, long msg);
2152 void handle_announcement_signatures(byte[] their_node_id, long msg);
2153 void peer_disconnected(byte[] their_node_id);
2154 long peer_connected(byte[] their_node_id, long msg, boolean inbound);
2155 void handle_channel_reestablish(byte[] their_node_id, long msg);
2156 void handle_channel_update(byte[] their_node_id, long msg);
2157 void handle_error(byte[] their_node_id, long msg);
2158 long provided_node_features();
2159 long provided_init_features(byte[] their_node_id);
2161 public static native long LDKChannelMessageHandler_new(LDKChannelMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
2162 public static native long LDKChannelMessageHandler_get_MessageSendEventsProvider(long arg);
2163 // void ChannelMessageHandler_handle_open_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKOpenChannel *NONNULL_PTR msg
2164 public static native void ChannelMessageHandler_handle_open_channel(long this_arg, byte[] their_node_id, long msg);
2165 // void ChannelMessageHandler_handle_accept_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAcceptChannel *NONNULL_PTR msg
2166 public static native void ChannelMessageHandler_handle_accept_channel(long this_arg, byte[] their_node_id, long msg);
2167 // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg
2168 public static native void ChannelMessageHandler_handle_funding_created(long this_arg, byte[] their_node_id, long msg);
2169 // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg
2170 public static native void ChannelMessageHandler_handle_funding_signed(long this_arg, byte[] their_node_id, long msg);
2171 // void ChannelMessageHandler_handle_channel_ready LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReady *NONNULL_PTR msg
2172 public static native void ChannelMessageHandler_handle_channel_ready(long this_arg, byte[] their_node_id, long msg);
2173 // void ChannelMessageHandler_handle_shutdown LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKShutdown *NONNULL_PTR msg
2174 public static native void ChannelMessageHandler_handle_shutdown(long this_arg, byte[] their_node_id, long msg);
2175 // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg
2176 public static native void ChannelMessageHandler_handle_closing_signed(long this_arg, byte[] their_node_id, long msg);
2177 // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg
2178 public static native void ChannelMessageHandler_handle_update_add_htlc(long this_arg, byte[] their_node_id, long msg);
2179 // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg
2180 public static native void ChannelMessageHandler_handle_update_fulfill_htlc(long this_arg, byte[] their_node_id, long msg);
2181 // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg
2182 public static native void ChannelMessageHandler_handle_update_fail_htlc(long this_arg, byte[] their_node_id, long msg);
2183 // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg
2184 public static native void ChannelMessageHandler_handle_update_fail_malformed_htlc(long this_arg, byte[] their_node_id, long msg);
2185 // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg
2186 public static native void ChannelMessageHandler_handle_commitment_signed(long this_arg, byte[] their_node_id, long msg);
2187 // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg
2188 public static native void ChannelMessageHandler_handle_revoke_and_ack(long this_arg, byte[] their_node_id, long msg);
2189 // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg
2190 public static native void ChannelMessageHandler_handle_update_fee(long this_arg, byte[] their_node_id, long msg);
2191 // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg
2192 public static native void ChannelMessageHandler_handle_announcement_signatures(long this_arg, byte[] their_node_id, long msg);
2193 // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
2194 public static native void ChannelMessageHandler_peer_disconnected(long this_arg, byte[] their_node_id);
2195 // LDKCResult_NoneNoneZ ChannelMessageHandler_peer_connected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg, bool inbound
2196 public static native long ChannelMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long msg, boolean inbound);
2197 // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg
2198 public static native void ChannelMessageHandler_handle_channel_reestablish(long this_arg, byte[] their_node_id, long msg);
2199 // void ChannelMessageHandler_handle_channel_update LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelUpdate *NONNULL_PTR msg
2200 public static native void ChannelMessageHandler_handle_channel_update(long this_arg, byte[] their_node_id, long msg);
2201 // void ChannelMessageHandler_handle_error LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg
2202 public static native void ChannelMessageHandler_handle_error(long this_arg, byte[] their_node_id, long msg);
2203 // LDKNodeFeatures ChannelMessageHandler_provided_node_features LDKChannelMessageHandler *NONNULL_PTR this_arg
2204 public static native long ChannelMessageHandler_provided_node_features(long this_arg);
2205 // LDKInitFeatures ChannelMessageHandler_provided_init_features LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
2206 public static native long ChannelMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
2207 public interface LDKRoutingMessageHandler {
2208 long handle_node_announcement(long msg);
2209 long handle_channel_announcement(long msg);
2210 long handle_channel_update(long msg);
2211 long get_next_channel_announcement(long starting_point);
2212 long get_next_node_announcement(long starting_point);
2213 long peer_connected(byte[] their_node_id, long init, boolean inbound);
2214 long handle_reply_channel_range(byte[] their_node_id, long msg);
2215 long handle_reply_short_channel_ids_end(byte[] their_node_id, long msg);
2216 long handle_query_channel_range(byte[] their_node_id, long msg);
2217 long handle_query_short_channel_ids(byte[] their_node_id, long msg);
2218 boolean processing_queue_high();
2219 long provided_node_features();
2220 long provided_init_features(byte[] their_node_id);
2222 public static native long LDKRoutingMessageHandler_new(LDKRoutingMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
2223 public static native long LDKRoutingMessageHandler_get_MessageSendEventsProvider(long arg);
2224 // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg
2225 public static native long RoutingMessageHandler_handle_node_announcement(long this_arg, long msg);
2226 // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg
2227 public static native long RoutingMessageHandler_handle_channel_announcement(long this_arg, long msg);
2228 // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg
2229 public static native long RoutingMessageHandler_handle_channel_update(long this_arg, long msg);
2230 // LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, uint64_t starting_point
2231 public static native long RoutingMessageHandler_get_next_channel_announcement(long this_arg, long starting_point);
2232 // LDKNodeAnnouncement RoutingMessageHandler_get_next_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKNodeId starting_point
2233 public static native long RoutingMessageHandler_get_next_node_announcement(long this_arg, long starting_point);
2234 // LDKCResult_NoneNoneZ RoutingMessageHandler_peer_connected LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init, bool inbound
2235 public static native long RoutingMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long init, boolean inbound);
2236 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg
2237 public static native long RoutingMessageHandler_handle_reply_channel_range(long this_arg, byte[] their_node_id, long msg);
2238 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg
2239 public static native long RoutingMessageHandler_handle_reply_short_channel_ids_end(long this_arg, byte[] their_node_id, long msg);
2240 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg
2241 public static native long RoutingMessageHandler_handle_query_channel_range(long this_arg, byte[] their_node_id, long msg);
2242 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg
2243 public static native long RoutingMessageHandler_handle_query_short_channel_ids(long this_arg, byte[] their_node_id, long msg);
2244 // bool RoutingMessageHandler_processing_queue_high LDKRoutingMessageHandler *NONNULL_PTR this_arg
2245 public static native boolean RoutingMessageHandler_processing_queue_high(long this_arg);
2246 // LDKNodeFeatures RoutingMessageHandler_provided_node_features LDKRoutingMessageHandler *NONNULL_PTR this_arg
2247 public static native long RoutingMessageHandler_provided_node_features(long this_arg);
2248 // LDKInitFeatures RoutingMessageHandler_provided_init_features LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
2249 public static native long RoutingMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
2250 public interface LDKOnionMessageHandler {
2251 void handle_onion_message(byte[] peer_node_id, long msg);
2252 long peer_connected(byte[] their_node_id, long init, boolean inbound);
2253 void peer_disconnected(byte[] their_node_id);
2254 long provided_node_features();
2255 long provided_init_features(byte[] their_node_id);
2257 public static native long LDKOnionMessageHandler_new(LDKOnionMessageHandler impl, LDKOnionMessageProvider OnionMessageProvider);
2258 public static native long LDKOnionMessageHandler_get_OnionMessageProvider(long arg);
2259 // void OnionMessageHandler_handle_onion_message LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id, const struct LDKOnionMessage *NONNULL_PTR msg
2260 public static native void OnionMessageHandler_handle_onion_message(long this_arg, byte[] peer_node_id, long msg);
2261 // LDKCResult_NoneNoneZ OnionMessageHandler_peer_connected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init, bool inbound
2262 public static native long OnionMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long init, boolean inbound);
2263 // void OnionMessageHandler_peer_disconnected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
2264 public static native void OnionMessageHandler_peer_disconnected(long this_arg, byte[] their_node_id);
2265 // LDKNodeFeatures OnionMessageHandler_provided_node_features LDKOnionMessageHandler *NONNULL_PTR this_arg
2266 public static native long OnionMessageHandler_provided_node_features(long this_arg);
2267 // LDKInitFeatures OnionMessageHandler_provided_init_features LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
2268 public static native long OnionMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
2269 public interface LDKCustomMessageReader {
2270 long read(short message_type, byte[] buffer);
2272 public static native long LDKCustomMessageReader_new(LDKCustomMessageReader impl);
2273 // LDKCResult_COption_TypeZDecodeErrorZ CustomMessageReader_read LDKCustomMessageReader *NONNULL_PTR this_arg, uint16_t message_type, struct LDKu8slice buffer
2274 public static native long CustomMessageReader_read(long this_arg, short message_type, byte[] buffer);
2275 public interface LDKCustomMessageHandler {
2276 long handle_custom_message(long msg, byte[] sender_node_id);
2277 long[] get_and_clear_pending_msg();
2279 public static native long LDKCustomMessageHandler_new(LDKCustomMessageHandler impl, LDKCustomMessageReader CustomMessageReader);
2280 public static native long LDKCustomMessageHandler_get_CustomMessageReader(long arg);
2281 // LDKCResult_NoneLightningErrorZ CustomMessageHandler_handle_custom_message LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKType msg, struct LDKPublicKey sender_node_id
2282 public static native long CustomMessageHandler_handle_custom_message(long this_arg, long msg, byte[] sender_node_id);
2283 // LDKCVec_C2Tuple_PublicKeyTypeZZ CustomMessageHandler_get_and_clear_pending_msg LDKCustomMessageHandler *NONNULL_PTR this_arg
2284 public static native long[] CustomMessageHandler_get_and_clear_pending_msg(long this_arg);
2285 public interface LDKCustomOnionMessageHandler {
2286 void handle_custom_message(long msg);
2287 long read_custom_message(long message_type, byte[] buffer);
2289 public static native long LDKCustomOnionMessageHandler_new(LDKCustomOnionMessageHandler impl);
2290 // void CustomOnionMessageHandler_handle_custom_message LDKCustomOnionMessageHandler *NONNULL_PTR this_arg, struct LDKCustomOnionMessageContents msg
2291 public static native void CustomOnionMessageHandler_handle_custom_message(long this_arg, long msg);
2292 // LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ CustomOnionMessageHandler_read_custom_message LDKCustomOnionMessageHandler *NONNULL_PTR this_arg, uint64_t message_type, struct LDKu8slice buffer
2293 public static native long CustomOnionMessageHandler_read_custom_message(long this_arg, long message_type, byte[] buffer);
2294 public interface LDKSocketDescriptor {
2295 long send_data(byte[] data, boolean resume_read);
2296 void disconnect_socket();
2297 boolean eq(long other_arg);
2300 public static native long LDKSocketDescriptor_new(LDKSocketDescriptor impl);
2301 // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor *NONNULL_PTR this_arg, struct LDKu8slice data, bool resume_read
2302 public static native long SocketDescriptor_send_data(long this_arg, byte[] data, boolean resume_read);
2303 // void SocketDescriptor_disconnect_socket LDKSocketDescriptor *NONNULL_PTR this_arg
2304 public static native void SocketDescriptor_disconnect_socket(long this_arg);
2305 // uint64_t SocketDescriptor_hash LDKSocketDescriptor *NONNULL_PTR this_arg
2306 public static native long SocketDescriptor_hash(long this_arg);
2307 public static class LDKEffectiveCapacity {
2308 private LDKEffectiveCapacity() {}
2309 public final static class ExactLiquidity extends LDKEffectiveCapacity {
2310 public long liquidity_msat;
2311 ExactLiquidity(long liquidity_msat) { this.liquidity_msat = liquidity_msat; }
2313 public final static class MaximumHTLC extends LDKEffectiveCapacity {
2314 public long amount_msat;
2315 MaximumHTLC(long amount_msat) { this.amount_msat = amount_msat; }
2317 public final static class Total extends LDKEffectiveCapacity {
2318 public long capacity_msat;
2319 public long htlc_maximum_msat;
2320 Total(long capacity_msat, long htlc_maximum_msat) { this.capacity_msat = capacity_msat; this.htlc_maximum_msat = htlc_maximum_msat; }
2322 public final static class Infinite extends LDKEffectiveCapacity {
2325 public final static class Unknown extends LDKEffectiveCapacity {
2328 static native void init();
2330 static { LDKEffectiveCapacity.init(); }
2331 public static native LDKEffectiveCapacity LDKEffectiveCapacity_ref_from_ptr(long ptr);
2332 public static class LDKDestination {
2333 private LDKDestination() {}
2334 public final static class Node extends LDKDestination {
2336 Node(byte[] node) { this.node = node; }
2338 public final static class BlindedPath extends LDKDestination {
2339 public long blinded_path;
2340 BlindedPath(long blinded_path) { this.blinded_path = blinded_path; }
2342 static native void init();
2344 static { LDKDestination.init(); }
2345 public static native LDKDestination LDKDestination_ref_from_ptr(long ptr);
2346 public static class LDKOnionMessageContents {
2347 private LDKOnionMessageContents() {}
2348 public final static class Custom extends LDKOnionMessageContents {
2350 Custom(long custom) { this.custom = custom; }
2352 static native void init();
2354 static { LDKOnionMessageContents.init(); }
2355 public static native LDKOnionMessageContents LDKOnionMessageContents_ref_from_ptr(long ptr);
2356 public static class LDKGossipSync {
2357 private LDKGossipSync() {}
2358 public final static class P2P extends LDKGossipSync {
2360 P2P(long p2p) { this.p2p = p2p; }
2362 public final static class Rapid extends LDKGossipSync {
2364 Rapid(long rapid) { this.rapid = rapid; }
2366 public final static class None extends LDKGossipSync {
2369 static native void init();
2371 static { LDKGossipSync.init(); }
2372 public static native LDKGossipSync LDKGossipSync_ref_from_ptr(long ptr);
2373 public static class LDKFallback {
2374 private LDKFallback() {}
2375 public final static class SegWitProgram extends LDKFallback {
2376 public byte version;
2377 public byte[] program;
2378 SegWitProgram(byte version, byte[] program) { this.version = version; this.program = program; }
2380 public final static class PubKeyHash extends LDKFallback {
2381 public byte[] pub_key_hash;
2382 PubKeyHash(byte[] pub_key_hash) { this.pub_key_hash = pub_key_hash; }
2384 public final static class ScriptHash extends LDKFallback {
2385 public byte[] script_hash;
2386 ScriptHash(byte[] script_hash) { this.script_hash = script_hash; }
2388 static native void init();
2390 static { LDKFallback.init(); }
2391 public static native LDKFallback LDKFallback_ref_from_ptr(long ptr);
2392 // struct LDKStr _ldk_get_compiled_version(void);
2393 public static native String _ldk_get_compiled_version();
2394 // struct LDKStr _ldk_c_bindings_get_compiled_version(void);
2395 public static native String _ldk_c_bindings_get_compiled_version();
2396 // struct LDKSixteenBytes U128_le_bytes(struct LDKU128 val);
2397 public static native byte[] U128_le_bytes(byte[] val);
2398 // struct LDKU128 U128_new(struct LDKSixteenBytes le_bytes);
2399 public static native byte[] U128_new(byte[] le_bytes);
2400 // struct LDKBigEndianScalar BigEndianScalar_new(struct LDKThirtyTwoBytes big_endian_bytes);
2401 public static native long BigEndianScalar_new(byte[] big_endian_bytes);
2402 // uint64_t Bech32Error_clone_ptr(LDKBech32Error *NONNULL_PTR arg);
2403 public static native long Bech32Error_clone_ptr(long arg);
2404 // struct LDKBech32Error Bech32Error_clone(const struct LDKBech32Error *NONNULL_PTR orig);
2405 public static native long Bech32Error_clone(long orig);
2406 // void Bech32Error_free(struct LDKBech32Error o);
2407 public static native void Bech32Error_free(long o);
2408 // void Transaction_free(struct LDKTransaction _res);
2409 public static native void Transaction_free(byte[] _res);
2410 // void Witness_free(struct LDKWitness _res);
2411 public static native void Witness_free(byte[] _res);
2412 // struct LDKTxOut TxOut_new(struct LDKCVec_u8Z script_pubkey, uint64_t value);
2413 public static native long TxOut_new(byte[] script_pubkey, long value);
2414 // void TxOut_free(struct LDKTxOut _res);
2415 public static native void TxOut_free(long _res);
2416 // uint64_t TxOut_clone_ptr(LDKTxOut *NONNULL_PTR arg);
2417 public static native long TxOut_clone_ptr(long arg);
2418 // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
2419 public static native long TxOut_clone(long orig);
2420 // void Str_free(struct LDKStr _res);
2421 public static native void Str_free(String _res);
2422 // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
2423 public static native long CResult_NoneAPIErrorZ_ok();
2424 // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
2425 public static native long CResult_NoneAPIErrorZ_err(long e);
2426 // bool CResult_NoneAPIErrorZ_is_ok(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR o);
2427 public static native boolean CResult_NoneAPIErrorZ_is_ok(long o);
2428 // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
2429 public static native void CResult_NoneAPIErrorZ_free(long _res);
2430 // uint64_t CResult_NoneAPIErrorZ_clone_ptr(LDKCResult_NoneAPIErrorZ *NONNULL_PTR arg);
2431 public static native long CResult_NoneAPIErrorZ_clone_ptr(long arg);
2432 // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig);
2433 public static native long CResult_NoneAPIErrorZ_clone(long orig);
2434 // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res);
2435 public static native void CVec_CResult_NoneAPIErrorZZ_free(long[] _res);
2436 // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res);
2437 public static native void CVec_APIErrorZ_free(long[] _res);
2438 // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_some(enum LDKHTLCClaim o);
2439 public static native long COption_HTLCClaimZ_some(HTLCClaim o);
2440 // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_none(void);
2441 public static native long COption_HTLCClaimZ_none();
2442 // void COption_HTLCClaimZ_free(struct LDKCOption_HTLCClaimZ _res);
2443 public static native void COption_HTLCClaimZ_free(long _res);
2444 // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_ok(void);
2445 public static native long CResult_NoneNoneZ_ok();
2446 // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_err(void);
2447 public static native long CResult_NoneNoneZ_err();
2448 // bool CResult_NoneNoneZ_is_ok(const struct LDKCResult_NoneNoneZ *NONNULL_PTR o);
2449 public static native boolean CResult_NoneNoneZ_is_ok(long o);
2450 // void CResult_NoneNoneZ_free(struct LDKCResult_NoneNoneZ _res);
2451 public static native void CResult_NoneNoneZ_free(long _res);
2452 // uint64_t CResult_NoneNoneZ_clone_ptr(LDKCResult_NoneNoneZ *NONNULL_PTR arg);
2453 public static native long CResult_NoneNoneZ_clone_ptr(long arg);
2454 // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_NoneNoneZ *NONNULL_PTR orig);
2455 public static native long CResult_NoneNoneZ_clone(long orig);
2456 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o);
2457 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(long o);
2458 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e);
2459 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(long e);
2460 // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o);
2461 public static native boolean CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(long o);
2462 // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res);
2463 public static native void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(long _res);
2464 // uint64_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg);
2465 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(long arg);
2466 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig);
2467 public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(long orig);
2468 // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o);
2469 public static native long CResult_TxCreationKeysDecodeErrorZ_ok(long o);
2470 // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e);
2471 public static native long CResult_TxCreationKeysDecodeErrorZ_err(long e);
2472 // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o);
2473 public static native boolean CResult_TxCreationKeysDecodeErrorZ_is_ok(long o);
2474 // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
2475 public static native void CResult_TxCreationKeysDecodeErrorZ_free(long _res);
2476 // uint64_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg);
2477 public static native long CResult_TxCreationKeysDecodeErrorZ_clone_ptr(long arg);
2478 // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig);
2479 public static native long CResult_TxCreationKeysDecodeErrorZ_clone(long orig);
2480 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o);
2481 public static native long CResult_ChannelPublicKeysDecodeErrorZ_ok(long o);
2482 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e);
2483 public static native long CResult_ChannelPublicKeysDecodeErrorZ_err(long e);
2484 // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o);
2485 public static native boolean CResult_ChannelPublicKeysDecodeErrorZ_is_ok(long o);
2486 // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
2487 public static native void CResult_ChannelPublicKeysDecodeErrorZ_free(long _res);
2488 // uint64_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg);
2489 public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(long arg);
2490 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
2491 public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone(long orig);
2492 // struct LDKCOption_u32Z COption_u32Z_some(uint32_t o);
2493 public static native long COption_u32Z_some(int o);
2494 // struct LDKCOption_u32Z COption_u32Z_none(void);
2495 public static native long COption_u32Z_none();
2496 // void COption_u32Z_free(struct LDKCOption_u32Z _res);
2497 public static native void COption_u32Z_free(long _res);
2498 // uint64_t COption_u32Z_clone_ptr(LDKCOption_u32Z *NONNULL_PTR arg);
2499 public static native long COption_u32Z_clone_ptr(long arg);
2500 // struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig);
2501 public static native long COption_u32Z_clone(long orig);
2502 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o);
2503 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(long o);
2504 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e);
2505 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_err(long e);
2506 // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o);
2507 public static native boolean CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(long o);
2508 // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
2509 public static native void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(long _res);
2510 // uint64_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg);
2511 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(long arg);
2512 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig);
2513 public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(long orig);
2514 // enum LDKCOption_NoneZ COption_NoneZ_some(void);
2515 public static native COption_NoneZ COption_NoneZ_some();
2516 // enum LDKCOption_NoneZ COption_NoneZ_none(void);
2517 public static native COption_NoneZ COption_NoneZ_none();
2518 // void COption_NoneZ_free(enum LDKCOption_NoneZ _res);
2519 public static native void COption_NoneZ_free(COption_NoneZ _res);
2520 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o);
2521 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(long o);
2522 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
2523 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(long e);
2524 // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
2525 public static native boolean CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(long o);
2526 // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
2527 public static native void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(long _res);
2528 // uint64_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
2529 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(long arg);
2530 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
2531 public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(long orig);
2532 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o);
2533 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_ok(long o);
2534 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
2535 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_err(long e);
2536 // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
2537 public static native boolean CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(long o);
2538 // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
2539 public static native void CResult_ChannelTransactionParametersDecodeErrorZ_free(long _res);
2540 // uint64_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
2541 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(long arg);
2542 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
2543 public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone(long orig);
2544 // void CVec_SignatureZ_free(struct LDKCVec_SignatureZ _res);
2545 public static native void CVec_SignatureZ_free(byte[][] _res);
2546 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o);
2547 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_ok(long o);
2548 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
2549 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_err(long e);
2550 // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
2551 public static native boolean CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(long o);
2552 // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
2553 public static native void CResult_HolderCommitmentTransactionDecodeErrorZ_free(long _res);
2554 // uint64_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
2555 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
2556 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
2557 public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone(long orig);
2558 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o);
2559 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(long o);
2560 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
2561 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_err(long e);
2562 // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
2563 public static native boolean CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(long o);
2564 // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
2565 public static native void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(long _res);
2566 // uint64_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
2567 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
2568 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
2569 public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(long orig);
2570 // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o);
2571 public static native long CResult_TrustedClosingTransactionNoneZ_ok(long o);
2572 // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void);
2573 public static native long CResult_TrustedClosingTransactionNoneZ_err();
2574 // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o);
2575 public static native boolean CResult_TrustedClosingTransactionNoneZ_is_ok(long o);
2576 // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res);
2577 public static native void CResult_TrustedClosingTransactionNoneZ_free(long _res);
2578 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o);
2579 public static native long CResult_CommitmentTransactionDecodeErrorZ_ok(long o);
2580 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
2581 public static native long CResult_CommitmentTransactionDecodeErrorZ_err(long e);
2582 // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
2583 public static native boolean CResult_CommitmentTransactionDecodeErrorZ_is_ok(long o);
2584 // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
2585 public static native void CResult_CommitmentTransactionDecodeErrorZ_free(long _res);
2586 // uint64_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
2587 public static native long CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
2588 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
2589 public static native long CResult_CommitmentTransactionDecodeErrorZ_clone(long orig);
2590 // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
2591 public static native long CResult_TrustedCommitmentTransactionNoneZ_ok(long o);
2592 // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
2593 public static native long CResult_TrustedCommitmentTransactionNoneZ_err();
2594 // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o);
2595 public static native boolean CResult_TrustedCommitmentTransactionNoneZ_is_ok(long o);
2596 // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
2597 public static native void CResult_TrustedCommitmentTransactionNoneZ_free(long _res);
2598 // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_ok(struct LDKCVec_SignatureZ o);
2599 public static native long CResult_CVec_SignatureZNoneZ_ok(byte[][] o);
2600 // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_err(void);
2601 public static native long CResult_CVec_SignatureZNoneZ_err();
2602 // bool CResult_CVec_SignatureZNoneZ_is_ok(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR o);
2603 public static native boolean CResult_CVec_SignatureZNoneZ_is_ok(long o);
2604 // void CResult_CVec_SignatureZNoneZ_free(struct LDKCResult_CVec_SignatureZNoneZ _res);
2605 public static native void CResult_CVec_SignatureZNoneZ_free(long _res);
2606 // uint64_t CResult_CVec_SignatureZNoneZ_clone_ptr(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR arg);
2607 public static native long CResult_CVec_SignatureZNoneZ_clone_ptr(long arg);
2608 // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_clone(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR orig);
2609 public static native long CResult_CVec_SignatureZNoneZ_clone(long orig);
2610 // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o);
2611 public static native long CResult_ShutdownScriptDecodeErrorZ_ok(long o);
2612 // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e);
2613 public static native long CResult_ShutdownScriptDecodeErrorZ_err(long e);
2614 // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o);
2615 public static native boolean CResult_ShutdownScriptDecodeErrorZ_is_ok(long o);
2616 // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res);
2617 public static native void CResult_ShutdownScriptDecodeErrorZ_free(long _res);
2618 // uint64_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg);
2619 public static native long CResult_ShutdownScriptDecodeErrorZ_clone_ptr(long arg);
2620 // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig);
2621 public static native long CResult_ShutdownScriptDecodeErrorZ_clone(long orig);
2622 // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o);
2623 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_ok(long o);
2624 // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e);
2625 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_err(long e);
2626 // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o);
2627 public static native boolean CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(long o);
2628 // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res);
2629 public static native void CResult_ShutdownScriptInvalidShutdownScriptZ_free(long _res);
2630 // uint64_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg);
2631 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(long arg);
2632 // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig);
2633 public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_clone(long orig);
2634 // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
2635 public static native void CVec_PublicKeyZ_free(byte[][] _res);
2636 // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_ok(struct LDKBlindedPath o);
2637 public static native long CResult_BlindedPathNoneZ_ok(long o);
2638 // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_err(void);
2639 public static native long CResult_BlindedPathNoneZ_err();
2640 // bool CResult_BlindedPathNoneZ_is_ok(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR o);
2641 public static native boolean CResult_BlindedPathNoneZ_is_ok(long o);
2642 // void CResult_BlindedPathNoneZ_free(struct LDKCResult_BlindedPathNoneZ _res);
2643 public static native void CResult_BlindedPathNoneZ_free(long _res);
2644 // uint64_t CResult_BlindedPathNoneZ_clone_ptr(LDKCResult_BlindedPathNoneZ *NONNULL_PTR arg);
2645 public static native long CResult_BlindedPathNoneZ_clone_ptr(long arg);
2646 // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_clone(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR orig);
2647 public static native long CResult_BlindedPathNoneZ_clone(long orig);
2648 // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_ok(struct LDKBlindedPath o);
2649 public static native long CResult_BlindedPathDecodeErrorZ_ok(long o);
2650 // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_err(struct LDKDecodeError e);
2651 public static native long CResult_BlindedPathDecodeErrorZ_err(long e);
2652 // bool CResult_BlindedPathDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR o);
2653 public static native boolean CResult_BlindedPathDecodeErrorZ_is_ok(long o);
2654 // void CResult_BlindedPathDecodeErrorZ_free(struct LDKCResult_BlindedPathDecodeErrorZ _res);
2655 public static native void CResult_BlindedPathDecodeErrorZ_free(long _res);
2656 // uint64_t CResult_BlindedPathDecodeErrorZ_clone_ptr(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR arg);
2657 public static native long CResult_BlindedPathDecodeErrorZ_clone_ptr(long arg);
2658 // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_clone(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR orig);
2659 public static native long CResult_BlindedPathDecodeErrorZ_clone(long orig);
2660 // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_ok(struct LDKBlindedHop o);
2661 public static native long CResult_BlindedHopDecodeErrorZ_ok(long o);
2662 // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_err(struct LDKDecodeError e);
2663 public static native long CResult_BlindedHopDecodeErrorZ_err(long e);
2664 // bool CResult_BlindedHopDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR o);
2665 public static native boolean CResult_BlindedHopDecodeErrorZ_is_ok(long o);
2666 // void CResult_BlindedHopDecodeErrorZ_free(struct LDKCResult_BlindedHopDecodeErrorZ _res);
2667 public static native void CResult_BlindedHopDecodeErrorZ_free(long _res);
2668 // uint64_t CResult_BlindedHopDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR arg);
2669 public static native long CResult_BlindedHopDecodeErrorZ_clone_ptr(long arg);
2670 // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_clone(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR orig);
2671 public static native long CResult_BlindedHopDecodeErrorZ_clone(long orig);
2672 // struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_some(struct LDKWriteableScore o);
2673 public static native long COption_WriteableScoreZ_some(long o);
2674 // struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_none(void);
2675 public static native long COption_WriteableScoreZ_none();
2676 // void COption_WriteableScoreZ_free(struct LDKCOption_WriteableScoreZ _res);
2677 public static native void COption_WriteableScoreZ_free(long _res);
2678 // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_ok(void);
2679 public static native long CResult_NoneErrorZ_ok();
2680 // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_err(enum LDKIOError e);
2681 public static native long CResult_NoneErrorZ_err(IOError e);
2682 // bool CResult_NoneErrorZ_is_ok(const struct LDKCResult_NoneErrorZ *NONNULL_PTR o);
2683 public static native boolean CResult_NoneErrorZ_is_ok(long o);
2684 // void CResult_NoneErrorZ_free(struct LDKCResult_NoneErrorZ _res);
2685 public static native void CResult_NoneErrorZ_free(long _res);
2686 // uint64_t CResult_NoneErrorZ_clone_ptr(LDKCResult_NoneErrorZ *NONNULL_PTR arg);
2687 public static native long CResult_NoneErrorZ_clone_ptr(long arg);
2688 // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_clone(const struct LDKCResult_NoneErrorZ *NONNULL_PTR orig);
2689 public static native long CResult_NoneErrorZ_clone(long orig);
2690 // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
2691 public static native void CVec_ChannelDetailsZ_free(long[] _res);
2692 // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
2693 public static native long CResult_RouteLightningErrorZ_ok(long o);
2694 // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
2695 public static native long CResult_RouteLightningErrorZ_err(long e);
2696 // bool CResult_RouteLightningErrorZ_is_ok(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR o);
2697 public static native boolean CResult_RouteLightningErrorZ_is_ok(long o);
2698 // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
2699 public static native void CResult_RouteLightningErrorZ_free(long _res);
2700 // uint64_t CResult_RouteLightningErrorZ_clone_ptr(LDKCResult_RouteLightningErrorZ *NONNULL_PTR arg);
2701 public static native long CResult_RouteLightningErrorZ_clone_ptr(long arg);
2702 // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
2703 public static native long CResult_RouteLightningErrorZ_clone(long orig);
2704 // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
2705 public static native void CVec_RouteHopZ_free(long[] _res);
2706 // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o);
2707 public static native long COption_u64Z_some(long o);
2708 // struct LDKCOption_u64Z COption_u64Z_none(void);
2709 public static native long COption_u64Z_none();
2710 // void COption_u64Z_free(struct LDKCOption_u64Z _res);
2711 public static native void COption_u64Z_free(long _res);
2712 // uint64_t COption_u64Z_clone_ptr(LDKCOption_u64Z *NONNULL_PTR arg);
2713 public static native long COption_u64Z_clone_ptr(long arg);
2714 // struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig);
2715 public static native long COption_u64Z_clone(long orig);
2716 // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_ok(struct LDKInFlightHtlcs o);
2717 public static native long CResult_InFlightHtlcsDecodeErrorZ_ok(long o);
2718 // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_err(struct LDKDecodeError e);
2719 public static native long CResult_InFlightHtlcsDecodeErrorZ_err(long e);
2720 // bool CResult_InFlightHtlcsDecodeErrorZ_is_ok(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR o);
2721 public static native boolean CResult_InFlightHtlcsDecodeErrorZ_is_ok(long o);
2722 // void CResult_InFlightHtlcsDecodeErrorZ_free(struct LDKCResult_InFlightHtlcsDecodeErrorZ _res);
2723 public static native void CResult_InFlightHtlcsDecodeErrorZ_free(long _res);
2724 // uint64_t CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR arg);
2725 public static native long CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(long arg);
2726 // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_clone(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR orig);
2727 public static native long CResult_InFlightHtlcsDecodeErrorZ_clone(long orig);
2728 // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_ok(struct LDKRouteHop o);
2729 public static native long CResult_RouteHopDecodeErrorZ_ok(long o);
2730 // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_err(struct LDKDecodeError e);
2731 public static native long CResult_RouteHopDecodeErrorZ_err(long e);
2732 // bool CResult_RouteHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR o);
2733 public static native boolean CResult_RouteHopDecodeErrorZ_is_ok(long o);
2734 // void CResult_RouteHopDecodeErrorZ_free(struct LDKCResult_RouteHopDecodeErrorZ _res);
2735 public static native void CResult_RouteHopDecodeErrorZ_free(long _res);
2736 // uint64_t CResult_RouteHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR arg);
2737 public static native long CResult_RouteHopDecodeErrorZ_clone_ptr(long arg);
2738 // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_clone(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR orig);
2739 public static native long CResult_RouteHopDecodeErrorZ_clone(long orig);
2740 // void CVec_CVec_RouteHopZZ_free(struct LDKCVec_CVec_RouteHopZZ _res);
2741 public static native void CVec_CVec_RouteHopZZ_free(long[][] _res);
2742 // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
2743 public static native long CResult_RouteDecodeErrorZ_ok(long o);
2744 // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
2745 public static native long CResult_RouteDecodeErrorZ_err(long e);
2746 // bool CResult_RouteDecodeErrorZ_is_ok(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR o);
2747 public static native boolean CResult_RouteDecodeErrorZ_is_ok(long o);
2748 // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
2749 public static native void CResult_RouteDecodeErrorZ_free(long _res);
2750 // uint64_t CResult_RouteDecodeErrorZ_clone_ptr(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR arg);
2751 public static native long CResult_RouteDecodeErrorZ_clone_ptr(long arg);
2752 // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
2753 public static native long CResult_RouteDecodeErrorZ_clone(long orig);
2754 // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_ok(struct LDKRouteParameters o);
2755 public static native long CResult_RouteParametersDecodeErrorZ_ok(long o);
2756 // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_err(struct LDKDecodeError e);
2757 public static native long CResult_RouteParametersDecodeErrorZ_err(long e);
2758 // bool CResult_RouteParametersDecodeErrorZ_is_ok(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR o);
2759 public static native boolean CResult_RouteParametersDecodeErrorZ_is_ok(long o);
2760 // void CResult_RouteParametersDecodeErrorZ_free(struct LDKCResult_RouteParametersDecodeErrorZ _res);
2761 public static native void CResult_RouteParametersDecodeErrorZ_free(long _res);
2762 // uint64_t CResult_RouteParametersDecodeErrorZ_clone_ptr(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR arg);
2763 public static native long CResult_RouteParametersDecodeErrorZ_clone_ptr(long arg);
2764 // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_clone(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR orig);
2765 public static native long CResult_RouteParametersDecodeErrorZ_clone(long orig);
2766 // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
2767 public static native void CVec_RouteHintZ_free(long[] _res);
2768 // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
2769 public static native void CVec_u64Z_free(long[] _res);
2770 // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_ok(struct LDKPaymentParameters o);
2771 public static native long CResult_PaymentParametersDecodeErrorZ_ok(long o);
2772 // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_err(struct LDKDecodeError e);
2773 public static native long CResult_PaymentParametersDecodeErrorZ_err(long e);
2774 // bool CResult_PaymentParametersDecodeErrorZ_is_ok(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR o);
2775 public static native boolean CResult_PaymentParametersDecodeErrorZ_is_ok(long o);
2776 // void CResult_PaymentParametersDecodeErrorZ_free(struct LDKCResult_PaymentParametersDecodeErrorZ _res);
2777 public static native void CResult_PaymentParametersDecodeErrorZ_free(long _res);
2778 // uint64_t CResult_PaymentParametersDecodeErrorZ_clone_ptr(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR arg);
2779 public static native long CResult_PaymentParametersDecodeErrorZ_clone_ptr(long arg);
2780 // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_clone(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR orig);
2781 public static native long CResult_PaymentParametersDecodeErrorZ_clone(long orig);
2782 // void CVec_RouteHintHopZ_free(struct LDKCVec_RouteHintHopZ _res);
2783 public static native void CVec_RouteHintHopZ_free(long[] _res);
2784 // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_ok(struct LDKRouteHint o);
2785 public static native long CResult_RouteHintDecodeErrorZ_ok(long o);
2786 // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_err(struct LDKDecodeError e);
2787 public static native long CResult_RouteHintDecodeErrorZ_err(long e);
2788 // bool CResult_RouteHintDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR o);
2789 public static native boolean CResult_RouteHintDecodeErrorZ_is_ok(long o);
2790 // void CResult_RouteHintDecodeErrorZ_free(struct LDKCResult_RouteHintDecodeErrorZ _res);
2791 public static native void CResult_RouteHintDecodeErrorZ_free(long _res);
2792 // uint64_t CResult_RouteHintDecodeErrorZ_clone_ptr(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR arg);
2793 public static native long CResult_RouteHintDecodeErrorZ_clone_ptr(long arg);
2794 // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_clone(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR orig);
2795 public static native long CResult_RouteHintDecodeErrorZ_clone(long orig);
2796 // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_ok(struct LDKRouteHintHop o);
2797 public static native long CResult_RouteHintHopDecodeErrorZ_ok(long o);
2798 // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_err(struct LDKDecodeError e);
2799 public static native long CResult_RouteHintHopDecodeErrorZ_err(long e);
2800 // bool CResult_RouteHintHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR o);
2801 public static native boolean CResult_RouteHintHopDecodeErrorZ_is_ok(long o);
2802 // void CResult_RouteHintHopDecodeErrorZ_free(struct LDKCResult_RouteHintHopDecodeErrorZ _res);
2803 public static native void CResult_RouteHintHopDecodeErrorZ_free(long _res);
2804 // uint64_t CResult_RouteHintHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR arg);
2805 public static native long CResult_RouteHintHopDecodeErrorZ_clone_ptr(long arg);
2806 // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_clone(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR orig);
2807 public static native long CResult_RouteHintHopDecodeErrorZ_clone(long orig);
2808 // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_ok(struct LDKPaymentPurpose o);
2809 public static native long CResult_PaymentPurposeDecodeErrorZ_ok(long o);
2810 // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_err(struct LDKDecodeError e);
2811 public static native long CResult_PaymentPurposeDecodeErrorZ_err(long e);
2812 // bool CResult_PaymentPurposeDecodeErrorZ_is_ok(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR o);
2813 public static native boolean CResult_PaymentPurposeDecodeErrorZ_is_ok(long o);
2814 // void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDecodeErrorZ _res);
2815 public static native void CResult_PaymentPurposeDecodeErrorZ_free(long _res);
2816 // uint64_t CResult_PaymentPurposeDecodeErrorZ_clone_ptr(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR arg);
2817 public static native long CResult_PaymentPurposeDecodeErrorZ_clone_ptr(long arg);
2818 // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig);
2819 public static native long CResult_PaymentPurposeDecodeErrorZ_clone(long orig);
2820 // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_some(struct LDKNetworkUpdate o);
2821 public static native long COption_NetworkUpdateZ_some(long o);
2822 // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_none(void);
2823 public static native long COption_NetworkUpdateZ_none();
2824 // void COption_NetworkUpdateZ_free(struct LDKCOption_NetworkUpdateZ _res);
2825 public static native void COption_NetworkUpdateZ_free(long _res);
2826 // uint64_t COption_NetworkUpdateZ_clone_ptr(LDKCOption_NetworkUpdateZ *NONNULL_PTR arg);
2827 public static native long COption_NetworkUpdateZ_clone_ptr(long arg);
2828 // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_clone(const struct LDKCOption_NetworkUpdateZ *NONNULL_PTR orig);
2829 public static native long COption_NetworkUpdateZ_clone(long orig);
2830 // struct LDKCOption_PathFailureZ COption_PathFailureZ_some(struct LDKPathFailure o);
2831 public static native long COption_PathFailureZ_some(long o);
2832 // struct LDKCOption_PathFailureZ COption_PathFailureZ_none(void);
2833 public static native long COption_PathFailureZ_none();
2834 // void COption_PathFailureZ_free(struct LDKCOption_PathFailureZ _res);
2835 public static native void COption_PathFailureZ_free(long _res);
2836 // uint64_t COption_PathFailureZ_clone_ptr(LDKCOption_PathFailureZ *NONNULL_PTR arg);
2837 public static native long COption_PathFailureZ_clone_ptr(long arg);
2838 // struct LDKCOption_PathFailureZ COption_PathFailureZ_clone(const struct LDKCOption_PathFailureZ *NONNULL_PTR orig);
2839 public static native long COption_PathFailureZ_clone(long orig);
2840 // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_ok(struct LDKCOption_PathFailureZ o);
2841 public static native long CResult_COption_PathFailureZDecodeErrorZ_ok(long o);
2842 // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_err(struct LDKDecodeError e);
2843 public static native long CResult_COption_PathFailureZDecodeErrorZ_err(long e);
2844 // bool CResult_COption_PathFailureZDecodeErrorZ_is_ok(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR o);
2845 public static native boolean CResult_COption_PathFailureZDecodeErrorZ_is_ok(long o);
2846 // void CResult_COption_PathFailureZDecodeErrorZ_free(struct LDKCResult_COption_PathFailureZDecodeErrorZ _res);
2847 public static native void CResult_COption_PathFailureZDecodeErrorZ_free(long _res);
2848 // uint64_t CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR arg);
2849 public static native long CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(long arg);
2850 // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_clone(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR orig);
2851 public static native long CResult_COption_PathFailureZDecodeErrorZ_clone(long orig);
2852 // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o);
2853 public static native long COption_ClosureReasonZ_some(long o);
2854 // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void);
2855 public static native long COption_ClosureReasonZ_none();
2856 // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res);
2857 public static native void COption_ClosureReasonZ_free(long _res);
2858 // uint64_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg);
2859 public static native long COption_ClosureReasonZ_clone_ptr(long arg);
2860 // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig);
2861 public static native long COption_ClosureReasonZ_clone(long orig);
2862 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o);
2863 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_ok(long o);
2864 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e);
2865 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_err(long e);
2866 // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o);
2867 public static native boolean CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(long o);
2868 // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res);
2869 public static native void CResult_COption_ClosureReasonZDecodeErrorZ_free(long _res);
2870 // uint64_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg);
2871 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(long arg);
2872 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig);
2873 public static native long CResult_COption_ClosureReasonZDecodeErrorZ_clone(long orig);
2874 // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_some(struct LDKHTLCDestination o);
2875 public static native long COption_HTLCDestinationZ_some(long o);
2876 // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_none(void);
2877 public static native long COption_HTLCDestinationZ_none();
2878 // void COption_HTLCDestinationZ_free(struct LDKCOption_HTLCDestinationZ _res);
2879 public static native void COption_HTLCDestinationZ_free(long _res);
2880 // uint64_t COption_HTLCDestinationZ_clone_ptr(LDKCOption_HTLCDestinationZ *NONNULL_PTR arg);
2881 public static native long COption_HTLCDestinationZ_clone_ptr(long arg);
2882 // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_clone(const struct LDKCOption_HTLCDestinationZ *NONNULL_PTR orig);
2883 public static native long COption_HTLCDestinationZ_clone(long orig);
2884 // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_ok(struct LDKCOption_HTLCDestinationZ o);
2885 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_ok(long o);
2886 // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_err(struct LDKDecodeError e);
2887 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_err(long e);
2888 // bool CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR o);
2889 public static native boolean CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(long o);
2890 // void CResult_COption_HTLCDestinationZDecodeErrorZ_free(struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ _res);
2891 public static native void CResult_COption_HTLCDestinationZDecodeErrorZ_free(long _res);
2892 // uint64_t CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR arg);
2893 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(long arg);
2894 // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_clone(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR orig);
2895 public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_clone(long orig);
2896 // struct LDKCOption_u128Z COption_u128Z_some(struct LDKU128 o);
2897 public static native long COption_u128Z_some(byte[] o);
2898 // struct LDKCOption_u128Z COption_u128Z_none(void);
2899 public static native long COption_u128Z_none();
2900 // void COption_u128Z_free(struct LDKCOption_u128Z _res);
2901 public static native void COption_u128Z_free(long _res);
2902 // uint64_t COption_u128Z_clone_ptr(LDKCOption_u128Z *NONNULL_PTR arg);
2903 public static native long COption_u128Z_clone_ptr(long arg);
2904 // struct LDKCOption_u128Z COption_u128Z_clone(const struct LDKCOption_u128Z *NONNULL_PTR orig);
2905 public static native long COption_u128Z_clone(long orig);
2906 // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
2907 public static native void CVec_SpendableOutputDescriptorZ_free(long[] _res);
2908 // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o);
2909 public static native long COption_EventZ_some(long o);
2910 // struct LDKCOption_EventZ COption_EventZ_none(void);
2911 public static native long COption_EventZ_none();
2912 // void COption_EventZ_free(struct LDKCOption_EventZ _res);
2913 public static native void COption_EventZ_free(long _res);
2914 // uint64_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg);
2915 public static native long COption_EventZ_clone_ptr(long arg);
2916 // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig);
2917 public static native long COption_EventZ_clone(long orig);
2918 // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o);
2919 public static native long CResult_COption_EventZDecodeErrorZ_ok(long o);
2920 // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e);
2921 public static native long CResult_COption_EventZDecodeErrorZ_err(long e);
2922 // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o);
2923 public static native boolean CResult_COption_EventZDecodeErrorZ_is_ok(long o);
2924 // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res);
2925 public static native void CResult_COption_EventZDecodeErrorZ_free(long _res);
2926 // uint64_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg);
2927 public static native long CResult_COption_EventZDecodeErrorZ_clone_ptr(long arg);
2928 // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig);
2929 public static native long CResult_COption_EventZDecodeErrorZ_clone(long orig);
2930 // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
2931 public static native void CVec_MessageSendEventZ_free(long[] _res);
2932 // uint64_t C2Tuple_usizeTransactionZ_clone_ptr(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR arg);
2933 public static native long C2Tuple_usizeTransactionZ_clone_ptr(long arg);
2934 // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_clone(const struct LDKC2Tuple_usizeTransactionZ *NONNULL_PTR orig);
2935 public static native long C2Tuple_usizeTransactionZ_clone(long orig);
2936 // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
2937 public static native long C2Tuple_usizeTransactionZ_new(long a, byte[] b);
2938 // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
2939 public static native void C2Tuple_usizeTransactionZ_free(long _res);
2940 // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
2941 public static native void CVec_C2Tuple_usizeTransactionZZ_free(long[] _res);
2942 // uint64_t C2Tuple_TxidBlockHashZ_clone_ptr(LDKC2Tuple_TxidBlockHashZ *NONNULL_PTR arg);
2943 public static native long C2Tuple_TxidBlockHashZ_clone_ptr(long arg);
2944 // struct LDKC2Tuple_TxidBlockHashZ C2Tuple_TxidBlockHashZ_clone(const struct LDKC2Tuple_TxidBlockHashZ *NONNULL_PTR orig);
2945 public static native long C2Tuple_TxidBlockHashZ_clone(long orig);
2946 // struct LDKC2Tuple_TxidBlockHashZ C2Tuple_TxidBlockHashZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
2947 public static native long C2Tuple_TxidBlockHashZ_new(byte[] a, byte[] b);
2948 // void C2Tuple_TxidBlockHashZ_free(struct LDKC2Tuple_TxidBlockHashZ _res);
2949 public static native void C2Tuple_TxidBlockHashZ_free(long _res);
2950 // void CVec_C2Tuple_TxidBlockHashZZ_free(struct LDKCVec_C2Tuple_TxidBlockHashZZ _res);
2951 public static native void CVec_C2Tuple_TxidBlockHashZZ_free(long[] _res);
2952 // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
2953 public static native void CVec_MonitorEventZ_free(long[] _res);
2954 // uint64_t C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR arg);
2955 public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(long arg);
2956 // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(const struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR orig);
2957 public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(long orig);
2958 // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorEventZ b, struct LDKPublicKey c);
2959 public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(long a, long[] b, byte[] c);
2960 // void C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ _res);
2961 public static native void C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(long _res);
2962 // void CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(struct LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ _res);
2963 public static native void CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(long[] _res);
2964 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_ok(struct LDKFixedPenaltyScorer o);
2965 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_ok(long o);
2966 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_err(struct LDKDecodeError e);
2967 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_err(long e);
2968 // bool CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR o);
2969 public static native boolean CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(long o);
2970 // void CResult_FixedPenaltyScorerDecodeErrorZ_free(struct LDKCResult_FixedPenaltyScorerDecodeErrorZ _res);
2971 public static native void CResult_FixedPenaltyScorerDecodeErrorZ_free(long _res);
2972 // uint64_t CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR arg);
2973 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(long arg);
2974 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_clone(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR orig);
2975 public static native long CResult_FixedPenaltyScorerDecodeErrorZ_clone(long orig);
2976 // uint64_t C2Tuple_u64u64Z_clone_ptr(LDKC2Tuple_u64u64Z *NONNULL_PTR arg);
2977 public static native long C2Tuple_u64u64Z_clone_ptr(long arg);
2978 // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_clone(const struct LDKC2Tuple_u64u64Z *NONNULL_PTR orig);
2979 public static native long C2Tuple_u64u64Z_clone(long orig);
2980 // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_new(uint64_t a, uint64_t b);
2981 public static native long C2Tuple_u64u64Z_new(long a, long b);
2982 // void C2Tuple_u64u64Z_free(struct LDKC2Tuple_u64u64Z _res);
2983 public static native void C2Tuple_u64u64Z_free(long _res);
2984 // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_some(struct LDKC2Tuple_u64u64Z o);
2985 public static native long COption_C2Tuple_u64u64ZZ_some(long o);
2986 // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_none(void);
2987 public static native long COption_C2Tuple_u64u64ZZ_none();
2988 // void COption_C2Tuple_u64u64ZZ_free(struct LDKCOption_C2Tuple_u64u64ZZ _res);
2989 public static native void COption_C2Tuple_u64u64ZZ_free(long _res);
2990 // uint64_t COption_C2Tuple_u64u64ZZ_clone_ptr(LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR arg);
2991 public static native long COption_C2Tuple_u64u64ZZ_clone_ptr(long arg);
2992 // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_clone(const struct LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR orig);
2993 public static native long COption_C2Tuple_u64u64ZZ_clone(long orig);
2994 // uint64_t C2Tuple_Z_clone_ptr(LDKC2Tuple_Z *NONNULL_PTR arg);
2995 public static native long C2Tuple_Z_clone_ptr(long arg);
2996 // struct LDKC2Tuple_Z C2Tuple_Z_clone(const struct LDKC2Tuple_Z *NONNULL_PTR orig);
2997 public static native long C2Tuple_Z_clone(long orig);
2998 // struct LDKC2Tuple_Z C2Tuple_Z_new(struct LDKEightU16s a, struct LDKEightU16s b);
2999 public static native long C2Tuple_Z_new(short[] a, short[] b);
3000 // void C2Tuple_Z_free(struct LDKC2Tuple_Z _res);
3001 public static native void C2Tuple_Z_free(long _res);
3002 // uint64_t C2Tuple__u168_u168Z_clone_ptr(LDKC2Tuple__u168_u168Z *NONNULL_PTR arg);
3003 public static native long C2Tuple__u168_u168Z_clone_ptr(long arg);
3004 // struct LDKC2Tuple__u168_u168Z C2Tuple__u168_u168Z_clone(const struct LDKC2Tuple__u168_u168Z *NONNULL_PTR orig);
3005 public static native long C2Tuple__u168_u168Z_clone(long orig);
3006 // struct LDKC2Tuple__u168_u168Z C2Tuple__u168_u168Z_new(struct LDKEightU16s a, struct LDKEightU16s b);
3007 public static native long C2Tuple__u168_u168Z_new(short[] a, short[] b);
3008 // void C2Tuple__u168_u168Z_free(struct LDKC2Tuple__u168_u168Z _res);
3009 public static native void C2Tuple__u168_u168Z_free(long _res);
3010 // struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_some(struct LDKC2Tuple__u168_u168Z o);
3011 public static native long COption_C2Tuple_EightU16sEightU16sZZ_some(long o);
3012 // struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_none(void);
3013 public static native long COption_C2Tuple_EightU16sEightU16sZZ_none();
3014 // void COption_C2Tuple_EightU16sEightU16sZZ_free(struct LDKCOption_C2Tuple_EightU16sEightU16sZZ _res);
3015 public static native void COption_C2Tuple_EightU16sEightU16sZZ_free(long _res);
3016 // uint64_t COption_C2Tuple_EightU16sEightU16sZZ_clone_ptr(LDKCOption_C2Tuple_EightU16sEightU16sZZ *NONNULL_PTR arg);
3017 public static native long COption_C2Tuple_EightU16sEightU16sZZ_clone_ptr(long arg);
3018 // struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_clone(const struct LDKCOption_C2Tuple_EightU16sEightU16sZZ *NONNULL_PTR orig);
3019 public static native long COption_C2Tuple_EightU16sEightU16sZZ_clone(long orig);
3020 // void CVec_NodeIdZ_free(struct LDKCVec_NodeIdZ _res);
3021 public static native void CVec_NodeIdZ_free(long[] _res);
3022 // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_ok(struct LDKProbabilisticScorer o);
3023 public static native long CResult_ProbabilisticScorerDecodeErrorZ_ok(long o);
3024 // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_err(struct LDKDecodeError e);
3025 public static native long CResult_ProbabilisticScorerDecodeErrorZ_err(long e);
3026 // bool CResult_ProbabilisticScorerDecodeErrorZ_is_ok(const struct LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR o);
3027 public static native boolean CResult_ProbabilisticScorerDecodeErrorZ_is_ok(long o);
3028 // void CResult_ProbabilisticScorerDecodeErrorZ_free(struct LDKCResult_ProbabilisticScorerDecodeErrorZ _res);
3029 public static native void CResult_ProbabilisticScorerDecodeErrorZ_free(long _res);
3030 // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
3031 public static native long CResult_InitFeaturesDecodeErrorZ_ok(long o);
3032 // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3033 public static native long CResult_InitFeaturesDecodeErrorZ_err(long e);
3034 // bool CResult_InitFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR o);
3035 public static native boolean CResult_InitFeaturesDecodeErrorZ_is_ok(long o);
3036 // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
3037 public static native void CResult_InitFeaturesDecodeErrorZ_free(long _res);
3038 // uint64_t CResult_InitFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR arg);
3039 public static native long CResult_InitFeaturesDecodeErrorZ_clone_ptr(long arg);
3040 // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_clone(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR orig);
3041 public static native long CResult_InitFeaturesDecodeErrorZ_clone(long orig);
3042 // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
3043 public static native long CResult_ChannelFeaturesDecodeErrorZ_ok(long o);
3044 // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3045 public static native long CResult_ChannelFeaturesDecodeErrorZ_err(long e);
3046 // bool CResult_ChannelFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR o);
3047 public static native boolean CResult_ChannelFeaturesDecodeErrorZ_is_ok(long o);
3048 // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
3049 public static native void CResult_ChannelFeaturesDecodeErrorZ_free(long _res);
3050 // uint64_t CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR arg);
3051 public static native long CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(long arg);
3052 // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR orig);
3053 public static native long CResult_ChannelFeaturesDecodeErrorZ_clone(long orig);
3054 // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
3055 public static native long CResult_NodeFeaturesDecodeErrorZ_ok(long o);
3056 // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3057 public static native long CResult_NodeFeaturesDecodeErrorZ_err(long e);
3058 // bool CResult_NodeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR o);
3059 public static native boolean CResult_NodeFeaturesDecodeErrorZ_is_ok(long o);
3060 // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
3061 public static native void CResult_NodeFeaturesDecodeErrorZ_free(long _res);
3062 // uint64_t CResult_NodeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR arg);
3063 public static native long CResult_NodeFeaturesDecodeErrorZ_clone_ptr(long arg);
3064 // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_clone(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR orig);
3065 public static native long CResult_NodeFeaturesDecodeErrorZ_clone(long orig);
3066 // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_ok(struct LDKInvoiceFeatures o);
3067 public static native long CResult_InvoiceFeaturesDecodeErrorZ_ok(long o);
3068 // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3069 public static native long CResult_InvoiceFeaturesDecodeErrorZ_err(long e);
3070 // bool CResult_InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
3071 public static native boolean CResult_InvoiceFeaturesDecodeErrorZ_is_ok(long o);
3072 // void CResult_InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_InvoiceFeaturesDecodeErrorZ _res);
3073 public static native void CResult_InvoiceFeaturesDecodeErrorZ_free(long _res);
3074 // uint64_t CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
3075 public static native long CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(long arg);
3076 // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
3077 public static native long CResult_InvoiceFeaturesDecodeErrorZ_clone(long orig);
3078 // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_ok(struct LDKBlindedHopFeatures o);
3079 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_ok(long o);
3080 // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3081 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_err(long e);
3082 // bool CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR o);
3083 public static native boolean CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(long o);
3084 // void CResult_BlindedHopFeaturesDecodeErrorZ_free(struct LDKCResult_BlindedHopFeaturesDecodeErrorZ _res);
3085 public static native void CResult_BlindedHopFeaturesDecodeErrorZ_free(long _res);
3086 // uint64_t CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR arg);
3087 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(long arg);
3088 // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_clone(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR orig);
3089 public static native long CResult_BlindedHopFeaturesDecodeErrorZ_clone(long orig);
3090 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_ok(struct LDKChannelTypeFeatures o);
3091 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_ok(long o);
3092 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
3093 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_err(long e);
3094 // bool CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR o);
3095 public static native boolean CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(long o);
3096 // void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ _res);
3097 public static native void CResult_ChannelTypeFeaturesDecodeErrorZ_free(long _res);
3098 // uint64_t CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR arg);
3099 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(long arg);
3100 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR orig);
3101 public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_clone(long orig);
3102 // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o);
3103 public static native long CResult_NodeIdDecodeErrorZ_ok(long o);
3104 // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e);
3105 public static native long CResult_NodeIdDecodeErrorZ_err(long e);
3106 // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o);
3107 public static native boolean CResult_NodeIdDecodeErrorZ_is_ok(long o);
3108 // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res);
3109 public static native void CResult_NodeIdDecodeErrorZ_free(long _res);
3110 // uint64_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg);
3111 public static native long CResult_NodeIdDecodeErrorZ_clone_ptr(long arg);
3112 // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig);
3113 public static native long CResult_NodeIdDecodeErrorZ_clone(long orig);
3114 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_ok(struct LDKCOption_NetworkUpdateZ o);
3115 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_ok(long o);
3116 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_err(struct LDKDecodeError e);
3117 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_err(long e);
3118 // bool CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR o);
3119 public static native boolean CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(long o);
3120 // void CResult_COption_NetworkUpdateZDecodeErrorZ_free(struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ _res);
3121 public static native void CResult_COption_NetworkUpdateZDecodeErrorZ_free(long _res);
3122 // uint64_t CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR arg);
3123 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(long arg);
3124 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_clone(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR orig);
3125 public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_clone(long orig);
3126 // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_some(struct LDKUtxoLookup o);
3127 public static native long COption_UtxoLookupZ_some(long o);
3128 // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_none(void);
3129 public static native long COption_UtxoLookupZ_none();
3130 // void COption_UtxoLookupZ_free(struct LDKCOption_UtxoLookupZ _res);
3131 public static native void COption_UtxoLookupZ_free(long _res);
3132 // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
3133 public static native long CResult_boolLightningErrorZ_ok(boolean o);
3134 // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
3135 public static native long CResult_boolLightningErrorZ_err(long e);
3136 // bool CResult_boolLightningErrorZ_is_ok(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR o);
3137 public static native boolean CResult_boolLightningErrorZ_is_ok(long o);
3138 // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
3139 public static native void CResult_boolLightningErrorZ_free(long _res);
3140 // uint64_t CResult_boolLightningErrorZ_clone_ptr(LDKCResult_boolLightningErrorZ *NONNULL_PTR arg);
3141 public static native long CResult_boolLightningErrorZ_clone_ptr(long arg);
3142 // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
3143 public static native long CResult_boolLightningErrorZ_clone(long orig);
3144 // uint64_t C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR arg);
3145 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(long arg);
3146 // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
3147 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(long orig);
3148 // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
3149 public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(long a, long b, long c);
3150 // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
3151 public static native void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(long _res);
3152 // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ o);
3153 public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(long o);
3154 // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none(void);
3155 public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none();
3156 // void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
3157 public static native void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(long _res);
3158 // uint64_t COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR arg);
3159 public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(long arg);
3160 // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(const struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR orig);
3161 public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(long orig);
3162 // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
3163 public static native long CResult_NoneLightningErrorZ_ok();
3164 // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
3165 public static native long CResult_NoneLightningErrorZ_err(long e);
3166 // bool CResult_NoneLightningErrorZ_is_ok(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR o);
3167 public static native boolean CResult_NoneLightningErrorZ_is_ok(long o);
3168 // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
3169 public static native void CResult_NoneLightningErrorZ_free(long _res);
3170 // uint64_t CResult_NoneLightningErrorZ_clone_ptr(LDKCResult_NoneLightningErrorZ *NONNULL_PTR arg);
3171 public static native long CResult_NoneLightningErrorZ_clone_ptr(long arg);
3172 // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
3173 public static native long CResult_NoneLightningErrorZ_clone(long orig);
3174 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_ok(struct LDKChannelUpdateInfo o);
3175 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_ok(long o);
3176 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_err(struct LDKDecodeError e);
3177 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_err(long e);
3178 // bool CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR o);
3179 public static native boolean CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(long o);
3180 // void CResult_ChannelUpdateInfoDecodeErrorZ_free(struct LDKCResult_ChannelUpdateInfoDecodeErrorZ _res);
3181 public static native void CResult_ChannelUpdateInfoDecodeErrorZ_free(long _res);
3182 // uint64_t CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR arg);
3183 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(long arg);
3184 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR orig);
3185 public static native long CResult_ChannelUpdateInfoDecodeErrorZ_clone(long orig);
3186 // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
3187 public static native long CResult_ChannelInfoDecodeErrorZ_ok(long o);
3188 // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
3189 public static native long CResult_ChannelInfoDecodeErrorZ_err(long e);
3190 // bool CResult_ChannelInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR o);
3191 public static native boolean CResult_ChannelInfoDecodeErrorZ_is_ok(long o);
3192 // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
3193 public static native void CResult_ChannelInfoDecodeErrorZ_free(long _res);
3194 // uint64_t CResult_ChannelInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR arg);
3195 public static native long CResult_ChannelInfoDecodeErrorZ_clone_ptr(long arg);
3196 // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
3197 public static native long CResult_ChannelInfoDecodeErrorZ_clone(long orig);
3198 // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
3199 public static native long CResult_RoutingFeesDecodeErrorZ_ok(long o);
3200 // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
3201 public static native long CResult_RoutingFeesDecodeErrorZ_err(long e);
3202 // bool CResult_RoutingFeesDecodeErrorZ_is_ok(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR o);
3203 public static native boolean CResult_RoutingFeesDecodeErrorZ_is_ok(long o);
3204 // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
3205 public static native void CResult_RoutingFeesDecodeErrorZ_free(long _res);
3206 // uint64_t CResult_RoutingFeesDecodeErrorZ_clone_ptr(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR arg);
3207 public static native long CResult_RoutingFeesDecodeErrorZ_clone_ptr(long arg);
3208 // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
3209 public static native long CResult_RoutingFeesDecodeErrorZ_clone(long orig);
3210 // void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res);
3211 public static native void CVec_NetAddressZ_free(long[] _res);
3212 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
3213 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_ok(long o);
3214 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
3215 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_err(long e);
3216 // bool CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR o);
3217 public static native boolean CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(long o);
3218 // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
3219 public static native void CResult_NodeAnnouncementInfoDecodeErrorZ_free(long _res);
3220 // uint64_t CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR arg);
3221 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(long arg);
3222 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
3223 public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone(long orig);
3224 // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_ok(struct LDKNodeAlias o);
3225 public static native long CResult_NodeAliasDecodeErrorZ_ok(long o);
3226 // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_err(struct LDKDecodeError e);
3227 public static native long CResult_NodeAliasDecodeErrorZ_err(long e);
3228 // bool CResult_NodeAliasDecodeErrorZ_is_ok(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR o);
3229 public static native boolean CResult_NodeAliasDecodeErrorZ_is_ok(long o);
3230 // void CResult_NodeAliasDecodeErrorZ_free(struct LDKCResult_NodeAliasDecodeErrorZ _res);
3231 public static native void CResult_NodeAliasDecodeErrorZ_free(long _res);
3232 // uint64_t CResult_NodeAliasDecodeErrorZ_clone_ptr(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR arg);
3233 public static native long CResult_NodeAliasDecodeErrorZ_clone_ptr(long arg);
3234 // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_clone(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR orig);
3235 public static native long CResult_NodeAliasDecodeErrorZ_clone(long orig);
3236 // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
3237 public static native long CResult_NodeInfoDecodeErrorZ_ok(long o);
3238 // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
3239 public static native long CResult_NodeInfoDecodeErrorZ_err(long e);
3240 // bool CResult_NodeInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR o);
3241 public static native boolean CResult_NodeInfoDecodeErrorZ_is_ok(long o);
3242 // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
3243 public static native void CResult_NodeInfoDecodeErrorZ_free(long _res);
3244 // uint64_t CResult_NodeInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR arg);
3245 public static native long CResult_NodeInfoDecodeErrorZ_clone_ptr(long arg);
3246 // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
3247 public static native long CResult_NodeInfoDecodeErrorZ_clone(long orig);
3248 // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
3249 public static native long CResult_NetworkGraphDecodeErrorZ_ok(long o);
3250 // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
3251 public static native long CResult_NetworkGraphDecodeErrorZ_err(long e);
3252 // bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR o);
3253 public static native boolean CResult_NetworkGraphDecodeErrorZ_is_ok(long o);
3254 // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
3255 public static native void CResult_NetworkGraphDecodeErrorZ_free(long _res);
3256 // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_some(struct LDKCVec_NetAddressZ o);
3257 public static native long COption_CVec_NetAddressZZ_some(long[] o);
3258 // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_none(void);
3259 public static native long COption_CVec_NetAddressZZ_none();
3260 // void COption_CVec_NetAddressZZ_free(struct LDKCOption_CVec_NetAddressZZ _res);
3261 public static native void COption_CVec_NetAddressZZ_free(long _res);
3262 // uint64_t COption_CVec_NetAddressZZ_clone_ptr(LDKCOption_CVec_NetAddressZZ *NONNULL_PTR arg);
3263 public static native long COption_CVec_NetAddressZZ_clone_ptr(long arg);
3264 // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_clone(const struct LDKCOption_CVec_NetAddressZZ *NONNULL_PTR orig);
3265 public static native long COption_CVec_NetAddressZZ_clone(long orig);
3266 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKDelayedPaymentOutputDescriptor o);
3267 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(long o);
3268 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
3269 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(long e);
3270 // bool CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
3271 public static native boolean CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(long o);
3272 // void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ _res);
3273 public static native void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(long _res);
3274 // uint64_t CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
3275 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
3276 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
3277 public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
3278 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKStaticPaymentOutputDescriptor o);
3279 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(long o);
3280 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
3281 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(long e);
3282 // bool CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
3283 public static native boolean CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(long o);
3284 // void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ _res);
3285 public static native void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(long _res);
3286 // uint64_t CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
3287 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
3288 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
3289 public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
3290 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
3291 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_ok(long o);
3292 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
3293 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_err(long e);
3294 // bool CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
3295 public static native boolean CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(long o);
3296 // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
3297 public static native void CResult_SpendableOutputDescriptorDecodeErrorZ_free(long _res);
3298 // uint64_t CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
3299 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
3300 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
3301 public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone(long orig);
3302 // void CVec_PaymentPreimageZ_free(struct LDKCVec_PaymentPreimageZ _res);
3303 public static native void CVec_PaymentPreimageZ_free(byte[][] _res);
3304 // uint64_t C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR arg);
3305 public static native long C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(long arg);
3306 // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_clone(const struct LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR orig);
3307 public static native long C2Tuple_SignatureCVec_SignatureZZ_clone(long orig);
3308 // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b);
3309 public static native long C2Tuple_SignatureCVec_SignatureZZ_new(byte[] a, byte[][] b);
3310 // void C2Tuple_SignatureCVec_SignatureZZ_free(struct LDKC2Tuple_SignatureCVec_SignatureZZ _res);
3311 public static native void C2Tuple_SignatureCVec_SignatureZZ_free(long _res);
3312 // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2Tuple_SignatureCVec_SignatureZZ o);
3313 public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(long o);
3314 // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void);
3315 public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err();
3316 // bool CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR o);
3317 public static native boolean CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(long o);
3318 // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ _res);
3319 public static native void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(long _res);
3320 // uint64_t CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR arg);
3321 public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(long arg);
3322 // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR orig);
3323 public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(long orig);
3324 // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_ok(struct LDKSignature o);
3325 public static native long CResult_SignatureNoneZ_ok(byte[] o);
3326 // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void);
3327 public static native long CResult_SignatureNoneZ_err();
3328 // bool CResult_SignatureNoneZ_is_ok(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR o);
3329 public static native boolean CResult_SignatureNoneZ_is_ok(long o);
3330 // void CResult_SignatureNoneZ_free(struct LDKCResult_SignatureNoneZ _res);
3331 public static native void CResult_SignatureNoneZ_free(long _res);
3332 // uint64_t CResult_SignatureNoneZ_clone_ptr(LDKCResult_SignatureNoneZ *NONNULL_PTR arg);
3333 public static native long CResult_SignatureNoneZ_clone_ptr(long arg);
3334 // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_clone(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR orig);
3335 public static native long CResult_SignatureNoneZ_clone(long orig);
3336 // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_ok(struct LDKPublicKey o);
3337 public static native long CResult_PublicKeyNoneZ_ok(byte[] o);
3338 // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_err(void);
3339 public static native long CResult_PublicKeyNoneZ_err();
3340 // bool CResult_PublicKeyNoneZ_is_ok(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR o);
3341 public static native boolean CResult_PublicKeyNoneZ_is_ok(long o);
3342 // void CResult_PublicKeyNoneZ_free(struct LDKCResult_PublicKeyNoneZ _res);
3343 public static native void CResult_PublicKeyNoneZ_free(long _res);
3344 // uint64_t CResult_PublicKeyNoneZ_clone_ptr(LDKCResult_PublicKeyNoneZ *NONNULL_PTR arg);
3345 public static native long CResult_PublicKeyNoneZ_clone_ptr(long arg);
3346 // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_clone(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR orig);
3347 public static native long CResult_PublicKeyNoneZ_clone(long orig);
3348 // struct LDKCOption_ScalarZ COption_ScalarZ_some(struct LDKBigEndianScalar o);
3349 public static native long COption_ScalarZ_some(long o);
3350 // struct LDKCOption_ScalarZ COption_ScalarZ_none(void);
3351 public static native long COption_ScalarZ_none();
3352 // void COption_ScalarZ_free(struct LDKCOption_ScalarZ _res);
3353 public static native void COption_ScalarZ_free(long _res);
3354 // struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_ok(struct LDKThirtyTwoBytes o);
3355 public static native long CResult_SharedSecretNoneZ_ok(byte[] o);
3356 // struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_err(void);
3357 public static native long CResult_SharedSecretNoneZ_err();
3358 // bool CResult_SharedSecretNoneZ_is_ok(const struct LDKCResult_SharedSecretNoneZ *NONNULL_PTR o);
3359 public static native boolean CResult_SharedSecretNoneZ_is_ok(long o);
3360 // void CResult_SharedSecretNoneZ_free(struct LDKCResult_SharedSecretNoneZ _res);
3361 public static native void CResult_SharedSecretNoneZ_free(long _res);
3362 // uint64_t CResult_SharedSecretNoneZ_clone_ptr(LDKCResult_SharedSecretNoneZ *NONNULL_PTR arg);
3363 public static native long CResult_SharedSecretNoneZ_clone_ptr(long arg);
3364 // struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_clone(const struct LDKCResult_SharedSecretNoneZ *NONNULL_PTR orig);
3365 public static native long CResult_SharedSecretNoneZ_clone(long orig);
3366 // void CVec_U5Z_free(struct LDKCVec_U5Z _res);
3367 public static native void CVec_U5Z_free(byte[] _res);
3368 // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o);
3369 public static native long CResult_RecoverableSignatureNoneZ_ok(byte[] o);
3370 // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void);
3371 public static native long CResult_RecoverableSignatureNoneZ_err();
3372 // bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o);
3373 public static native boolean CResult_RecoverableSignatureNoneZ_is_ok(long o);
3374 // void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res);
3375 public static native void CResult_RecoverableSignatureNoneZ_free(long _res);
3376 // uint64_t CResult_RecoverableSignatureNoneZ_clone_ptr(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR arg);
3377 public static native long CResult_RecoverableSignatureNoneZ_clone_ptr(long arg);
3378 // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig);
3379 public static native long CResult_RecoverableSignatureNoneZ_clone(long orig);
3380 // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(struct LDKWriteableEcdsaChannelSigner o);
3381 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(long o);
3382 // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(struct LDKDecodeError e);
3383 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(long e);
3384 // bool CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR o);
3385 public static native boolean CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(long o);
3386 // void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ _res);
3387 public static native void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(long _res);
3388 // uint64_t CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR arg);
3389 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(long arg);
3390 // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR orig);
3391 public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(long orig);
3392 // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
3393 public static native void CVec_u8Z_free(byte[] _res);
3394 // void CVec_CVec_u8ZZ_free(struct LDKCVec_CVec_u8ZZ _res);
3395 public static native void CVec_CVec_u8ZZ_free(byte[][] _res);
3396 // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_ok(struct LDKCVec_CVec_u8ZZ o);
3397 public static native long CResult_CVec_CVec_u8ZZNoneZ_ok(byte[][] o);
3398 // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_err(void);
3399 public static native long CResult_CVec_CVec_u8ZZNoneZ_err();
3400 // bool CResult_CVec_CVec_u8ZZNoneZ_is_ok(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR o);
3401 public static native boolean CResult_CVec_CVec_u8ZZNoneZ_is_ok(long o);
3402 // void CResult_CVec_CVec_u8ZZNoneZ_free(struct LDKCResult_CVec_CVec_u8ZZNoneZ _res);
3403 public static native void CResult_CVec_CVec_u8ZZNoneZ_free(long _res);
3404 // uint64_t CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR arg);
3405 public static native long CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(long arg);
3406 // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_clone(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR orig);
3407 public static native long CResult_CVec_CVec_u8ZZNoneZ_clone(long orig);
3408 // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
3409 public static native long CResult_InMemorySignerDecodeErrorZ_ok(long o);
3410 // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
3411 public static native long CResult_InMemorySignerDecodeErrorZ_err(long e);
3412 // bool CResult_InMemorySignerDecodeErrorZ_is_ok(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR o);
3413 public static native boolean CResult_InMemorySignerDecodeErrorZ_is_ok(long o);
3414 // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
3415 public static native void CResult_InMemorySignerDecodeErrorZ_free(long _res);
3416 // uint64_t CResult_InMemorySignerDecodeErrorZ_clone_ptr(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR arg);
3417 public static native long CResult_InMemorySignerDecodeErrorZ_clone_ptr(long arg);
3418 // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
3419 public static native long CResult_InMemorySignerDecodeErrorZ_clone(long orig);
3420 // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
3421 public static native void CVec_TxOutZ_free(long[] _res);
3422 // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
3423 public static native long CResult_TransactionNoneZ_ok(byte[] o);
3424 // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
3425 public static native long CResult_TransactionNoneZ_err();
3426 // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o);
3427 public static native boolean CResult_TransactionNoneZ_is_ok(long o);
3428 // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
3429 public static native void CResult_TransactionNoneZ_free(long _res);
3430 // uint64_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg);
3431 public static native long CResult_TransactionNoneZ_clone_ptr(long arg);
3432 // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig);
3433 public static native long CResult_TransactionNoneZ_clone(long orig);
3434 // uint64_t C2Tuple_BlockHashChannelMonitorZ_clone_ptr(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR arg);
3435 public static native long C2Tuple_BlockHashChannelMonitorZ_clone_ptr(long arg);
3436 // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_clone(const struct LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR orig);
3437 public static native long C2Tuple_BlockHashChannelMonitorZ_clone(long orig);
3438 // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
3439 public static native long C2Tuple_BlockHashChannelMonitorZ_new(byte[] a, long b);
3440 // void C2Tuple_BlockHashChannelMonitorZ_free(struct LDKC2Tuple_BlockHashChannelMonitorZ _res);
3441 public static native void C2Tuple_BlockHashChannelMonitorZ_free(long _res);
3442 // void CVec_C2Tuple_BlockHashChannelMonitorZZ_free(struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ _res);
3443 public static native void CVec_C2Tuple_BlockHashChannelMonitorZZ_free(long[] _res);
3444 // struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_ok(struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ o);
3445 public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_ok(long[] o);
3446 // struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_err(enum LDKIOError e);
3447 public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_err(IOError e);
3448 // bool CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_is_ok(const struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR o);
3449 public static native boolean CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_is_ok(long o);
3450 // void CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_free(struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ _res);
3451 public static native void CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_free(long _res);
3452 // uint64_t CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone_ptr(LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR arg);
3453 public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone_ptr(long arg);
3454 // struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone(const struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR orig);
3455 public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone(long orig);
3456 // struct LDKCOption_u16Z COption_u16Z_some(uint16_t o);
3457 public static native long COption_u16Z_some(short o);
3458 // struct LDKCOption_u16Z COption_u16Z_none(void);
3459 public static native long COption_u16Z_none();
3460 // void COption_u16Z_free(struct LDKCOption_u16Z _res);
3461 public static native void COption_u16Z_free(long _res);
3462 // uint64_t COption_u16Z_clone_ptr(LDKCOption_u16Z *NONNULL_PTR arg);
3463 public static native long COption_u16Z_clone_ptr(long arg);
3464 // struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig);
3465 public static native long COption_u16Z_clone(long orig);
3466 // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_ok(struct LDKThirtyTwoBytes o);
3467 public static native long CResult__u832APIErrorZ_ok(byte[] o);
3468 // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_err(struct LDKAPIError e);
3469 public static native long CResult__u832APIErrorZ_err(long e);
3470 // bool CResult__u832APIErrorZ_is_ok(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR o);
3471 public static native boolean CResult__u832APIErrorZ_is_ok(long o);
3472 // void CResult__u832APIErrorZ_free(struct LDKCResult__u832APIErrorZ _res);
3473 public static native void CResult__u832APIErrorZ_free(long _res);
3474 // uint64_t CResult__u832APIErrorZ_clone_ptr(LDKCResult__u832APIErrorZ *NONNULL_PTR arg);
3475 public static native long CResult__u832APIErrorZ_clone_ptr(long arg);
3476 // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_clone(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR orig);
3477 public static native long CResult__u832APIErrorZ_clone(long orig);
3478 // void CVec_RecentPaymentDetailsZ_free(struct LDKCVec_RecentPaymentDetailsZ _res);
3479 public static native void CVec_RecentPaymentDetailsZ_free(long[] _res);
3480 // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
3481 public static native long CResult_NonePaymentSendFailureZ_ok();
3482 // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
3483 public static native long CResult_NonePaymentSendFailureZ_err(long e);
3484 // bool CResult_NonePaymentSendFailureZ_is_ok(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR o);
3485 public static native boolean CResult_NonePaymentSendFailureZ_is_ok(long o);
3486 // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
3487 public static native void CResult_NonePaymentSendFailureZ_free(long _res);
3488 // uint64_t CResult_NonePaymentSendFailureZ_clone_ptr(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR arg);
3489 public static native long CResult_NonePaymentSendFailureZ_clone_ptr(long arg);
3490 // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig);
3491 public static native long CResult_NonePaymentSendFailureZ_clone(long orig);
3492 // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_ok(void);
3493 public static native long CResult_NoneRetryableSendFailureZ_ok();
3494 // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_err(enum LDKRetryableSendFailure e);
3495 public static native long CResult_NoneRetryableSendFailureZ_err(RetryableSendFailure e);
3496 // bool CResult_NoneRetryableSendFailureZ_is_ok(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR o);
3497 public static native boolean CResult_NoneRetryableSendFailureZ_is_ok(long o);
3498 // void CResult_NoneRetryableSendFailureZ_free(struct LDKCResult_NoneRetryableSendFailureZ _res);
3499 public static native void CResult_NoneRetryableSendFailureZ_free(long _res);
3500 // uint64_t CResult_NoneRetryableSendFailureZ_clone_ptr(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR arg);
3501 public static native long CResult_NoneRetryableSendFailureZ_clone_ptr(long arg);
3502 // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_clone(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR orig);
3503 public static native long CResult_NoneRetryableSendFailureZ_clone(long orig);
3504 // struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o);
3505 public static native long CResult_PaymentHashPaymentSendFailureZ_ok(byte[] o);
3506 // struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
3507 public static native long CResult_PaymentHashPaymentSendFailureZ_err(long e);
3508 // bool CResult_PaymentHashPaymentSendFailureZ_is_ok(const struct LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR o);
3509 public static native boolean CResult_PaymentHashPaymentSendFailureZ_is_ok(long o);
3510 // void CResult_PaymentHashPaymentSendFailureZ_free(struct LDKCResult_PaymentHashPaymentSendFailureZ _res);
3511 public static native void CResult_PaymentHashPaymentSendFailureZ_free(long _res);
3512 // uint64_t CResult_PaymentHashPaymentSendFailureZ_clone_ptr(LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR arg);
3513 public static native long CResult_PaymentHashPaymentSendFailureZ_clone_ptr(long arg);
3514 // struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_clone(const struct LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR orig);
3515 public static native long CResult_PaymentHashPaymentSendFailureZ_clone(long orig);
3516 // struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_ok(struct LDKThirtyTwoBytes o);
3517 public static native long CResult_PaymentHashRetryableSendFailureZ_ok(byte[] o);
3518 // struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_err(enum LDKRetryableSendFailure e);
3519 public static native long CResult_PaymentHashRetryableSendFailureZ_err(RetryableSendFailure e);
3520 // bool CResult_PaymentHashRetryableSendFailureZ_is_ok(const struct LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR o);
3521 public static native boolean CResult_PaymentHashRetryableSendFailureZ_is_ok(long o);
3522 // void CResult_PaymentHashRetryableSendFailureZ_free(struct LDKCResult_PaymentHashRetryableSendFailureZ _res);
3523 public static native void CResult_PaymentHashRetryableSendFailureZ_free(long _res);
3524 // uint64_t CResult_PaymentHashRetryableSendFailureZ_clone_ptr(LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR arg);
3525 public static native long CResult_PaymentHashRetryableSendFailureZ_clone_ptr(long arg);
3526 // struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_clone(const struct LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR orig);
3527 public static native long CResult_PaymentHashRetryableSendFailureZ_clone(long orig);
3528 // uint64_t C2Tuple_PaymentHashPaymentIdZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR arg);
3529 public static native long C2Tuple_PaymentHashPaymentIdZ_clone_ptr(long arg);
3530 // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_clone(const struct LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR orig);
3531 public static native long C2Tuple_PaymentHashPaymentIdZ_clone(long orig);
3532 // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
3533 public static native long C2Tuple_PaymentHashPaymentIdZ_new(byte[] a, byte[] b);
3534 // void C2Tuple_PaymentHashPaymentIdZ_free(struct LDKC2Tuple_PaymentHashPaymentIdZ _res);
3535 public static native void C2Tuple_PaymentHashPaymentIdZ_free(long _res);
3536 // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(struct LDKC2Tuple_PaymentHashPaymentIdZ o);
3537 public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(long o);
3538 // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
3539 public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(long e);
3540 // bool CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR o);
3541 public static native boolean CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(long o);
3542 // void CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ _res);
3543 public static native void CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(long _res);
3544 // uint64_t CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR arg);
3545 public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(long arg);
3546 // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR orig);
3547 public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(long orig);
3548 // void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res);
3549 public static native void CVec_ThirtyTwoBytesZ_free(byte[][] _res);
3550 // uint64_t C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR arg);
3551 public static native long C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(long arg);
3552 // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_clone(const struct LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR orig);
3553 public static native long C2Tuple_PaymentHashPaymentSecretZ_clone(long orig);
3554 // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
3555 public static native long C2Tuple_PaymentHashPaymentSecretZ_new(byte[] a, byte[] b);
3556 // void C2Tuple_PaymentHashPaymentSecretZ_free(struct LDKC2Tuple_PaymentHashPaymentSecretZ _res);
3557 public static native void C2Tuple_PaymentHashPaymentSecretZ_free(long _res);
3558 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
3559 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(long o);
3560 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(void);
3561 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err();
3562 // bool CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR o);
3563 public static native boolean CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(long o);
3564 // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ _res);
3565 public static native void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(long _res);
3566 // uint64_t CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR arg);
3567 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(long arg);
3568 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR orig);
3569 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(long orig);
3570 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
3571 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(long o);
3572 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(struct LDKAPIError e);
3573 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(long e);
3574 // bool CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR o);
3575 public static native boolean CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(long o);
3576 // void CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ _res);
3577 public static native void CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(long _res);
3578 // uint64_t CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR arg);
3579 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(long arg);
3580 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR orig);
3581 public static native long CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(long orig);
3582 // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_ok(struct LDKThirtyTwoBytes o);
3583 public static native long CResult_PaymentSecretNoneZ_ok(byte[] o);
3584 // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_err(void);
3585 public static native long CResult_PaymentSecretNoneZ_err();
3586 // bool CResult_PaymentSecretNoneZ_is_ok(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR o);
3587 public static native boolean CResult_PaymentSecretNoneZ_is_ok(long o);
3588 // void CResult_PaymentSecretNoneZ_free(struct LDKCResult_PaymentSecretNoneZ _res);
3589 public static native void CResult_PaymentSecretNoneZ_free(long _res);
3590 // uint64_t CResult_PaymentSecretNoneZ_clone_ptr(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR arg);
3591 public static native long CResult_PaymentSecretNoneZ_clone_ptr(long arg);
3592 // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_clone(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR orig);
3593 public static native long CResult_PaymentSecretNoneZ_clone(long orig);
3594 // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
3595 public static native long CResult_PaymentSecretAPIErrorZ_ok(byte[] o);
3596 // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_err(struct LDKAPIError e);
3597 public static native long CResult_PaymentSecretAPIErrorZ_err(long e);
3598 // bool CResult_PaymentSecretAPIErrorZ_is_ok(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR o);
3599 public static native boolean CResult_PaymentSecretAPIErrorZ_is_ok(long o);
3600 // void CResult_PaymentSecretAPIErrorZ_free(struct LDKCResult_PaymentSecretAPIErrorZ _res);
3601 public static native void CResult_PaymentSecretAPIErrorZ_free(long _res);
3602 // uint64_t CResult_PaymentSecretAPIErrorZ_clone_ptr(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR arg);
3603 public static native long CResult_PaymentSecretAPIErrorZ_clone_ptr(long arg);
3604 // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_clone(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR orig);
3605 public static native long CResult_PaymentSecretAPIErrorZ_clone(long orig);
3606 // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
3607 public static native long CResult_PaymentPreimageAPIErrorZ_ok(byte[] o);
3608 // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_err(struct LDKAPIError e);
3609 public static native long CResult_PaymentPreimageAPIErrorZ_err(long e);
3610 // bool CResult_PaymentPreimageAPIErrorZ_is_ok(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR o);
3611 public static native boolean CResult_PaymentPreimageAPIErrorZ_is_ok(long o);
3612 // void CResult_PaymentPreimageAPIErrorZ_free(struct LDKCResult_PaymentPreimageAPIErrorZ _res);
3613 public static native void CResult_PaymentPreimageAPIErrorZ_free(long _res);
3614 // uint64_t CResult_PaymentPreimageAPIErrorZ_clone_ptr(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR arg);
3615 public static native long CResult_PaymentPreimageAPIErrorZ_clone_ptr(long arg);
3616 // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_clone(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR orig);
3617 public static native long CResult_PaymentPreimageAPIErrorZ_clone(long orig);
3618 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o);
3619 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(long o);
3620 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e);
3621 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_err(long e);
3622 // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o);
3623 public static native boolean CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(long o);
3624 // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res);
3625 public static native void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(long _res);
3626 // uint64_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg);
3627 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(long arg);
3628 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig);
3629 public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(long orig);
3630 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o);
3631 public static native long CResult_ChannelCounterpartyDecodeErrorZ_ok(long o);
3632 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e);
3633 public static native long CResult_ChannelCounterpartyDecodeErrorZ_err(long e);
3634 // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o);
3635 public static native boolean CResult_ChannelCounterpartyDecodeErrorZ_is_ok(long o);
3636 // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res);
3637 public static native void CResult_ChannelCounterpartyDecodeErrorZ_free(long _res);
3638 // uint64_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg);
3639 public static native long CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(long arg);
3640 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig);
3641 public static native long CResult_ChannelCounterpartyDecodeErrorZ_clone(long orig);
3642 // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o);
3643 public static native long CResult_ChannelDetailsDecodeErrorZ_ok(long o);
3644 // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e);
3645 public static native long CResult_ChannelDetailsDecodeErrorZ_err(long e);
3646 // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o);
3647 public static native boolean CResult_ChannelDetailsDecodeErrorZ_is_ok(long o);
3648 // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res);
3649 public static native void CResult_ChannelDetailsDecodeErrorZ_free(long _res);
3650 // uint64_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg);
3651 public static native long CResult_ChannelDetailsDecodeErrorZ_clone_ptr(long arg);
3652 // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig);
3653 public static native long CResult_ChannelDetailsDecodeErrorZ_clone(long orig);
3654 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_ok(struct LDKPhantomRouteHints o);
3655 public static native long CResult_PhantomRouteHintsDecodeErrorZ_ok(long o);
3656 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_err(struct LDKDecodeError e);
3657 public static native long CResult_PhantomRouteHintsDecodeErrorZ_err(long e);
3658 // bool CResult_PhantomRouteHintsDecodeErrorZ_is_ok(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR o);
3659 public static native boolean CResult_PhantomRouteHintsDecodeErrorZ_is_ok(long o);
3660 // void CResult_PhantomRouteHintsDecodeErrorZ_free(struct LDKCResult_PhantomRouteHintsDecodeErrorZ _res);
3661 public static native void CResult_PhantomRouteHintsDecodeErrorZ_free(long _res);
3662 // uint64_t CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR arg);
3663 public static native long CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(long arg);
3664 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_clone(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR orig);
3665 public static native long CResult_PhantomRouteHintsDecodeErrorZ_clone(long orig);
3666 // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
3667 public static native void CVec_ChannelMonitorZ_free(long[] _res);
3668 // struct LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
3669 public static native long C2Tuple_BlockHashChannelManagerZ_new(byte[] a, long b);
3670 // void C2Tuple_BlockHashChannelManagerZ_free(struct LDKC2Tuple_BlockHashChannelManagerZ _res);
3671 public static native void C2Tuple_BlockHashChannelManagerZ_free(long _res);
3672 // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelManagerZ o);
3673 public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(long o);
3674 // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
3675 public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(long e);
3676 // bool CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR o);
3677 public static native boolean CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(long o);
3678 // void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ _res);
3679 public static native void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(long _res);
3680 // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
3681 public static native long CResult_ChannelConfigDecodeErrorZ_ok(long o);
3682 // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
3683 public static native long CResult_ChannelConfigDecodeErrorZ_err(long e);
3684 // bool CResult_ChannelConfigDecodeErrorZ_is_ok(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR o);
3685 public static native boolean CResult_ChannelConfigDecodeErrorZ_is_ok(long o);
3686 // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
3687 public static native void CResult_ChannelConfigDecodeErrorZ_free(long _res);
3688 // uint64_t CResult_ChannelConfigDecodeErrorZ_clone_ptr(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR arg);
3689 public static native long CResult_ChannelConfigDecodeErrorZ_clone_ptr(long arg);
3690 // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
3691 public static native long CResult_ChannelConfigDecodeErrorZ_clone(long orig);
3692 // struct LDKCOption_APIErrorZ COption_APIErrorZ_some(struct LDKAPIError o);
3693 public static native long COption_APIErrorZ_some(long o);
3694 // struct LDKCOption_APIErrorZ COption_APIErrorZ_none(void);
3695 public static native long COption_APIErrorZ_none();
3696 // void COption_APIErrorZ_free(struct LDKCOption_APIErrorZ _res);
3697 public static native void COption_APIErrorZ_free(long _res);
3698 // uint64_t COption_APIErrorZ_clone_ptr(LDKCOption_APIErrorZ *NONNULL_PTR arg);
3699 public static native long COption_APIErrorZ_clone_ptr(long arg);
3700 // struct LDKCOption_APIErrorZ COption_APIErrorZ_clone(const struct LDKCOption_APIErrorZ *NONNULL_PTR orig);
3701 public static native long COption_APIErrorZ_clone(long orig);
3702 // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_ok(struct LDKCOption_APIErrorZ o);
3703 public static native long CResult_COption_APIErrorZDecodeErrorZ_ok(long o);
3704 // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_err(struct LDKDecodeError e);
3705 public static native long CResult_COption_APIErrorZDecodeErrorZ_err(long e);
3706 // bool CResult_COption_APIErrorZDecodeErrorZ_is_ok(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR o);
3707 public static native boolean CResult_COption_APIErrorZDecodeErrorZ_is_ok(long o);
3708 // void CResult_COption_APIErrorZDecodeErrorZ_free(struct LDKCResult_COption_APIErrorZDecodeErrorZ _res);
3709 public static native void CResult_COption_APIErrorZDecodeErrorZ_free(long _res);
3710 // uint64_t CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR arg);
3711 public static native long CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(long arg);
3712 // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_clone(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR orig);
3713 public static native long CResult_COption_APIErrorZDecodeErrorZ_clone(long orig);
3714 // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
3715 public static native long CResult_OutPointDecodeErrorZ_ok(long o);
3716 // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
3717 public static native long CResult_OutPointDecodeErrorZ_err(long e);
3718 // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o);
3719 public static native boolean CResult_OutPointDecodeErrorZ_is_ok(long o);
3720 // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
3721 public static native void CResult_OutPointDecodeErrorZ_free(long _res);
3722 // uint64_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg);
3723 public static native long CResult_OutPointDecodeErrorZ_clone_ptr(long arg);
3724 // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
3725 public static native long CResult_OutPointDecodeErrorZ_clone(long orig);
3726 // struct LDKCOption_TypeZ COption_TypeZ_some(struct LDKType o);
3727 public static native long COption_TypeZ_some(long o);
3728 // struct LDKCOption_TypeZ COption_TypeZ_none(void);
3729 public static native long COption_TypeZ_none();
3730 // void COption_TypeZ_free(struct LDKCOption_TypeZ _res);
3731 public static native void COption_TypeZ_free(long _res);
3732 // uint64_t COption_TypeZ_clone_ptr(LDKCOption_TypeZ *NONNULL_PTR arg);
3733 public static native long COption_TypeZ_clone_ptr(long arg);
3734 // struct LDKCOption_TypeZ COption_TypeZ_clone(const struct LDKCOption_TypeZ *NONNULL_PTR orig);
3735 public static native long COption_TypeZ_clone(long orig);
3736 // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_ok(struct LDKCOption_TypeZ o);
3737 public static native long CResult_COption_TypeZDecodeErrorZ_ok(long o);
3738 // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_err(struct LDKDecodeError e);
3739 public static native long CResult_COption_TypeZDecodeErrorZ_err(long e);
3740 // bool CResult_COption_TypeZDecodeErrorZ_is_ok(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR o);
3741 public static native boolean CResult_COption_TypeZDecodeErrorZ_is_ok(long o);
3742 // void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecodeErrorZ _res);
3743 public static native void CResult_COption_TypeZDecodeErrorZ_free(long _res);
3744 // uint64_t CResult_COption_TypeZDecodeErrorZ_clone_ptr(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR arg);
3745 public static native long CResult_COption_TypeZDecodeErrorZ_clone_ptr(long arg);
3746 // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig);
3747 public static native long CResult_COption_TypeZDecodeErrorZ_clone(long orig);
3748 // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_ok(struct LDKThirtyTwoBytes o);
3749 public static native long CResult_PaymentIdPaymentErrorZ_ok(byte[] o);
3750 // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_err(struct LDKPaymentError e);
3751 public static native long CResult_PaymentIdPaymentErrorZ_err(long e);
3752 // bool CResult_PaymentIdPaymentErrorZ_is_ok(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR o);
3753 public static native boolean CResult_PaymentIdPaymentErrorZ_is_ok(long o);
3754 // void CResult_PaymentIdPaymentErrorZ_free(struct LDKCResult_PaymentIdPaymentErrorZ _res);
3755 public static native void CResult_PaymentIdPaymentErrorZ_free(long _res);
3756 // uint64_t CResult_PaymentIdPaymentErrorZ_clone_ptr(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR arg);
3757 public static native long CResult_PaymentIdPaymentErrorZ_clone_ptr(long arg);
3758 // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_clone(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR orig);
3759 public static native long CResult_PaymentIdPaymentErrorZ_clone(long orig);
3760 // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_ok(void);
3761 public static native long CResult_NonePaymentErrorZ_ok();
3762 // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_err(struct LDKPaymentError e);
3763 public static native long CResult_NonePaymentErrorZ_err(long e);
3764 // bool CResult_NonePaymentErrorZ_is_ok(const struct LDKCResult_NonePaymentErrorZ *NONNULL_PTR o);
3765 public static native boolean CResult_NonePaymentErrorZ_is_ok(long o);
3766 // void CResult_NonePaymentErrorZ_free(struct LDKCResult_NonePaymentErrorZ _res);
3767 public static native void CResult_NonePaymentErrorZ_free(long _res);
3768 // uint64_t CResult_NonePaymentErrorZ_clone_ptr(LDKCResult_NonePaymentErrorZ *NONNULL_PTR arg);
3769 public static native long CResult_NonePaymentErrorZ_clone_ptr(long arg);
3770 // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_clone(const struct LDKCResult_NonePaymentErrorZ *NONNULL_PTR orig);
3771 public static native long CResult_NonePaymentErrorZ_clone(long orig);
3772 // struct LDKCResult_StringErrorZ CResult_StringErrorZ_ok(struct LDKStr o);
3773 public static native long CResult_StringErrorZ_ok(String o);
3774 // struct LDKCResult_StringErrorZ CResult_StringErrorZ_err(enum LDKSecp256k1Error e);
3775 public static native long CResult_StringErrorZ_err(Secp256k1Error e);
3776 // bool CResult_StringErrorZ_is_ok(const struct LDKCResult_StringErrorZ *NONNULL_PTR o);
3777 public static native boolean CResult_StringErrorZ_is_ok(long o);
3778 // void CResult_StringErrorZ_free(struct LDKCResult_StringErrorZ _res);
3779 public static native void CResult_StringErrorZ_free(long _res);
3780 // uint64_t CResult_StringErrorZ_clone_ptr(LDKCResult_StringErrorZ *NONNULL_PTR arg);
3781 public static native long CResult_StringErrorZ_clone_ptr(long arg);
3782 // struct LDKCResult_StringErrorZ CResult_StringErrorZ_clone(const struct LDKCResult_StringErrorZ *NONNULL_PTR orig);
3783 public static native long CResult_StringErrorZ_clone(long orig);
3784 // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_ok(struct LDKPublicKey o);
3785 public static native long CResult_PublicKeyErrorZ_ok(byte[] o);
3786 // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_err(enum LDKSecp256k1Error e);
3787 public static native long CResult_PublicKeyErrorZ_err(Secp256k1Error e);
3788 // bool CResult_PublicKeyErrorZ_is_ok(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR o);
3789 public static native boolean CResult_PublicKeyErrorZ_is_ok(long o);
3790 // void CResult_PublicKeyErrorZ_free(struct LDKCResult_PublicKeyErrorZ _res);
3791 public static native void CResult_PublicKeyErrorZ_free(long _res);
3792 // uint64_t CResult_PublicKeyErrorZ_clone_ptr(LDKCResult_PublicKeyErrorZ *NONNULL_PTR arg);
3793 public static native long CResult_PublicKeyErrorZ_clone_ptr(long arg);
3794 // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_clone(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR orig);
3795 public static native long CResult_PublicKeyErrorZ_clone(long orig);
3796 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
3797 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_ok(long o);
3798 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
3799 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_err(long e);
3800 // bool CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR o);
3801 public static native boolean CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(long o);
3802 // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
3803 public static native void CResult_ChannelMonitorUpdateDecodeErrorZ_free(long _res);
3804 // uint64_t CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR arg);
3805 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(long arg);
3806 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
3807 public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone(long orig);
3808 // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_some(struct LDKMonitorEvent o);
3809 public static native long COption_MonitorEventZ_some(long o);
3810 // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_none(void);
3811 public static native long COption_MonitorEventZ_none();
3812 // void COption_MonitorEventZ_free(struct LDKCOption_MonitorEventZ _res);
3813 public static native void COption_MonitorEventZ_free(long _res);
3814 // uint64_t COption_MonitorEventZ_clone_ptr(LDKCOption_MonitorEventZ *NONNULL_PTR arg);
3815 public static native long COption_MonitorEventZ_clone_ptr(long arg);
3816 // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_clone(const struct LDKCOption_MonitorEventZ *NONNULL_PTR orig);
3817 public static native long COption_MonitorEventZ_clone(long orig);
3818 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_ok(struct LDKCOption_MonitorEventZ o);
3819 public static native long CResult_COption_MonitorEventZDecodeErrorZ_ok(long o);
3820 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_err(struct LDKDecodeError e);
3821 public static native long CResult_COption_MonitorEventZDecodeErrorZ_err(long e);
3822 // bool CResult_COption_MonitorEventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR o);
3823 public static native boolean CResult_COption_MonitorEventZDecodeErrorZ_is_ok(long o);
3824 // void CResult_COption_MonitorEventZDecodeErrorZ_free(struct LDKCResult_COption_MonitorEventZDecodeErrorZ _res);
3825 public static native void CResult_COption_MonitorEventZDecodeErrorZ_free(long _res);
3826 // uint64_t CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR arg);
3827 public static native long CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(long arg);
3828 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_clone(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR orig);
3829 public static native long CResult_COption_MonitorEventZDecodeErrorZ_clone(long orig);
3830 // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
3831 public static native long CResult_HTLCUpdateDecodeErrorZ_ok(long o);
3832 // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
3833 public static native long CResult_HTLCUpdateDecodeErrorZ_err(long e);
3834 // bool CResult_HTLCUpdateDecodeErrorZ_is_ok(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR o);
3835 public static native boolean CResult_HTLCUpdateDecodeErrorZ_is_ok(long o);
3836 // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
3837 public static native void CResult_HTLCUpdateDecodeErrorZ_free(long _res);
3838 // uint64_t CResult_HTLCUpdateDecodeErrorZ_clone_ptr(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR arg);
3839 public static native long CResult_HTLCUpdateDecodeErrorZ_clone_ptr(long arg);
3840 // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
3841 public static native long CResult_HTLCUpdateDecodeErrorZ_clone(long orig);
3842 // uint64_t C2Tuple_OutPointScriptZ_clone_ptr(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR arg);
3843 public static native long C2Tuple_OutPointScriptZ_clone_ptr(long arg);
3844 // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_clone(const struct LDKC2Tuple_OutPointScriptZ *NONNULL_PTR orig);
3845 public static native long C2Tuple_OutPointScriptZ_clone(long orig);
3846 // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
3847 public static native long C2Tuple_OutPointScriptZ_new(long a, byte[] b);
3848 // void C2Tuple_OutPointScriptZ_free(struct LDKC2Tuple_OutPointScriptZ _res);
3849 public static native void C2Tuple_OutPointScriptZ_free(long _res);
3850 // uint64_t C2Tuple_u32ScriptZ_clone_ptr(LDKC2Tuple_u32ScriptZ *NONNULL_PTR arg);
3851 public static native long C2Tuple_u32ScriptZ_clone_ptr(long arg);
3852 // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_clone(const struct LDKC2Tuple_u32ScriptZ *NONNULL_PTR orig);
3853 public static native long C2Tuple_u32ScriptZ_clone(long orig);
3854 // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_new(uint32_t a, struct LDKCVec_u8Z b);
3855 public static native long C2Tuple_u32ScriptZ_new(int a, byte[] b);
3856 // void C2Tuple_u32ScriptZ_free(struct LDKC2Tuple_u32ScriptZ _res);
3857 public static native void C2Tuple_u32ScriptZ_free(long _res);
3858 // void CVec_C2Tuple_u32ScriptZZ_free(struct LDKCVec_C2Tuple_u32ScriptZZ _res);
3859 public static native void CVec_C2Tuple_u32ScriptZZ_free(long[] _res);
3860 // uint64_t C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR arg);
3861 public static native long C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(long arg);
3862 // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR orig);
3863 public static native long C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(long orig);
3864 // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32ScriptZZ b);
3865 public static native long C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(byte[] a, long[] b);
3866 // void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ _res);
3867 public static native void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(long _res);
3868 // void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ _res);
3869 public static native void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(long[] _res);
3870 // void CVec_EventZ_free(struct LDKCVec_EventZ _res);
3871 public static native void CVec_EventZ_free(long[] _res);
3872 // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
3873 public static native void CVec_TransactionZ_free(byte[][] _res);
3874 // uint64_t C2Tuple_u32TxOutZ_clone_ptr(LDKC2Tuple_u32TxOutZ *NONNULL_PTR arg);
3875 public static native long C2Tuple_u32TxOutZ_clone_ptr(long arg);
3876 // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
3877 public static native long C2Tuple_u32TxOutZ_clone(long orig);
3878 // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
3879 public static native long C2Tuple_u32TxOutZ_new(int a, long b);
3880 // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
3881 public static native void C2Tuple_u32TxOutZ_free(long _res);
3882 // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
3883 public static native void CVec_C2Tuple_u32TxOutZZ_free(long[] _res);
3884 // uint64_t C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR arg);
3885 public static native long C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(long arg);
3886 // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig);
3887 public static native long C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(long orig);
3888 // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
3889 public static native long C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(byte[] a, long[] b);
3890 // void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ _res);
3891 public static native void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(long _res);
3892 // void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ _res);
3893 public static native void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(long[] _res);
3894 // void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res);
3895 public static native void CVec_BalanceZ_free(long[] _res);
3896 // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelMonitorZ o);
3897 public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(long o);
3898 // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
3899 public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(long e);
3900 // bool CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR o);
3901 public static native boolean CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(long o);
3902 // void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ _res);
3903 public static native void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(long _res);
3904 // uint64_t CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR arg);
3905 public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(long arg);
3906 // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR orig);
3907 public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(long orig);
3908 // uint64_t C2Tuple_PublicKeyTypeZ_clone_ptr(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR arg);
3909 public static native long C2Tuple_PublicKeyTypeZ_clone_ptr(long arg);
3910 // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_clone(const struct LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR orig);
3911 public static native long C2Tuple_PublicKeyTypeZ_clone(long orig);
3912 // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_new(struct LDKPublicKey a, struct LDKType b);
3913 public static native long C2Tuple_PublicKeyTypeZ_new(byte[] a, long b);
3914 // void C2Tuple_PublicKeyTypeZ_free(struct LDKC2Tuple_PublicKeyTypeZ _res);
3915 public static native void C2Tuple_PublicKeyTypeZ_free(long _res);
3916 // void CVec_C2Tuple_PublicKeyTypeZZ_free(struct LDKCVec_C2Tuple_PublicKeyTypeZZ _res);
3917 public static native void CVec_C2Tuple_PublicKeyTypeZZ_free(long[] _res);
3918 // struct LDKCOption_CustomOnionMessageContentsZ COption_CustomOnionMessageContentsZ_some(struct LDKCustomOnionMessageContents o);
3919 public static native long COption_CustomOnionMessageContentsZ_some(long o);
3920 // struct LDKCOption_CustomOnionMessageContentsZ COption_CustomOnionMessageContentsZ_none(void);
3921 public static native long COption_CustomOnionMessageContentsZ_none();
3922 // void COption_CustomOnionMessageContentsZ_free(struct LDKCOption_CustomOnionMessageContentsZ _res);
3923 public static native void COption_CustomOnionMessageContentsZ_free(long _res);
3924 // uint64_t COption_CustomOnionMessageContentsZ_clone_ptr(LDKCOption_CustomOnionMessageContentsZ *NONNULL_PTR arg);
3925 public static native long COption_CustomOnionMessageContentsZ_clone_ptr(long arg);
3926 // struct LDKCOption_CustomOnionMessageContentsZ COption_CustomOnionMessageContentsZ_clone(const struct LDKCOption_CustomOnionMessageContentsZ *NONNULL_PTR orig);
3927 public static native long COption_CustomOnionMessageContentsZ_clone(long orig);
3928 // struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_ok(struct LDKCOption_CustomOnionMessageContentsZ o);
3929 public static native long CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_ok(long o);
3930 // struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_err(struct LDKDecodeError e);
3931 public static native long CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_err(long e);
3932 // bool CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_is_ok(const struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR o);
3933 public static native boolean CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_is_ok(long o);
3934 // void CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_free(struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ _res);
3935 public static native void CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_free(long _res);
3936 // uint64_t CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone_ptr(LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR arg);
3937 public static native long CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone_ptr(long arg);
3938 // struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone(const struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR orig);
3939 public static native long CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone(long orig);
3940 // struct LDKCOption_NetAddressZ COption_NetAddressZ_some(struct LDKNetAddress o);
3941 public static native long COption_NetAddressZ_some(long o);
3942 // struct LDKCOption_NetAddressZ COption_NetAddressZ_none(void);
3943 public static native long COption_NetAddressZ_none();
3944 // void COption_NetAddressZ_free(struct LDKCOption_NetAddressZ _res);
3945 public static native void COption_NetAddressZ_free(long _res);
3946 // uint64_t COption_NetAddressZ_clone_ptr(LDKCOption_NetAddressZ *NONNULL_PTR arg);
3947 public static native long COption_NetAddressZ_clone_ptr(long arg);
3948 // struct LDKCOption_NetAddressZ COption_NetAddressZ_clone(const struct LDKCOption_NetAddressZ *NONNULL_PTR orig);
3949 public static native long COption_NetAddressZ_clone(long orig);
3950 // uint64_t C2Tuple_PublicKeyCOption_NetAddressZZ_clone_ptr(LDKC2Tuple_PublicKeyCOption_NetAddressZZ *NONNULL_PTR arg);
3951 public static native long C2Tuple_PublicKeyCOption_NetAddressZZ_clone_ptr(long arg);
3952 // struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ C2Tuple_PublicKeyCOption_NetAddressZZ_clone(const struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ *NONNULL_PTR orig);
3953 public static native long C2Tuple_PublicKeyCOption_NetAddressZZ_clone(long orig);
3954 // struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ C2Tuple_PublicKeyCOption_NetAddressZZ_new(struct LDKPublicKey a, struct LDKCOption_NetAddressZ b);
3955 public static native long C2Tuple_PublicKeyCOption_NetAddressZZ_new(byte[] a, long b);
3956 // void C2Tuple_PublicKeyCOption_NetAddressZZ_free(struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ _res);
3957 public static native void C2Tuple_PublicKeyCOption_NetAddressZZ_free(long _res);
3958 // void CVec_C2Tuple_PublicKeyCOption_NetAddressZZZ_free(struct LDKCVec_C2Tuple_PublicKeyCOption_NetAddressZZZ _res);
3959 public static native void CVec_C2Tuple_PublicKeyCOption_NetAddressZZZ_free(long[] _res);
3960 // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
3961 public static native long CResult_CVec_u8ZPeerHandleErrorZ_ok(byte[] o);
3962 // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
3963 public static native long CResult_CVec_u8ZPeerHandleErrorZ_err(long e);
3964 // bool CResult_CVec_u8ZPeerHandleErrorZ_is_ok(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR o);
3965 public static native boolean CResult_CVec_u8ZPeerHandleErrorZ_is_ok(long o);
3966 // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
3967 public static native void CResult_CVec_u8ZPeerHandleErrorZ_free(long _res);
3968 // uint64_t CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR arg);
3969 public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(long arg);
3970 // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
3971 public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone(long orig);
3972 // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
3973 public static native long CResult_NonePeerHandleErrorZ_ok();
3974 // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
3975 public static native long CResult_NonePeerHandleErrorZ_err(long e);
3976 // bool CResult_NonePeerHandleErrorZ_is_ok(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR o);
3977 public static native boolean CResult_NonePeerHandleErrorZ_is_ok(long o);
3978 // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
3979 public static native void CResult_NonePeerHandleErrorZ_free(long _res);
3980 // uint64_t CResult_NonePeerHandleErrorZ_clone_ptr(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR arg);
3981 public static native long CResult_NonePeerHandleErrorZ_clone_ptr(long arg);
3982 // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
3983 public static native long CResult_NonePeerHandleErrorZ_clone(long orig);
3984 // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
3985 public static native long CResult_boolPeerHandleErrorZ_ok(boolean o);
3986 // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
3987 public static native long CResult_boolPeerHandleErrorZ_err(long e);
3988 // bool CResult_boolPeerHandleErrorZ_is_ok(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR o);
3989 public static native boolean CResult_boolPeerHandleErrorZ_is_ok(long o);
3990 // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
3991 public static native void CResult_boolPeerHandleErrorZ_free(long _res);
3992 // uint64_t CResult_boolPeerHandleErrorZ_clone_ptr(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR arg);
3993 public static native long CResult_boolPeerHandleErrorZ_clone_ptr(long arg);
3994 // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
3995 public static native long CResult_boolPeerHandleErrorZ_clone(long orig);
3996 // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_ok(struct LDKTxOut o);
3997 public static native long CResult_TxOutUtxoLookupErrorZ_ok(long o);
3998 // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_err(enum LDKUtxoLookupError e);
3999 public static native long CResult_TxOutUtxoLookupErrorZ_err(UtxoLookupError e);
4000 // bool CResult_TxOutUtxoLookupErrorZ_is_ok(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR o);
4001 public static native boolean CResult_TxOutUtxoLookupErrorZ_is_ok(long o);
4002 // void CResult_TxOutUtxoLookupErrorZ_free(struct LDKCResult_TxOutUtxoLookupErrorZ _res);
4003 public static native void CResult_TxOutUtxoLookupErrorZ_free(long _res);
4004 // uint64_t CResult_TxOutUtxoLookupErrorZ_clone_ptr(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR arg);
4005 public static native long CResult_TxOutUtxoLookupErrorZ_clone_ptr(long arg);
4006 // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_clone(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR orig);
4007 public static native long CResult_TxOutUtxoLookupErrorZ_clone(long orig);
4008 // struct LDKCResult_NoneSendErrorZ CResult_NoneSendErrorZ_ok(void);
4009 public static native long CResult_NoneSendErrorZ_ok();
4010 // struct LDKCResult_NoneSendErrorZ CResult_NoneSendErrorZ_err(struct LDKSendError e);
4011 public static native long CResult_NoneSendErrorZ_err(long e);
4012 // bool CResult_NoneSendErrorZ_is_ok(const struct LDKCResult_NoneSendErrorZ *NONNULL_PTR o);
4013 public static native boolean CResult_NoneSendErrorZ_is_ok(long o);
4014 // void CResult_NoneSendErrorZ_free(struct LDKCResult_NoneSendErrorZ _res);
4015 public static native void CResult_NoneSendErrorZ_free(long _res);
4016 // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_ok(enum LDKSiPrefix o);
4017 public static native long CResult_SiPrefixParseErrorZ_ok(SiPrefix o);
4018 // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_err(struct LDKParseError e);
4019 public static native long CResult_SiPrefixParseErrorZ_err(long e);
4020 // bool CResult_SiPrefixParseErrorZ_is_ok(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR o);
4021 public static native boolean CResult_SiPrefixParseErrorZ_is_ok(long o);
4022 // void CResult_SiPrefixParseErrorZ_free(struct LDKCResult_SiPrefixParseErrorZ _res);
4023 public static native void CResult_SiPrefixParseErrorZ_free(long _res);
4024 // uint64_t CResult_SiPrefixParseErrorZ_clone_ptr(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR arg);
4025 public static native long CResult_SiPrefixParseErrorZ_clone_ptr(long arg);
4026 // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_clone(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR orig);
4027 public static native long CResult_SiPrefixParseErrorZ_clone(long orig);
4028 // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_ok(struct LDKInvoice o);
4029 public static native long CResult_InvoiceParseOrSemanticErrorZ_ok(long o);
4030 // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_err(struct LDKParseOrSemanticError e);
4031 public static native long CResult_InvoiceParseOrSemanticErrorZ_err(long e);
4032 // bool CResult_InvoiceParseOrSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR o);
4033 public static native boolean CResult_InvoiceParseOrSemanticErrorZ_is_ok(long o);
4034 // void CResult_InvoiceParseOrSemanticErrorZ_free(struct LDKCResult_InvoiceParseOrSemanticErrorZ _res);
4035 public static native void CResult_InvoiceParseOrSemanticErrorZ_free(long _res);
4036 // uint64_t CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR arg);
4037 public static native long CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(long arg);
4038 // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_clone(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR orig);
4039 public static native long CResult_InvoiceParseOrSemanticErrorZ_clone(long orig);
4040 // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_ok(struct LDKSignedRawInvoice o);
4041 public static native long CResult_SignedRawInvoiceParseErrorZ_ok(long o);
4042 // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_err(struct LDKParseError e);
4043 public static native long CResult_SignedRawInvoiceParseErrorZ_err(long e);
4044 // bool CResult_SignedRawInvoiceParseErrorZ_is_ok(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR o);
4045 public static native boolean CResult_SignedRawInvoiceParseErrorZ_is_ok(long o);
4046 // void CResult_SignedRawInvoiceParseErrorZ_free(struct LDKCResult_SignedRawInvoiceParseErrorZ _res);
4047 public static native void CResult_SignedRawInvoiceParseErrorZ_free(long _res);
4048 // uint64_t CResult_SignedRawInvoiceParseErrorZ_clone_ptr(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR arg);
4049 public static native long CResult_SignedRawInvoiceParseErrorZ_clone_ptr(long arg);
4050 // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_clone(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR orig);
4051 public static native long CResult_SignedRawInvoiceParseErrorZ_clone(long orig);
4052 // uint64_t C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR arg);
4053 public static native long C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(long arg);
4054 // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR orig);
4055 public static native long C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(long orig);
4056 // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(struct LDKRawInvoice a, struct LDKThirtyTwoBytes b, struct LDKInvoiceSignature c);
4057 public static native long C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(long a, byte[] b, long c);
4058 // void C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ _res);
4059 public static native void C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(long _res);
4060 // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_ok(struct LDKPayeePubKey o);
4061 public static native long CResult_PayeePubKeyErrorZ_ok(long o);
4062 // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_err(enum LDKSecp256k1Error e);
4063 public static native long CResult_PayeePubKeyErrorZ_err(Secp256k1Error e);
4064 // bool CResult_PayeePubKeyErrorZ_is_ok(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR o);
4065 public static native boolean CResult_PayeePubKeyErrorZ_is_ok(long o);
4066 // void CResult_PayeePubKeyErrorZ_free(struct LDKCResult_PayeePubKeyErrorZ _res);
4067 public static native void CResult_PayeePubKeyErrorZ_free(long _res);
4068 // uint64_t CResult_PayeePubKeyErrorZ_clone_ptr(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR arg);
4069 public static native long CResult_PayeePubKeyErrorZ_clone_ptr(long arg);
4070 // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_clone(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR orig);
4071 public static native long CResult_PayeePubKeyErrorZ_clone(long orig);
4072 // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res);
4073 public static native void CVec_PrivateRouteZ_free(long[] _res);
4074 // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o);
4075 public static native long CResult_PositiveTimestampCreationErrorZ_ok(long o);
4076 // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e);
4077 public static native long CResult_PositiveTimestampCreationErrorZ_err(CreationError e);
4078 // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o);
4079 public static native boolean CResult_PositiveTimestampCreationErrorZ_is_ok(long o);
4080 // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res);
4081 public static native void CResult_PositiveTimestampCreationErrorZ_free(long _res);
4082 // uint64_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg);
4083 public static native long CResult_PositiveTimestampCreationErrorZ_clone_ptr(long arg);
4084 // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig);
4085 public static native long CResult_PositiveTimestampCreationErrorZ_clone(long orig);
4086 // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_ok(void);
4087 public static native long CResult_NoneSemanticErrorZ_ok();
4088 // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_err(enum LDKSemanticError e);
4089 public static native long CResult_NoneSemanticErrorZ_err(SemanticError e);
4090 // bool CResult_NoneSemanticErrorZ_is_ok(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR o);
4091 public static native boolean CResult_NoneSemanticErrorZ_is_ok(long o);
4092 // void CResult_NoneSemanticErrorZ_free(struct LDKCResult_NoneSemanticErrorZ _res);
4093 public static native void CResult_NoneSemanticErrorZ_free(long _res);
4094 // uint64_t CResult_NoneSemanticErrorZ_clone_ptr(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR arg);
4095 public static native long CResult_NoneSemanticErrorZ_clone_ptr(long arg);
4096 // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_clone(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR orig);
4097 public static native long CResult_NoneSemanticErrorZ_clone(long orig);
4098 // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_ok(struct LDKInvoice o);
4099 public static native long CResult_InvoiceSemanticErrorZ_ok(long o);
4100 // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_err(enum LDKSemanticError e);
4101 public static native long CResult_InvoiceSemanticErrorZ_err(SemanticError e);
4102 // bool CResult_InvoiceSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR o);
4103 public static native boolean CResult_InvoiceSemanticErrorZ_is_ok(long o);
4104 // void CResult_InvoiceSemanticErrorZ_free(struct LDKCResult_InvoiceSemanticErrorZ _res);
4105 public static native void CResult_InvoiceSemanticErrorZ_free(long _res);
4106 // uint64_t CResult_InvoiceSemanticErrorZ_clone_ptr(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR arg);
4107 public static native long CResult_InvoiceSemanticErrorZ_clone_ptr(long arg);
4108 // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_clone(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR orig);
4109 public static native long CResult_InvoiceSemanticErrorZ_clone(long orig);
4110 // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o);
4111 public static native long CResult_DescriptionCreationErrorZ_ok(long o);
4112 // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e);
4113 public static native long CResult_DescriptionCreationErrorZ_err(CreationError e);
4114 // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o);
4115 public static native boolean CResult_DescriptionCreationErrorZ_is_ok(long o);
4116 // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res);
4117 public static native void CResult_DescriptionCreationErrorZ_free(long _res);
4118 // uint64_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg);
4119 public static native long CResult_DescriptionCreationErrorZ_clone_ptr(long arg);
4120 // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig);
4121 public static native long CResult_DescriptionCreationErrorZ_clone(long orig);
4122 // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o);
4123 public static native long CResult_PrivateRouteCreationErrorZ_ok(long o);
4124 // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e);
4125 public static native long CResult_PrivateRouteCreationErrorZ_err(CreationError e);
4126 // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o);
4127 public static native boolean CResult_PrivateRouteCreationErrorZ_is_ok(long o);
4128 // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res);
4129 public static native void CResult_PrivateRouteCreationErrorZ_free(long _res);
4130 // uint64_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg);
4131 public static native long CResult_PrivateRouteCreationErrorZ_clone_ptr(long arg);
4132 // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig);
4133 public static native long CResult_PrivateRouteCreationErrorZ_clone(long orig);
4134 // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_ok(uint32_t o);
4135 public static native long CResult_u32GraphSyncErrorZ_ok(int o);
4136 // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_err(struct LDKGraphSyncError e);
4137 public static native long CResult_u32GraphSyncErrorZ_err(long e);
4138 // bool CResult_u32GraphSyncErrorZ_is_ok(const struct LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR o);
4139 public static native boolean CResult_u32GraphSyncErrorZ_is_ok(long o);
4140 // void CResult_u32GraphSyncErrorZ_free(struct LDKCResult_u32GraphSyncErrorZ _res);
4141 public static native void CResult_u32GraphSyncErrorZ_free(long _res);
4142 // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_ok(struct LDKNetAddress o);
4143 public static native long CResult_NetAddressDecodeErrorZ_ok(long o);
4144 // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_err(struct LDKDecodeError e);
4145 public static native long CResult_NetAddressDecodeErrorZ_err(long e);
4146 // bool CResult_NetAddressDecodeErrorZ_is_ok(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR o);
4147 public static native boolean CResult_NetAddressDecodeErrorZ_is_ok(long o);
4148 // void CResult_NetAddressDecodeErrorZ_free(struct LDKCResult_NetAddressDecodeErrorZ _res);
4149 public static native void CResult_NetAddressDecodeErrorZ_free(long _res);
4150 // uint64_t CResult_NetAddressDecodeErrorZ_clone_ptr(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR arg);
4151 public static native long CResult_NetAddressDecodeErrorZ_clone_ptr(long arg);
4152 // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_clone(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR orig);
4153 public static native long CResult_NetAddressDecodeErrorZ_clone(long orig);
4154 // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
4155 public static native void CVec_UpdateAddHTLCZ_free(long[] _res);
4156 // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
4157 public static native void CVec_UpdateFulfillHTLCZ_free(long[] _res);
4158 // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
4159 public static native void CVec_UpdateFailHTLCZ_free(long[] _res);
4160 // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
4161 public static native void CVec_UpdateFailMalformedHTLCZ_free(long[] _res);
4162 // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
4163 public static native long CResult_AcceptChannelDecodeErrorZ_ok(long o);
4164 // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
4165 public static native long CResult_AcceptChannelDecodeErrorZ_err(long e);
4166 // bool CResult_AcceptChannelDecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR o);
4167 public static native boolean CResult_AcceptChannelDecodeErrorZ_is_ok(long o);
4168 // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
4169 public static native void CResult_AcceptChannelDecodeErrorZ_free(long _res);
4170 // uint64_t CResult_AcceptChannelDecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR arg);
4171 public static native long CResult_AcceptChannelDecodeErrorZ_clone_ptr(long arg);
4172 // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
4173 public static native long CResult_AcceptChannelDecodeErrorZ_clone(long orig);
4174 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
4175 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_ok(long o);
4176 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
4177 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_err(long e);
4178 // bool CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR o);
4179 public static native boolean CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(long o);
4180 // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
4181 public static native void CResult_AnnouncementSignaturesDecodeErrorZ_free(long _res);
4182 // uint64_t CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR arg);
4183 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(long arg);
4184 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
4185 public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone(long orig);
4186 // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
4187 public static native long CResult_ChannelReestablishDecodeErrorZ_ok(long o);
4188 // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
4189 public static native long CResult_ChannelReestablishDecodeErrorZ_err(long e);
4190 // bool CResult_ChannelReestablishDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR o);
4191 public static native boolean CResult_ChannelReestablishDecodeErrorZ_is_ok(long o);
4192 // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
4193 public static native void CResult_ChannelReestablishDecodeErrorZ_free(long _res);
4194 // uint64_t CResult_ChannelReestablishDecodeErrorZ_clone_ptr(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR arg);
4195 public static native long CResult_ChannelReestablishDecodeErrorZ_clone_ptr(long arg);
4196 // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
4197 public static native long CResult_ChannelReestablishDecodeErrorZ_clone(long orig);
4198 // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
4199 public static native long CResult_ClosingSignedDecodeErrorZ_ok(long o);
4200 // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
4201 public static native long CResult_ClosingSignedDecodeErrorZ_err(long e);
4202 // bool CResult_ClosingSignedDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR o);
4203 public static native boolean CResult_ClosingSignedDecodeErrorZ_is_ok(long o);
4204 // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
4205 public static native void CResult_ClosingSignedDecodeErrorZ_free(long _res);
4206 // uint64_t CResult_ClosingSignedDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR arg);
4207 public static native long CResult_ClosingSignedDecodeErrorZ_clone_ptr(long arg);
4208 // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
4209 public static native long CResult_ClosingSignedDecodeErrorZ_clone(long orig);
4210 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(struct LDKClosingSignedFeeRange o);
4211 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(long o);
4212 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_err(struct LDKDecodeError e);
4213 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_err(long e);
4214 // bool CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR o);
4215 public static native boolean CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(long o);
4216 // void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ _res);
4217 public static native void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(long _res);
4218 // uint64_t CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR arg);
4219 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(long arg);
4220 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR orig);
4221 public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(long orig);
4222 // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
4223 public static native long CResult_CommitmentSignedDecodeErrorZ_ok(long o);
4224 // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
4225 public static native long CResult_CommitmentSignedDecodeErrorZ_err(long e);
4226 // bool CResult_CommitmentSignedDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR o);
4227 public static native boolean CResult_CommitmentSignedDecodeErrorZ_is_ok(long o);
4228 // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
4229 public static native void CResult_CommitmentSignedDecodeErrorZ_free(long _res);
4230 // uint64_t CResult_CommitmentSignedDecodeErrorZ_clone_ptr(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR arg);
4231 public static native long CResult_CommitmentSignedDecodeErrorZ_clone_ptr(long arg);
4232 // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
4233 public static native long CResult_CommitmentSignedDecodeErrorZ_clone(long orig);
4234 // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
4235 public static native long CResult_FundingCreatedDecodeErrorZ_ok(long o);
4236 // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
4237 public static native long CResult_FundingCreatedDecodeErrorZ_err(long e);
4238 // bool CResult_FundingCreatedDecodeErrorZ_is_ok(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR o);
4239 public static native boolean CResult_FundingCreatedDecodeErrorZ_is_ok(long o);
4240 // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
4241 public static native void CResult_FundingCreatedDecodeErrorZ_free(long _res);
4242 // uint64_t CResult_FundingCreatedDecodeErrorZ_clone_ptr(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR arg);
4243 public static native long CResult_FundingCreatedDecodeErrorZ_clone_ptr(long arg);
4244 // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
4245 public static native long CResult_FundingCreatedDecodeErrorZ_clone(long orig);
4246 // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
4247 public static native long CResult_FundingSignedDecodeErrorZ_ok(long o);
4248 // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
4249 public static native long CResult_FundingSignedDecodeErrorZ_err(long e);
4250 // bool CResult_FundingSignedDecodeErrorZ_is_ok(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR o);
4251 public static native boolean CResult_FundingSignedDecodeErrorZ_is_ok(long o);
4252 // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
4253 public static native void CResult_FundingSignedDecodeErrorZ_free(long _res);
4254 // uint64_t CResult_FundingSignedDecodeErrorZ_clone_ptr(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR arg);
4255 public static native long CResult_FundingSignedDecodeErrorZ_clone_ptr(long arg);
4256 // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
4257 public static native long CResult_FundingSignedDecodeErrorZ_clone(long orig);
4258 // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_ok(struct LDKChannelReady o);
4259 public static native long CResult_ChannelReadyDecodeErrorZ_ok(long o);
4260 // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_err(struct LDKDecodeError e);
4261 public static native long CResult_ChannelReadyDecodeErrorZ_err(long e);
4262 // bool CResult_ChannelReadyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR o);
4263 public static native boolean CResult_ChannelReadyDecodeErrorZ_is_ok(long o);
4264 // void CResult_ChannelReadyDecodeErrorZ_free(struct LDKCResult_ChannelReadyDecodeErrorZ _res);
4265 public static native void CResult_ChannelReadyDecodeErrorZ_free(long _res);
4266 // uint64_t CResult_ChannelReadyDecodeErrorZ_clone_ptr(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR arg);
4267 public static native long CResult_ChannelReadyDecodeErrorZ_clone_ptr(long arg);
4268 // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_clone(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR orig);
4269 public static native long CResult_ChannelReadyDecodeErrorZ_clone(long orig);
4270 // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
4271 public static native long CResult_InitDecodeErrorZ_ok(long o);
4272 // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
4273 public static native long CResult_InitDecodeErrorZ_err(long e);
4274 // bool CResult_InitDecodeErrorZ_is_ok(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR o);
4275 public static native boolean CResult_InitDecodeErrorZ_is_ok(long o);
4276 // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
4277 public static native void CResult_InitDecodeErrorZ_free(long _res);
4278 // uint64_t CResult_InitDecodeErrorZ_clone_ptr(LDKCResult_InitDecodeErrorZ *NONNULL_PTR arg);
4279 public static native long CResult_InitDecodeErrorZ_clone_ptr(long arg);
4280 // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
4281 public static native long CResult_InitDecodeErrorZ_clone(long orig);
4282 // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
4283 public static native long CResult_OpenChannelDecodeErrorZ_ok(long o);
4284 // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
4285 public static native long CResult_OpenChannelDecodeErrorZ_err(long e);
4286 // bool CResult_OpenChannelDecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR o);
4287 public static native boolean CResult_OpenChannelDecodeErrorZ_is_ok(long o);
4288 // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
4289 public static native void CResult_OpenChannelDecodeErrorZ_free(long _res);
4290 // uint64_t CResult_OpenChannelDecodeErrorZ_clone_ptr(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR arg);
4291 public static native long CResult_OpenChannelDecodeErrorZ_clone_ptr(long arg);
4292 // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
4293 public static native long CResult_OpenChannelDecodeErrorZ_clone(long orig);
4294 // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
4295 public static native long CResult_RevokeAndACKDecodeErrorZ_ok(long o);
4296 // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
4297 public static native long CResult_RevokeAndACKDecodeErrorZ_err(long e);
4298 // bool CResult_RevokeAndACKDecodeErrorZ_is_ok(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR o);
4299 public static native boolean CResult_RevokeAndACKDecodeErrorZ_is_ok(long o);
4300 // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
4301 public static native void CResult_RevokeAndACKDecodeErrorZ_free(long _res);
4302 // uint64_t CResult_RevokeAndACKDecodeErrorZ_clone_ptr(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR arg);
4303 public static native long CResult_RevokeAndACKDecodeErrorZ_clone_ptr(long arg);
4304 // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
4305 public static native long CResult_RevokeAndACKDecodeErrorZ_clone(long orig);
4306 // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
4307 public static native long CResult_ShutdownDecodeErrorZ_ok(long o);
4308 // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
4309 public static native long CResult_ShutdownDecodeErrorZ_err(long e);
4310 // bool CResult_ShutdownDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR o);
4311 public static native boolean CResult_ShutdownDecodeErrorZ_is_ok(long o);
4312 // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
4313 public static native void CResult_ShutdownDecodeErrorZ_free(long _res);
4314 // uint64_t CResult_ShutdownDecodeErrorZ_clone_ptr(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR arg);
4315 public static native long CResult_ShutdownDecodeErrorZ_clone_ptr(long arg);
4316 // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
4317 public static native long CResult_ShutdownDecodeErrorZ_clone(long orig);
4318 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
4319 public static native long CResult_UpdateFailHTLCDecodeErrorZ_ok(long o);
4320 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
4321 public static native long CResult_UpdateFailHTLCDecodeErrorZ_err(long e);
4322 // bool CResult_UpdateFailHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR o);
4323 public static native boolean CResult_UpdateFailHTLCDecodeErrorZ_is_ok(long o);
4324 // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
4325 public static native void CResult_UpdateFailHTLCDecodeErrorZ_free(long _res);
4326 // uint64_t CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR arg);
4327 public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(long arg);
4328 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
4329 public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone(long orig);
4330 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
4331 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(long o);
4332 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
4333 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(long e);
4334 // bool CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR o);
4335 public static native boolean CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(long o);
4336 // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
4337 public static native void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(long _res);
4338 // uint64_t CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR arg);
4339 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(long arg);
4340 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
4341 public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(long orig);
4342 // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
4343 public static native long CResult_UpdateFeeDecodeErrorZ_ok(long o);
4344 // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
4345 public static native long CResult_UpdateFeeDecodeErrorZ_err(long e);
4346 // bool CResult_UpdateFeeDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR o);
4347 public static native boolean CResult_UpdateFeeDecodeErrorZ_is_ok(long o);
4348 // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
4349 public static native void CResult_UpdateFeeDecodeErrorZ_free(long _res);
4350 // uint64_t CResult_UpdateFeeDecodeErrorZ_clone_ptr(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR arg);
4351 public static native long CResult_UpdateFeeDecodeErrorZ_clone_ptr(long arg);
4352 // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
4353 public static native long CResult_UpdateFeeDecodeErrorZ_clone(long orig);
4354 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
4355 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_ok(long o);
4356 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
4357 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_err(long e);
4358 // bool CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR o);
4359 public static native boolean CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(long o);
4360 // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
4361 public static native void CResult_UpdateFulfillHTLCDecodeErrorZ_free(long _res);
4362 // uint64_t CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR arg);
4363 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(long arg);
4364 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
4365 public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone(long orig);
4366 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
4367 public static native long CResult_UpdateAddHTLCDecodeErrorZ_ok(long o);
4368 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
4369 public static native long CResult_UpdateAddHTLCDecodeErrorZ_err(long e);
4370 // bool CResult_UpdateAddHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR o);
4371 public static native boolean CResult_UpdateAddHTLCDecodeErrorZ_is_ok(long o);
4372 // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
4373 public static native void CResult_UpdateAddHTLCDecodeErrorZ_free(long _res);
4374 // uint64_t CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR arg);
4375 public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(long arg);
4376 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
4377 public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone(long orig);
4378 // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_ok(struct LDKOnionMessage o);
4379 public static native long CResult_OnionMessageDecodeErrorZ_ok(long o);
4380 // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_err(struct LDKDecodeError e);
4381 public static native long CResult_OnionMessageDecodeErrorZ_err(long e);
4382 // bool CResult_OnionMessageDecodeErrorZ_is_ok(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR o);
4383 public static native boolean CResult_OnionMessageDecodeErrorZ_is_ok(long o);
4384 // void CResult_OnionMessageDecodeErrorZ_free(struct LDKCResult_OnionMessageDecodeErrorZ _res);
4385 public static native void CResult_OnionMessageDecodeErrorZ_free(long _res);
4386 // uint64_t CResult_OnionMessageDecodeErrorZ_clone_ptr(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR arg);
4387 public static native long CResult_OnionMessageDecodeErrorZ_clone_ptr(long arg);
4388 // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_clone(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR orig);
4389 public static native long CResult_OnionMessageDecodeErrorZ_clone(long orig);
4390 // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
4391 public static native long CResult_PingDecodeErrorZ_ok(long o);
4392 // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
4393 public static native long CResult_PingDecodeErrorZ_err(long e);
4394 // bool CResult_PingDecodeErrorZ_is_ok(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR o);
4395 public static native boolean CResult_PingDecodeErrorZ_is_ok(long o);
4396 // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
4397 public static native void CResult_PingDecodeErrorZ_free(long _res);
4398 // uint64_t CResult_PingDecodeErrorZ_clone_ptr(LDKCResult_PingDecodeErrorZ *NONNULL_PTR arg);
4399 public static native long CResult_PingDecodeErrorZ_clone_ptr(long arg);
4400 // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
4401 public static native long CResult_PingDecodeErrorZ_clone(long orig);
4402 // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
4403 public static native long CResult_PongDecodeErrorZ_ok(long o);
4404 // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
4405 public static native long CResult_PongDecodeErrorZ_err(long e);
4406 // bool CResult_PongDecodeErrorZ_is_ok(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR o);
4407 public static native boolean CResult_PongDecodeErrorZ_is_ok(long o);
4408 // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
4409 public static native void CResult_PongDecodeErrorZ_free(long _res);
4410 // uint64_t CResult_PongDecodeErrorZ_clone_ptr(LDKCResult_PongDecodeErrorZ *NONNULL_PTR arg);
4411 public static native long CResult_PongDecodeErrorZ_clone_ptr(long arg);
4412 // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
4413 public static native long CResult_PongDecodeErrorZ_clone(long orig);
4414 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
4415 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(long o);
4416 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
4417 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(long e);
4418 // bool CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
4419 public static native boolean CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(long o);
4420 // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
4421 public static native void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(long _res);
4422 // uint64_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
4423 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(long arg);
4424 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
4425 public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(long orig);
4426 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
4427 public static native long CResult_ChannelAnnouncementDecodeErrorZ_ok(long o);
4428 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
4429 public static native long CResult_ChannelAnnouncementDecodeErrorZ_err(long e);
4430 // bool CResult_ChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
4431 public static native boolean CResult_ChannelAnnouncementDecodeErrorZ_is_ok(long o);
4432 // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
4433 public static native void CResult_ChannelAnnouncementDecodeErrorZ_free(long _res);
4434 // uint64_t CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
4435 public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(long arg);
4436 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
4437 public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone(long orig);
4438 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
4439 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_ok(long o);
4440 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
4441 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_err(long e);
4442 // bool CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR o);
4443 public static native boolean CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(long o);
4444 // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
4445 public static native void CResult_UnsignedChannelUpdateDecodeErrorZ_free(long _res);
4446 // uint64_t CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
4447 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(long arg);
4448 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
4449 public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone(long orig);
4450 // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
4451 public static native long CResult_ChannelUpdateDecodeErrorZ_ok(long o);
4452 // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
4453 public static native long CResult_ChannelUpdateDecodeErrorZ_err(long e);
4454 // bool CResult_ChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR o);
4455 public static native boolean CResult_ChannelUpdateDecodeErrorZ_is_ok(long o);
4456 // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
4457 public static native void CResult_ChannelUpdateDecodeErrorZ_free(long _res);
4458 // uint64_t CResult_ChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
4459 public static native long CResult_ChannelUpdateDecodeErrorZ_clone_ptr(long arg);
4460 // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
4461 public static native long CResult_ChannelUpdateDecodeErrorZ_clone(long orig);
4462 // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
4463 public static native long CResult_ErrorMessageDecodeErrorZ_ok(long o);
4464 // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
4465 public static native long CResult_ErrorMessageDecodeErrorZ_err(long e);
4466 // bool CResult_ErrorMessageDecodeErrorZ_is_ok(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR o);
4467 public static native boolean CResult_ErrorMessageDecodeErrorZ_is_ok(long o);
4468 // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
4469 public static native void CResult_ErrorMessageDecodeErrorZ_free(long _res);
4470 // uint64_t CResult_ErrorMessageDecodeErrorZ_clone_ptr(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR arg);
4471 public static native long CResult_ErrorMessageDecodeErrorZ_clone_ptr(long arg);
4472 // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
4473 public static native long CResult_ErrorMessageDecodeErrorZ_clone(long orig);
4474 // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_ok(struct LDKWarningMessage o);
4475 public static native long CResult_WarningMessageDecodeErrorZ_ok(long o);
4476 // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_err(struct LDKDecodeError e);
4477 public static native long CResult_WarningMessageDecodeErrorZ_err(long e);
4478 // bool CResult_WarningMessageDecodeErrorZ_is_ok(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR o);
4479 public static native boolean CResult_WarningMessageDecodeErrorZ_is_ok(long o);
4480 // void CResult_WarningMessageDecodeErrorZ_free(struct LDKCResult_WarningMessageDecodeErrorZ _res);
4481 public static native void CResult_WarningMessageDecodeErrorZ_free(long _res);
4482 // uint64_t CResult_WarningMessageDecodeErrorZ_clone_ptr(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR arg);
4483 public static native long CResult_WarningMessageDecodeErrorZ_clone_ptr(long arg);
4484 // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_clone(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR orig);
4485 public static native long CResult_WarningMessageDecodeErrorZ_clone(long orig);
4486 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
4487 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(long o);
4488 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
4489 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(long e);
4490 // bool CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
4491 public static native boolean CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(long o);
4492 // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
4493 public static native void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(long _res);
4494 // uint64_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
4495 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(long arg);
4496 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
4497 public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(long orig);
4498 // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
4499 public static native long CResult_NodeAnnouncementDecodeErrorZ_ok(long o);
4500 // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
4501 public static native long CResult_NodeAnnouncementDecodeErrorZ_err(long e);
4502 // bool CResult_NodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
4503 public static native boolean CResult_NodeAnnouncementDecodeErrorZ_is_ok(long o);
4504 // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
4505 public static native void CResult_NodeAnnouncementDecodeErrorZ_free(long _res);
4506 // uint64_t CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
4507 public static native long CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(long arg);
4508 // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
4509 public static native long CResult_NodeAnnouncementDecodeErrorZ_clone(long orig);
4510 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
4511 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_ok(long o);
4512 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
4513 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_err(long e);
4514 // bool CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR o);
4515 public static native boolean CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(long o);
4516 // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
4517 public static native void CResult_QueryShortChannelIdsDecodeErrorZ_free(long _res);
4518 // uint64_t CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR arg);
4519 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(long arg);
4520 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
4521 public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone(long orig);
4522 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
4523 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(long o);
4524 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
4525 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(long e);
4526 // bool CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR o);
4527 public static native boolean CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(long o);
4528 // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
4529 public static native void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(long _res);
4530 // uint64_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR arg);
4531 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(long arg);
4532 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
4533 public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(long orig);
4534 // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
4535 public static native long CResult_QueryChannelRangeDecodeErrorZ_ok(long o);
4536 // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
4537 public static native long CResult_QueryChannelRangeDecodeErrorZ_err(long e);
4538 // bool CResult_QueryChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR o);
4539 public static native boolean CResult_QueryChannelRangeDecodeErrorZ_is_ok(long o);
4540 // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
4541 public static native void CResult_QueryChannelRangeDecodeErrorZ_free(long _res);
4542 // uint64_t CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR arg);
4543 public static native long CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(long arg);
4544 // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
4545 public static native long CResult_QueryChannelRangeDecodeErrorZ_clone(long orig);
4546 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
4547 public static native long CResult_ReplyChannelRangeDecodeErrorZ_ok(long o);
4548 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
4549 public static native long CResult_ReplyChannelRangeDecodeErrorZ_err(long e);
4550 // bool CResult_ReplyChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR o);
4551 public static native boolean CResult_ReplyChannelRangeDecodeErrorZ_is_ok(long o);
4552 // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
4553 public static native void CResult_ReplyChannelRangeDecodeErrorZ_free(long _res);
4554 // uint64_t CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR arg);
4555 public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(long arg);
4556 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
4557 public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone(long orig);
4558 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
4559 public static native long CResult_GossipTimestampFilterDecodeErrorZ_ok(long o);
4560 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
4561 public static native long CResult_GossipTimestampFilterDecodeErrorZ_err(long e);
4562 // bool CResult_GossipTimestampFilterDecodeErrorZ_is_ok(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR o);
4563 public static native boolean CResult_GossipTimestampFilterDecodeErrorZ_is_ok(long o);
4564 // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
4565 public static native void CResult_GossipTimestampFilterDecodeErrorZ_free(long _res);
4566 // uint64_t CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR arg);
4567 public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(long arg);
4568 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
4569 public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone(long orig);
4570 // void CVec_PhantomRouteHintsZ_free(struct LDKCVec_PhantomRouteHintsZ _res);
4571 public static native void CVec_PhantomRouteHintsZ_free(long[] _res);
4572 // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_ok(struct LDKInvoice o);
4573 public static native long CResult_InvoiceSignOrCreationErrorZ_ok(long o);
4574 // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_err(struct LDKSignOrCreationError e);
4575 public static native long CResult_InvoiceSignOrCreationErrorZ_err(long e);
4576 // bool CResult_InvoiceSignOrCreationErrorZ_is_ok(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR o);
4577 public static native boolean CResult_InvoiceSignOrCreationErrorZ_is_ok(long o);
4578 // void CResult_InvoiceSignOrCreationErrorZ_free(struct LDKCResult_InvoiceSignOrCreationErrorZ _res);
4579 public static native void CResult_InvoiceSignOrCreationErrorZ_free(long _res);
4580 // uint64_t CResult_InvoiceSignOrCreationErrorZ_clone_ptr(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR arg);
4581 public static native long CResult_InvoiceSignOrCreationErrorZ_clone_ptr(long arg);
4582 // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_clone(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR orig);
4583 public static native long CResult_InvoiceSignOrCreationErrorZ_clone(long orig);
4584 // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o);
4585 public static native long COption_FilterZ_some(long o);
4586 // struct LDKCOption_FilterZ COption_FilterZ_none(void);
4587 public static native long COption_FilterZ_none();
4588 // void COption_FilterZ_free(struct LDKCOption_FilterZ _res);
4589 public static native void COption_FilterZ_free(long _res);
4590 // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o);
4591 public static native long CResult_LockedChannelMonitorNoneZ_ok(long o);
4592 // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void);
4593 public static native long CResult_LockedChannelMonitorNoneZ_err();
4594 // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o);
4595 public static native boolean CResult_LockedChannelMonitorNoneZ_is_ok(long o);
4596 // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res);
4597 public static native void CResult_LockedChannelMonitorNoneZ_free(long _res);
4598 // void CVec_OutPointZ_free(struct LDKCVec_OutPointZ _res);
4599 public static native void CVec_OutPointZ_free(long[] _res);
4600 // void CVec_MonitorUpdateIdZ_free(struct LDKCVec_MonitorUpdateIdZ _res);
4601 public static native void CVec_MonitorUpdateIdZ_free(long[] _res);
4602 // uint64_t C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR arg);
4603 public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(long arg);
4604 // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(const struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR orig);
4605 public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(long orig);
4606 // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorUpdateIdZ b);
4607 public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(long a, long[] b);
4608 // void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ _res);
4609 public static native void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(long _res);
4610 // void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ _res);
4611 public static native void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(long[] _res);
4612 // void PaymentPurpose_free(struct LDKPaymentPurpose this_ptr);
4613 public static native void PaymentPurpose_free(long this_ptr);
4614 // uint64_t PaymentPurpose_clone_ptr(LDKPaymentPurpose *NONNULL_PTR arg);
4615 public static native long PaymentPurpose_clone_ptr(long arg);
4616 // struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NONNULL_PTR orig);
4617 public static native long PaymentPurpose_clone(long orig);
4618 // struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_secret);
4619 public static native long PaymentPurpose_invoice_payment(byte[] payment_preimage, byte[] payment_secret);
4620 // struct LDKPaymentPurpose PaymentPurpose_spontaneous_payment(struct LDKThirtyTwoBytes a);
4621 public static native long PaymentPurpose_spontaneous_payment(byte[] a);
4622 // bool PaymentPurpose_eq(const struct LDKPaymentPurpose *NONNULL_PTR a, const struct LDKPaymentPurpose *NONNULL_PTR b);
4623 public static native boolean PaymentPurpose_eq(long a, long b);
4624 // struct LDKCVec_u8Z PaymentPurpose_write(const struct LDKPaymentPurpose *NONNULL_PTR obj);
4625 public static native byte[] PaymentPurpose_write(long obj);
4626 // struct LDKCResult_PaymentPurposeDecodeErrorZ PaymentPurpose_read(struct LDKu8slice ser);
4627 public static native long PaymentPurpose_read(byte[] ser);
4628 // void PathFailure_free(struct LDKPathFailure this_ptr);
4629 public static native void PathFailure_free(long this_ptr);
4630 // uint64_t PathFailure_clone_ptr(LDKPathFailure *NONNULL_PTR arg);
4631 public static native long PathFailure_clone_ptr(long arg);
4632 // struct LDKPathFailure PathFailure_clone(const struct LDKPathFailure *NONNULL_PTR orig);
4633 public static native long PathFailure_clone(long orig);
4634 // struct LDKPathFailure PathFailure_initial_send(struct LDKAPIError err);
4635 public static native long PathFailure_initial_send(long err);
4636 // struct LDKPathFailure PathFailure_on_path(struct LDKCOption_NetworkUpdateZ network_update);
4637 public static native long PathFailure_on_path(long network_update);
4638 // bool PathFailure_eq(const struct LDKPathFailure *NONNULL_PTR a, const struct LDKPathFailure *NONNULL_PTR b);
4639 public static native boolean PathFailure_eq(long a, long b);
4640 // struct LDKCVec_u8Z PathFailure_write(const struct LDKPathFailure *NONNULL_PTR obj);
4641 public static native byte[] PathFailure_write(long obj);
4642 // struct LDKCResult_COption_PathFailureZDecodeErrorZ PathFailure_read(struct LDKu8slice ser);
4643 public static native long PathFailure_read(byte[] ser);
4644 // void ClosureReason_free(struct LDKClosureReason this_ptr);
4645 public static native void ClosureReason_free(long this_ptr);
4646 // uint64_t ClosureReason_clone_ptr(LDKClosureReason *NONNULL_PTR arg);
4647 public static native long ClosureReason_clone_ptr(long arg);
4648 // struct LDKClosureReason ClosureReason_clone(const struct LDKClosureReason *NONNULL_PTR orig);
4649 public static native long ClosureReason_clone(long orig);
4650 // struct LDKClosureReason ClosureReason_counterparty_force_closed(struct LDKStr peer_msg);
4651 public static native long ClosureReason_counterparty_force_closed(String peer_msg);
4652 // struct LDKClosureReason ClosureReason_holder_force_closed(void);
4653 public static native long ClosureReason_holder_force_closed();
4654 // struct LDKClosureReason ClosureReason_cooperative_closure(void);
4655 public static native long ClosureReason_cooperative_closure();
4656 // struct LDKClosureReason ClosureReason_commitment_tx_confirmed(void);
4657 public static native long ClosureReason_commitment_tx_confirmed();
4658 // struct LDKClosureReason ClosureReason_funding_timed_out(void);
4659 public static native long ClosureReason_funding_timed_out();
4660 // struct LDKClosureReason ClosureReason_processing_error(struct LDKStr err);
4661 public static native long ClosureReason_processing_error(String err);
4662 // struct LDKClosureReason ClosureReason_disconnected_peer(void);
4663 public static native long ClosureReason_disconnected_peer();
4664 // struct LDKClosureReason ClosureReason_outdated_channel_manager(void);
4665 public static native long ClosureReason_outdated_channel_manager();
4666 // bool ClosureReason_eq(const struct LDKClosureReason *NONNULL_PTR a, const struct LDKClosureReason *NONNULL_PTR b);
4667 public static native boolean ClosureReason_eq(long a, long b);
4668 // struct LDKCVec_u8Z ClosureReason_write(const struct LDKClosureReason *NONNULL_PTR obj);
4669 public static native byte[] ClosureReason_write(long obj);
4670 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(struct LDKu8slice ser);
4671 public static native long ClosureReason_read(byte[] ser);
4672 // void HTLCDestination_free(struct LDKHTLCDestination this_ptr);
4673 public static native void HTLCDestination_free(long this_ptr);
4674 // uint64_t HTLCDestination_clone_ptr(LDKHTLCDestination *NONNULL_PTR arg);
4675 public static native long HTLCDestination_clone_ptr(long arg);
4676 // struct LDKHTLCDestination HTLCDestination_clone(const struct LDKHTLCDestination *NONNULL_PTR orig);
4677 public static native long HTLCDestination_clone(long orig);
4678 // struct LDKHTLCDestination HTLCDestination_next_hop_channel(struct LDKPublicKey node_id, struct LDKThirtyTwoBytes channel_id);
4679 public static native long HTLCDestination_next_hop_channel(byte[] node_id, byte[] channel_id);
4680 // struct LDKHTLCDestination HTLCDestination_unknown_next_hop(uint64_t requested_forward_scid);
4681 public static native long HTLCDestination_unknown_next_hop(long requested_forward_scid);
4682 // struct LDKHTLCDestination HTLCDestination_invalid_forward(uint64_t requested_forward_scid);
4683 public static native long HTLCDestination_invalid_forward(long requested_forward_scid);
4684 // struct LDKHTLCDestination HTLCDestination_failed_payment(struct LDKThirtyTwoBytes payment_hash);
4685 public static native long HTLCDestination_failed_payment(byte[] payment_hash);
4686 // bool HTLCDestination_eq(const struct LDKHTLCDestination *NONNULL_PTR a, const struct LDKHTLCDestination *NONNULL_PTR b);
4687 public static native boolean HTLCDestination_eq(long a, long b);
4688 // struct LDKCVec_u8Z HTLCDestination_write(const struct LDKHTLCDestination *NONNULL_PTR obj);
4689 public static native byte[] HTLCDestination_write(long obj);
4690 // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ HTLCDestination_read(struct LDKu8slice ser);
4691 public static native long HTLCDestination_read(byte[] ser);
4692 // void Event_free(struct LDKEvent this_ptr);
4693 public static native void Event_free(long this_ptr);
4694 // uint64_t Event_clone_ptr(LDKEvent *NONNULL_PTR arg);
4695 public static native long Event_clone_ptr(long arg);
4696 // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
4697 public static native long Event_clone(long orig);
4698 // 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);
4699 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);
4700 // struct LDKEvent Event_payment_claimable(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose, struct LDKThirtyTwoBytes via_channel_id, struct LDKCOption_u128Z via_user_channel_id);
4701 public static native long Event_payment_claimable(byte[] receiver_node_id, byte[] payment_hash, long amount_msat, long purpose, byte[] via_channel_id, long via_user_channel_id);
4702 // struct LDKEvent Event_payment_claimed(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose);
4703 public static native long Event_payment_claimed(byte[] receiver_node_id, byte[] payment_hash, long amount_msat, long purpose);
4704 // struct LDKEvent Event_payment_sent(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat);
4705 public static native long Event_payment_sent(byte[] payment_id, byte[] payment_preimage, byte[] payment_hash, long fee_paid_msat);
4706 // struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash);
4707 public static native long Event_payment_failed(byte[] payment_id, byte[] payment_hash);
4708 // struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCVec_RouteHopZ path);
4709 public static native long Event_payment_path_successful(byte[] payment_id, byte[] payment_hash, long[] path);
4710 // struct LDKEvent Event_payment_path_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, bool payment_failed_permanently, struct LDKPathFailure failure, struct LDKCVec_RouteHopZ path, struct LDKCOption_u64Z short_channel_id, struct LDKRouteParameters retry);
4711 public static native long Event_payment_path_failed(byte[] payment_id, byte[] payment_hash, boolean payment_failed_permanently, long failure, long[] path, long short_channel_id, long retry);
4712 // struct LDKEvent Event_probe_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCVec_RouteHopZ path);
4713 public static native long Event_probe_successful(byte[] payment_id, byte[] payment_hash, long[] path);
4714 // struct LDKEvent Event_probe_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCVec_RouteHopZ path, struct LDKCOption_u64Z short_channel_id);
4715 public static native long Event_probe_failed(byte[] payment_id, byte[] payment_hash, long[] path, long short_channel_id);
4716 // struct LDKEvent Event_pending_htlcs_forwardable(uint64_t time_forwardable);
4717 public static native long Event_pending_htlcs_forwardable(long time_forwardable);
4718 // 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);
4719 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);
4720 // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs);
4721 public static native long Event_spendable_outputs(long[] outputs);
4722 // struct LDKEvent Event_payment_forwarded(struct LDKThirtyTwoBytes prev_channel_id, struct LDKThirtyTwoBytes next_channel_id, struct LDKCOption_u64Z fee_earned_msat, bool claim_from_onchain_tx);
4723 public static native long Event_payment_forwarded(byte[] prev_channel_id, byte[] next_channel_id, long fee_earned_msat, boolean claim_from_onchain_tx);
4724 // struct LDKEvent Event_channel_ready(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKChannelTypeFeatures channel_type);
4725 public static native long Event_channel_ready(byte[] channel_id, byte[] user_channel_id, byte[] counterparty_node_id, long channel_type);
4726 // struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKClosureReason reason);
4727 public static native long Event_channel_closed(byte[] channel_id, byte[] user_channel_id, long reason);
4728 // struct LDKEvent Event_discard_funding(struct LDKThirtyTwoBytes channel_id, struct LDKTransaction transaction);
4729 public static native long Event_discard_funding(byte[] channel_id, byte[] transaction);
4730 // 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);
4731 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);
4732 // struct LDKEvent Event_htlchandling_failed(struct LDKThirtyTwoBytes prev_channel_id, struct LDKHTLCDestination failed_next_destination);
4733 public static native long Event_htlchandling_failed(byte[] prev_channel_id, long failed_next_destination);
4734 // bool Event_eq(const struct LDKEvent *NONNULL_PTR a, const struct LDKEvent *NONNULL_PTR b);
4735 public static native boolean Event_eq(long a, long b);
4736 // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
4737 public static native byte[] Event_write(long obj);
4738 // struct LDKCResult_COption_EventZDecodeErrorZ Event_read(struct LDKu8slice ser);
4739 public static native long Event_read(byte[] ser);
4740 // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
4741 public static native void MessageSendEvent_free(long this_ptr);
4742 // uint64_t MessageSendEvent_clone_ptr(LDKMessageSendEvent *NONNULL_PTR arg);
4743 public static native long MessageSendEvent_clone_ptr(long arg);
4744 // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
4745 public static native long MessageSendEvent_clone(long orig);
4746 // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel(struct LDKPublicKey node_id, struct LDKAcceptChannel msg);
4747 public static native long MessageSendEvent_send_accept_channel(byte[] node_id, long msg);
4748 // struct LDKMessageSendEvent MessageSendEvent_send_open_channel(struct LDKPublicKey node_id, struct LDKOpenChannel msg);
4749 public static native long MessageSendEvent_send_open_channel(byte[] node_id, long msg);
4750 // struct LDKMessageSendEvent MessageSendEvent_send_funding_created(struct LDKPublicKey node_id, struct LDKFundingCreated msg);
4751 public static native long MessageSendEvent_send_funding_created(byte[] node_id, long msg);
4752 // struct LDKMessageSendEvent MessageSendEvent_send_funding_signed(struct LDKPublicKey node_id, struct LDKFundingSigned msg);
4753 public static native long MessageSendEvent_send_funding_signed(byte[] node_id, long msg);
4754 // struct LDKMessageSendEvent MessageSendEvent_send_channel_ready(struct LDKPublicKey node_id, struct LDKChannelReady msg);
4755 public static native long MessageSendEvent_send_channel_ready(byte[] node_id, long msg);
4756 // struct LDKMessageSendEvent MessageSendEvent_send_announcement_signatures(struct LDKPublicKey node_id, struct LDKAnnouncementSignatures msg);
4757 public static native long MessageSendEvent_send_announcement_signatures(byte[] node_id, long msg);
4758 // struct LDKMessageSendEvent MessageSendEvent_update_htlcs(struct LDKPublicKey node_id, struct LDKCommitmentUpdate updates);
4759 public static native long MessageSendEvent_update_htlcs(byte[] node_id, long updates);
4760 // struct LDKMessageSendEvent MessageSendEvent_send_revoke_and_ack(struct LDKPublicKey node_id, struct LDKRevokeAndACK msg);
4761 public static native long MessageSendEvent_send_revoke_and_ack(byte[] node_id, long msg);
4762 // struct LDKMessageSendEvent MessageSendEvent_send_closing_signed(struct LDKPublicKey node_id, struct LDKClosingSigned msg);
4763 public static native long MessageSendEvent_send_closing_signed(byte[] node_id, long msg);
4764 // struct LDKMessageSendEvent MessageSendEvent_send_shutdown(struct LDKPublicKey node_id, struct LDKShutdown msg);
4765 public static native long MessageSendEvent_send_shutdown(byte[] node_id, long msg);
4766 // struct LDKMessageSendEvent MessageSendEvent_send_channel_reestablish(struct LDKPublicKey node_id, struct LDKChannelReestablish msg);
4767 public static native long MessageSendEvent_send_channel_reestablish(byte[] node_id, long msg);
4768 // struct LDKMessageSendEvent MessageSendEvent_send_channel_announcement(struct LDKPublicKey node_id, struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
4769 public static native long MessageSendEvent_send_channel_announcement(byte[] node_id, long msg, long update_msg);
4770 // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_announcement(struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
4771 public static native long MessageSendEvent_broadcast_channel_announcement(long msg, long update_msg);
4772 // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_update(struct LDKChannelUpdate msg);
4773 public static native long MessageSendEvent_broadcast_channel_update(long msg);
4774 // struct LDKMessageSendEvent MessageSendEvent_broadcast_node_announcement(struct LDKNodeAnnouncement msg);
4775 public static native long MessageSendEvent_broadcast_node_announcement(long msg);
4776 // struct LDKMessageSendEvent MessageSendEvent_send_channel_update(struct LDKPublicKey node_id, struct LDKChannelUpdate msg);
4777 public static native long MessageSendEvent_send_channel_update(byte[] node_id, long msg);
4778 // struct LDKMessageSendEvent MessageSendEvent_handle_error(struct LDKPublicKey node_id, struct LDKErrorAction action);
4779 public static native long MessageSendEvent_handle_error(byte[] node_id, long action);
4780 // struct LDKMessageSendEvent MessageSendEvent_send_channel_range_query(struct LDKPublicKey node_id, struct LDKQueryChannelRange msg);
4781 public static native long MessageSendEvent_send_channel_range_query(byte[] node_id, long msg);
4782 // struct LDKMessageSendEvent MessageSendEvent_send_short_ids_query(struct LDKPublicKey node_id, struct LDKQueryShortChannelIds msg);
4783 public static native long MessageSendEvent_send_short_ids_query(byte[] node_id, long msg);
4784 // struct LDKMessageSendEvent MessageSendEvent_send_reply_channel_range(struct LDKPublicKey node_id, struct LDKReplyChannelRange msg);
4785 public static native long MessageSendEvent_send_reply_channel_range(byte[] node_id, long msg);
4786 // struct LDKMessageSendEvent MessageSendEvent_send_gossip_timestamp_filter(struct LDKPublicKey node_id, struct LDKGossipTimestampFilter msg);
4787 public static native long MessageSendEvent_send_gossip_timestamp_filter(byte[] node_id, long msg);
4788 // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
4789 public static native void MessageSendEventsProvider_free(long this_ptr);
4790 // void OnionMessageProvider_free(struct LDKOnionMessageProvider this_ptr);
4791 public static native void OnionMessageProvider_free(long this_ptr);
4792 // void EventsProvider_free(struct LDKEventsProvider this_ptr);
4793 public static native void EventsProvider_free(long this_ptr);
4794 // void EventHandler_free(struct LDKEventHandler this_ptr);
4795 public static native void EventHandler_free(long this_ptr);
4796 // void APIError_free(struct LDKAPIError this_ptr);
4797 public static native void APIError_free(long this_ptr);
4798 // uint64_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg);
4799 public static native long APIError_clone_ptr(long arg);
4800 // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
4801 public static native long APIError_clone(long orig);
4802 // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err);
4803 public static native long APIError_apimisuse_error(String err);
4804 // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate);
4805 public static native long APIError_fee_rate_too_high(String err, int feerate);
4806 // struct LDKAPIError APIError_invalid_route(struct LDKStr err);
4807 public static native long APIError_invalid_route(String err);
4808 // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err);
4809 public static native long APIError_channel_unavailable(String err);
4810 // struct LDKAPIError APIError_monitor_update_in_progress(void);
4811 public static native long APIError_monitor_update_in_progress();
4812 // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script);
4813 public static native long APIError_incompatible_shutdown_script(long script);
4814 // bool APIError_eq(const struct LDKAPIError *NONNULL_PTR a, const struct LDKAPIError *NONNULL_PTR b);
4815 public static native boolean APIError_eq(long a, long b);
4816 // struct LDKCVec_u8Z APIError_write(const struct LDKAPIError *NONNULL_PTR obj);
4817 public static native byte[] APIError_write(long obj);
4818 // struct LDKCResult_COption_APIErrorZDecodeErrorZ APIError_read(struct LDKu8slice ser);
4819 public static native long APIError_read(byte[] ser);
4820 // void BigSize_free(struct LDKBigSize this_obj);
4821 public static native void BigSize_free(long this_obj);
4822 // uint64_t BigSize_get_a(const struct LDKBigSize *NONNULL_PTR this_ptr);
4823 public static native long BigSize_get_a(long this_ptr);
4824 // void BigSize_set_a(struct LDKBigSize *NONNULL_PTR this_ptr, uint64_t val);
4825 public static native void BigSize_set_a(long this_ptr, long val);
4826 // MUST_USE_RES struct LDKBigSize BigSize_new(uint64_t a_arg);
4827 public static native long BigSize_new(long a_arg);
4828 // void Hostname_free(struct LDKHostname this_obj);
4829 public static native void Hostname_free(long this_obj);
4830 // uint64_t Hostname_clone_ptr(LDKHostname *NONNULL_PTR arg);
4831 public static native long Hostname_clone_ptr(long arg);
4832 // struct LDKHostname Hostname_clone(const struct LDKHostname *NONNULL_PTR orig);
4833 public static native long Hostname_clone(long orig);
4834 // bool Hostname_eq(const struct LDKHostname *NONNULL_PTR a, const struct LDKHostname *NONNULL_PTR b);
4835 public static native boolean Hostname_eq(long a, long b);
4836 // MUST_USE_RES uint8_t Hostname_len(const struct LDKHostname *NONNULL_PTR this_arg);
4837 public static native byte Hostname_len(long this_arg);
4838 // struct LDKCResult_StringErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]);
4839 public static native long sign(byte[] msg, byte[] sk);
4840 // struct LDKCResult_PublicKeyErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig);
4841 public static native long recover_pk(byte[] msg, String sig);
4842 // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk);
4843 public static native boolean verify(byte[] msg, String sig, byte[] pk);
4844 // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z data_without_signature);
4845 public static native byte[] construct_invoice_preimage(byte[] hrp_bytes, byte[] data_without_signature);
4846 // void Persister_free(struct LDKPersister this_ptr);
4847 public static native void Persister_free(long this_ptr);
4848 // void PrintableString_free(struct LDKPrintableString this_obj);
4849 public static native void PrintableString_free(long this_obj);
4850 // struct LDKStr PrintableString_get_a(const struct LDKPrintableString *NONNULL_PTR this_ptr);
4851 public static native String PrintableString_get_a(long this_ptr);
4852 // void PrintableString_set_a(struct LDKPrintableString *NONNULL_PTR this_ptr, struct LDKStr val);
4853 public static native void PrintableString_set_a(long this_ptr, String val);
4854 // MUST_USE_RES struct LDKPrintableString PrintableString_new(struct LDKStr a_arg);
4855 public static native long PrintableString_new(String a_arg);
4856 // void FutureCallback_free(struct LDKFutureCallback this_ptr);
4857 public static native void FutureCallback_free(long this_ptr);
4858 // void Future_free(struct LDKFuture this_obj);
4859 public static native void Future_free(long this_obj);
4860 // void Future_register_callback_fn(const struct LDKFuture *NONNULL_PTR this_arg, struct LDKFutureCallback callback);
4861 public static native void Future_register_callback_fn(long this_arg, long callback);
4862 // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
4863 public static native Level Level_clone(long orig);
4864 // enum LDKLevel Level_gossip(void);
4865 public static native Level Level_gossip();
4866 // enum LDKLevel Level_trace(void);
4867 public static native Level Level_trace();
4868 // enum LDKLevel Level_debug(void);
4869 public static native Level Level_debug();
4870 // enum LDKLevel Level_info(void);
4871 public static native Level Level_info();
4872 // enum LDKLevel Level_warn(void);
4873 public static native Level Level_warn();
4874 // enum LDKLevel Level_error(void);
4875 public static native Level Level_error();
4876 // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b);
4877 public static native boolean Level_eq(long a, long b);
4878 // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o);
4879 public static native long Level_hash(long o);
4880 // MUST_USE_RES enum LDKLevel Level_max(void);
4881 public static native Level Level_max();
4882 // void Record_free(struct LDKRecord this_obj);
4883 public static native void Record_free(long this_obj);
4884 // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr);
4885 public static native Level Record_get_level(long this_ptr);
4886 // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val);
4887 public static native void Record_set_level(long this_ptr, Level val);
4888 // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr);
4889 public static native String Record_get_args(long this_ptr);
4890 // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
4891 public static native void Record_set_args(long this_ptr, String val);
4892 // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr);
4893 public static native String Record_get_module_path(long this_ptr);
4894 // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
4895 public static native void Record_set_module_path(long this_ptr, String val);
4896 // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr);
4897 public static native String Record_get_file(long this_ptr);
4898 // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
4899 public static native void Record_set_file(long this_ptr, String val);
4900 // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr);
4901 public static native int Record_get_line(long this_ptr);
4902 // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val);
4903 public static native void Record_set_line(long this_ptr, int val);
4904 // uint64_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg);
4905 public static native long Record_clone_ptr(long arg);
4906 // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig);
4907 public static native long Record_clone(long orig);
4908 // void Logger_free(struct LDKLogger this_ptr);
4909 public static native void Logger_free(long this_ptr);
4910 // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj);
4911 public static native void ChannelHandshakeConfig_free(long this_obj);
4912 // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
4913 public static native int ChannelHandshakeConfig_get_minimum_depth(long this_ptr);
4914 // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
4915 public static native void ChannelHandshakeConfig_set_minimum_depth(long this_ptr, int val);
4916 // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
4917 public static native short ChannelHandshakeConfig_get_our_to_self_delay(long this_ptr);
4918 // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
4919 public static native void ChannelHandshakeConfig_set_our_to_self_delay(long this_ptr, short val);
4920 // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
4921 public static native long ChannelHandshakeConfig_get_our_htlc_minimum_msat(long this_ptr);
4922 // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
4923 public static native void ChannelHandshakeConfig_set_our_htlc_minimum_msat(long this_ptr, long val);
4924 // uint8_t ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
4925 public static native byte ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(long this_ptr);
4926 // void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint8_t val);
4927 public static native void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(long this_ptr, byte val);
4928 // bool ChannelHandshakeConfig_get_negotiate_scid_privacy(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
4929 public static native boolean ChannelHandshakeConfig_get_negotiate_scid_privacy(long this_ptr);
4930 // void ChannelHandshakeConfig_set_negotiate_scid_privacy(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
4931 public static native void ChannelHandshakeConfig_set_negotiate_scid_privacy(long this_ptr, boolean val);
4932 // bool ChannelHandshakeConfig_get_announced_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
4933 public static native boolean ChannelHandshakeConfig_get_announced_channel(long this_ptr);
4934 // void ChannelHandshakeConfig_set_announced_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
4935 public static native void ChannelHandshakeConfig_set_announced_channel(long this_ptr, boolean val);
4936 // bool ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
4937 public static native boolean ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(long this_ptr);
4938 // void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
4939 public static native void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(long this_ptr, boolean val);
4940 // uint32_t ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
4941 public static native int ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(long this_ptr);
4942 // void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
4943 public static native void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(long this_ptr, int val);
4944 // 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);
4945 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);
4946 // uint64_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg);
4947 public static native long ChannelHandshakeConfig_clone_ptr(long arg);
4948 // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
4949 public static native long ChannelHandshakeConfig_clone(long orig);
4950 // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
4951 public static native long ChannelHandshakeConfig_default();
4952 // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj);
4953 public static native void ChannelHandshakeLimits_free(long this_obj);
4954 // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4955 public static native long ChannelHandshakeLimits_get_min_funding_satoshis(long this_ptr);
4956 // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
4957 public static native void ChannelHandshakeLimits_set_min_funding_satoshis(long this_ptr, long val);
4958 // uint64_t ChannelHandshakeLimits_get_max_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4959 public static native long ChannelHandshakeLimits_get_max_funding_satoshis(long this_ptr);
4960 // void ChannelHandshakeLimits_set_max_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
4961 public static native void ChannelHandshakeLimits_set_max_funding_satoshis(long this_ptr, long val);
4962 // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4963 public static native long ChannelHandshakeLimits_get_max_htlc_minimum_msat(long this_ptr);
4964 // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
4965 public static native void ChannelHandshakeLimits_set_max_htlc_minimum_msat(long this_ptr, long val);
4966 // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4967 public static native long ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(long this_ptr);
4968 // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
4969 public static native void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(long this_ptr, long val);
4970 // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4971 public static native long ChannelHandshakeLimits_get_max_channel_reserve_satoshis(long this_ptr);
4972 // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
4973 public static native void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(long this_ptr, long val);
4974 // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4975 public static native short ChannelHandshakeLimits_get_min_max_accepted_htlcs(long this_ptr);
4976 // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
4977 public static native void ChannelHandshakeLimits_set_min_max_accepted_htlcs(long this_ptr, short val);
4978 // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4979 public static native int ChannelHandshakeLimits_get_max_minimum_depth(long this_ptr);
4980 // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
4981 public static native void ChannelHandshakeLimits_set_max_minimum_depth(long this_ptr, int val);
4982 // bool ChannelHandshakeLimits_get_trust_own_funding_0conf(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4983 public static native boolean ChannelHandshakeLimits_get_trust_own_funding_0conf(long this_ptr);
4984 // void ChannelHandshakeLimits_set_trust_own_funding_0conf(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
4985 public static native void ChannelHandshakeLimits_set_trust_own_funding_0conf(long this_ptr, boolean val);
4986 // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4987 public static native boolean ChannelHandshakeLimits_get_force_announced_channel_preference(long this_ptr);
4988 // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
4989 public static native void ChannelHandshakeLimits_set_force_announced_channel_preference(long this_ptr, boolean val);
4990 // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
4991 public static native short ChannelHandshakeLimits_get_their_to_self_delay(long this_ptr);
4992 // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
4993 public static native void ChannelHandshakeLimits_set_their_to_self_delay(long this_ptr, short val);
4994 // 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);
4995 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);
4996 // uint64_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg);
4997 public static native long ChannelHandshakeLimits_clone_ptr(long arg);
4998 // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
4999 public static native long ChannelHandshakeLimits_clone(long orig);
5000 // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
5001 public static native long ChannelHandshakeLimits_default();
5002 // void ChannelConfig_free(struct LDKChannelConfig this_obj);
5003 public static native void ChannelConfig_free(long this_obj);
5004 // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
5005 public static native int ChannelConfig_get_forwarding_fee_proportional_millionths(long this_ptr);
5006 // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
5007 public static native void ChannelConfig_set_forwarding_fee_proportional_millionths(long this_ptr, int val);
5008 // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
5009 public static native int ChannelConfig_get_forwarding_fee_base_msat(long this_ptr);
5010 // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
5011 public static native void ChannelConfig_set_forwarding_fee_base_msat(long this_ptr, int val);
5012 // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
5013 public static native short ChannelConfig_get_cltv_expiry_delta(long this_ptr);
5014 // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val);
5015 public static native void ChannelConfig_set_cltv_expiry_delta(long this_ptr, short val);
5016 // uint64_t ChannelConfig_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
5017 public static native long ChannelConfig_get_max_dust_htlc_exposure_msat(long this_ptr);
5018 // void ChannelConfig_set_max_dust_htlc_exposure_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
5019 public static native void ChannelConfig_set_max_dust_htlc_exposure_msat(long this_ptr, long val);
5020 // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
5021 public static native long ChannelConfig_get_force_close_avoidance_max_fee_satoshis(long this_ptr);
5022 // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
5023 public static native void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(long this_ptr, long val);
5024 // MUST_USE_RES struct LDKChannelConfig ChannelConfig_new(uint32_t forwarding_fee_proportional_millionths_arg, uint32_t forwarding_fee_base_msat_arg, uint16_t cltv_expiry_delta_arg, uint64_t max_dust_htlc_exposure_msat_arg, uint64_t force_close_avoidance_max_fee_satoshis_arg);
5025 public static native long ChannelConfig_new(int forwarding_fee_proportional_millionths_arg, int forwarding_fee_base_msat_arg, short cltv_expiry_delta_arg, long max_dust_htlc_exposure_msat_arg, long force_close_avoidance_max_fee_satoshis_arg);
5026 // uint64_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg);
5027 public static native long ChannelConfig_clone_ptr(long arg);
5028 // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
5029 public static native long ChannelConfig_clone(long orig);
5030 // bool ChannelConfig_eq(const struct LDKChannelConfig *NONNULL_PTR a, const struct LDKChannelConfig *NONNULL_PTR b);
5031 public static native boolean ChannelConfig_eq(long a, long b);
5032 // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
5033 public static native long ChannelConfig_default();
5034 // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
5035 public static native byte[] ChannelConfig_write(long obj);
5036 // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser);
5037 public static native long ChannelConfig_read(byte[] ser);
5038 // void UserConfig_free(struct LDKUserConfig this_obj);
5039 public static native void UserConfig_free(long this_obj);
5040 // struct LDKChannelHandshakeConfig UserConfig_get_channel_handshake_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
5041 public static native long UserConfig_get_channel_handshake_config(long this_ptr);
5042 // void UserConfig_set_channel_handshake_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
5043 public static native void UserConfig_set_channel_handshake_config(long this_ptr, long val);
5044 // struct LDKChannelHandshakeLimits UserConfig_get_channel_handshake_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
5045 public static native long UserConfig_get_channel_handshake_limits(long this_ptr);
5046 // void UserConfig_set_channel_handshake_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
5047 public static native void UserConfig_set_channel_handshake_limits(long this_ptr, long val);
5048 // struct LDKChannelConfig UserConfig_get_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
5049 public static native long UserConfig_get_channel_config(long this_ptr);
5050 // void UserConfig_set_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
5051 public static native void UserConfig_set_channel_config(long this_ptr, long val);
5052 // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
5053 public static native boolean UserConfig_get_accept_forwards_to_priv_channels(long this_ptr);
5054 // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
5055 public static native void UserConfig_set_accept_forwards_to_priv_channels(long this_ptr, boolean val);
5056 // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
5057 public static native boolean UserConfig_get_accept_inbound_channels(long this_ptr);
5058 // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
5059 public static native void UserConfig_set_accept_inbound_channels(long this_ptr, boolean val);
5060 // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
5061 public static native boolean UserConfig_get_manually_accept_inbound_channels(long this_ptr);
5062 // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
5063 public static native void UserConfig_set_manually_accept_inbound_channels(long this_ptr, boolean val);
5064 // bool UserConfig_get_accept_intercept_htlcs(const struct LDKUserConfig *NONNULL_PTR this_ptr);
5065 public static native boolean UserConfig_get_accept_intercept_htlcs(long this_ptr);
5066 // void UserConfig_set_accept_intercept_htlcs(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
5067 public static native void UserConfig_set_accept_intercept_htlcs(long this_ptr, boolean val);
5068 // 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);
5069 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);
5070 // uint64_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg);
5071 public static native long UserConfig_clone_ptr(long arg);
5072 // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
5073 public static native long UserConfig_clone(long orig);
5074 // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
5075 public static native long UserConfig_default();
5076 // void BestBlock_free(struct LDKBestBlock this_obj);
5077 public static native void BestBlock_free(long this_obj);
5078 // uint64_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg);
5079 public static native long BestBlock_clone_ptr(long arg);
5080 // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig);
5081 public static native long BestBlock_clone(long orig);
5082 // bool BestBlock_eq(const struct LDKBestBlock *NONNULL_PTR a, const struct LDKBestBlock *NONNULL_PTR b);
5083 public static native boolean BestBlock_eq(long a, long b);
5084 // MUST_USE_RES struct LDKBestBlock BestBlock_from_network(enum LDKNetwork network);
5085 public static native long BestBlock_from_network(Network network);
5086 // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash, uint32_t height);
5087 public static native long BestBlock_new(byte[] block_hash, int height);
5088 // MUST_USE_RES struct LDKThirtyTwoBytes BestBlock_block_hash(const struct LDKBestBlock *NONNULL_PTR this_arg);
5089 public static native byte[] BestBlock_block_hash(long this_arg);
5090 // MUST_USE_RES uint32_t BestBlock_height(const struct LDKBestBlock *NONNULL_PTR this_arg);
5091 public static native int BestBlock_height(long this_arg);
5092 // void Listen_free(struct LDKListen this_ptr);
5093 public static native void Listen_free(long this_ptr);
5094 // void Confirm_free(struct LDKConfirm this_ptr);
5095 public static native void Confirm_free(long this_ptr);
5096 // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR orig);
5097 public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(long orig);
5098 // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed(void);
5099 public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed();
5100 // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress(void);
5101 public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress();
5102 // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_permanent_failure(void);
5103 public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_permanent_failure();
5104 // bool ChannelMonitorUpdateStatus_eq(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR a, const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR b);
5105 public static native boolean ChannelMonitorUpdateStatus_eq(long a, long b);
5106 // void Watch_free(struct LDKWatch this_ptr);
5107 public static native void Watch_free(long this_ptr);
5108 // void Filter_free(struct LDKFilter this_ptr);
5109 public static native void Filter_free(long this_ptr);
5110 // void WatchedOutput_free(struct LDKWatchedOutput this_obj);
5111 public static native void WatchedOutput_free(long this_obj);
5112 // struct LDKThirtyTwoBytes WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
5113 public static native byte[] WatchedOutput_get_block_hash(long this_ptr);
5114 // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5115 public static native void WatchedOutput_set_block_hash(long this_ptr, byte[] val);
5116 // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
5117 public static native long WatchedOutput_get_outpoint(long this_ptr);
5118 // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
5119 public static native void WatchedOutput_set_outpoint(long this_ptr, long val);
5120 // struct LDKu8slice WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
5121 public static native byte[] WatchedOutput_get_script_pubkey(long this_ptr);
5122 // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
5123 public static native void WatchedOutput_set_script_pubkey(long this_ptr, byte[] val);
5124 // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKThirtyTwoBytes block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg);
5125 public static native long WatchedOutput_new(byte[] block_hash_arg, long outpoint_arg, byte[] script_pubkey_arg);
5126 // uint64_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg);
5127 public static native long WatchedOutput_clone_ptr(long arg);
5128 // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig);
5129 public static native long WatchedOutput_clone(long orig);
5130 // bool WatchedOutput_eq(const struct LDKWatchedOutput *NONNULL_PTR a, const struct LDKWatchedOutput *NONNULL_PTR b);
5131 public static native boolean WatchedOutput_eq(long a, long b);
5132 // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o);
5133 public static native long WatchedOutput_hash(long o);
5134 // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
5135 public static native void BroadcasterInterface_free(long this_ptr);
5136 // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
5137 public static native ConfirmationTarget ConfirmationTarget_clone(long orig);
5138 // enum LDKConfirmationTarget ConfirmationTarget_background(void);
5139 public static native ConfirmationTarget ConfirmationTarget_background();
5140 // enum LDKConfirmationTarget ConfirmationTarget_normal(void);
5141 public static native ConfirmationTarget ConfirmationTarget_normal();
5142 // enum LDKConfirmationTarget ConfirmationTarget_high_priority(void);
5143 public static native ConfirmationTarget ConfirmationTarget_high_priority();
5144 // uint64_t ConfirmationTarget_hash(const enum LDKConfirmationTarget *NONNULL_PTR o);
5145 public static native long ConfirmationTarget_hash(long o);
5146 // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b);
5147 public static native boolean ConfirmationTarget_eq(long a, long b);
5148 // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
5149 public static native void FeeEstimator_free(long this_ptr);
5150 // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj);
5151 public static native void MonitorUpdateId_free(long this_obj);
5152 // uint64_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg);
5153 public static native long MonitorUpdateId_clone_ptr(long arg);
5154 // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig);
5155 public static native long MonitorUpdateId_clone(long orig);
5156 // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o);
5157 public static native long MonitorUpdateId_hash(long o);
5158 // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b);
5159 public static native boolean MonitorUpdateId_eq(long a, long b);
5160 // void Persist_free(struct LDKPersist this_ptr);
5161 public static native void Persist_free(long this_ptr);
5162 // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj);
5163 public static native void LockedChannelMonitor_free(long this_obj);
5164 // void ChainMonitor_free(struct LDKChainMonitor this_obj);
5165 public static native void ChainMonitor_free(long this_obj);
5166 // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
5167 public static native long ChainMonitor_new(long chain_source, long broadcaster, long logger, long feeest, long persister);
5168 // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels);
5169 public static native long[] ChainMonitor_get_claimable_balances(long this_arg, long[] ignored_channels);
5170 // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo);
5171 public static native long ChainMonitor_get_monitor(long this_arg, long funding_txo);
5172 // MUST_USE_RES struct LDKCVec_OutPointZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg);
5173 public static native long[] ChainMonitor_list_monitors(long this_arg);
5174 // MUST_USE_RES struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ ChainMonitor_list_pending_monitor_updates(const struct LDKChainMonitor *NONNULL_PTR this_arg);
5175 public static native long[] ChainMonitor_list_pending_monitor_updates(long this_arg);
5176 // 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);
5177 public static native long ChainMonitor_channel_monitor_updated(long this_arg, long funding_txo, long completed_update_id);
5178 // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg);
5179 public static native long ChainMonitor_as_Listen(long this_arg);
5180 // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg);
5181 public static native long ChainMonitor_as_Confirm(long this_arg);
5182 // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
5183 public static native long ChainMonitor_as_Watch(long this_arg);
5184 // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
5185 public static native long ChainMonitor_as_EventsProvider(long this_arg);
5186 // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj);
5187 public static native void ChannelMonitorUpdate_free(long this_obj);
5188 // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
5189 public static native long ChannelMonitorUpdate_get_update_id(long this_ptr);
5190 // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
5191 public static native void ChannelMonitorUpdate_set_update_id(long this_ptr, long val);
5192 // uint64_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg);
5193 public static native long ChannelMonitorUpdate_clone_ptr(long arg);
5194 // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
5195 public static native long ChannelMonitorUpdate_clone(long orig);
5196 // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
5197 public static native byte[] ChannelMonitorUpdate_write(long obj);
5198 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
5199 public static native long ChannelMonitorUpdate_read(byte[] ser);
5200 // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
5201 public static native void MonitorEvent_free(long this_ptr);
5202 // uint64_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg);
5203 public static native long MonitorEvent_clone_ptr(long arg);
5204 // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
5205 public static native long MonitorEvent_clone(long orig);
5206 // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a);
5207 public static native long MonitorEvent_htlcevent(long a);
5208 // struct LDKMonitorEvent MonitorEvent_commitment_tx_confirmed(struct LDKOutPoint a);
5209 public static native long MonitorEvent_commitment_tx_confirmed(long a);
5210 // struct LDKMonitorEvent MonitorEvent_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id);
5211 public static native long MonitorEvent_completed(long funding_txo, long monitor_update_id);
5212 // struct LDKMonitorEvent MonitorEvent_update_failed(struct LDKOutPoint a);
5213 public static native long MonitorEvent_update_failed(long a);
5214 // bool MonitorEvent_eq(const struct LDKMonitorEvent *NONNULL_PTR a, const struct LDKMonitorEvent *NONNULL_PTR b);
5215 public static native boolean MonitorEvent_eq(long a, long b);
5216 // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj);
5217 public static native byte[] MonitorEvent_write(long obj);
5218 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser);
5219 public static native long MonitorEvent_read(byte[] ser);
5220 // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj);
5221 public static native void HTLCUpdate_free(long this_obj);
5222 // uint64_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg);
5223 public static native long HTLCUpdate_clone_ptr(long arg);
5224 // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
5225 public static native long HTLCUpdate_clone(long orig);
5226 // bool HTLCUpdate_eq(const struct LDKHTLCUpdate *NONNULL_PTR a, const struct LDKHTLCUpdate *NONNULL_PTR b);
5227 public static native boolean HTLCUpdate_eq(long a, long b);
5228 // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
5229 public static native byte[] HTLCUpdate_write(long obj);
5230 // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser);
5231 public static native long HTLCUpdate_read(byte[] ser);
5232 // void Balance_free(struct LDKBalance this_ptr);
5233 public static native void Balance_free(long this_ptr);
5234 // uint64_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg);
5235 public static native long Balance_clone_ptr(long arg);
5236 // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig);
5237 public static native long Balance_clone(long orig);
5238 // struct LDKBalance Balance_claimable_on_channel_close(uint64_t claimable_amount_satoshis);
5239 public static native long Balance_claimable_on_channel_close(long claimable_amount_satoshis);
5240 // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t claimable_amount_satoshis, uint32_t confirmation_height);
5241 public static native long Balance_claimable_awaiting_confirmations(long claimable_amount_satoshis, int confirmation_height);
5242 // struct LDKBalance Balance_contentious_claimable(uint64_t claimable_amount_satoshis, uint32_t timeout_height);
5243 public static native long Balance_contentious_claimable(long claimable_amount_satoshis, int timeout_height);
5244 // struct LDKBalance Balance_maybe_timeout_claimable_htlc(uint64_t claimable_amount_satoshis, uint32_t claimable_height);
5245 public static native long Balance_maybe_timeout_claimable_htlc(long claimable_amount_satoshis, int claimable_height);
5246 // struct LDKBalance Balance_maybe_preimage_claimable_htlc(uint64_t claimable_amount_satoshis, uint32_t expiry_height);
5247 public static native long Balance_maybe_preimage_claimable_htlc(long claimable_amount_satoshis, int expiry_height);
5248 // struct LDKBalance Balance_counterparty_revoked_output_claimable(uint64_t claimable_amount_satoshis);
5249 public static native long Balance_counterparty_revoked_output_claimable(long claimable_amount_satoshis);
5250 // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b);
5251 public static native boolean Balance_eq(long a, long b);
5252 // void ChannelMonitor_free(struct LDKChannelMonitor this_obj);
5253 public static native void ChannelMonitor_free(long this_obj);
5254 // uint64_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg);
5255 public static native long ChannelMonitor_clone_ptr(long arg);
5256 // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig);
5257 public static native long ChannelMonitor_clone(long orig);
5258 // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
5259 public static native byte[] ChannelMonitor_write(long obj);
5260 // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelMonitor_update_monitor(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR updates, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger);
5261 public static native long ChannelMonitor_update_monitor(long this_arg, long updates, long broadcaster, long fee_estimator, long logger);
5262 // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
5263 public static native long ChannelMonitor_get_latest_update_id(long this_arg);
5264 // MUST_USE_RES struct LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
5265 public static native long ChannelMonitor_get_funding_txo(long this_arg);
5266 // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
5267 public static native long[] ChannelMonitor_get_outputs_to_watch(long this_arg);
5268 // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter);
5269 public static native void ChannelMonitor_load_outputs_to_watch(long this_arg, long filter);
5270 // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
5271 public static native long[] ChannelMonitor_get_and_clear_pending_monitor_events(long this_arg);
5272 // MUST_USE_RES struct LDKCVec_EventZ ChannelMonitor_get_and_clear_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
5273 public static native long[] ChannelMonitor_get_and_clear_pending_events(long this_arg);
5274 // MUST_USE_RES struct LDKPublicKey ChannelMonitor_get_counterparty_node_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
5275 public static native byte[] ChannelMonitor_get_counterparty_node_id(long this_arg);
5276 // 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);
5277 public static native byte[][] ChannelMonitor_get_latest_holder_commitment_txn(long this_arg, long logger);
5278 // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_block_connected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
5279 public static native long[] ChannelMonitor_block_connected(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
5280 // void ChannelMonitor_block_disconnected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
5281 public static native void ChannelMonitor_block_disconnected(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
5282 // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_transactions_confirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
5283 public static native long[] ChannelMonitor_transactions_confirmed(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
5284 // void ChannelMonitor_transaction_unconfirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
5285 public static native void ChannelMonitor_transaction_unconfirmed(long this_arg, byte[] txid, long broadcaster, long fee_estimator, long logger);
5286 // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_best_block_updated(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
5287 public static native long[] ChannelMonitor_best_block_updated(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
5288 // MUST_USE_RES struct LDKCVec_C2Tuple_TxidBlockHashZZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
5289 public static native long[] ChannelMonitor_get_relevant_txids(long this_arg);
5290 // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
5291 public static native long ChannelMonitor_current_best_block(long this_arg);
5292 // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
5293 public static native long[] ChannelMonitor_get_claimable_balances(long this_arg);
5294 // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ C2Tuple_BlockHashChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKEntropySource *NONNULL_PTR arg_a, const struct LDKSignerProvider *NONNULL_PTR arg_b);
5295 public static native long C2Tuple_BlockHashChannelMonitorZ_read(byte[] ser, long arg_a, long arg_b);
5296 // void OutPoint_free(struct LDKOutPoint this_obj);
5297 public static native void OutPoint_free(long this_obj);
5298 // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
5299 public static native byte[] OutPoint_get_txid(long this_ptr);
5300 // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5301 public static native void OutPoint_set_txid(long this_ptr, byte[] val);
5302 // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
5303 public static native short OutPoint_get_index(long this_ptr);
5304 // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
5305 public static native void OutPoint_set_index(long this_ptr, short val);
5306 // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
5307 public static native long OutPoint_new(byte[] txid_arg, short index_arg);
5308 // uint64_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg);
5309 public static native long OutPoint_clone_ptr(long arg);
5310 // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
5311 public static native long OutPoint_clone(long orig);
5312 // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b);
5313 public static native boolean OutPoint_eq(long a, long b);
5314 // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o);
5315 public static native long OutPoint_hash(long o);
5316 // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg);
5317 public static native byte[] OutPoint_to_channel_id(long this_arg);
5318 // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
5319 public static native byte[] OutPoint_write(long obj);
5320 // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser);
5321 public static native long OutPoint_read(byte[] ser);
5322 // void DelayedPaymentOutputDescriptor_free(struct LDKDelayedPaymentOutputDescriptor this_obj);
5323 public static native void DelayedPaymentOutputDescriptor_free(long this_obj);
5324 // struct LDKOutPoint DelayedPaymentOutputDescriptor_get_outpoint(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
5325 public static native long DelayedPaymentOutputDescriptor_get_outpoint(long this_ptr);
5326 // void DelayedPaymentOutputDescriptor_set_outpoint(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
5327 public static native void DelayedPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
5328 // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_per_commitment_point(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
5329 public static native byte[] DelayedPaymentOutputDescriptor_get_per_commitment_point(long this_ptr);
5330 // void DelayedPaymentOutputDescriptor_set_per_commitment_point(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5331 public static native void DelayedPaymentOutputDescriptor_set_per_commitment_point(long this_ptr, byte[] val);
5332 // uint16_t DelayedPaymentOutputDescriptor_get_to_self_delay(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
5333 public static native short DelayedPaymentOutputDescriptor_get_to_self_delay(long this_ptr);
5334 // void DelayedPaymentOutputDescriptor_set_to_self_delay(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint16_t val);
5335 public static native void DelayedPaymentOutputDescriptor_set_to_self_delay(long this_ptr, short val);
5336 // struct LDKTxOut DelayedPaymentOutputDescriptor_get_output(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
5337 public static native long DelayedPaymentOutputDescriptor_get_output(long this_ptr);
5338 // void DelayedPaymentOutputDescriptor_set_output(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
5339 public static native void DelayedPaymentOutputDescriptor_set_output(long this_ptr, long val);
5340 // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_revocation_pubkey(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
5341 public static native byte[] DelayedPaymentOutputDescriptor_get_revocation_pubkey(long this_ptr);
5342 // void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5343 public static native void DelayedPaymentOutputDescriptor_set_revocation_pubkey(long this_ptr, byte[] val);
5344 // const uint8_t (*DelayedPaymentOutputDescriptor_get_channel_keys_id(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
5345 public static native byte[] DelayedPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
5346 // void DelayedPaymentOutputDescriptor_set_channel_keys_id(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5347 public static native void DelayedPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
5348 // uint64_t DelayedPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
5349 public static native long DelayedPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
5350 // void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
5351 public static native void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
5352 // MUST_USE_RES struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKPublicKey per_commitment_point_arg, uint16_t to_self_delay_arg, struct LDKTxOut output_arg, struct LDKPublicKey revocation_pubkey_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg);
5353 public static native long DelayedPaymentOutputDescriptor_new(long outpoint_arg, byte[] per_commitment_point_arg, short to_self_delay_arg, long output_arg, byte[] revocation_pubkey_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg);
5354 // uint64_t DelayedPaymentOutputDescriptor_clone_ptr(LDKDelayedPaymentOutputDescriptor *NONNULL_PTR arg);
5355 public static native long DelayedPaymentOutputDescriptor_clone_ptr(long arg);
5356 // struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig);
5357 public static native long DelayedPaymentOutputDescriptor_clone(long orig);
5358 // bool DelayedPaymentOutputDescriptor_eq(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR b);
5359 public static native boolean DelayedPaymentOutputDescriptor_eq(long a, long b);
5360 // struct LDKCVec_u8Z DelayedPaymentOutputDescriptor_write(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR obj);
5361 public static native byte[] DelayedPaymentOutputDescriptor_write(long obj);
5362 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ DelayedPaymentOutputDescriptor_read(struct LDKu8slice ser);
5363 public static native long DelayedPaymentOutputDescriptor_read(byte[] ser);
5364 // void StaticPaymentOutputDescriptor_free(struct LDKStaticPaymentOutputDescriptor this_obj);
5365 public static native void StaticPaymentOutputDescriptor_free(long this_obj);
5366 // struct LDKOutPoint StaticPaymentOutputDescriptor_get_outpoint(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
5367 public static native long StaticPaymentOutputDescriptor_get_outpoint(long this_ptr);
5368 // void StaticPaymentOutputDescriptor_set_outpoint(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
5369 public static native void StaticPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
5370 // struct LDKTxOut StaticPaymentOutputDescriptor_get_output(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
5371 public static native long StaticPaymentOutputDescriptor_get_output(long this_ptr);
5372 // void StaticPaymentOutputDescriptor_set_output(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
5373 public static native void StaticPaymentOutputDescriptor_set_output(long this_ptr, long val);
5374 // const uint8_t (*StaticPaymentOutputDescriptor_get_channel_keys_id(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
5375 public static native byte[] StaticPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
5376 // void StaticPaymentOutputDescriptor_set_channel_keys_id(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5377 public static native void StaticPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
5378 // uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
5379 public static native long StaticPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
5380 // void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
5381 public static native void StaticPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
5382 // 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);
5383 public static native long StaticPaymentOutputDescriptor_new(long outpoint_arg, long output_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg);
5384 // uint64_t StaticPaymentOutputDescriptor_clone_ptr(LDKStaticPaymentOutputDescriptor *NONNULL_PTR arg);
5385 public static native long StaticPaymentOutputDescriptor_clone_ptr(long arg);
5386 // struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig);
5387 public static native long StaticPaymentOutputDescriptor_clone(long orig);
5388 // bool StaticPaymentOutputDescriptor_eq(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR b);
5389 public static native boolean StaticPaymentOutputDescriptor_eq(long a, long b);
5390 // struct LDKCVec_u8Z StaticPaymentOutputDescriptor_write(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR obj);
5391 public static native byte[] StaticPaymentOutputDescriptor_write(long obj);
5392 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ StaticPaymentOutputDescriptor_read(struct LDKu8slice ser);
5393 public static native long StaticPaymentOutputDescriptor_read(byte[] ser);
5394 // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr);
5395 public static native void SpendableOutputDescriptor_free(long this_ptr);
5396 // uint64_t SpendableOutputDescriptor_clone_ptr(LDKSpendableOutputDescriptor *NONNULL_PTR arg);
5397 public static native long SpendableOutputDescriptor_clone_ptr(long arg);
5398 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig);
5399 public static native long SpendableOutputDescriptor_clone(long orig);
5400 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_output(struct LDKOutPoint outpoint, struct LDKTxOut output);
5401 public static native long SpendableOutputDescriptor_static_output(long outpoint, long output);
5402 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_delayed_payment_output(struct LDKDelayedPaymentOutputDescriptor a);
5403 public static native long SpendableOutputDescriptor_delayed_payment_output(long a);
5404 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_payment_output(struct LDKStaticPaymentOutputDescriptor a);
5405 public static native long SpendableOutputDescriptor_static_payment_output(long a);
5406 // bool SpendableOutputDescriptor_eq(const struct LDKSpendableOutputDescriptor *NONNULL_PTR a, const struct LDKSpendableOutputDescriptor *NONNULL_PTR b);
5407 public static native boolean SpendableOutputDescriptor_eq(long a, long b);
5408 // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj);
5409 public static native byte[] SpendableOutputDescriptor_write(long obj);
5410 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser);
5411 public static native long SpendableOutputDescriptor_read(byte[] ser);
5412 // void ChannelSigner_free(struct LDKChannelSigner this_ptr);
5413 public static native void ChannelSigner_free(long this_ptr);
5414 // void EcdsaChannelSigner_free(struct LDKEcdsaChannelSigner this_ptr);
5415 public static native void EcdsaChannelSigner_free(long this_ptr);
5416 // uint64_t WriteableEcdsaChannelSigner_clone_ptr(LDKWriteableEcdsaChannelSigner *NONNULL_PTR arg);
5417 public static native long WriteableEcdsaChannelSigner_clone_ptr(long arg);
5418 // struct LDKWriteableEcdsaChannelSigner WriteableEcdsaChannelSigner_clone(const struct LDKWriteableEcdsaChannelSigner *NONNULL_PTR orig);
5419 public static native long WriteableEcdsaChannelSigner_clone(long orig);
5420 // void WriteableEcdsaChannelSigner_free(struct LDKWriteableEcdsaChannelSigner this_ptr);
5421 public static native void WriteableEcdsaChannelSigner_free(long this_ptr);
5422 // enum LDKRecipient Recipient_clone(const enum LDKRecipient *NONNULL_PTR orig);
5423 public static native Recipient Recipient_clone(long orig);
5424 // enum LDKRecipient Recipient_node(void);
5425 public static native Recipient Recipient_node();
5426 // enum LDKRecipient Recipient_phantom_node(void);
5427 public static native Recipient Recipient_phantom_node();
5428 // void EntropySource_free(struct LDKEntropySource this_ptr);
5429 public static native void EntropySource_free(long this_ptr);
5430 // void NodeSigner_free(struct LDKNodeSigner this_ptr);
5431 public static native void NodeSigner_free(long this_ptr);
5432 // void SignerProvider_free(struct LDKSignerProvider this_ptr);
5433 public static native void SignerProvider_free(long this_ptr);
5434 // void InMemorySigner_free(struct LDKInMemorySigner this_obj);
5435 public static native void InMemorySigner_free(long this_obj);
5436 // const uint8_t (*InMemorySigner_get_funding_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
5437 public static native byte[] InMemorySigner_get_funding_key(long this_ptr);
5438 // void InMemorySigner_set_funding_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
5439 public static native void InMemorySigner_set_funding_key(long this_ptr, byte[] val);
5440 // const uint8_t (*InMemorySigner_get_revocation_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
5441 public static native byte[] InMemorySigner_get_revocation_base_key(long this_ptr);
5442 // void InMemorySigner_set_revocation_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
5443 public static native void InMemorySigner_set_revocation_base_key(long this_ptr, byte[] val);
5444 // const uint8_t (*InMemorySigner_get_payment_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
5445 public static native byte[] InMemorySigner_get_payment_key(long this_ptr);
5446 // void InMemorySigner_set_payment_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
5447 public static native void InMemorySigner_set_payment_key(long this_ptr, byte[] val);
5448 // const uint8_t (*InMemorySigner_get_delayed_payment_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
5449 public static native byte[] InMemorySigner_get_delayed_payment_base_key(long this_ptr);
5450 // void InMemorySigner_set_delayed_payment_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
5451 public static native void InMemorySigner_set_delayed_payment_base_key(long this_ptr, byte[] val);
5452 // const uint8_t (*InMemorySigner_get_htlc_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
5453 public static native byte[] InMemorySigner_get_htlc_base_key(long this_ptr);
5454 // void InMemorySigner_set_htlc_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
5455 public static native void InMemorySigner_set_htlc_base_key(long this_ptr, byte[] val);
5456 // const uint8_t (*InMemorySigner_get_commitment_seed(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
5457 public static native byte[] InMemorySigner_get_commitment_seed(long this_ptr);
5458 // void InMemorySigner_set_commitment_seed(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5459 public static native void InMemorySigner_set_commitment_seed(long this_ptr, byte[] val);
5460 // uint64_t InMemorySigner_clone_ptr(LDKInMemorySigner *NONNULL_PTR arg);
5461 public static native long InMemorySigner_clone_ptr(long arg);
5462 // struct LDKInMemorySigner InMemorySigner_clone(const struct LDKInMemorySigner *NONNULL_PTR orig);
5463 public static native long InMemorySigner_clone(long orig);
5464 // 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);
5465 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);
5466 // MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
5467 public static native long InMemorySigner_counterparty_pubkeys(long this_arg);
5468 // MUST_USE_RES uint16_t InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
5469 public static native short InMemorySigner_counterparty_selected_contest_delay(long this_arg);
5470 // MUST_USE_RES uint16_t InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
5471 public static native short InMemorySigner_holder_selected_contest_delay(long this_arg);
5472 // MUST_USE_RES bool InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
5473 public static native boolean InMemorySigner_is_outbound(long this_arg);
5474 // MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
5475 public static native long InMemorySigner_funding_outpoint(long this_arg);
5476 // MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
5477 public static native long InMemorySigner_get_channel_parameters(long this_arg);
5478 // MUST_USE_RES bool InMemorySigner_opt_anchors(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
5479 public static native boolean InMemorySigner_opt_anchors(long this_arg);
5480 // MUST_USE_RES struct LDKCResult_CVec_CVec_u8ZZNoneZ InMemorySigner_sign_counterparty_payment_input(const struct LDKInMemorySigner *NONNULL_PTR this_arg, struct LDKTransaction spend_tx, uintptr_t input_idx, const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR descriptor);
5481 public static native long InMemorySigner_sign_counterparty_payment_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
5482 // MUST_USE_RES struct LDKCResult_CVec_CVec_u8ZZNoneZ InMemorySigner_sign_dynamic_p2wsh_input(const struct LDKInMemorySigner *NONNULL_PTR this_arg, struct LDKTransaction spend_tx, uintptr_t input_idx, const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR descriptor);
5483 public static native long InMemorySigner_sign_dynamic_p2wsh_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
5484 // struct LDKChannelSigner InMemorySigner_as_ChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
5485 public static native long InMemorySigner_as_ChannelSigner(long this_arg);
5486 // struct LDKEcdsaChannelSigner InMemorySigner_as_EcdsaChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
5487 public static native long InMemorySigner_as_EcdsaChannelSigner(long this_arg);
5488 // struct LDKWriteableEcdsaChannelSigner InMemorySigner_as_WriteableEcdsaChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
5489 public static native long InMemorySigner_as_WriteableEcdsaChannelSigner(long this_arg);
5490 // struct LDKCVec_u8Z InMemorySigner_write(const struct LDKInMemorySigner *NONNULL_PTR obj);
5491 public static native byte[] InMemorySigner_write(long obj);
5492 // struct LDKCResult_InMemorySignerDecodeErrorZ InMemorySigner_read(struct LDKu8slice ser);
5493 public static native long InMemorySigner_read(byte[] ser);
5494 // void KeysManager_free(struct LDKKeysManager this_obj);
5495 public static native void KeysManager_free(long this_obj);
5496 // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos);
5497 public static native long KeysManager_new(byte[] seed, long starting_time_secs, int starting_time_nanos);
5498 // MUST_USE_RES struct LDKSecretKey KeysManager_get_node_secret_key(const struct LDKKeysManager *NONNULL_PTR this_arg);
5499 public static native byte[] KeysManager_get_node_secret_key(long this_arg);
5500 // 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]);
5501 public static native long KeysManager_derive_channel_keys(long this_arg, long channel_value_satoshis, byte[] params);
5502 // 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);
5503 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);
5504 // struct LDKEntropySource KeysManager_as_EntropySource(const struct LDKKeysManager *NONNULL_PTR this_arg);
5505 public static native long KeysManager_as_EntropySource(long this_arg);
5506 // struct LDKNodeSigner KeysManager_as_NodeSigner(const struct LDKKeysManager *NONNULL_PTR this_arg);
5507 public static native long KeysManager_as_NodeSigner(long this_arg);
5508 // struct LDKSignerProvider KeysManager_as_SignerProvider(const struct LDKKeysManager *NONNULL_PTR this_arg);
5509 public static native long KeysManager_as_SignerProvider(long this_arg);
5510 // void PhantomKeysManager_free(struct LDKPhantomKeysManager this_obj);
5511 public static native void PhantomKeysManager_free(long this_obj);
5512 // struct LDKEntropySource PhantomKeysManager_as_EntropySource(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
5513 public static native long PhantomKeysManager_as_EntropySource(long this_arg);
5514 // struct LDKNodeSigner PhantomKeysManager_as_NodeSigner(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
5515 public static native long PhantomKeysManager_as_NodeSigner(long this_arg);
5516 // struct LDKSignerProvider PhantomKeysManager_as_SignerProvider(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
5517 public static native long PhantomKeysManager_as_SignerProvider(long this_arg);
5518 // 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]);
5519 public static native long PhantomKeysManager_new(byte[] seed, long starting_time_secs, int starting_time_nanos, byte[] cross_node_seed);
5520 // 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);
5521 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);
5522 // 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]);
5523 public static native long PhantomKeysManager_derive_channel_keys(long this_arg, long channel_value_satoshis, byte[] params);
5524 // MUST_USE_RES struct LDKSecretKey PhantomKeysManager_get_node_secret_key(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
5525 public static native byte[] PhantomKeysManager_get_node_secret_key(long this_arg);
5526 // MUST_USE_RES struct LDKSecretKey PhantomKeysManager_get_phantom_node_secret_key(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
5527 public static native byte[] PhantomKeysManager_get_phantom_node_secret_key(long this_arg);
5528 // enum LDKFailureCode FailureCode_clone(const enum LDKFailureCode *NONNULL_PTR orig);
5529 public static native FailureCode FailureCode_clone(long orig);
5530 // enum LDKFailureCode FailureCode_temporary_node_failure(void);
5531 public static native FailureCode FailureCode_temporary_node_failure();
5532 // enum LDKFailureCode FailureCode_required_node_feature_missing(void);
5533 public static native FailureCode FailureCode_required_node_feature_missing();
5534 // enum LDKFailureCode FailureCode_incorrect_or_unknown_payment_details(void);
5535 public static native FailureCode FailureCode_incorrect_or_unknown_payment_details();
5536 // void ChannelManager_free(struct LDKChannelManager this_obj);
5537 public static native void ChannelManager_free(long this_obj);
5538 // void ChainParameters_free(struct LDKChainParameters this_obj);
5539 public static native void ChainParameters_free(long this_obj);
5540 // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr);
5541 public static native Network ChainParameters_get_network(long this_ptr);
5542 // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val);
5543 public static native void ChainParameters_set_network(long this_ptr, Network val);
5544 // struct LDKBestBlock ChainParameters_get_best_block(const struct LDKChainParameters *NONNULL_PTR this_ptr);
5545 public static native long ChainParameters_get_best_block(long this_ptr);
5546 // void ChainParameters_set_best_block(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKBestBlock val);
5547 public static native void ChainParameters_set_best_block(long this_ptr, long val);
5548 // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKBestBlock best_block_arg);
5549 public static native long ChainParameters_new(Network network_arg, long best_block_arg);
5550 // uint64_t ChainParameters_clone_ptr(LDKChainParameters *NONNULL_PTR arg);
5551 public static native long ChainParameters_clone_ptr(long arg);
5552 // struct LDKChainParameters ChainParameters_clone(const struct LDKChainParameters *NONNULL_PTR orig);
5553 public static native long ChainParameters_clone(long orig);
5554 // void CounterpartyForwardingInfo_free(struct LDKCounterpartyForwardingInfo this_obj);
5555 public static native void CounterpartyForwardingInfo_free(long this_obj);
5556 // uint32_t CounterpartyForwardingInfo_get_fee_base_msat(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
5557 public static native int CounterpartyForwardingInfo_get_fee_base_msat(long this_ptr);
5558 // void CounterpartyForwardingInfo_set_fee_base_msat(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
5559 public static native void CounterpartyForwardingInfo_set_fee_base_msat(long this_ptr, int val);
5560 // uint32_t CounterpartyForwardingInfo_get_fee_proportional_millionths(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
5561 public static native int CounterpartyForwardingInfo_get_fee_proportional_millionths(long this_ptr);
5562 // void CounterpartyForwardingInfo_set_fee_proportional_millionths(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
5563 public static native void CounterpartyForwardingInfo_set_fee_proportional_millionths(long this_ptr, int val);
5564 // uint16_t CounterpartyForwardingInfo_get_cltv_expiry_delta(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
5565 public static native short CounterpartyForwardingInfo_get_cltv_expiry_delta(long this_ptr);
5566 // void CounterpartyForwardingInfo_set_cltv_expiry_delta(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint16_t val);
5567 public static native void CounterpartyForwardingInfo_set_cltv_expiry_delta(long this_ptr, short val);
5568 // 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);
5569 public static native long CounterpartyForwardingInfo_new(int fee_base_msat_arg, int fee_proportional_millionths_arg, short cltv_expiry_delta_arg);
5570 // uint64_t CounterpartyForwardingInfo_clone_ptr(LDKCounterpartyForwardingInfo *NONNULL_PTR arg);
5571 public static native long CounterpartyForwardingInfo_clone_ptr(long arg);
5572 // struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_clone(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR orig);
5573 public static native long CounterpartyForwardingInfo_clone(long orig);
5574 // void ChannelCounterparty_free(struct LDKChannelCounterparty this_obj);
5575 public static native void ChannelCounterparty_free(long this_obj);
5576 // struct LDKPublicKey ChannelCounterparty_get_node_id(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
5577 public static native byte[] ChannelCounterparty_get_node_id(long this_ptr);
5578 // void ChannelCounterparty_set_node_id(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5579 public static native void ChannelCounterparty_set_node_id(long this_ptr, byte[] val);
5580 // struct LDKInitFeatures ChannelCounterparty_get_features(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
5581 public static native long ChannelCounterparty_get_features(long this_ptr);
5582 // void ChannelCounterparty_set_features(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
5583 public static native void ChannelCounterparty_set_features(long this_ptr, long val);
5584 // uint64_t ChannelCounterparty_get_unspendable_punishment_reserve(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
5585 public static native long ChannelCounterparty_get_unspendable_punishment_reserve(long this_ptr);
5586 // void ChannelCounterparty_set_unspendable_punishment_reserve(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, uint64_t val);
5587 public static native void ChannelCounterparty_set_unspendable_punishment_reserve(long this_ptr, long val);
5588 // struct LDKCounterpartyForwardingInfo ChannelCounterparty_get_forwarding_info(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
5589 public static native long ChannelCounterparty_get_forwarding_info(long this_ptr);
5590 // void ChannelCounterparty_set_forwarding_info(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCounterpartyForwardingInfo val);
5591 public static native void ChannelCounterparty_set_forwarding_info(long this_ptr, long val);
5592 // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_minimum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
5593 public static native long ChannelCounterparty_get_outbound_htlc_minimum_msat(long this_ptr);
5594 // void ChannelCounterparty_set_outbound_htlc_minimum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
5595 public static native void ChannelCounterparty_set_outbound_htlc_minimum_msat(long this_ptr, long val);
5596 // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_maximum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
5597 public static native long ChannelCounterparty_get_outbound_htlc_maximum_msat(long this_ptr);
5598 // void ChannelCounterparty_set_outbound_htlc_maximum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
5599 public static native void ChannelCounterparty_set_outbound_htlc_maximum_msat(long this_ptr, long val);
5600 // 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);
5601 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);
5602 // uint64_t ChannelCounterparty_clone_ptr(LDKChannelCounterparty *NONNULL_PTR arg);
5603 public static native long ChannelCounterparty_clone_ptr(long arg);
5604 // struct LDKChannelCounterparty ChannelCounterparty_clone(const struct LDKChannelCounterparty *NONNULL_PTR orig);
5605 public static native long ChannelCounterparty_clone(long orig);
5606 // void ChannelDetails_free(struct LDKChannelDetails this_obj);
5607 public static native void ChannelDetails_free(long this_obj);
5608 // const uint8_t (*ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr))[32];
5609 public static native byte[] ChannelDetails_get_channel_id(long this_ptr);
5610 // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5611 public static native void ChannelDetails_set_channel_id(long this_ptr, byte[] val);
5612 // struct LDKChannelCounterparty ChannelDetails_get_counterparty(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5613 public static native long ChannelDetails_get_counterparty(long this_ptr);
5614 // void ChannelDetails_set_counterparty(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelCounterparty val);
5615 public static native void ChannelDetails_set_counterparty(long this_ptr, long val);
5616 // struct LDKOutPoint ChannelDetails_get_funding_txo(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5617 public static native long ChannelDetails_get_funding_txo(long this_ptr);
5618 // void ChannelDetails_set_funding_txo(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKOutPoint val);
5619 public static native void ChannelDetails_set_funding_txo(long this_ptr, long val);
5620 // struct LDKChannelTypeFeatures ChannelDetails_get_channel_type(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5621 public static native long ChannelDetails_get_channel_type(long this_ptr);
5622 // void ChannelDetails_set_channel_type(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
5623 public static native void ChannelDetails_set_channel_type(long this_ptr, long val);
5624 // struct LDKCOption_u64Z ChannelDetails_get_short_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5625 public static native long ChannelDetails_get_short_channel_id(long this_ptr);
5626 // void ChannelDetails_set_short_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
5627 public static native void ChannelDetails_set_short_channel_id(long this_ptr, long val);
5628 // struct LDKCOption_u64Z ChannelDetails_get_outbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5629 public static native long ChannelDetails_get_outbound_scid_alias(long this_ptr);
5630 // void ChannelDetails_set_outbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
5631 public static native void ChannelDetails_set_outbound_scid_alias(long this_ptr, long val);
5632 // struct LDKCOption_u64Z ChannelDetails_get_inbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5633 public static native long ChannelDetails_get_inbound_scid_alias(long this_ptr);
5634 // void ChannelDetails_set_inbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
5635 public static native void ChannelDetails_set_inbound_scid_alias(long this_ptr, long val);
5636 // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5637 public static native long ChannelDetails_get_channel_value_satoshis(long this_ptr);
5638 // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
5639 public static native void ChannelDetails_set_channel_value_satoshis(long this_ptr, long val);
5640 // struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5641 public static native long ChannelDetails_get_unspendable_punishment_reserve(long this_ptr);
5642 // void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
5643 public static native void ChannelDetails_set_unspendable_punishment_reserve(long this_ptr, long val);
5644 // struct LDKU128 ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5645 public static native byte[] ChannelDetails_get_user_channel_id(long this_ptr);
5646 // void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKU128 val);
5647 public static native void ChannelDetails_set_user_channel_id(long this_ptr, byte[] val);
5648 // uint64_t ChannelDetails_get_balance_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5649 public static native long ChannelDetails_get_balance_msat(long this_ptr);
5650 // void ChannelDetails_set_balance_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
5651 public static native void ChannelDetails_set_balance_msat(long this_ptr, long val);
5652 // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5653 public static native long ChannelDetails_get_outbound_capacity_msat(long this_ptr);
5654 // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
5655 public static native void ChannelDetails_set_outbound_capacity_msat(long this_ptr, long val);
5656 // uint64_t ChannelDetails_get_next_outbound_htlc_limit_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5657 public static native long ChannelDetails_get_next_outbound_htlc_limit_msat(long this_ptr);
5658 // void ChannelDetails_set_next_outbound_htlc_limit_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
5659 public static native void ChannelDetails_set_next_outbound_htlc_limit_msat(long this_ptr, long val);
5660 // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5661 public static native long ChannelDetails_get_inbound_capacity_msat(long this_ptr);
5662 // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
5663 public static native void ChannelDetails_set_inbound_capacity_msat(long this_ptr, long val);
5664 // struct LDKCOption_u32Z ChannelDetails_get_confirmations_required(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5665 public static native long ChannelDetails_get_confirmations_required(long this_ptr);
5666 // void ChannelDetails_set_confirmations_required(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
5667 public static native void ChannelDetails_set_confirmations_required(long this_ptr, long val);
5668 // struct LDKCOption_u32Z ChannelDetails_get_confirmations(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5669 public static native long ChannelDetails_get_confirmations(long this_ptr);
5670 // void ChannelDetails_set_confirmations(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
5671 public static native void ChannelDetails_set_confirmations(long this_ptr, long val);
5672 // struct LDKCOption_u16Z ChannelDetails_get_force_close_spend_delay(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5673 public static native long ChannelDetails_get_force_close_spend_delay(long this_ptr);
5674 // void ChannelDetails_set_force_close_spend_delay(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
5675 public static native void ChannelDetails_set_force_close_spend_delay(long this_ptr, long val);
5676 // bool ChannelDetails_get_is_outbound(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5677 public static native boolean ChannelDetails_get_is_outbound(long this_ptr);
5678 // void ChannelDetails_set_is_outbound(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
5679 public static native void ChannelDetails_set_is_outbound(long this_ptr, boolean val);
5680 // bool ChannelDetails_get_is_channel_ready(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5681 public static native boolean ChannelDetails_get_is_channel_ready(long this_ptr);
5682 // void ChannelDetails_set_is_channel_ready(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
5683 public static native void ChannelDetails_set_is_channel_ready(long this_ptr, boolean val);
5684 // bool ChannelDetails_get_is_usable(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5685 public static native boolean ChannelDetails_get_is_usable(long this_ptr);
5686 // void ChannelDetails_set_is_usable(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
5687 public static native void ChannelDetails_set_is_usable(long this_ptr, boolean val);
5688 // bool ChannelDetails_get_is_public(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5689 public static native boolean ChannelDetails_get_is_public(long this_ptr);
5690 // void ChannelDetails_set_is_public(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
5691 public static native void ChannelDetails_set_is_public(long this_ptr, boolean val);
5692 // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5693 public static native long ChannelDetails_get_inbound_htlc_minimum_msat(long this_ptr);
5694 // void ChannelDetails_set_inbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
5695 public static native void ChannelDetails_set_inbound_htlc_minimum_msat(long this_ptr, long val);
5696 // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_maximum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5697 public static native long ChannelDetails_get_inbound_htlc_maximum_msat(long this_ptr);
5698 // void ChannelDetails_set_inbound_htlc_maximum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
5699 public static native void ChannelDetails_set_inbound_htlc_maximum_msat(long this_ptr, long val);
5700 // struct LDKChannelConfig ChannelDetails_get_config(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
5701 public static native long ChannelDetails_get_config(long this_ptr);
5702 // void ChannelDetails_set_config(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
5703 public static native void ChannelDetails_set_config(long this_ptr, long val);
5704 // 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, uint64_t balance_msat_arg, uint64_t outbound_capacity_msat_arg, uint64_t next_outbound_htlc_limit_msat_arg, uint64_t inbound_capacity_msat_arg, struct LDKCOption_u32Z confirmations_required_arg, struct LDKCOption_u32Z confirmations_arg, struct LDKCOption_u16Z force_close_spend_delay_arg, bool is_outbound_arg, bool is_channel_ready_arg, bool is_usable_arg, bool is_public_arg, struct LDKCOption_u64Z inbound_htlc_minimum_msat_arg, struct LDKCOption_u64Z inbound_htlc_maximum_msat_arg, struct LDKChannelConfig config_arg);
5705 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 balance_msat_arg, long outbound_capacity_msat_arg, long next_outbound_htlc_limit_msat_arg, long inbound_capacity_msat_arg, long confirmations_required_arg, long confirmations_arg, long force_close_spend_delay_arg, boolean is_outbound_arg, boolean is_channel_ready_arg, boolean is_usable_arg, boolean is_public_arg, long inbound_htlc_minimum_msat_arg, long inbound_htlc_maximum_msat_arg, long config_arg);
5706 // uint64_t ChannelDetails_clone_ptr(LDKChannelDetails *NONNULL_PTR arg);
5707 public static native long ChannelDetails_clone_ptr(long arg);
5708 // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig);
5709 public static native long ChannelDetails_clone(long orig);
5710 // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_inbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
5711 public static native long ChannelDetails_get_inbound_payment_scid(long this_arg);
5712 // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_outbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
5713 public static native long ChannelDetails_get_outbound_payment_scid(long this_arg);
5714 // void RecentPaymentDetails_free(struct LDKRecentPaymentDetails this_ptr);
5715 public static native void RecentPaymentDetails_free(long this_ptr);
5716 // uint64_t RecentPaymentDetails_clone_ptr(LDKRecentPaymentDetails *NONNULL_PTR arg);
5717 public static native long RecentPaymentDetails_clone_ptr(long arg);
5718 // struct LDKRecentPaymentDetails RecentPaymentDetails_clone(const struct LDKRecentPaymentDetails *NONNULL_PTR orig);
5719 public static native long RecentPaymentDetails_clone(long orig);
5720 // struct LDKRecentPaymentDetails RecentPaymentDetails_pending(struct LDKThirtyTwoBytes payment_hash, uint64_t total_msat);
5721 public static native long RecentPaymentDetails_pending(byte[] payment_hash, long total_msat);
5722 // struct LDKRecentPaymentDetails RecentPaymentDetails_fulfilled(struct LDKThirtyTwoBytes payment_hash);
5723 public static native long RecentPaymentDetails_fulfilled(byte[] payment_hash);
5724 // struct LDKRecentPaymentDetails RecentPaymentDetails_abandoned(struct LDKThirtyTwoBytes payment_hash);
5725 public static native long RecentPaymentDetails_abandoned(byte[] payment_hash);
5726 // void PhantomRouteHints_free(struct LDKPhantomRouteHints this_obj);
5727 public static native void PhantomRouteHints_free(long this_obj);
5728 // struct LDKCVec_ChannelDetailsZ PhantomRouteHints_get_channels(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
5729 public static native long[] PhantomRouteHints_get_channels(long this_ptr);
5730 // void PhantomRouteHints_set_channels(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKCVec_ChannelDetailsZ val);
5731 public static native void PhantomRouteHints_set_channels(long this_ptr, long[] val);
5732 // uint64_t PhantomRouteHints_get_phantom_scid(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
5733 public static native long PhantomRouteHints_get_phantom_scid(long this_ptr);
5734 // void PhantomRouteHints_set_phantom_scid(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, uint64_t val);
5735 public static native void PhantomRouteHints_set_phantom_scid(long this_ptr, long val);
5736 // struct LDKPublicKey PhantomRouteHints_get_real_node_pubkey(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
5737 public static native byte[] PhantomRouteHints_get_real_node_pubkey(long this_ptr);
5738 // void PhantomRouteHints_set_real_node_pubkey(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKPublicKey val);
5739 public static native void PhantomRouteHints_set_real_node_pubkey(long this_ptr, byte[] val);
5740 // MUST_USE_RES struct LDKPhantomRouteHints PhantomRouteHints_new(struct LDKCVec_ChannelDetailsZ channels_arg, uint64_t phantom_scid_arg, struct LDKPublicKey real_node_pubkey_arg);
5741 public static native long PhantomRouteHints_new(long[] channels_arg, long phantom_scid_arg, byte[] real_node_pubkey_arg);
5742 // uint64_t PhantomRouteHints_clone_ptr(LDKPhantomRouteHints *NONNULL_PTR arg);
5743 public static native long PhantomRouteHints_clone_ptr(long arg);
5744 // struct LDKPhantomRouteHints PhantomRouteHints_clone(const struct LDKPhantomRouteHints *NONNULL_PTR orig);
5745 public static native long PhantomRouteHints_clone(long orig);
5746 // 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);
5747 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);
5748 // MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configuration(const struct LDKChannelManager *NONNULL_PTR this_arg);
5749 public static native long ChannelManager_get_current_default_configuration(long this_arg);
5750 // MUST_USE_RES struct LDKCResult__u832APIErrorZ ChannelManager_create_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey their_network_key, uint64_t channel_value_satoshis, uint64_t push_msat, struct LDKU128 user_channel_id, struct LDKUserConfig override_config);
5751 public static native long ChannelManager_create_channel(long this_arg, byte[] their_network_key, long channel_value_satoshis, long push_msat, byte[] user_channel_id, long override_config);
5752 // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
5753 public static native long[] ChannelManager_list_channels(long this_arg);
5754 // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
5755 public static native long[] ChannelManager_list_usable_channels(long this_arg);
5756 // MUST_USE_RES struct LDKCVec_RecentPaymentDetailsZ ChannelManager_list_recent_payments(const struct LDKChannelManager *NONNULL_PTR this_arg);
5757 public static native long[] ChannelManager_list_recent_payments(long this_arg);
5758 // 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);
5759 public static native long ChannelManager_close_channel(long this_arg, byte[] channel_id, byte[] counterparty_node_id);
5760 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel_with_target_feerate(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id, uint32_t target_feerate_sats_per_1000_weight);
5761 public static native long ChannelManager_close_channel_with_target_feerate(long this_arg, byte[] channel_id, byte[] counterparty_node_id, int target_feerate_sats_per_1000_weight);
5762 // 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);
5763 public static native long ChannelManager_force_close_broadcasting_latest_txn(long this_arg, byte[] channel_id, byte[] counterparty_node_id);
5764 // 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);
5765 public static native long ChannelManager_force_close_without_broadcasting_txn(long this_arg, byte[] channel_id, byte[] counterparty_node_id);
5766 // void ChannelManager_force_close_all_channels_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
5767 public static native void ChannelManager_force_close_all_channels_broadcasting_latest_txn(long this_arg);
5768 // void ChannelManager_force_close_all_channels_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
5769 public static native void ChannelManager_force_close_all_channels_without_broadcasting_txn(long this_arg);
5770 // MUST_USE_RES struct LDKCResult_NonePaymentSendFailureZ ChannelManager_send_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret, struct LDKThirtyTwoBytes payment_id);
5771 public static native long ChannelManager_send_payment(long this_arg, long route, byte[] payment_hash, byte[] payment_secret, byte[] payment_id);
5772 // MUST_USE_RES struct LDKCResult_NoneRetryableSendFailureZ ChannelManager_send_payment_with_retry(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy);
5773 public static native long ChannelManager_send_payment_with_retry(long this_arg, byte[] payment_hash, byte[] payment_secret, byte[] payment_id, long route_params, long retry_strategy);
5774 // void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id);
5775 public static native void ChannelManager_abandon_payment(long this_arg, byte[] payment_id);
5776 // MUST_USE_RES struct LDKCResult_PaymentHashPaymentSendFailureZ ChannelManager_send_spontaneous_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_id);
5777 public static native long ChannelManager_send_spontaneous_payment(long this_arg, long route, byte[] payment_preimage, byte[] payment_id);
5778 // MUST_USE_RES struct LDKCResult_PaymentHashRetryableSendFailureZ ChannelManager_send_spontaneous_payment_with_retry(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy);
5779 public static native long ChannelManager_send_spontaneous_payment_with_retry(long this_arg, byte[] payment_preimage, byte[] payment_id, long route_params, long retry_strategy);
5780 // MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ ChannelManager_send_probe(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ hops);
5781 public static native long ChannelManager_send_probe(long this_arg, long[] hops);
5782 // 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);
5783 public static native long ChannelManager_funding_transaction_generated(long this_arg, byte[] temporary_channel_id, byte[] counterparty_node_id, byte[] funding_transaction);
5784 // 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);
5785 public static native long ChannelManager_update_channel_config(long this_arg, byte[] counterparty_node_id, byte[][] channel_ids, long config);
5786 // 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);
5787 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);
5788 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_fail_intercepted_htlc(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes intercept_id);
5789 public static native long ChannelManager_fail_intercepted_htlc(long this_arg, byte[] intercept_id);
5790 // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg);
5791 public static native void ChannelManager_process_pending_htlc_forwards(long this_arg);
5792 // void ChannelManager_timer_tick_occurred(const struct LDKChannelManager *NONNULL_PTR this_arg);
5793 public static native void ChannelManager_timer_tick_occurred(long this_arg);
5794 // void ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
5795 public static native void ChannelManager_fail_htlc_backwards(long this_arg, byte[] payment_hash);
5796 // void ChannelManager_fail_htlc_backwards_with_reason(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32], enum LDKFailureCode failure_code);
5797 public static native void ChannelManager_fail_htlc_backwards_with_reason(long this_arg, byte[] payment_hash, FailureCode failure_code);
5798 // void ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage);
5799 public static native void ChannelManager_claim_funds(long this_arg, byte[] payment_preimage);
5800 // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg);
5801 public static native byte[] ChannelManager_get_our_node_id(long this_arg);
5802 // 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);
5803 public static native long ChannelManager_accept_inbound_channel(long this_arg, byte[] temporary_channel_id, byte[] counterparty_node_id, byte[] user_channel_id);
5804 // 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);
5805 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);
5806 // MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ ChannelManager_create_inbound_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
5807 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);
5808 // MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ ChannelManager_create_inbound_payment_legacy(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs);
5809 public static native long ChannelManager_create_inbound_payment_legacy(long this_arg, long min_value_msat, int invoice_expiry_delta_secs);
5810 // MUST_USE_RES struct LDKCResult_PaymentSecretNoneZ ChannelManager_create_inbound_payment_for_hash(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry);
5811 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);
5812 // MUST_USE_RES struct LDKCResult_PaymentSecretAPIErrorZ ChannelManager_create_inbound_payment_for_hash_legacy(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs);
5813 public static native long ChannelManager_create_inbound_payment_for_hash_legacy(long this_arg, byte[] payment_hash, long min_value_msat, int invoice_expiry_delta_secs);
5814 // MUST_USE_RES struct LDKCResult_PaymentPreimageAPIErrorZ ChannelManager_get_payment_preimage(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret);
5815 public static native long ChannelManager_get_payment_preimage(long this_arg, byte[] payment_hash, byte[] payment_secret);
5816 // MUST_USE_RES uint64_t ChannelManager_get_phantom_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
5817 public static native long ChannelManager_get_phantom_scid(long this_arg);
5818 // MUST_USE_RES struct LDKPhantomRouteHints ChannelManager_get_phantom_route_hints(const struct LDKChannelManager *NONNULL_PTR this_arg);
5819 public static native long ChannelManager_get_phantom_route_hints(long this_arg);
5820 // MUST_USE_RES uint64_t ChannelManager_get_intercept_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
5821 public static native long ChannelManager_get_intercept_scid(long this_arg);
5822 // MUST_USE_RES struct LDKInFlightHtlcs ChannelManager_compute_inflight_htlcs(const struct LDKChannelManager *NONNULL_PTR this_arg);
5823 public static native long ChannelManager_compute_inflight_htlcs(long this_arg);
5824 // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
5825 public static native long ChannelManager_as_MessageSendEventsProvider(long this_arg);
5826 // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
5827 public static native long ChannelManager_as_EventsProvider(long this_arg);
5828 // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg);
5829 public static native long ChannelManager_as_Listen(long this_arg);
5830 // struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg);
5831 public static native long ChannelManager_as_Confirm(long this_arg);
5832 // MUST_USE_RES bool ChannelManager_await_persistable_update_timeout(const struct LDKChannelManager *NONNULL_PTR this_arg, uint64_t max_wait);
5833 public static native boolean ChannelManager_await_persistable_update_timeout(long this_arg, long max_wait);
5834 // void ChannelManager_await_persistable_update(const struct LDKChannelManager *NONNULL_PTR this_arg);
5835 public static native void ChannelManager_await_persistable_update(long this_arg);
5836 // MUST_USE_RES struct LDKFuture ChannelManager_get_persistable_update_future(const struct LDKChannelManager *NONNULL_PTR this_arg);
5837 public static native long ChannelManager_get_persistable_update_future(long this_arg);
5838 // MUST_USE_RES struct LDKBestBlock ChannelManager_current_best_block(const struct LDKChannelManager *NONNULL_PTR this_arg);
5839 public static native long ChannelManager_current_best_block(long this_arg);
5840 // MUST_USE_RES struct LDKNodeFeatures ChannelManager_node_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
5841 public static native long ChannelManager_node_features(long this_arg);
5842 // MUST_USE_RES struct LDKChannelFeatures ChannelManager_channel_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
5843 public static native long ChannelManager_channel_features(long this_arg);
5844 // MUST_USE_RES struct LDKChannelTypeFeatures ChannelManager_channel_type_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
5845 public static native long ChannelManager_channel_type_features(long this_arg);
5846 // MUST_USE_RES struct LDKInitFeatures ChannelManager_init_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
5847 public static native long ChannelManager_init_features(long this_arg);
5848 // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
5849 public static native long ChannelManager_as_ChannelMessageHandler(long this_arg);
5850 // struct LDKInitFeatures provided_init_features(const struct LDKUserConfig *NONNULL_PTR _config);
5851 public static native long provided_init_features(long _config);
5852 // struct LDKCVec_u8Z CounterpartyForwardingInfo_write(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR obj);
5853 public static native byte[] CounterpartyForwardingInfo_write(long obj);
5854 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CounterpartyForwardingInfo_read(struct LDKu8slice ser);
5855 public static native long CounterpartyForwardingInfo_read(byte[] ser);
5856 // struct LDKCVec_u8Z ChannelCounterparty_write(const struct LDKChannelCounterparty *NONNULL_PTR obj);
5857 public static native byte[] ChannelCounterparty_write(long obj);
5858 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ ChannelCounterparty_read(struct LDKu8slice ser);
5859 public static native long ChannelCounterparty_read(byte[] ser);
5860 // struct LDKCVec_u8Z ChannelDetails_write(const struct LDKChannelDetails *NONNULL_PTR obj);
5861 public static native byte[] ChannelDetails_write(long obj);
5862 // struct LDKCResult_ChannelDetailsDecodeErrorZ ChannelDetails_read(struct LDKu8slice ser);
5863 public static native long ChannelDetails_read(byte[] ser);
5864 // struct LDKCVec_u8Z PhantomRouteHints_write(const struct LDKPhantomRouteHints *NONNULL_PTR obj);
5865 public static native byte[] PhantomRouteHints_write(long obj);
5866 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ PhantomRouteHints_read(struct LDKu8slice ser);
5867 public static native long PhantomRouteHints_read(byte[] ser);
5868 // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj);
5869 public static native byte[] ChannelManager_write(long obj);
5870 // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj);
5871 public static native void ChannelManagerReadArgs_free(long this_obj);
5872 // const struct LDKEntropySource *ChannelManagerReadArgs_get_entropy_source(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
5873 public static native long ChannelManagerReadArgs_get_entropy_source(long this_ptr);
5874 // void ChannelManagerReadArgs_set_entropy_source(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKEntropySource val);
5875 public static native void ChannelManagerReadArgs_set_entropy_source(long this_ptr, long val);
5876 // const struct LDKNodeSigner *ChannelManagerReadArgs_get_node_signer(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
5877 public static native long ChannelManagerReadArgs_get_node_signer(long this_ptr);
5878 // void ChannelManagerReadArgs_set_node_signer(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKNodeSigner val);
5879 public static native void ChannelManagerReadArgs_set_node_signer(long this_ptr, long val);
5880 // const struct LDKSignerProvider *ChannelManagerReadArgs_get_signer_provider(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
5881 public static native long ChannelManagerReadArgs_get_signer_provider(long this_ptr);
5882 // void ChannelManagerReadArgs_set_signer_provider(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKSignerProvider val);
5883 public static native void ChannelManagerReadArgs_set_signer_provider(long this_ptr, long val);
5884 // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
5885 public static native long ChannelManagerReadArgs_get_fee_estimator(long this_ptr);
5886 // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val);
5887 public static native void ChannelManagerReadArgs_set_fee_estimator(long this_ptr, long val);
5888 // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
5889 public static native long ChannelManagerReadArgs_get_chain_monitor(long this_ptr);
5890 // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val);
5891 public static native void ChannelManagerReadArgs_set_chain_monitor(long this_ptr, long val);
5892 // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
5893 public static native long ChannelManagerReadArgs_get_tx_broadcaster(long this_ptr);
5894 // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val);
5895 public static native void ChannelManagerReadArgs_set_tx_broadcaster(long this_ptr, long val);
5896 // const struct LDKRouter *ChannelManagerReadArgs_get_router(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
5897 public static native long ChannelManagerReadArgs_get_router(long this_ptr);
5898 // void ChannelManagerReadArgs_set_router(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKRouter val);
5899 public static native void ChannelManagerReadArgs_set_router(long this_ptr, long val);
5900 // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
5901 public static native long ChannelManagerReadArgs_get_logger(long this_ptr);
5902 // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val);
5903 public static native void ChannelManagerReadArgs_set_logger(long this_ptr, long val);
5904 // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
5905 public static native long ChannelManagerReadArgs_get_default_config(long this_ptr);
5906 // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val);
5907 public static native void ChannelManagerReadArgs_set_default_config(long this_ptr, long val);
5908 // 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);
5909 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);
5910 // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ C2Tuple_BlockHashChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg);
5911 public static native long C2Tuple_BlockHashChannelManagerZ_read(byte[] ser, long arg);
5912 // void ExpandedKey_free(struct LDKExpandedKey this_obj);
5913 public static native void ExpandedKey_free(long this_obj);
5914 // MUST_USE_RES struct LDKExpandedKey ExpandedKey_new(const uint8_t (*key_material)[32]);
5915 public static native long ExpandedKey_new(byte[] key_material);
5916 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ create(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, const struct LDKEntropySource *NONNULL_PTR entropy_source, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
5917 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);
5918 // struct LDKCResult_PaymentSecretNoneZ create_from_hash(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, struct LDKThirtyTwoBytes payment_hash, uint32_t invoice_expiry_delta_secs, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
5919 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);
5920 // void DecodeError_free(struct LDKDecodeError this_ptr);
5921 public static native void DecodeError_free(long this_ptr);
5922 // uint64_t DecodeError_clone_ptr(LDKDecodeError *NONNULL_PTR arg);
5923 public static native long DecodeError_clone_ptr(long arg);
5924 // struct LDKDecodeError DecodeError_clone(const struct LDKDecodeError *NONNULL_PTR orig);
5925 public static native long DecodeError_clone(long orig);
5926 // struct LDKDecodeError DecodeError_unknown_version(void);
5927 public static native long DecodeError_unknown_version();
5928 // struct LDKDecodeError DecodeError_unknown_required_feature(void);
5929 public static native long DecodeError_unknown_required_feature();
5930 // struct LDKDecodeError DecodeError_invalid_value(void);
5931 public static native long DecodeError_invalid_value();
5932 // struct LDKDecodeError DecodeError_short_read(void);
5933 public static native long DecodeError_short_read();
5934 // struct LDKDecodeError DecodeError_bad_length_descriptor(void);
5935 public static native long DecodeError_bad_length_descriptor();
5936 // struct LDKDecodeError DecodeError_io(enum LDKIOError a);
5937 public static native long DecodeError_io(IOError a);
5938 // struct LDKDecodeError DecodeError_unsupported_compression(void);
5939 public static native long DecodeError_unsupported_compression();
5940 // bool DecodeError_eq(const struct LDKDecodeError *NONNULL_PTR a, const struct LDKDecodeError *NONNULL_PTR b);
5941 public static native boolean DecodeError_eq(long a, long b);
5942 // void Init_free(struct LDKInit this_obj);
5943 public static native void Init_free(long this_obj);
5944 // struct LDKInitFeatures Init_get_features(const struct LDKInit *NONNULL_PTR this_ptr);
5945 public static native long Init_get_features(long this_ptr);
5946 // void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
5947 public static native void Init_set_features(long this_ptr, long val);
5948 // struct LDKCOption_NetAddressZ Init_get_remote_network_address(const struct LDKInit *NONNULL_PTR this_ptr);
5949 public static native long Init_get_remote_network_address(long this_ptr);
5950 // void Init_set_remote_network_address(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_NetAddressZ val);
5951 public static native void Init_set_remote_network_address(long this_ptr, long val);
5952 // MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg, struct LDKCOption_NetAddressZ remote_network_address_arg);
5953 public static native long Init_new(long features_arg, long remote_network_address_arg);
5954 // uint64_t Init_clone_ptr(LDKInit *NONNULL_PTR arg);
5955 public static native long Init_clone_ptr(long arg);
5956 // struct LDKInit Init_clone(const struct LDKInit *NONNULL_PTR orig);
5957 public static native long Init_clone(long orig);
5958 // bool Init_eq(const struct LDKInit *NONNULL_PTR a, const struct LDKInit *NONNULL_PTR b);
5959 public static native boolean Init_eq(long a, long b);
5960 // void ErrorMessage_free(struct LDKErrorMessage this_obj);
5961 public static native void ErrorMessage_free(long this_obj);
5962 // const uint8_t (*ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr))[32];
5963 public static native byte[] ErrorMessage_get_channel_id(long this_ptr);
5964 // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5965 public static native void ErrorMessage_set_channel_id(long this_ptr, byte[] val);
5966 // struct LDKStr ErrorMessage_get_data(const struct LDKErrorMessage *NONNULL_PTR this_ptr);
5967 public static native String ErrorMessage_get_data(long this_ptr);
5968 // void ErrorMessage_set_data(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKStr val);
5969 public static native void ErrorMessage_set_data(long this_ptr, String val);
5970 // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
5971 public static native long ErrorMessage_new(byte[] channel_id_arg, String data_arg);
5972 // uint64_t ErrorMessage_clone_ptr(LDKErrorMessage *NONNULL_PTR arg);
5973 public static native long ErrorMessage_clone_ptr(long arg);
5974 // struct LDKErrorMessage ErrorMessage_clone(const struct LDKErrorMessage *NONNULL_PTR orig);
5975 public static native long ErrorMessage_clone(long orig);
5976 // bool ErrorMessage_eq(const struct LDKErrorMessage *NONNULL_PTR a, const struct LDKErrorMessage *NONNULL_PTR b);
5977 public static native boolean ErrorMessage_eq(long a, long b);
5978 // void WarningMessage_free(struct LDKWarningMessage this_obj);
5979 public static native void WarningMessage_free(long this_obj);
5980 // const uint8_t (*WarningMessage_get_channel_id(const struct LDKWarningMessage *NONNULL_PTR this_ptr))[32];
5981 public static native byte[] WarningMessage_get_channel_id(long this_ptr);
5982 // void WarningMessage_set_channel_id(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
5983 public static native void WarningMessage_set_channel_id(long this_ptr, byte[] val);
5984 // struct LDKStr WarningMessage_get_data(const struct LDKWarningMessage *NONNULL_PTR this_ptr);
5985 public static native String WarningMessage_get_data(long this_ptr);
5986 // void WarningMessage_set_data(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKStr val);
5987 public static native void WarningMessage_set_data(long this_ptr, String val);
5988 // MUST_USE_RES struct LDKWarningMessage WarningMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
5989 public static native long WarningMessage_new(byte[] channel_id_arg, String data_arg);
5990 // uint64_t WarningMessage_clone_ptr(LDKWarningMessage *NONNULL_PTR arg);
5991 public static native long WarningMessage_clone_ptr(long arg);
5992 // struct LDKWarningMessage WarningMessage_clone(const struct LDKWarningMessage *NONNULL_PTR orig);
5993 public static native long WarningMessage_clone(long orig);
5994 // bool WarningMessage_eq(const struct LDKWarningMessage *NONNULL_PTR a, const struct LDKWarningMessage *NONNULL_PTR b);
5995 public static native boolean WarningMessage_eq(long a, long b);
5996 // void Ping_free(struct LDKPing this_obj);
5997 public static native void Ping_free(long this_obj);
5998 // uint16_t Ping_get_ponglen(const struct LDKPing *NONNULL_PTR this_ptr);
5999 public static native short Ping_get_ponglen(long this_ptr);
6000 // void Ping_set_ponglen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
6001 public static native void Ping_set_ponglen(long this_ptr, short val);
6002 // uint16_t Ping_get_byteslen(const struct LDKPing *NONNULL_PTR this_ptr);
6003 public static native short Ping_get_byteslen(long this_ptr);
6004 // void Ping_set_byteslen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
6005 public static native void Ping_set_byteslen(long this_ptr, short val);
6006 // MUST_USE_RES struct LDKPing Ping_new(uint16_t ponglen_arg, uint16_t byteslen_arg);
6007 public static native long Ping_new(short ponglen_arg, short byteslen_arg);
6008 // uint64_t Ping_clone_ptr(LDKPing *NONNULL_PTR arg);
6009 public static native long Ping_clone_ptr(long arg);
6010 // struct LDKPing Ping_clone(const struct LDKPing *NONNULL_PTR orig);
6011 public static native long Ping_clone(long orig);
6012 // bool Ping_eq(const struct LDKPing *NONNULL_PTR a, const struct LDKPing *NONNULL_PTR b);
6013 public static native boolean Ping_eq(long a, long b);
6014 // void Pong_free(struct LDKPong this_obj);
6015 public static native void Pong_free(long this_obj);
6016 // uint16_t Pong_get_byteslen(const struct LDKPong *NONNULL_PTR this_ptr);
6017 public static native short Pong_get_byteslen(long this_ptr);
6018 // void Pong_set_byteslen(struct LDKPong *NONNULL_PTR this_ptr, uint16_t val);
6019 public static native void Pong_set_byteslen(long this_ptr, short val);
6020 // MUST_USE_RES struct LDKPong Pong_new(uint16_t byteslen_arg);
6021 public static native long Pong_new(short byteslen_arg);
6022 // uint64_t Pong_clone_ptr(LDKPong *NONNULL_PTR arg);
6023 public static native long Pong_clone_ptr(long arg);
6024 // struct LDKPong Pong_clone(const struct LDKPong *NONNULL_PTR orig);
6025 public static native long Pong_clone(long orig);
6026 // bool Pong_eq(const struct LDKPong *NONNULL_PTR a, const struct LDKPong *NONNULL_PTR b);
6027 public static native boolean Pong_eq(long a, long b);
6028 // void OpenChannel_free(struct LDKOpenChannel this_obj);
6029 public static native void OpenChannel_free(long this_obj);
6030 // const uint8_t (*OpenChannel_get_chain_hash(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
6031 public static native byte[] OpenChannel_get_chain_hash(long this_ptr);
6032 // void OpenChannel_set_chain_hash(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6033 public static native void OpenChannel_set_chain_hash(long this_ptr, byte[] val);
6034 // const uint8_t (*OpenChannel_get_temporary_channel_id(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
6035 public static native byte[] OpenChannel_get_temporary_channel_id(long this_ptr);
6036 // void OpenChannel_set_temporary_channel_id(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6037 public static native void OpenChannel_set_temporary_channel_id(long this_ptr, byte[] val);
6038 // uint64_t OpenChannel_get_funding_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
6039 public static native long OpenChannel_get_funding_satoshis(long this_ptr);
6040 // void OpenChannel_set_funding_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
6041 public static native void OpenChannel_set_funding_satoshis(long this_ptr, long val);
6042 // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
6043 public static native long OpenChannel_get_push_msat(long this_ptr);
6044 // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
6045 public static native void OpenChannel_set_push_msat(long this_ptr, long val);
6046 // uint64_t OpenChannel_get_dust_limit_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
6047 public static native long OpenChannel_get_dust_limit_satoshis(long this_ptr);
6048 // void OpenChannel_set_dust_limit_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
6049 public static native void OpenChannel_set_dust_limit_satoshis(long this_ptr, long val);
6050 // uint64_t OpenChannel_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
6051 public static native long OpenChannel_get_max_htlc_value_in_flight_msat(long this_ptr);
6052 // void OpenChannel_set_max_htlc_value_in_flight_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
6053 public static native void OpenChannel_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
6054 // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
6055 public static native long OpenChannel_get_channel_reserve_satoshis(long this_ptr);
6056 // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
6057 public static native void OpenChannel_set_channel_reserve_satoshis(long this_ptr, long val);
6058 // uint64_t OpenChannel_get_htlc_minimum_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
6059 public static native long OpenChannel_get_htlc_minimum_msat(long this_ptr);
6060 // void OpenChannel_set_htlc_minimum_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
6061 public static native void OpenChannel_set_htlc_minimum_msat(long this_ptr, long val);
6062 // uint32_t OpenChannel_get_feerate_per_kw(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
6063 public static native int OpenChannel_get_feerate_per_kw(long this_ptr);
6064 // void OpenChannel_set_feerate_per_kw(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint32_t val);
6065 public static native void OpenChannel_set_feerate_per_kw(long this_ptr, int val);
6066 // uint16_t OpenChannel_get_to_self_delay(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
6067 public static native short OpenChannel_get_to_self_delay(long this_ptr);
6068 // void OpenChannel_set_to_self_delay(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
6069 public static native void OpenChannel_set_to_self_delay(long this_ptr, short val);
6070 // uint16_t OpenChannel_get_max_accepted_htlcs(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
6071 public static native short OpenChannel_get_max_accepted_htlcs(long this_ptr);
6072 // void OpenChannel_set_max_accepted_htlcs(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
6073 public static native void OpenChannel_set_max_accepted_htlcs(long this_ptr, short val);
6074 // struct LDKPublicKey OpenChannel_get_funding_pubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
6075 public static native byte[] OpenChannel_get_funding_pubkey(long this_ptr);
6076 // void OpenChannel_set_funding_pubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6077 public static native void OpenChannel_set_funding_pubkey(long this_ptr, byte[] val);
6078 // struct LDKPublicKey OpenChannel_get_revocation_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
6079 public static native byte[] OpenChannel_get_revocation_basepoint(long this_ptr);
6080 // void OpenChannel_set_revocation_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6081 public static native void OpenChannel_set_revocation_basepoint(long this_ptr, byte[] val);
6082 // struct LDKPublicKey OpenChannel_get_payment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
6083 public static native byte[] OpenChannel_get_payment_point(long this_ptr);
6084 // void OpenChannel_set_payment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6085 public static native void OpenChannel_set_payment_point(long this_ptr, byte[] val);
6086 // struct LDKPublicKey OpenChannel_get_delayed_payment_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
6087 public static native byte[] OpenChannel_get_delayed_payment_basepoint(long this_ptr);
6088 // void OpenChannel_set_delayed_payment_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6089 public static native void OpenChannel_set_delayed_payment_basepoint(long this_ptr, byte[] val);
6090 // struct LDKPublicKey OpenChannel_get_htlc_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
6091 public static native byte[] OpenChannel_get_htlc_basepoint(long this_ptr);
6092 // void OpenChannel_set_htlc_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6093 public static native void OpenChannel_set_htlc_basepoint(long this_ptr, byte[] val);
6094 // struct LDKPublicKey OpenChannel_get_first_per_commitment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
6095 public static native byte[] OpenChannel_get_first_per_commitment_point(long this_ptr);
6096 // void OpenChannel_set_first_per_commitment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6097 public static native void OpenChannel_set_first_per_commitment_point(long this_ptr, byte[] val);
6098 // uint8_t OpenChannel_get_channel_flags(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
6099 public static native byte OpenChannel_get_channel_flags(long this_ptr);
6100 // void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint8_t val);
6101 public static native void OpenChannel_set_channel_flags(long this_ptr, byte val);
6102 // struct LDKChannelTypeFeatures OpenChannel_get_channel_type(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
6103 public static native long OpenChannel_get_channel_type(long this_ptr);
6104 // void OpenChannel_set_channel_type(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
6105 public static native void OpenChannel_set_channel_type(long this_ptr, long val);
6106 // uint64_t OpenChannel_clone_ptr(LDKOpenChannel *NONNULL_PTR arg);
6107 public static native long OpenChannel_clone_ptr(long arg);
6108 // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig);
6109 public static native long OpenChannel_clone(long orig);
6110 // bool OpenChannel_eq(const struct LDKOpenChannel *NONNULL_PTR a, const struct LDKOpenChannel *NONNULL_PTR b);
6111 public static native boolean OpenChannel_eq(long a, long b);
6112 // void AcceptChannel_free(struct LDKAcceptChannel this_obj);
6113 public static native void AcceptChannel_free(long this_obj);
6114 // const uint8_t (*AcceptChannel_get_temporary_channel_id(const struct LDKAcceptChannel *NONNULL_PTR this_ptr))[32];
6115 public static native byte[] AcceptChannel_get_temporary_channel_id(long this_ptr);
6116 // void AcceptChannel_set_temporary_channel_id(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6117 public static native void AcceptChannel_set_temporary_channel_id(long this_ptr, byte[] val);
6118 // uint64_t AcceptChannel_get_dust_limit_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
6119 public static native long AcceptChannel_get_dust_limit_satoshis(long this_ptr);
6120 // void AcceptChannel_set_dust_limit_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
6121 public static native void AcceptChannel_set_dust_limit_satoshis(long this_ptr, long val);
6122 // uint64_t AcceptChannel_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
6123 public static native long AcceptChannel_get_max_htlc_value_in_flight_msat(long this_ptr);
6124 // void AcceptChannel_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
6125 public static native void AcceptChannel_set_max_htlc_value_in_flight_msat(long this_ptr, long val);
6126 // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
6127 public static native long AcceptChannel_get_channel_reserve_satoshis(long this_ptr);
6128 // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
6129 public static native void AcceptChannel_set_channel_reserve_satoshis(long this_ptr, long val);
6130 // uint64_t AcceptChannel_get_htlc_minimum_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
6131 public static native long AcceptChannel_get_htlc_minimum_msat(long this_ptr);
6132 // void AcceptChannel_set_htlc_minimum_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
6133 public static native void AcceptChannel_set_htlc_minimum_msat(long this_ptr, long val);
6134 // uint32_t AcceptChannel_get_minimum_depth(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
6135 public static native int AcceptChannel_get_minimum_depth(long this_ptr);
6136 // void AcceptChannel_set_minimum_depth(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint32_t val);
6137 public static native void AcceptChannel_set_minimum_depth(long this_ptr, int val);
6138 // uint16_t AcceptChannel_get_to_self_delay(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
6139 public static native short AcceptChannel_get_to_self_delay(long this_ptr);
6140 // void AcceptChannel_set_to_self_delay(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
6141 public static native void AcceptChannel_set_to_self_delay(long this_ptr, short val);
6142 // uint16_t AcceptChannel_get_max_accepted_htlcs(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
6143 public static native short AcceptChannel_get_max_accepted_htlcs(long this_ptr);
6144 // void AcceptChannel_set_max_accepted_htlcs(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
6145 public static native void AcceptChannel_set_max_accepted_htlcs(long this_ptr, short val);
6146 // struct LDKPublicKey AcceptChannel_get_funding_pubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
6147 public static native byte[] AcceptChannel_get_funding_pubkey(long this_ptr);
6148 // void AcceptChannel_set_funding_pubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6149 public static native void AcceptChannel_set_funding_pubkey(long this_ptr, byte[] val);
6150 // struct LDKPublicKey AcceptChannel_get_revocation_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
6151 public static native byte[] AcceptChannel_get_revocation_basepoint(long this_ptr);
6152 // void AcceptChannel_set_revocation_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6153 public static native void AcceptChannel_set_revocation_basepoint(long this_ptr, byte[] val);
6154 // struct LDKPublicKey AcceptChannel_get_payment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
6155 public static native byte[] AcceptChannel_get_payment_point(long this_ptr);
6156 // void AcceptChannel_set_payment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6157 public static native void AcceptChannel_set_payment_point(long this_ptr, byte[] val);
6158 // struct LDKPublicKey AcceptChannel_get_delayed_payment_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
6159 public static native byte[] AcceptChannel_get_delayed_payment_basepoint(long this_ptr);
6160 // void AcceptChannel_set_delayed_payment_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6161 public static native void AcceptChannel_set_delayed_payment_basepoint(long this_ptr, byte[] val);
6162 // struct LDKPublicKey AcceptChannel_get_htlc_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
6163 public static native byte[] AcceptChannel_get_htlc_basepoint(long this_ptr);
6164 // void AcceptChannel_set_htlc_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6165 public static native void AcceptChannel_set_htlc_basepoint(long this_ptr, byte[] val);
6166 // struct LDKPublicKey AcceptChannel_get_first_per_commitment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
6167 public static native byte[] AcceptChannel_get_first_per_commitment_point(long this_ptr);
6168 // void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6169 public static native void AcceptChannel_set_first_per_commitment_point(long this_ptr, byte[] val);
6170 // struct LDKChannelTypeFeatures AcceptChannel_get_channel_type(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
6171 public static native long AcceptChannel_get_channel_type(long this_ptr);
6172 // void AcceptChannel_set_channel_type(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
6173 public static native void AcceptChannel_set_channel_type(long this_ptr, long val);
6174 // uint64_t AcceptChannel_clone_ptr(LDKAcceptChannel *NONNULL_PTR arg);
6175 public static native long AcceptChannel_clone_ptr(long arg);
6176 // struct LDKAcceptChannel AcceptChannel_clone(const struct LDKAcceptChannel *NONNULL_PTR orig);
6177 public static native long AcceptChannel_clone(long orig);
6178 // bool AcceptChannel_eq(const struct LDKAcceptChannel *NONNULL_PTR a, const struct LDKAcceptChannel *NONNULL_PTR b);
6179 public static native boolean AcceptChannel_eq(long a, long b);
6180 // void FundingCreated_free(struct LDKFundingCreated this_obj);
6181 public static native void FundingCreated_free(long this_obj);
6182 // const uint8_t (*FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
6183 public static native byte[] FundingCreated_get_temporary_channel_id(long this_ptr);
6184 // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6185 public static native void FundingCreated_set_temporary_channel_id(long this_ptr, byte[] val);
6186 // const uint8_t (*FundingCreated_get_funding_txid(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
6187 public static native byte[] FundingCreated_get_funding_txid(long this_ptr);
6188 // void FundingCreated_set_funding_txid(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6189 public static native void FundingCreated_set_funding_txid(long this_ptr, byte[] val);
6190 // uint16_t FundingCreated_get_funding_output_index(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
6191 public static native short FundingCreated_get_funding_output_index(long this_ptr);
6192 // void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_PTR this_ptr, uint16_t val);
6193 public static native void FundingCreated_set_funding_output_index(long this_ptr, short val);
6194 // struct LDKSignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
6195 public static native byte[] FundingCreated_get_signature(long this_ptr);
6196 // void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKSignature val);
6197 public static native void FundingCreated_set_signature(long this_ptr, byte[] val);
6198 // MUST_USE_RES struct LDKFundingCreated FundingCreated_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, struct LDKThirtyTwoBytes funding_txid_arg, uint16_t funding_output_index_arg, struct LDKSignature signature_arg);
6199 public static native long FundingCreated_new(byte[] temporary_channel_id_arg, byte[] funding_txid_arg, short funding_output_index_arg, byte[] signature_arg);
6200 // uint64_t FundingCreated_clone_ptr(LDKFundingCreated *NONNULL_PTR arg);
6201 public static native long FundingCreated_clone_ptr(long arg);
6202 // struct LDKFundingCreated FundingCreated_clone(const struct LDKFundingCreated *NONNULL_PTR orig);
6203 public static native long FundingCreated_clone(long orig);
6204 // bool FundingCreated_eq(const struct LDKFundingCreated *NONNULL_PTR a, const struct LDKFundingCreated *NONNULL_PTR b);
6205 public static native boolean FundingCreated_eq(long a, long b);
6206 // void FundingSigned_free(struct LDKFundingSigned this_obj);
6207 public static native void FundingSigned_free(long this_obj);
6208 // const uint8_t (*FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr))[32];
6209 public static native byte[] FundingSigned_get_channel_id(long this_ptr);
6210 // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6211 public static native void FundingSigned_set_channel_id(long this_ptr, byte[] val);
6212 // struct LDKSignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr);
6213 public static native byte[] FundingSigned_get_signature(long this_ptr);
6214 // void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
6215 public static native void FundingSigned_set_signature(long this_ptr, byte[] val);
6216 // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg);
6217 public static native long FundingSigned_new(byte[] channel_id_arg, byte[] signature_arg);
6218 // uint64_t FundingSigned_clone_ptr(LDKFundingSigned *NONNULL_PTR arg);
6219 public static native long FundingSigned_clone_ptr(long arg);
6220 // struct LDKFundingSigned FundingSigned_clone(const struct LDKFundingSigned *NONNULL_PTR orig);
6221 public static native long FundingSigned_clone(long orig);
6222 // bool FundingSigned_eq(const struct LDKFundingSigned *NONNULL_PTR a, const struct LDKFundingSigned *NONNULL_PTR b);
6223 public static native boolean FundingSigned_eq(long a, long b);
6224 // void ChannelReady_free(struct LDKChannelReady this_obj);
6225 public static native void ChannelReady_free(long this_obj);
6226 // const uint8_t (*ChannelReady_get_channel_id(const struct LDKChannelReady *NONNULL_PTR this_ptr))[32];
6227 public static native byte[] ChannelReady_get_channel_id(long this_ptr);
6228 // void ChannelReady_set_channel_id(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6229 public static native void ChannelReady_set_channel_id(long this_ptr, byte[] val);
6230 // struct LDKPublicKey ChannelReady_get_next_per_commitment_point(const struct LDKChannelReady *NONNULL_PTR this_ptr);
6231 public static native byte[] ChannelReady_get_next_per_commitment_point(long this_ptr);
6232 // void ChannelReady_set_next_per_commitment_point(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6233 public static native void ChannelReady_set_next_per_commitment_point(long this_ptr, byte[] val);
6234 // struct LDKCOption_u64Z ChannelReady_get_short_channel_id_alias(const struct LDKChannelReady *NONNULL_PTR this_ptr);
6235 public static native long ChannelReady_get_short_channel_id_alias(long this_ptr);
6236 // void ChannelReady_set_short_channel_id_alias(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
6237 public static native void ChannelReady_set_short_channel_id_alias(long this_ptr, long val);
6238 // 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);
6239 public static native long ChannelReady_new(byte[] channel_id_arg, byte[] next_per_commitment_point_arg, long short_channel_id_alias_arg);
6240 // uint64_t ChannelReady_clone_ptr(LDKChannelReady *NONNULL_PTR arg);
6241 public static native long ChannelReady_clone_ptr(long arg);
6242 // struct LDKChannelReady ChannelReady_clone(const struct LDKChannelReady *NONNULL_PTR orig);
6243 public static native long ChannelReady_clone(long orig);
6244 // bool ChannelReady_eq(const struct LDKChannelReady *NONNULL_PTR a, const struct LDKChannelReady *NONNULL_PTR b);
6245 public static native boolean ChannelReady_eq(long a, long b);
6246 // void Shutdown_free(struct LDKShutdown this_obj);
6247 public static native void Shutdown_free(long this_obj);
6248 // const uint8_t (*Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr))[32];
6249 public static native byte[] Shutdown_get_channel_id(long this_ptr);
6250 // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6251 public static native void Shutdown_set_channel_id(long this_ptr, byte[] val);
6252 // struct LDKu8slice Shutdown_get_scriptpubkey(const struct LDKShutdown *NONNULL_PTR this_ptr);
6253 public static native byte[] Shutdown_get_scriptpubkey(long this_ptr);
6254 // void Shutdown_set_scriptpubkey(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
6255 public static native void Shutdown_set_scriptpubkey(long this_ptr, byte[] val);
6256 // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg);
6257 public static native long Shutdown_new(byte[] channel_id_arg, byte[] scriptpubkey_arg);
6258 // uint64_t Shutdown_clone_ptr(LDKShutdown *NONNULL_PTR arg);
6259 public static native long Shutdown_clone_ptr(long arg);
6260 // struct LDKShutdown Shutdown_clone(const struct LDKShutdown *NONNULL_PTR orig);
6261 public static native long Shutdown_clone(long orig);
6262 // bool Shutdown_eq(const struct LDKShutdown *NONNULL_PTR a, const struct LDKShutdown *NONNULL_PTR b);
6263 public static native boolean Shutdown_eq(long a, long b);
6264 // void ClosingSignedFeeRange_free(struct LDKClosingSignedFeeRange this_obj);
6265 public static native void ClosingSignedFeeRange_free(long this_obj);
6266 // uint64_t ClosingSignedFeeRange_get_min_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
6267 public static native long ClosingSignedFeeRange_get_min_fee_satoshis(long this_ptr);
6268 // void ClosingSignedFeeRange_set_min_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
6269 public static native void ClosingSignedFeeRange_set_min_fee_satoshis(long this_ptr, long val);
6270 // uint64_t ClosingSignedFeeRange_get_max_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
6271 public static native long ClosingSignedFeeRange_get_max_fee_satoshis(long this_ptr);
6272 // void ClosingSignedFeeRange_set_max_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
6273 public static native void ClosingSignedFeeRange_set_max_fee_satoshis(long this_ptr, long val);
6274 // MUST_USE_RES struct LDKClosingSignedFeeRange ClosingSignedFeeRange_new(uint64_t min_fee_satoshis_arg, uint64_t max_fee_satoshis_arg);
6275 public static native long ClosingSignedFeeRange_new(long min_fee_satoshis_arg, long max_fee_satoshis_arg);
6276 // uint64_t ClosingSignedFeeRange_clone_ptr(LDKClosingSignedFeeRange *NONNULL_PTR arg);
6277 public static native long ClosingSignedFeeRange_clone_ptr(long arg);
6278 // struct LDKClosingSignedFeeRange ClosingSignedFeeRange_clone(const struct LDKClosingSignedFeeRange *NONNULL_PTR orig);
6279 public static native long ClosingSignedFeeRange_clone(long orig);
6280 // bool ClosingSignedFeeRange_eq(const struct LDKClosingSignedFeeRange *NONNULL_PTR a, const struct LDKClosingSignedFeeRange *NONNULL_PTR b);
6281 public static native boolean ClosingSignedFeeRange_eq(long a, long b);
6282 // void ClosingSigned_free(struct LDKClosingSigned this_obj);
6283 public static native void ClosingSigned_free(long this_obj);
6284 // const uint8_t (*ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr))[32];
6285 public static native byte[] ClosingSigned_get_channel_id(long this_ptr);
6286 // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6287 public static native void ClosingSigned_set_channel_id(long this_ptr, byte[] val);
6288 // uint64_t ClosingSigned_get_fee_satoshis(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
6289 public static native long ClosingSigned_get_fee_satoshis(long this_ptr);
6290 // void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_ptr, uint64_t val);
6291 public static native void ClosingSigned_set_fee_satoshis(long this_ptr, long val);
6292 // struct LDKSignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
6293 public static native byte[] ClosingSigned_get_signature(long this_ptr);
6294 // void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
6295 public static native void ClosingSigned_set_signature(long this_ptr, byte[] val);
6296 // struct LDKClosingSignedFeeRange ClosingSigned_get_fee_range(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
6297 public static native long ClosingSigned_get_fee_range(long this_ptr);
6298 // void ClosingSigned_set_fee_range(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKClosingSignedFeeRange val);
6299 public static native void ClosingSigned_set_fee_range(long this_ptr, long val);
6300 // MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t fee_satoshis_arg, struct LDKSignature signature_arg, struct LDKClosingSignedFeeRange fee_range_arg);
6301 public static native long ClosingSigned_new(byte[] channel_id_arg, long fee_satoshis_arg, byte[] signature_arg, long fee_range_arg);
6302 // uint64_t ClosingSigned_clone_ptr(LDKClosingSigned *NONNULL_PTR arg);
6303 public static native long ClosingSigned_clone_ptr(long arg);
6304 // struct LDKClosingSigned ClosingSigned_clone(const struct LDKClosingSigned *NONNULL_PTR orig);
6305 public static native long ClosingSigned_clone(long orig);
6306 // bool ClosingSigned_eq(const struct LDKClosingSigned *NONNULL_PTR a, const struct LDKClosingSigned *NONNULL_PTR b);
6307 public static native boolean ClosingSigned_eq(long a, long b);
6308 // void UpdateAddHTLC_free(struct LDKUpdateAddHTLC this_obj);
6309 public static native void UpdateAddHTLC_free(long this_obj);
6310 // const uint8_t (*UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
6311 public static native byte[] UpdateAddHTLC_get_channel_id(long this_ptr);
6312 // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6313 public static native void UpdateAddHTLC_set_channel_id(long this_ptr, byte[] val);
6314 // uint64_t UpdateAddHTLC_get_htlc_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
6315 public static native long UpdateAddHTLC_get_htlc_id(long this_ptr);
6316 // void UpdateAddHTLC_set_htlc_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
6317 public static native void UpdateAddHTLC_set_htlc_id(long this_ptr, long val);
6318 // uint64_t UpdateAddHTLC_get_amount_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
6319 public static native long UpdateAddHTLC_get_amount_msat(long this_ptr);
6320 // void UpdateAddHTLC_set_amount_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
6321 public static native void UpdateAddHTLC_set_amount_msat(long this_ptr, long val);
6322 // const uint8_t (*UpdateAddHTLC_get_payment_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
6323 public static native byte[] UpdateAddHTLC_get_payment_hash(long this_ptr);
6324 // void UpdateAddHTLC_set_payment_hash(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6325 public static native void UpdateAddHTLC_set_payment_hash(long this_ptr, byte[] val);
6326 // uint32_t UpdateAddHTLC_get_cltv_expiry(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
6327 public static native int UpdateAddHTLC_get_cltv_expiry(long this_ptr);
6328 // void UpdateAddHTLC_set_cltv_expiry(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint32_t val);
6329 public static native void UpdateAddHTLC_set_cltv_expiry(long this_ptr, int val);
6330 // uint64_t UpdateAddHTLC_clone_ptr(LDKUpdateAddHTLC *NONNULL_PTR arg);
6331 public static native long UpdateAddHTLC_clone_ptr(long arg);
6332 // struct LDKUpdateAddHTLC UpdateAddHTLC_clone(const struct LDKUpdateAddHTLC *NONNULL_PTR orig);
6333 public static native long UpdateAddHTLC_clone(long orig);
6334 // bool UpdateAddHTLC_eq(const struct LDKUpdateAddHTLC *NONNULL_PTR a, const struct LDKUpdateAddHTLC *NONNULL_PTR b);
6335 public static native boolean UpdateAddHTLC_eq(long a, long b);
6336 // void OnionMessage_free(struct LDKOnionMessage this_obj);
6337 public static native void OnionMessage_free(long this_obj);
6338 // struct LDKPublicKey OnionMessage_get_blinding_point(const struct LDKOnionMessage *NONNULL_PTR this_ptr);
6339 public static native byte[] OnionMessage_get_blinding_point(long this_ptr);
6340 // void OnionMessage_set_blinding_point(struct LDKOnionMessage *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6341 public static native void OnionMessage_set_blinding_point(long this_ptr, byte[] val);
6342 // uint64_t OnionMessage_clone_ptr(LDKOnionMessage *NONNULL_PTR arg);
6343 public static native long OnionMessage_clone_ptr(long arg);
6344 // struct LDKOnionMessage OnionMessage_clone(const struct LDKOnionMessage *NONNULL_PTR orig);
6345 public static native long OnionMessage_clone(long orig);
6346 // bool OnionMessage_eq(const struct LDKOnionMessage *NONNULL_PTR a, const struct LDKOnionMessage *NONNULL_PTR b);
6347 public static native boolean OnionMessage_eq(long a, long b);
6348 // void UpdateFulfillHTLC_free(struct LDKUpdateFulfillHTLC this_obj);
6349 public static native void UpdateFulfillHTLC_free(long this_obj);
6350 // const uint8_t (*UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
6351 public static native byte[] UpdateFulfillHTLC_get_channel_id(long this_ptr);
6352 // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6353 public static native void UpdateFulfillHTLC_set_channel_id(long this_ptr, byte[] val);
6354 // uint64_t UpdateFulfillHTLC_get_htlc_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr);
6355 public static native long UpdateFulfillHTLC_get_htlc_id(long this_ptr);
6356 // void UpdateFulfillHTLC_set_htlc_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, uint64_t val);
6357 public static native void UpdateFulfillHTLC_set_htlc_id(long this_ptr, long val);
6358 // const uint8_t (*UpdateFulfillHTLC_get_payment_preimage(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
6359 public static native byte[] UpdateFulfillHTLC_get_payment_preimage(long this_ptr);
6360 // void UpdateFulfillHTLC_set_payment_preimage(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6361 public static native void UpdateFulfillHTLC_set_payment_preimage(long this_ptr, byte[] val);
6362 // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg);
6363 public static native long UpdateFulfillHTLC_new(byte[] channel_id_arg, long htlc_id_arg, byte[] payment_preimage_arg);
6364 // uint64_t UpdateFulfillHTLC_clone_ptr(LDKUpdateFulfillHTLC *NONNULL_PTR arg);
6365 public static native long UpdateFulfillHTLC_clone_ptr(long arg);
6366 // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_clone(const struct LDKUpdateFulfillHTLC *NONNULL_PTR orig);
6367 public static native long UpdateFulfillHTLC_clone(long orig);
6368 // bool UpdateFulfillHTLC_eq(const struct LDKUpdateFulfillHTLC *NONNULL_PTR a, const struct LDKUpdateFulfillHTLC *NONNULL_PTR b);
6369 public static native boolean UpdateFulfillHTLC_eq(long a, long b);
6370 // void UpdateFailHTLC_free(struct LDKUpdateFailHTLC this_obj);
6371 public static native void UpdateFailHTLC_free(long this_obj);
6372 // const uint8_t (*UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr))[32];
6373 public static native byte[] UpdateFailHTLC_get_channel_id(long this_ptr);
6374 // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6375 public static native void UpdateFailHTLC_set_channel_id(long this_ptr, byte[] val);
6376 // uint64_t UpdateFailHTLC_get_htlc_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr);
6377 public static native long UpdateFailHTLC_get_htlc_id(long this_ptr);
6378 // void UpdateFailHTLC_set_htlc_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, uint64_t val);
6379 public static native void UpdateFailHTLC_set_htlc_id(long this_ptr, long val);
6380 // uint64_t UpdateFailHTLC_clone_ptr(LDKUpdateFailHTLC *NONNULL_PTR arg);
6381 public static native long UpdateFailHTLC_clone_ptr(long arg);
6382 // struct LDKUpdateFailHTLC UpdateFailHTLC_clone(const struct LDKUpdateFailHTLC *NONNULL_PTR orig);
6383 public static native long UpdateFailHTLC_clone(long orig);
6384 // bool UpdateFailHTLC_eq(const struct LDKUpdateFailHTLC *NONNULL_PTR a, const struct LDKUpdateFailHTLC *NONNULL_PTR b);
6385 public static native boolean UpdateFailHTLC_eq(long a, long b);
6386 // void UpdateFailMalformedHTLC_free(struct LDKUpdateFailMalformedHTLC this_obj);
6387 public static native void UpdateFailMalformedHTLC_free(long this_obj);
6388 // const uint8_t (*UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr))[32];
6389 public static native byte[] UpdateFailMalformedHTLC_get_channel_id(long this_ptr);
6390 // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6391 public static native void UpdateFailMalformedHTLC_set_channel_id(long this_ptr, byte[] val);
6392 // uint64_t UpdateFailMalformedHTLC_get_htlc_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
6393 public static native long UpdateFailMalformedHTLC_get_htlc_id(long this_ptr);
6394 // void UpdateFailMalformedHTLC_set_htlc_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint64_t val);
6395 public static native void UpdateFailMalformedHTLC_set_htlc_id(long this_ptr, long val);
6396 // uint16_t UpdateFailMalformedHTLC_get_failure_code(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
6397 public static native short UpdateFailMalformedHTLC_get_failure_code(long this_ptr);
6398 // void UpdateFailMalformedHTLC_set_failure_code(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint16_t val);
6399 public static native void UpdateFailMalformedHTLC_set_failure_code(long this_ptr, short val);
6400 // uint64_t UpdateFailMalformedHTLC_clone_ptr(LDKUpdateFailMalformedHTLC *NONNULL_PTR arg);
6401 public static native long UpdateFailMalformedHTLC_clone_ptr(long arg);
6402 // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_clone(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR orig);
6403 public static native long UpdateFailMalformedHTLC_clone(long orig);
6404 // bool UpdateFailMalformedHTLC_eq(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR a, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR b);
6405 public static native boolean UpdateFailMalformedHTLC_eq(long a, long b);
6406 // void CommitmentSigned_free(struct LDKCommitmentSigned this_obj);
6407 public static native void CommitmentSigned_free(long this_obj);
6408 // const uint8_t (*CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr))[32];
6409 public static native byte[] CommitmentSigned_get_channel_id(long this_ptr);
6410 // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6411 public static native void CommitmentSigned_set_channel_id(long this_ptr, byte[] val);
6412 // struct LDKSignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
6413 public static native byte[] CommitmentSigned_get_signature(long this_ptr);
6414 // void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
6415 public static native void CommitmentSigned_set_signature(long this_ptr, byte[] val);
6416 // struct LDKCVec_SignatureZ CommitmentSigned_get_htlc_signatures(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
6417 public static native byte[][] CommitmentSigned_get_htlc_signatures(long this_ptr);
6418 // void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
6419 public static native void CommitmentSigned_set_htlc_signatures(long this_ptr, byte[][] val);
6420 // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg, struct LDKCVec_SignatureZ htlc_signatures_arg);
6421 public static native long CommitmentSigned_new(byte[] channel_id_arg, byte[] signature_arg, byte[][] htlc_signatures_arg);
6422 // uint64_t CommitmentSigned_clone_ptr(LDKCommitmentSigned *NONNULL_PTR arg);
6423 public static native long CommitmentSigned_clone_ptr(long arg);
6424 // struct LDKCommitmentSigned CommitmentSigned_clone(const struct LDKCommitmentSigned *NONNULL_PTR orig);
6425 public static native long CommitmentSigned_clone(long orig);
6426 // bool CommitmentSigned_eq(const struct LDKCommitmentSigned *NONNULL_PTR a, const struct LDKCommitmentSigned *NONNULL_PTR b);
6427 public static native boolean CommitmentSigned_eq(long a, long b);
6428 // void RevokeAndACK_free(struct LDKRevokeAndACK this_obj);
6429 public static native void RevokeAndACK_free(long this_obj);
6430 // const uint8_t (*RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
6431 public static native byte[] RevokeAndACK_get_channel_id(long this_ptr);
6432 // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6433 public static native void RevokeAndACK_set_channel_id(long this_ptr, byte[] val);
6434 // const uint8_t (*RevokeAndACK_get_per_commitment_secret(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
6435 public static native byte[] RevokeAndACK_get_per_commitment_secret(long this_ptr);
6436 // void RevokeAndACK_set_per_commitment_secret(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6437 public static native void RevokeAndACK_set_per_commitment_secret(long this_ptr, byte[] val);
6438 // struct LDKPublicKey RevokeAndACK_get_next_per_commitment_point(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr);
6439 public static native byte[] RevokeAndACK_get_next_per_commitment_point(long this_ptr);
6440 // void RevokeAndACK_set_next_per_commitment_point(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6441 public static native void RevokeAndACK_set_next_per_commitment_point(long this_ptr, byte[] val);
6442 // 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);
6443 public static native long RevokeAndACK_new(byte[] channel_id_arg, byte[] per_commitment_secret_arg, byte[] next_per_commitment_point_arg);
6444 // uint64_t RevokeAndACK_clone_ptr(LDKRevokeAndACK *NONNULL_PTR arg);
6445 public static native long RevokeAndACK_clone_ptr(long arg);
6446 // struct LDKRevokeAndACK RevokeAndACK_clone(const struct LDKRevokeAndACK *NONNULL_PTR orig);
6447 public static native long RevokeAndACK_clone(long orig);
6448 // bool RevokeAndACK_eq(const struct LDKRevokeAndACK *NONNULL_PTR a, const struct LDKRevokeAndACK *NONNULL_PTR b);
6449 public static native boolean RevokeAndACK_eq(long a, long b);
6450 // void UpdateFee_free(struct LDKUpdateFee this_obj);
6451 public static native void UpdateFee_free(long this_obj);
6452 // const uint8_t (*UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr))[32];
6453 public static native byte[] UpdateFee_get_channel_id(long this_ptr);
6454 // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6455 public static native void UpdateFee_set_channel_id(long this_ptr, byte[] val);
6456 // uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee *NONNULL_PTR this_ptr);
6457 public static native int UpdateFee_get_feerate_per_kw(long this_ptr);
6458 // void UpdateFee_set_feerate_per_kw(struct LDKUpdateFee *NONNULL_PTR this_ptr, uint32_t val);
6459 public static native void UpdateFee_set_feerate_per_kw(long this_ptr, int val);
6460 // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t feerate_per_kw_arg);
6461 public static native long UpdateFee_new(byte[] channel_id_arg, int feerate_per_kw_arg);
6462 // uint64_t UpdateFee_clone_ptr(LDKUpdateFee *NONNULL_PTR arg);
6463 public static native long UpdateFee_clone_ptr(long arg);
6464 // struct LDKUpdateFee UpdateFee_clone(const struct LDKUpdateFee *NONNULL_PTR orig);
6465 public static native long UpdateFee_clone(long orig);
6466 // bool UpdateFee_eq(const struct LDKUpdateFee *NONNULL_PTR a, const struct LDKUpdateFee *NONNULL_PTR b);
6467 public static native boolean UpdateFee_eq(long a, long b);
6468 // void DataLossProtect_free(struct LDKDataLossProtect this_obj);
6469 public static native void DataLossProtect_free(long this_obj);
6470 // const uint8_t (*DataLossProtect_get_your_last_per_commitment_secret(const struct LDKDataLossProtect *NONNULL_PTR this_ptr))[32];
6471 public static native byte[] DataLossProtect_get_your_last_per_commitment_secret(long this_ptr);
6472 // void DataLossProtect_set_your_last_per_commitment_secret(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6473 public static native void DataLossProtect_set_your_last_per_commitment_secret(long this_ptr, byte[] val);
6474 // struct LDKPublicKey DataLossProtect_get_my_current_per_commitment_point(const struct LDKDataLossProtect *NONNULL_PTR this_ptr);
6475 public static native byte[] DataLossProtect_get_my_current_per_commitment_point(long this_ptr);
6476 // void DataLossProtect_set_my_current_per_commitment_point(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKPublicKey val);
6477 public static native void DataLossProtect_set_my_current_per_commitment_point(long this_ptr, byte[] val);
6478 // MUST_USE_RES struct LDKDataLossProtect DataLossProtect_new(struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg);
6479 public static native long DataLossProtect_new(byte[] your_last_per_commitment_secret_arg, byte[] my_current_per_commitment_point_arg);
6480 // uint64_t DataLossProtect_clone_ptr(LDKDataLossProtect *NONNULL_PTR arg);
6481 public static native long DataLossProtect_clone_ptr(long arg);
6482 // struct LDKDataLossProtect DataLossProtect_clone(const struct LDKDataLossProtect *NONNULL_PTR orig);
6483 public static native long DataLossProtect_clone(long orig);
6484 // bool DataLossProtect_eq(const struct LDKDataLossProtect *NONNULL_PTR a, const struct LDKDataLossProtect *NONNULL_PTR b);
6485 public static native boolean DataLossProtect_eq(long a, long b);
6486 // void ChannelReestablish_free(struct LDKChannelReestablish this_obj);
6487 public static native void ChannelReestablish_free(long this_obj);
6488 // const uint8_t (*ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
6489 public static native byte[] ChannelReestablish_get_channel_id(long this_ptr);
6490 // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6491 public static native void ChannelReestablish_set_channel_id(long this_ptr, byte[] val);
6492 // uint64_t ChannelReestablish_get_next_local_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
6493 public static native long ChannelReestablish_get_next_local_commitment_number(long this_ptr);
6494 // void ChannelReestablish_set_next_local_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
6495 public static native void ChannelReestablish_set_next_local_commitment_number(long this_ptr, long val);
6496 // uint64_t ChannelReestablish_get_next_remote_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
6497 public static native long ChannelReestablish_get_next_remote_commitment_number(long this_ptr);
6498 // void ChannelReestablish_set_next_remote_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
6499 public static native void ChannelReestablish_set_next_remote_commitment_number(long this_ptr, long val);
6500 // uint64_t ChannelReestablish_clone_ptr(LDKChannelReestablish *NONNULL_PTR arg);
6501 public static native long ChannelReestablish_clone_ptr(long arg);
6502 // struct LDKChannelReestablish ChannelReestablish_clone(const struct LDKChannelReestablish *NONNULL_PTR orig);
6503 public static native long ChannelReestablish_clone(long orig);
6504 // bool ChannelReestablish_eq(const struct LDKChannelReestablish *NONNULL_PTR a, const struct LDKChannelReestablish *NONNULL_PTR b);
6505 public static native boolean ChannelReestablish_eq(long a, long b);
6506 // void AnnouncementSignatures_free(struct LDKAnnouncementSignatures this_obj);
6507 public static native void AnnouncementSignatures_free(long this_obj);
6508 // const uint8_t (*AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr))[32];
6509 public static native byte[] AnnouncementSignatures_get_channel_id(long this_ptr);
6510 // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6511 public static native void AnnouncementSignatures_set_channel_id(long this_ptr, byte[] val);
6512 // uint64_t AnnouncementSignatures_get_short_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
6513 public static native long AnnouncementSignatures_get_short_channel_id(long this_ptr);
6514 // void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, uint64_t val);
6515 public static native void AnnouncementSignatures_set_short_channel_id(long this_ptr, long val);
6516 // struct LDKSignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
6517 public static native byte[] AnnouncementSignatures_get_node_signature(long this_ptr);
6518 // void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
6519 public static native void AnnouncementSignatures_set_node_signature(long this_ptr, byte[] val);
6520 // struct LDKSignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
6521 public static native byte[] AnnouncementSignatures_get_bitcoin_signature(long this_ptr);
6522 // void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
6523 public static native void AnnouncementSignatures_set_bitcoin_signature(long this_ptr, byte[] val);
6524 // MUST_USE_RES struct LDKAnnouncementSignatures AnnouncementSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t short_channel_id_arg, struct LDKSignature node_signature_arg, struct LDKSignature bitcoin_signature_arg);
6525 public static native long AnnouncementSignatures_new(byte[] channel_id_arg, long short_channel_id_arg, byte[] node_signature_arg, byte[] bitcoin_signature_arg);
6526 // uint64_t AnnouncementSignatures_clone_ptr(LDKAnnouncementSignatures *NONNULL_PTR arg);
6527 public static native long AnnouncementSignatures_clone_ptr(long arg);
6528 // struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAnnouncementSignatures *NONNULL_PTR orig);
6529 public static native long AnnouncementSignatures_clone(long orig);
6530 // bool AnnouncementSignatures_eq(const struct LDKAnnouncementSignatures *NONNULL_PTR a, const struct LDKAnnouncementSignatures *NONNULL_PTR b);
6531 public static native boolean AnnouncementSignatures_eq(long a, long b);
6532 // void NetAddress_free(struct LDKNetAddress this_ptr);
6533 public static native void NetAddress_free(long this_ptr);
6534 // uint64_t NetAddress_clone_ptr(LDKNetAddress *NONNULL_PTR arg);
6535 public static native long NetAddress_clone_ptr(long arg);
6536 // struct LDKNetAddress NetAddress_clone(const struct LDKNetAddress *NONNULL_PTR orig);
6537 public static native long NetAddress_clone(long orig);
6538 // struct LDKNetAddress NetAddress_ipv4(struct LDKFourBytes addr, uint16_t port);
6539 public static native long NetAddress_ipv4(byte[] addr, short port);
6540 // struct LDKNetAddress NetAddress_ipv6(struct LDKSixteenBytes addr, uint16_t port);
6541 public static native long NetAddress_ipv6(byte[] addr, short port);
6542 // struct LDKNetAddress NetAddress_onion_v2(struct LDKTwelveBytes a);
6543 public static native long NetAddress_onion_v2(byte[] a);
6544 // struct LDKNetAddress NetAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port);
6545 public static native long NetAddress_onion_v3(byte[] ed25519_pubkey, short checksum, byte version, short port);
6546 // struct LDKNetAddress NetAddress_hostname(struct LDKHostname hostname, uint16_t port);
6547 public static native long NetAddress_hostname(long hostname, short port);
6548 // bool NetAddress_eq(const struct LDKNetAddress *NONNULL_PTR a, const struct LDKNetAddress *NONNULL_PTR b);
6549 public static native boolean NetAddress_eq(long a, long b);
6550 // struct LDKCVec_u8Z NetAddress_write(const struct LDKNetAddress *NONNULL_PTR obj);
6551 public static native byte[] NetAddress_write(long obj);
6552 // struct LDKCResult_NetAddressDecodeErrorZ NetAddress_read(struct LDKu8slice ser);
6553 public static native long NetAddress_read(byte[] ser);
6554 // void UnsignedGossipMessage_free(struct LDKUnsignedGossipMessage this_ptr);
6555 public static native void UnsignedGossipMessage_free(long this_ptr);
6556 // uint64_t UnsignedGossipMessage_clone_ptr(LDKUnsignedGossipMessage *NONNULL_PTR arg);
6557 public static native long UnsignedGossipMessage_clone_ptr(long arg);
6558 // struct LDKUnsignedGossipMessage UnsignedGossipMessage_clone(const struct LDKUnsignedGossipMessage *NONNULL_PTR orig);
6559 public static native long UnsignedGossipMessage_clone(long orig);
6560 // struct LDKUnsignedGossipMessage UnsignedGossipMessage_channel_announcement(struct LDKUnsignedChannelAnnouncement a);
6561 public static native long UnsignedGossipMessage_channel_announcement(long a);
6562 // struct LDKUnsignedGossipMessage UnsignedGossipMessage_channel_update(struct LDKUnsignedChannelUpdate a);
6563 public static native long UnsignedGossipMessage_channel_update(long a);
6564 // struct LDKUnsignedGossipMessage UnsignedGossipMessage_node_announcement(struct LDKUnsignedNodeAnnouncement a);
6565 public static native long UnsignedGossipMessage_node_announcement(long a);
6566 // struct LDKCVec_u8Z UnsignedGossipMessage_write(const struct LDKUnsignedGossipMessage *NONNULL_PTR obj);
6567 public static native byte[] UnsignedGossipMessage_write(long obj);
6568 // void UnsignedNodeAnnouncement_free(struct LDKUnsignedNodeAnnouncement this_obj);
6569 public static native void UnsignedNodeAnnouncement_free(long this_obj);
6570 // struct LDKNodeFeatures UnsignedNodeAnnouncement_get_features(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
6571 public static native long UnsignedNodeAnnouncement_get_features(long this_ptr);
6572 // void UnsignedNodeAnnouncement_set_features(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
6573 public static native void UnsignedNodeAnnouncement_set_features(long this_ptr, long val);
6574 // uint32_t UnsignedNodeAnnouncement_get_timestamp(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
6575 public static native int UnsignedNodeAnnouncement_get_timestamp(long this_ptr);
6576 // void UnsignedNodeAnnouncement_set_timestamp(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, uint32_t val);
6577 public static native void UnsignedNodeAnnouncement_set_timestamp(long this_ptr, int val);
6578 // struct LDKNodeId UnsignedNodeAnnouncement_get_node_id(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
6579 public static native long UnsignedNodeAnnouncement_get_node_id(long this_ptr);
6580 // void UnsignedNodeAnnouncement_set_node_id(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
6581 public static native void UnsignedNodeAnnouncement_set_node_id(long this_ptr, long val);
6582 // const uint8_t (*UnsignedNodeAnnouncement_get_rgb(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[3];
6583 public static native byte[] UnsignedNodeAnnouncement_get_rgb(long this_ptr);
6584 // void UnsignedNodeAnnouncement_set_rgb(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
6585 public static native void UnsignedNodeAnnouncement_set_rgb(long this_ptr, byte[] val);
6586 // const uint8_t (*UnsignedNodeAnnouncement_get_alias(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[32];
6587 public static native byte[] UnsignedNodeAnnouncement_get_alias(long this_ptr);
6588 // void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6589 public static native void UnsignedNodeAnnouncement_set_alias(long this_ptr, byte[] val);
6590 // struct LDKCVec_NetAddressZ UnsignedNodeAnnouncement_get_addresses(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
6591 public static native long[] UnsignedNodeAnnouncement_get_addresses(long this_ptr);
6592 // void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
6593 public static native void UnsignedNodeAnnouncement_set_addresses(long this_ptr, long[] val);
6594 // uint64_t UnsignedNodeAnnouncement_clone_ptr(LDKUnsignedNodeAnnouncement *NONNULL_PTR arg);
6595 public static native long UnsignedNodeAnnouncement_clone_ptr(long arg);
6596 // struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_clone(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR orig);
6597 public static native long UnsignedNodeAnnouncement_clone(long orig);
6598 // bool UnsignedNodeAnnouncement_eq(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR a, const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR b);
6599 public static native boolean UnsignedNodeAnnouncement_eq(long a, long b);
6600 // void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj);
6601 public static native void NodeAnnouncement_free(long this_obj);
6602 // struct LDKSignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
6603 public static native byte[] NodeAnnouncement_get_signature(long this_ptr);
6604 // void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
6605 public static native void NodeAnnouncement_set_signature(long this_ptr, byte[] val);
6606 // struct LDKUnsignedNodeAnnouncement NodeAnnouncement_get_contents(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
6607 public static native long NodeAnnouncement_get_contents(long this_ptr);
6608 // void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedNodeAnnouncement val);
6609 public static native void NodeAnnouncement_set_contents(long this_ptr, long val);
6610 // MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKSignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg);
6611 public static native long NodeAnnouncement_new(byte[] signature_arg, long contents_arg);
6612 // uint64_t NodeAnnouncement_clone_ptr(LDKNodeAnnouncement *NONNULL_PTR arg);
6613 public static native long NodeAnnouncement_clone_ptr(long arg);
6614 // struct LDKNodeAnnouncement NodeAnnouncement_clone(const struct LDKNodeAnnouncement *NONNULL_PTR orig);
6615 public static native long NodeAnnouncement_clone(long orig);
6616 // bool NodeAnnouncement_eq(const struct LDKNodeAnnouncement *NONNULL_PTR a, const struct LDKNodeAnnouncement *NONNULL_PTR b);
6617 public static native boolean NodeAnnouncement_eq(long a, long b);
6618 // void UnsignedChannelAnnouncement_free(struct LDKUnsignedChannelAnnouncement this_obj);
6619 public static native void UnsignedChannelAnnouncement_free(long this_obj);
6620 // struct LDKChannelFeatures UnsignedChannelAnnouncement_get_features(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
6621 public static native long UnsignedChannelAnnouncement_get_features(long this_ptr);
6622 // void UnsignedChannelAnnouncement_set_features(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
6623 public static native void UnsignedChannelAnnouncement_set_features(long this_ptr, long val);
6624 // const uint8_t (*UnsignedChannelAnnouncement_get_chain_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr))[32];
6625 public static native byte[] UnsignedChannelAnnouncement_get_chain_hash(long this_ptr);
6626 // void UnsignedChannelAnnouncement_set_chain_hash(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6627 public static native void UnsignedChannelAnnouncement_set_chain_hash(long this_ptr, byte[] val);
6628 // uint64_t UnsignedChannelAnnouncement_get_short_channel_id(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
6629 public static native long UnsignedChannelAnnouncement_get_short_channel_id(long this_ptr);
6630 // void UnsignedChannelAnnouncement_set_short_channel_id(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, uint64_t val);
6631 public static native void UnsignedChannelAnnouncement_set_short_channel_id(long this_ptr, long val);
6632 // struct LDKNodeId UnsignedChannelAnnouncement_get_node_id_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
6633 public static native long UnsignedChannelAnnouncement_get_node_id_1(long this_ptr);
6634 // void UnsignedChannelAnnouncement_set_node_id_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
6635 public static native void UnsignedChannelAnnouncement_set_node_id_1(long this_ptr, long val);
6636 // struct LDKNodeId UnsignedChannelAnnouncement_get_node_id_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
6637 public static native long UnsignedChannelAnnouncement_get_node_id_2(long this_ptr);
6638 // void UnsignedChannelAnnouncement_set_node_id_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
6639 public static native void UnsignedChannelAnnouncement_set_node_id_2(long this_ptr, long val);
6640 // struct LDKNodeId UnsignedChannelAnnouncement_get_bitcoin_key_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
6641 public static native long UnsignedChannelAnnouncement_get_bitcoin_key_1(long this_ptr);
6642 // void UnsignedChannelAnnouncement_set_bitcoin_key_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
6643 public static native void UnsignedChannelAnnouncement_set_bitcoin_key_1(long this_ptr, long val);
6644 // struct LDKNodeId UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
6645 public static native long UnsignedChannelAnnouncement_get_bitcoin_key_2(long this_ptr);
6646 // void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
6647 public static native void UnsignedChannelAnnouncement_set_bitcoin_key_2(long this_ptr, long val);
6648 // uint64_t UnsignedChannelAnnouncement_clone_ptr(LDKUnsignedChannelAnnouncement *NONNULL_PTR arg);
6649 public static native long UnsignedChannelAnnouncement_clone_ptr(long arg);
6650 // struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_clone(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR orig);
6651 public static native long UnsignedChannelAnnouncement_clone(long orig);
6652 // bool UnsignedChannelAnnouncement_eq(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR a, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR b);
6653 public static native boolean UnsignedChannelAnnouncement_eq(long a, long b);
6654 // void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj);
6655 public static native void ChannelAnnouncement_free(long this_obj);
6656 // struct LDKSignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
6657 public static native byte[] ChannelAnnouncement_get_node_signature_1(long this_ptr);
6658 // void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
6659 public static native void ChannelAnnouncement_set_node_signature_1(long this_ptr, byte[] val);
6660 // struct LDKSignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
6661 public static native byte[] ChannelAnnouncement_get_node_signature_2(long this_ptr);
6662 // void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
6663 public static native void ChannelAnnouncement_set_node_signature_2(long this_ptr, byte[] val);
6664 // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
6665 public static native byte[] ChannelAnnouncement_get_bitcoin_signature_1(long this_ptr);
6666 // void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
6667 public static native void ChannelAnnouncement_set_bitcoin_signature_1(long this_ptr, byte[] val);
6668 // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
6669 public static native byte[] ChannelAnnouncement_get_bitcoin_signature_2(long this_ptr);
6670 // void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
6671 public static native void ChannelAnnouncement_set_bitcoin_signature_2(long this_ptr, byte[] val);
6672 // struct LDKUnsignedChannelAnnouncement ChannelAnnouncement_get_contents(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
6673 public static native long ChannelAnnouncement_get_contents(long this_ptr);
6674 // void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedChannelAnnouncement val);
6675 public static native void ChannelAnnouncement_set_contents(long this_ptr, long val);
6676 // MUST_USE_RES struct LDKChannelAnnouncement ChannelAnnouncement_new(struct LDKSignature node_signature_1_arg, struct LDKSignature node_signature_2_arg, struct LDKSignature bitcoin_signature_1_arg, struct LDKSignature bitcoin_signature_2_arg, struct LDKUnsignedChannelAnnouncement contents_arg);
6677 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);
6678 // uint64_t ChannelAnnouncement_clone_ptr(LDKChannelAnnouncement *NONNULL_PTR arg);
6679 public static native long ChannelAnnouncement_clone_ptr(long arg);
6680 // struct LDKChannelAnnouncement ChannelAnnouncement_clone(const struct LDKChannelAnnouncement *NONNULL_PTR orig);
6681 public static native long ChannelAnnouncement_clone(long orig);
6682 // bool ChannelAnnouncement_eq(const struct LDKChannelAnnouncement *NONNULL_PTR a, const struct LDKChannelAnnouncement *NONNULL_PTR b);
6683 public static native boolean ChannelAnnouncement_eq(long a, long b);
6684 // void UnsignedChannelUpdate_free(struct LDKUnsignedChannelUpdate this_obj);
6685 public static native void UnsignedChannelUpdate_free(long this_obj);
6686 // const uint8_t (*UnsignedChannelUpdate_get_chain_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr))[32];
6687 public static native byte[] UnsignedChannelUpdate_get_chain_hash(long this_ptr);
6688 // void UnsignedChannelUpdate_set_chain_hash(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6689 public static native void UnsignedChannelUpdate_set_chain_hash(long this_ptr, byte[] val);
6690 // uint64_t UnsignedChannelUpdate_get_short_channel_id(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
6691 public static native long UnsignedChannelUpdate_get_short_channel_id(long this_ptr);
6692 // void UnsignedChannelUpdate_set_short_channel_id(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
6693 public static native void UnsignedChannelUpdate_set_short_channel_id(long this_ptr, long val);
6694 // uint32_t UnsignedChannelUpdate_get_timestamp(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
6695 public static native int UnsignedChannelUpdate_get_timestamp(long this_ptr);
6696 // void UnsignedChannelUpdate_set_timestamp(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
6697 public static native void UnsignedChannelUpdate_set_timestamp(long this_ptr, int val);
6698 // uint8_t UnsignedChannelUpdate_get_flags(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
6699 public static native byte UnsignedChannelUpdate_get_flags(long this_ptr);
6700 // void UnsignedChannelUpdate_set_flags(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint8_t val);
6701 public static native void UnsignedChannelUpdate_set_flags(long this_ptr, byte val);
6702 // uint16_t UnsignedChannelUpdate_get_cltv_expiry_delta(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
6703 public static native short UnsignedChannelUpdate_get_cltv_expiry_delta(long this_ptr);
6704 // void UnsignedChannelUpdate_set_cltv_expiry_delta(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint16_t val);
6705 public static native void UnsignedChannelUpdate_set_cltv_expiry_delta(long this_ptr, short val);
6706 // uint64_t UnsignedChannelUpdate_get_htlc_minimum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
6707 public static native long UnsignedChannelUpdate_get_htlc_minimum_msat(long this_ptr);
6708 // void UnsignedChannelUpdate_set_htlc_minimum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
6709 public static native void UnsignedChannelUpdate_set_htlc_minimum_msat(long this_ptr, long val);
6710 // uint64_t UnsignedChannelUpdate_get_htlc_maximum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
6711 public static native long UnsignedChannelUpdate_get_htlc_maximum_msat(long this_ptr);
6712 // void UnsignedChannelUpdate_set_htlc_maximum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
6713 public static native void UnsignedChannelUpdate_set_htlc_maximum_msat(long this_ptr, long val);
6714 // uint32_t UnsignedChannelUpdate_get_fee_base_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
6715 public static native int UnsignedChannelUpdate_get_fee_base_msat(long this_ptr);
6716 // void UnsignedChannelUpdate_set_fee_base_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
6717 public static native void UnsignedChannelUpdate_set_fee_base_msat(long this_ptr, int val);
6718 // uint32_t UnsignedChannelUpdate_get_fee_proportional_millionths(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
6719 public static native int UnsignedChannelUpdate_get_fee_proportional_millionths(long this_ptr);
6720 // void UnsignedChannelUpdate_set_fee_proportional_millionths(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
6721 public static native void UnsignedChannelUpdate_set_fee_proportional_millionths(long this_ptr, int val);
6722 // struct LDKCVec_u8Z UnsignedChannelUpdate_get_excess_data(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
6723 public static native byte[] UnsignedChannelUpdate_get_excess_data(long this_ptr);
6724 // void UnsignedChannelUpdate_set_excess_data(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
6725 public static native void UnsignedChannelUpdate_set_excess_data(long this_ptr, byte[] val);
6726 // 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);
6727 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);
6728 // uint64_t UnsignedChannelUpdate_clone_ptr(LDKUnsignedChannelUpdate *NONNULL_PTR arg);
6729 public static native long UnsignedChannelUpdate_clone_ptr(long arg);
6730 // struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_clone(const struct LDKUnsignedChannelUpdate *NONNULL_PTR orig);
6731 public static native long UnsignedChannelUpdate_clone(long orig);
6732 // bool UnsignedChannelUpdate_eq(const struct LDKUnsignedChannelUpdate *NONNULL_PTR a, const struct LDKUnsignedChannelUpdate *NONNULL_PTR b);
6733 public static native boolean UnsignedChannelUpdate_eq(long a, long b);
6734 // void ChannelUpdate_free(struct LDKChannelUpdate this_obj);
6735 public static native void ChannelUpdate_free(long this_obj);
6736 // struct LDKSignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
6737 public static native byte[] ChannelUpdate_get_signature(long this_ptr);
6738 // void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKSignature val);
6739 public static native void ChannelUpdate_set_signature(long this_ptr, byte[] val);
6740 // struct LDKUnsignedChannelUpdate ChannelUpdate_get_contents(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
6741 public static native long ChannelUpdate_get_contents(long this_ptr);
6742 // void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKUnsignedChannelUpdate val);
6743 public static native void ChannelUpdate_set_contents(long this_ptr, long val);
6744 // MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKSignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg);
6745 public static native long ChannelUpdate_new(byte[] signature_arg, long contents_arg);
6746 // uint64_t ChannelUpdate_clone_ptr(LDKChannelUpdate *NONNULL_PTR arg);
6747 public static native long ChannelUpdate_clone_ptr(long arg);
6748 // struct LDKChannelUpdate ChannelUpdate_clone(const struct LDKChannelUpdate *NONNULL_PTR orig);
6749 public static native long ChannelUpdate_clone(long orig);
6750 // bool ChannelUpdate_eq(const struct LDKChannelUpdate *NONNULL_PTR a, const struct LDKChannelUpdate *NONNULL_PTR b);
6751 public static native boolean ChannelUpdate_eq(long a, long b);
6752 // void QueryChannelRange_free(struct LDKQueryChannelRange this_obj);
6753 public static native void QueryChannelRange_free(long this_obj);
6754 // const uint8_t (*QueryChannelRange_get_chain_hash(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr))[32];
6755 public static native byte[] QueryChannelRange_get_chain_hash(long this_ptr);
6756 // void QueryChannelRange_set_chain_hash(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6757 public static native void QueryChannelRange_set_chain_hash(long this_ptr, byte[] val);
6758 // uint32_t QueryChannelRange_get_first_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
6759 public static native int QueryChannelRange_get_first_blocknum(long this_ptr);
6760 // void QueryChannelRange_set_first_blocknum(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
6761 public static native void QueryChannelRange_set_first_blocknum(long this_ptr, int val);
6762 // uint32_t QueryChannelRange_get_number_of_blocks(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
6763 public static native int QueryChannelRange_get_number_of_blocks(long this_ptr);
6764 // void QueryChannelRange_set_number_of_blocks(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
6765 public static native void QueryChannelRange_set_number_of_blocks(long this_ptr, int val);
6766 // MUST_USE_RES struct LDKQueryChannelRange QueryChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg);
6767 public static native long QueryChannelRange_new(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg);
6768 // uint64_t QueryChannelRange_clone_ptr(LDKQueryChannelRange *NONNULL_PTR arg);
6769 public static native long QueryChannelRange_clone_ptr(long arg);
6770 // struct LDKQueryChannelRange QueryChannelRange_clone(const struct LDKQueryChannelRange *NONNULL_PTR orig);
6771 public static native long QueryChannelRange_clone(long orig);
6772 // bool QueryChannelRange_eq(const struct LDKQueryChannelRange *NONNULL_PTR a, const struct LDKQueryChannelRange *NONNULL_PTR b);
6773 public static native boolean QueryChannelRange_eq(long a, long b);
6774 // void ReplyChannelRange_free(struct LDKReplyChannelRange this_obj);
6775 public static native void ReplyChannelRange_free(long this_obj);
6776 // const uint8_t (*ReplyChannelRange_get_chain_hash(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr))[32];
6777 public static native byte[] ReplyChannelRange_get_chain_hash(long this_ptr);
6778 // void ReplyChannelRange_set_chain_hash(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6779 public static native void ReplyChannelRange_set_chain_hash(long this_ptr, byte[] val);
6780 // uint32_t ReplyChannelRange_get_first_blocknum(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
6781 public static native int ReplyChannelRange_get_first_blocknum(long this_ptr);
6782 // void ReplyChannelRange_set_first_blocknum(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
6783 public static native void ReplyChannelRange_set_first_blocknum(long this_ptr, int val);
6784 // uint32_t ReplyChannelRange_get_number_of_blocks(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
6785 public static native int ReplyChannelRange_get_number_of_blocks(long this_ptr);
6786 // void ReplyChannelRange_set_number_of_blocks(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
6787 public static native void ReplyChannelRange_set_number_of_blocks(long this_ptr, int val);
6788 // bool ReplyChannelRange_get_sync_complete(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
6789 public static native boolean ReplyChannelRange_get_sync_complete(long this_ptr);
6790 // void ReplyChannelRange_set_sync_complete(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, bool val);
6791 public static native void ReplyChannelRange_set_sync_complete(long this_ptr, boolean val);
6792 // struct LDKCVec_u64Z ReplyChannelRange_get_short_channel_ids(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
6793 public static native long[] ReplyChannelRange_get_short_channel_ids(long this_ptr);
6794 // void ReplyChannelRange_set_short_channel_ids(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
6795 public static native void ReplyChannelRange_set_short_channel_ids(long this_ptr, long[] val);
6796 // 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);
6797 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);
6798 // uint64_t ReplyChannelRange_clone_ptr(LDKReplyChannelRange *NONNULL_PTR arg);
6799 public static native long ReplyChannelRange_clone_ptr(long arg);
6800 // struct LDKReplyChannelRange ReplyChannelRange_clone(const struct LDKReplyChannelRange *NONNULL_PTR orig);
6801 public static native long ReplyChannelRange_clone(long orig);
6802 // bool ReplyChannelRange_eq(const struct LDKReplyChannelRange *NONNULL_PTR a, const struct LDKReplyChannelRange *NONNULL_PTR b);
6803 public static native boolean ReplyChannelRange_eq(long a, long b);
6804 // void QueryShortChannelIds_free(struct LDKQueryShortChannelIds this_obj);
6805 public static native void QueryShortChannelIds_free(long this_obj);
6806 // const uint8_t (*QueryShortChannelIds_get_chain_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr))[32];
6807 public static native byte[] QueryShortChannelIds_get_chain_hash(long this_ptr);
6808 // void QueryShortChannelIds_set_chain_hash(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6809 public static native void QueryShortChannelIds_set_chain_hash(long this_ptr, byte[] val);
6810 // struct LDKCVec_u64Z QueryShortChannelIds_get_short_channel_ids(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr);
6811 public static native long[] QueryShortChannelIds_get_short_channel_ids(long this_ptr);
6812 // void QueryShortChannelIds_set_short_channel_ids(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
6813 public static native void QueryShortChannelIds_set_short_channel_ids(long this_ptr, long[] val);
6814 // MUST_USE_RES struct LDKQueryShortChannelIds QueryShortChannelIds_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKCVec_u64Z short_channel_ids_arg);
6815 public static native long QueryShortChannelIds_new(byte[] chain_hash_arg, long[] short_channel_ids_arg);
6816 // uint64_t QueryShortChannelIds_clone_ptr(LDKQueryShortChannelIds *NONNULL_PTR arg);
6817 public static native long QueryShortChannelIds_clone_ptr(long arg);
6818 // struct LDKQueryShortChannelIds QueryShortChannelIds_clone(const struct LDKQueryShortChannelIds *NONNULL_PTR orig);
6819 public static native long QueryShortChannelIds_clone(long orig);
6820 // bool QueryShortChannelIds_eq(const struct LDKQueryShortChannelIds *NONNULL_PTR a, const struct LDKQueryShortChannelIds *NONNULL_PTR b);
6821 public static native boolean QueryShortChannelIds_eq(long a, long b);
6822 // void ReplyShortChannelIdsEnd_free(struct LDKReplyShortChannelIdsEnd this_obj);
6823 public static native void ReplyShortChannelIdsEnd_free(long this_obj);
6824 // const uint8_t (*ReplyShortChannelIdsEnd_get_chain_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr))[32];
6825 public static native byte[] ReplyShortChannelIdsEnd_get_chain_hash(long this_ptr);
6826 // void ReplyShortChannelIdsEnd_set_chain_hash(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6827 public static native void ReplyShortChannelIdsEnd_set_chain_hash(long this_ptr, byte[] val);
6828 // bool ReplyShortChannelIdsEnd_get_full_information(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr);
6829 public static native boolean ReplyShortChannelIdsEnd_get_full_information(long this_ptr);
6830 // void ReplyShortChannelIdsEnd_set_full_information(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, bool val);
6831 public static native void ReplyShortChannelIdsEnd_set_full_information(long this_ptr, boolean val);
6832 // MUST_USE_RES struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_new(struct LDKThirtyTwoBytes chain_hash_arg, bool full_information_arg);
6833 public static native long ReplyShortChannelIdsEnd_new(byte[] chain_hash_arg, boolean full_information_arg);
6834 // uint64_t ReplyShortChannelIdsEnd_clone_ptr(LDKReplyShortChannelIdsEnd *NONNULL_PTR arg);
6835 public static native long ReplyShortChannelIdsEnd_clone_ptr(long arg);
6836 // struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_clone(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR orig);
6837 public static native long ReplyShortChannelIdsEnd_clone(long orig);
6838 // bool ReplyShortChannelIdsEnd_eq(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR a, const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR b);
6839 public static native boolean ReplyShortChannelIdsEnd_eq(long a, long b);
6840 // void GossipTimestampFilter_free(struct LDKGossipTimestampFilter this_obj);
6841 public static native void GossipTimestampFilter_free(long this_obj);
6842 // const uint8_t (*GossipTimestampFilter_get_chain_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr))[32];
6843 public static native byte[] GossipTimestampFilter_get_chain_hash(long this_ptr);
6844 // void GossipTimestampFilter_set_chain_hash(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
6845 public static native void GossipTimestampFilter_set_chain_hash(long this_ptr, byte[] val);
6846 // uint32_t GossipTimestampFilter_get_first_timestamp(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
6847 public static native int GossipTimestampFilter_get_first_timestamp(long this_ptr);
6848 // void GossipTimestampFilter_set_first_timestamp(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
6849 public static native void GossipTimestampFilter_set_first_timestamp(long this_ptr, int val);
6850 // uint32_t GossipTimestampFilter_get_timestamp_range(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
6851 public static native int GossipTimestampFilter_get_timestamp_range(long this_ptr);
6852 // void GossipTimestampFilter_set_timestamp_range(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
6853 public static native void GossipTimestampFilter_set_timestamp_range(long this_ptr, int val);
6854 // MUST_USE_RES struct LDKGossipTimestampFilter GossipTimestampFilter_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_timestamp_arg, uint32_t timestamp_range_arg);
6855 public static native long GossipTimestampFilter_new(byte[] chain_hash_arg, int first_timestamp_arg, int timestamp_range_arg);
6856 // uint64_t GossipTimestampFilter_clone_ptr(LDKGossipTimestampFilter *NONNULL_PTR arg);
6857 public static native long GossipTimestampFilter_clone_ptr(long arg);
6858 // struct LDKGossipTimestampFilter GossipTimestampFilter_clone(const struct LDKGossipTimestampFilter *NONNULL_PTR orig);
6859 public static native long GossipTimestampFilter_clone(long orig);
6860 // bool GossipTimestampFilter_eq(const struct LDKGossipTimestampFilter *NONNULL_PTR a, const struct LDKGossipTimestampFilter *NONNULL_PTR b);
6861 public static native boolean GossipTimestampFilter_eq(long a, long b);
6862 // void ErrorAction_free(struct LDKErrorAction this_ptr);
6863 public static native void ErrorAction_free(long this_ptr);
6864 // uint64_t ErrorAction_clone_ptr(LDKErrorAction *NONNULL_PTR arg);
6865 public static native long ErrorAction_clone_ptr(long arg);
6866 // struct LDKErrorAction ErrorAction_clone(const struct LDKErrorAction *NONNULL_PTR orig);
6867 public static native long ErrorAction_clone(long orig);
6868 // struct LDKErrorAction ErrorAction_disconnect_peer(struct LDKErrorMessage msg);
6869 public static native long ErrorAction_disconnect_peer(long msg);
6870 // struct LDKErrorAction ErrorAction_ignore_error(void);
6871 public static native long ErrorAction_ignore_error();
6872 // struct LDKErrorAction ErrorAction_ignore_and_log(enum LDKLevel a);
6873 public static native long ErrorAction_ignore_and_log(Level a);
6874 // struct LDKErrorAction ErrorAction_ignore_duplicate_gossip(void);
6875 public static native long ErrorAction_ignore_duplicate_gossip();
6876 // struct LDKErrorAction ErrorAction_send_error_message(struct LDKErrorMessage msg);
6877 public static native long ErrorAction_send_error_message(long msg);
6878 // struct LDKErrorAction ErrorAction_send_warning_message(struct LDKWarningMessage msg, enum LDKLevel log_level);
6879 public static native long ErrorAction_send_warning_message(long msg, Level log_level);
6880 // void LightningError_free(struct LDKLightningError this_obj);
6881 public static native void LightningError_free(long this_obj);
6882 // struct LDKStr LightningError_get_err(const struct LDKLightningError *NONNULL_PTR this_ptr);
6883 public static native String LightningError_get_err(long this_ptr);
6884 // void LightningError_set_err(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKStr val);
6885 public static native void LightningError_set_err(long this_ptr, String val);
6886 // struct LDKErrorAction LightningError_get_action(const struct LDKLightningError *NONNULL_PTR this_ptr);
6887 public static native long LightningError_get_action(long this_ptr);
6888 // void LightningError_set_action(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKErrorAction val);
6889 public static native void LightningError_set_action(long this_ptr, long val);
6890 // MUST_USE_RES struct LDKLightningError LightningError_new(struct LDKStr err_arg, struct LDKErrorAction action_arg);
6891 public static native long LightningError_new(String err_arg, long action_arg);
6892 // uint64_t LightningError_clone_ptr(LDKLightningError *NONNULL_PTR arg);
6893 public static native long LightningError_clone_ptr(long arg);
6894 // struct LDKLightningError LightningError_clone(const struct LDKLightningError *NONNULL_PTR orig);
6895 public static native long LightningError_clone(long orig);
6896 // void CommitmentUpdate_free(struct LDKCommitmentUpdate this_obj);
6897 public static native void CommitmentUpdate_free(long this_obj);
6898 // struct LDKCVec_UpdateAddHTLCZ CommitmentUpdate_get_update_add_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
6899 public static native long[] CommitmentUpdate_get_update_add_htlcs(long this_ptr);
6900 // void CommitmentUpdate_set_update_add_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateAddHTLCZ val);
6901 public static native void CommitmentUpdate_set_update_add_htlcs(long this_ptr, long[] val);
6902 // struct LDKCVec_UpdateFulfillHTLCZ CommitmentUpdate_get_update_fulfill_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
6903 public static native long[] CommitmentUpdate_get_update_fulfill_htlcs(long this_ptr);
6904 // void CommitmentUpdate_set_update_fulfill_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFulfillHTLCZ val);
6905 public static native void CommitmentUpdate_set_update_fulfill_htlcs(long this_ptr, long[] val);
6906 // struct LDKCVec_UpdateFailHTLCZ CommitmentUpdate_get_update_fail_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
6907 public static native long[] CommitmentUpdate_get_update_fail_htlcs(long this_ptr);
6908 // void CommitmentUpdate_set_update_fail_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailHTLCZ val);
6909 public static native void CommitmentUpdate_set_update_fail_htlcs(long this_ptr, long[] val);
6910 // struct LDKCVec_UpdateFailMalformedHTLCZ CommitmentUpdate_get_update_fail_malformed_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
6911 public static native long[] CommitmentUpdate_get_update_fail_malformed_htlcs(long this_ptr);
6912 // void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val);
6913 public static native void CommitmentUpdate_set_update_fail_malformed_htlcs(long this_ptr, long[] val);
6914 // struct LDKUpdateFee CommitmentUpdate_get_update_fee(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
6915 public static native long CommitmentUpdate_get_update_fee(long this_ptr);
6916 // void CommitmentUpdate_set_update_fee(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKUpdateFee val);
6917 public static native void CommitmentUpdate_set_update_fee(long this_ptr, long val);
6918 // struct LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
6919 public static native long CommitmentUpdate_get_commitment_signed(long this_ptr);
6920 // void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCommitmentSigned val);
6921 public static native void CommitmentUpdate_set_commitment_signed(long this_ptr, long val);
6922 // 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);
6923 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);
6924 // uint64_t CommitmentUpdate_clone_ptr(LDKCommitmentUpdate *NONNULL_PTR arg);
6925 public static native long CommitmentUpdate_clone_ptr(long arg);
6926 // struct LDKCommitmentUpdate CommitmentUpdate_clone(const struct LDKCommitmentUpdate *NONNULL_PTR orig);
6927 public static native long CommitmentUpdate_clone(long orig);
6928 // bool CommitmentUpdate_eq(const struct LDKCommitmentUpdate *NONNULL_PTR a, const struct LDKCommitmentUpdate *NONNULL_PTR b);
6929 public static native boolean CommitmentUpdate_eq(long a, long b);
6930 // void ChannelMessageHandler_free(struct LDKChannelMessageHandler this_ptr);
6931 public static native void ChannelMessageHandler_free(long this_ptr);
6932 // void RoutingMessageHandler_free(struct LDKRoutingMessageHandler this_ptr);
6933 public static native void RoutingMessageHandler_free(long this_ptr);
6934 // void OnionMessageHandler_free(struct LDKOnionMessageHandler this_ptr);
6935 public static native void OnionMessageHandler_free(long this_ptr);
6936 // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj);
6937 public static native byte[] AcceptChannel_write(long obj);
6938 // struct LDKCResult_AcceptChannelDecodeErrorZ AcceptChannel_read(struct LDKu8slice ser);
6939 public static native long AcceptChannel_read(byte[] ser);
6940 // struct LDKCVec_u8Z AnnouncementSignatures_write(const struct LDKAnnouncementSignatures *NONNULL_PTR obj);
6941 public static native byte[] AnnouncementSignatures_write(long obj);
6942 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ AnnouncementSignatures_read(struct LDKu8slice ser);
6943 public static native long AnnouncementSignatures_read(byte[] ser);
6944 // struct LDKCVec_u8Z ChannelReestablish_write(const struct LDKChannelReestablish *NONNULL_PTR obj);
6945 public static native byte[] ChannelReestablish_write(long obj);
6946 // struct LDKCResult_ChannelReestablishDecodeErrorZ ChannelReestablish_read(struct LDKu8slice ser);
6947 public static native long ChannelReestablish_read(byte[] ser);
6948 // struct LDKCVec_u8Z ClosingSigned_write(const struct LDKClosingSigned *NONNULL_PTR obj);
6949 public static native byte[] ClosingSigned_write(long obj);
6950 // struct LDKCResult_ClosingSignedDecodeErrorZ ClosingSigned_read(struct LDKu8slice ser);
6951 public static native long ClosingSigned_read(byte[] ser);
6952 // struct LDKCVec_u8Z ClosingSignedFeeRange_write(const struct LDKClosingSignedFeeRange *NONNULL_PTR obj);
6953 public static native byte[] ClosingSignedFeeRange_write(long obj);
6954 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ ClosingSignedFeeRange_read(struct LDKu8slice ser);
6955 public static native long ClosingSignedFeeRange_read(byte[] ser);
6956 // struct LDKCVec_u8Z CommitmentSigned_write(const struct LDKCommitmentSigned *NONNULL_PTR obj);
6957 public static native byte[] CommitmentSigned_write(long obj);
6958 // struct LDKCResult_CommitmentSignedDecodeErrorZ CommitmentSigned_read(struct LDKu8slice ser);
6959 public static native long CommitmentSigned_read(byte[] ser);
6960 // struct LDKCVec_u8Z FundingCreated_write(const struct LDKFundingCreated *NONNULL_PTR obj);
6961 public static native byte[] FundingCreated_write(long obj);
6962 // struct LDKCResult_FundingCreatedDecodeErrorZ FundingCreated_read(struct LDKu8slice ser);
6963 public static native long FundingCreated_read(byte[] ser);
6964 // struct LDKCVec_u8Z FundingSigned_write(const struct LDKFundingSigned *NONNULL_PTR obj);
6965 public static native byte[] FundingSigned_write(long obj);
6966 // struct LDKCResult_FundingSignedDecodeErrorZ FundingSigned_read(struct LDKu8slice ser);
6967 public static native long FundingSigned_read(byte[] ser);
6968 // struct LDKCVec_u8Z ChannelReady_write(const struct LDKChannelReady *NONNULL_PTR obj);
6969 public static native byte[] ChannelReady_write(long obj);
6970 // struct LDKCResult_ChannelReadyDecodeErrorZ ChannelReady_read(struct LDKu8slice ser);
6971 public static native long ChannelReady_read(byte[] ser);
6972 // struct LDKCVec_u8Z Init_write(const struct LDKInit *NONNULL_PTR obj);
6973 public static native byte[] Init_write(long obj);
6974 // struct LDKCResult_InitDecodeErrorZ Init_read(struct LDKu8slice ser);
6975 public static native long Init_read(byte[] ser);
6976 // struct LDKCVec_u8Z OpenChannel_write(const struct LDKOpenChannel *NONNULL_PTR obj);
6977 public static native byte[] OpenChannel_write(long obj);
6978 // struct LDKCResult_OpenChannelDecodeErrorZ OpenChannel_read(struct LDKu8slice ser);
6979 public static native long OpenChannel_read(byte[] ser);
6980 // struct LDKCVec_u8Z RevokeAndACK_write(const struct LDKRevokeAndACK *NONNULL_PTR obj);
6981 public static native byte[] RevokeAndACK_write(long obj);
6982 // struct LDKCResult_RevokeAndACKDecodeErrorZ RevokeAndACK_read(struct LDKu8slice ser);
6983 public static native long RevokeAndACK_read(byte[] ser);
6984 // struct LDKCVec_u8Z Shutdown_write(const struct LDKShutdown *NONNULL_PTR obj);
6985 public static native byte[] Shutdown_write(long obj);
6986 // struct LDKCResult_ShutdownDecodeErrorZ Shutdown_read(struct LDKu8slice ser);
6987 public static native long Shutdown_read(byte[] ser);
6988 // struct LDKCVec_u8Z UpdateFailHTLC_write(const struct LDKUpdateFailHTLC *NONNULL_PTR obj);
6989 public static native byte[] UpdateFailHTLC_write(long obj);
6990 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ UpdateFailHTLC_read(struct LDKu8slice ser);
6991 public static native long UpdateFailHTLC_read(byte[] ser);
6992 // struct LDKCVec_u8Z UpdateFailMalformedHTLC_write(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR obj);
6993 public static native byte[] UpdateFailMalformedHTLC_write(long obj);
6994 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ UpdateFailMalformedHTLC_read(struct LDKu8slice ser);
6995 public static native long UpdateFailMalformedHTLC_read(byte[] ser);
6996 // struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee *NONNULL_PTR obj);
6997 public static native byte[] UpdateFee_write(long obj);
6998 // struct LDKCResult_UpdateFeeDecodeErrorZ UpdateFee_read(struct LDKu8slice ser);
6999 public static native long UpdateFee_read(byte[] ser);
7000 // struct LDKCVec_u8Z UpdateFulfillHTLC_write(const struct LDKUpdateFulfillHTLC *NONNULL_PTR obj);
7001 public static native byte[] UpdateFulfillHTLC_write(long obj);
7002 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ UpdateFulfillHTLC_read(struct LDKu8slice ser);
7003 public static native long UpdateFulfillHTLC_read(byte[] ser);
7004 // struct LDKCVec_u8Z UpdateAddHTLC_write(const struct LDKUpdateAddHTLC *NONNULL_PTR obj);
7005 public static native byte[] UpdateAddHTLC_write(long obj);
7006 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ UpdateAddHTLC_read(struct LDKu8slice ser);
7007 public static native long UpdateAddHTLC_read(byte[] ser);
7008 // struct LDKCResult_OnionMessageDecodeErrorZ OnionMessage_read(struct LDKu8slice ser);
7009 public static native long OnionMessage_read(byte[] ser);
7010 // struct LDKCVec_u8Z OnionMessage_write(const struct LDKOnionMessage *NONNULL_PTR obj);
7011 public static native byte[] OnionMessage_write(long obj);
7012 // struct LDKCVec_u8Z Ping_write(const struct LDKPing *NONNULL_PTR obj);
7013 public static native byte[] Ping_write(long obj);
7014 // struct LDKCResult_PingDecodeErrorZ Ping_read(struct LDKu8slice ser);
7015 public static native long Ping_read(byte[] ser);
7016 // struct LDKCVec_u8Z Pong_write(const struct LDKPong *NONNULL_PTR obj);
7017 public static native byte[] Pong_write(long obj);
7018 // struct LDKCResult_PongDecodeErrorZ Pong_read(struct LDKu8slice ser);
7019 public static native long Pong_read(byte[] ser);
7020 // struct LDKCVec_u8Z UnsignedChannelAnnouncement_write(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR obj);
7021 public static native byte[] UnsignedChannelAnnouncement_write(long obj);
7022 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ UnsignedChannelAnnouncement_read(struct LDKu8slice ser);
7023 public static native long UnsignedChannelAnnouncement_read(byte[] ser);
7024 // struct LDKCVec_u8Z ChannelAnnouncement_write(const struct LDKChannelAnnouncement *NONNULL_PTR obj);
7025 public static native byte[] ChannelAnnouncement_write(long obj);
7026 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ ChannelAnnouncement_read(struct LDKu8slice ser);
7027 public static native long ChannelAnnouncement_read(byte[] ser);
7028 // struct LDKCVec_u8Z UnsignedChannelUpdate_write(const struct LDKUnsignedChannelUpdate *NONNULL_PTR obj);
7029 public static native byte[] UnsignedChannelUpdate_write(long obj);
7030 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ UnsignedChannelUpdate_read(struct LDKu8slice ser);
7031 public static native long UnsignedChannelUpdate_read(byte[] ser);
7032 // struct LDKCVec_u8Z ChannelUpdate_write(const struct LDKChannelUpdate *NONNULL_PTR obj);
7033 public static native byte[] ChannelUpdate_write(long obj);
7034 // struct LDKCResult_ChannelUpdateDecodeErrorZ ChannelUpdate_read(struct LDKu8slice ser);
7035 public static native long ChannelUpdate_read(byte[] ser);
7036 // struct LDKCVec_u8Z ErrorMessage_write(const struct LDKErrorMessage *NONNULL_PTR obj);
7037 public static native byte[] ErrorMessage_write(long obj);
7038 // struct LDKCResult_ErrorMessageDecodeErrorZ ErrorMessage_read(struct LDKu8slice ser);
7039 public static native long ErrorMessage_read(byte[] ser);
7040 // struct LDKCVec_u8Z WarningMessage_write(const struct LDKWarningMessage *NONNULL_PTR obj);
7041 public static native byte[] WarningMessage_write(long obj);
7042 // struct LDKCResult_WarningMessageDecodeErrorZ WarningMessage_read(struct LDKu8slice ser);
7043 public static native long WarningMessage_read(byte[] ser);
7044 // struct LDKCVec_u8Z UnsignedNodeAnnouncement_write(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR obj);
7045 public static native byte[] UnsignedNodeAnnouncement_write(long obj);
7046 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ UnsignedNodeAnnouncement_read(struct LDKu8slice ser);
7047 public static native long UnsignedNodeAnnouncement_read(byte[] ser);
7048 // struct LDKCVec_u8Z NodeAnnouncement_write(const struct LDKNodeAnnouncement *NONNULL_PTR obj);
7049 public static native byte[] NodeAnnouncement_write(long obj);
7050 // struct LDKCResult_NodeAnnouncementDecodeErrorZ NodeAnnouncement_read(struct LDKu8slice ser);
7051 public static native long NodeAnnouncement_read(byte[] ser);
7052 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ QueryShortChannelIds_read(struct LDKu8slice ser);
7053 public static native long QueryShortChannelIds_read(byte[] ser);
7054 // struct LDKCVec_u8Z QueryShortChannelIds_write(const struct LDKQueryShortChannelIds *NONNULL_PTR obj);
7055 public static native byte[] QueryShortChannelIds_write(long obj);
7056 // struct LDKCVec_u8Z ReplyShortChannelIdsEnd_write(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR obj);
7057 public static native byte[] ReplyShortChannelIdsEnd_write(long obj);
7058 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ ReplyShortChannelIdsEnd_read(struct LDKu8slice ser);
7059 public static native long ReplyShortChannelIdsEnd_read(byte[] ser);
7060 // MUST_USE_RES uint32_t QueryChannelRange_end_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_arg);
7061 public static native int QueryChannelRange_end_blocknum(long this_arg);
7062 // struct LDKCVec_u8Z QueryChannelRange_write(const struct LDKQueryChannelRange *NONNULL_PTR obj);
7063 public static native byte[] QueryChannelRange_write(long obj);
7064 // struct LDKCResult_QueryChannelRangeDecodeErrorZ QueryChannelRange_read(struct LDKu8slice ser);
7065 public static native long QueryChannelRange_read(byte[] ser);
7066 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ ReplyChannelRange_read(struct LDKu8slice ser);
7067 public static native long ReplyChannelRange_read(byte[] ser);
7068 // struct LDKCVec_u8Z ReplyChannelRange_write(const struct LDKReplyChannelRange *NONNULL_PTR obj);
7069 public static native byte[] ReplyChannelRange_write(long obj);
7070 // struct LDKCVec_u8Z GossipTimestampFilter_write(const struct LDKGossipTimestampFilter *NONNULL_PTR obj);
7071 public static native byte[] GossipTimestampFilter_write(long obj);
7072 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ GossipTimestampFilter_read(struct LDKu8slice ser);
7073 public static native long GossipTimestampFilter_read(byte[] ser);
7074 // void CustomMessageHandler_free(struct LDKCustomMessageHandler this_ptr);
7075 public static native void CustomMessageHandler_free(long this_ptr);
7076 // void IgnoringMessageHandler_free(struct LDKIgnoringMessageHandler this_obj);
7077 public static native void IgnoringMessageHandler_free(long this_obj);
7078 // MUST_USE_RES struct LDKIgnoringMessageHandler IgnoringMessageHandler_new(void);
7079 public static native long IgnoringMessageHandler_new();
7080 // struct LDKMessageSendEventsProvider IgnoringMessageHandler_as_MessageSendEventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
7081 public static native long IgnoringMessageHandler_as_MessageSendEventsProvider(long this_arg);
7082 // struct LDKRoutingMessageHandler IgnoringMessageHandler_as_RoutingMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
7083 public static native long IgnoringMessageHandler_as_RoutingMessageHandler(long this_arg);
7084 // struct LDKOnionMessageProvider IgnoringMessageHandler_as_OnionMessageProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
7085 public static native long IgnoringMessageHandler_as_OnionMessageProvider(long this_arg);
7086 // struct LDKOnionMessageHandler IgnoringMessageHandler_as_OnionMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
7087 public static native long IgnoringMessageHandler_as_OnionMessageHandler(long this_arg);
7088 // struct LDKCustomOnionMessageHandler IgnoringMessageHandler_as_CustomOnionMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
7089 public static native long IgnoringMessageHandler_as_CustomOnionMessageHandler(long this_arg);
7090 // struct LDKCustomMessageReader IgnoringMessageHandler_as_CustomMessageReader(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
7091 public static native long IgnoringMessageHandler_as_CustomMessageReader(long this_arg);
7092 // struct LDKCustomMessageHandler IgnoringMessageHandler_as_CustomMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
7093 public static native long IgnoringMessageHandler_as_CustomMessageHandler(long this_arg);
7094 // void ErroringMessageHandler_free(struct LDKErroringMessageHandler this_obj);
7095 public static native void ErroringMessageHandler_free(long this_obj);
7096 // MUST_USE_RES struct LDKErroringMessageHandler ErroringMessageHandler_new(void);
7097 public static native long ErroringMessageHandler_new();
7098 // struct LDKMessageSendEventsProvider ErroringMessageHandler_as_MessageSendEventsProvider(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
7099 public static native long ErroringMessageHandler_as_MessageSendEventsProvider(long this_arg);
7100 // struct LDKChannelMessageHandler ErroringMessageHandler_as_ChannelMessageHandler(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
7101 public static native long ErroringMessageHandler_as_ChannelMessageHandler(long this_arg);
7102 // void MessageHandler_free(struct LDKMessageHandler this_obj);
7103 public static native void MessageHandler_free(long this_obj);
7104 // const struct LDKChannelMessageHandler *MessageHandler_get_chan_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
7105 public static native long MessageHandler_get_chan_handler(long this_ptr);
7106 // void MessageHandler_set_chan_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKChannelMessageHandler val);
7107 public static native void MessageHandler_set_chan_handler(long this_ptr, long val);
7108 // const struct LDKRoutingMessageHandler *MessageHandler_get_route_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
7109 public static native long MessageHandler_get_route_handler(long this_ptr);
7110 // void MessageHandler_set_route_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKRoutingMessageHandler val);
7111 public static native void MessageHandler_set_route_handler(long this_ptr, long val);
7112 // const struct LDKOnionMessageHandler *MessageHandler_get_onion_message_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
7113 public static native long MessageHandler_get_onion_message_handler(long this_ptr);
7114 // void MessageHandler_set_onion_message_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKOnionMessageHandler val);
7115 public static native void MessageHandler_set_onion_message_handler(long this_ptr, long val);
7116 // MUST_USE_RES struct LDKMessageHandler MessageHandler_new(struct LDKChannelMessageHandler chan_handler_arg, struct LDKRoutingMessageHandler route_handler_arg, struct LDKOnionMessageHandler onion_message_handler_arg);
7117 public static native long MessageHandler_new(long chan_handler_arg, long route_handler_arg, long onion_message_handler_arg);
7118 // uint64_t SocketDescriptor_clone_ptr(LDKSocketDescriptor *NONNULL_PTR arg);
7119 public static native long SocketDescriptor_clone_ptr(long arg);
7120 // struct LDKSocketDescriptor SocketDescriptor_clone(const struct LDKSocketDescriptor *NONNULL_PTR orig);
7121 public static native long SocketDescriptor_clone(long orig);
7122 // void SocketDescriptor_free(struct LDKSocketDescriptor this_ptr);
7123 public static native void SocketDescriptor_free(long this_ptr);
7124 // void PeerHandleError_free(struct LDKPeerHandleError this_obj);
7125 public static native void PeerHandleError_free(long this_obj);
7126 // MUST_USE_RES struct LDKPeerHandleError PeerHandleError_new(void);
7127 public static native long PeerHandleError_new();
7128 // uint64_t PeerHandleError_clone_ptr(LDKPeerHandleError *NONNULL_PTR arg);
7129 public static native long PeerHandleError_clone_ptr(long arg);
7130 // struct LDKPeerHandleError PeerHandleError_clone(const struct LDKPeerHandleError *NONNULL_PTR orig);
7131 public static native long PeerHandleError_clone(long orig);
7132 // void PeerManager_free(struct LDKPeerManager this_obj);
7133 public static native void PeerManager_free(long this_obj);
7134 // 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 LDKCustomMessageHandler custom_message_handler, struct LDKNodeSigner node_signer);
7135 public static native long PeerManager_new(long message_handler, int current_time, byte[] ephemeral_random_data, long logger, long custom_message_handler, long node_signer);
7136 // MUST_USE_RES struct LDKCVec_C2Tuple_PublicKeyCOption_NetAddressZZZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg);
7137 public static native long[] PeerManager_get_peer_node_ids(long this_arg);
7138 // MUST_USE_RES struct LDKCResult_CVec_u8ZPeerHandleErrorZ PeerManager_new_outbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKSocketDescriptor descriptor, struct LDKCOption_NetAddressZ remote_network_address);
7139 public static native long PeerManager_new_outbound_connection(long this_arg, byte[] their_node_id, long descriptor, long remote_network_address);
7140 // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_new_inbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor descriptor, struct LDKCOption_NetAddressZ remote_network_address);
7141 public static native long PeerManager_new_inbound_connection(long this_arg, long descriptor, long remote_network_address);
7142 // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR descriptor);
7143 public static native long PeerManager_write_buffer_space_avail(long this_arg, long descriptor);
7144 // 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);
7145 public static native long PeerManager_read_event(long this_arg, long peer_descriptor, byte[] data);
7146 // void PeerManager_process_events(const struct LDKPeerManager *NONNULL_PTR this_arg);
7147 public static native void PeerManager_process_events(long this_arg);
7148 // void PeerManager_socket_disconnected(const struct LDKPeerManager *NONNULL_PTR this_arg, const struct LDKSocketDescriptor *NONNULL_PTR descriptor);
7149 public static native void PeerManager_socket_disconnected(long this_arg, long descriptor);
7150 // void PeerManager_disconnect_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id);
7151 public static native void PeerManager_disconnect_by_node_id(long this_arg, byte[] node_id);
7152 // void PeerManager_disconnect_all_peers(const struct LDKPeerManager *NONNULL_PTR this_arg);
7153 public static native void PeerManager_disconnect_all_peers(long this_arg);
7154 // void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR this_arg);
7155 public static native void PeerManager_timer_tick_occurred(long this_arg);
7156 // void PeerManager_broadcast_node_announcement(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_NetAddressZ addresses);
7157 public static native void PeerManager_broadcast_node_announcement(long this_arg, byte[] rgb, byte[] alias, long[] addresses);
7158 // uint64_t htlc_success_tx_weight(bool opt_anchors);
7159 public static native long htlc_success_tx_weight(boolean opt_anchors);
7160 // uint64_t htlc_timeout_tx_weight(bool opt_anchors);
7161 public static native long htlc_timeout_tx_weight(boolean opt_anchors);
7162 // enum LDKHTLCClaim HTLCClaim_clone(const enum LDKHTLCClaim *NONNULL_PTR orig);
7163 public static native HTLCClaim HTLCClaim_clone(long orig);
7164 // enum LDKHTLCClaim HTLCClaim_offered_timeout(void);
7165 public static native HTLCClaim HTLCClaim_offered_timeout();
7166 // enum LDKHTLCClaim HTLCClaim_offered_preimage(void);
7167 public static native HTLCClaim HTLCClaim_offered_preimage();
7168 // enum LDKHTLCClaim HTLCClaim_accepted_timeout(void);
7169 public static native HTLCClaim HTLCClaim_accepted_timeout();
7170 // enum LDKHTLCClaim HTLCClaim_accepted_preimage(void);
7171 public static native HTLCClaim HTLCClaim_accepted_preimage();
7172 // enum LDKHTLCClaim HTLCClaim_revocation(void);
7173 public static native HTLCClaim HTLCClaim_revocation();
7174 // bool HTLCClaim_eq(const enum LDKHTLCClaim *NONNULL_PTR a, const enum LDKHTLCClaim *NONNULL_PTR b);
7175 public static native boolean HTLCClaim_eq(long a, long b);
7176 // MUST_USE_RES struct LDKCOption_HTLCClaimZ HTLCClaim_from_witness(struct LDKWitness witness);
7177 public static native long HTLCClaim_from_witness(byte[] witness);
7178 // struct LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx);
7179 public static native byte[] build_commitment_secret(byte[] commitment_seed, long idx);
7180 // 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);
7181 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);
7182 // void CounterpartyCommitmentSecrets_free(struct LDKCounterpartyCommitmentSecrets this_obj);
7183 public static native void CounterpartyCommitmentSecrets_free(long this_obj);
7184 // uint64_t CounterpartyCommitmentSecrets_clone_ptr(LDKCounterpartyCommitmentSecrets *NONNULL_PTR arg);
7185 public static native long CounterpartyCommitmentSecrets_clone_ptr(long arg);
7186 // struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_clone(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR orig);
7187 public static native long CounterpartyCommitmentSecrets_clone(long orig);
7188 // MUST_USE_RES struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_new(void);
7189 public static native long CounterpartyCommitmentSecrets_new();
7190 // MUST_USE_RES uint64_t CounterpartyCommitmentSecrets_get_min_seen_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg);
7191 public static native long CounterpartyCommitmentSecrets_get_min_seen_secret(long this_arg);
7192 // MUST_USE_RES struct LDKCResult_NoneNoneZ CounterpartyCommitmentSecrets_provide_secret(struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx, struct LDKThirtyTwoBytes secret);
7193 public static native long CounterpartyCommitmentSecrets_provide_secret(long this_arg, long idx, byte[] secret);
7194 // MUST_USE_RES struct LDKThirtyTwoBytes CounterpartyCommitmentSecrets_get_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx);
7195 public static native byte[] CounterpartyCommitmentSecrets_get_secret(long this_arg, long idx);
7196 // struct LDKCVec_u8Z CounterpartyCommitmentSecrets_write(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR obj);
7197 public static native byte[] CounterpartyCommitmentSecrets_write(long obj);
7198 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CounterpartyCommitmentSecrets_read(struct LDKu8slice ser);
7199 public static native long CounterpartyCommitmentSecrets_read(byte[] ser);
7200 // struct LDKSecretKey derive_private_key(struct LDKPublicKey per_commitment_point, const uint8_t (*base_secret)[32]);
7201 public static native byte[] derive_private_key(byte[] per_commitment_point, byte[] base_secret);
7202 // struct LDKPublicKey derive_public_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey base_point);
7203 public static native byte[] derive_public_key(byte[] per_commitment_point, byte[] base_point);
7204 // struct LDKSecretKey derive_private_revocation_key(const uint8_t (*per_commitment_secret)[32], const uint8_t (*countersignatory_revocation_base_secret)[32]);
7205 public static native byte[] derive_private_revocation_key(byte[] per_commitment_secret, byte[] countersignatory_revocation_base_secret);
7206 // struct LDKPublicKey derive_public_revocation_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey countersignatory_revocation_base_point);
7207 public static native byte[] derive_public_revocation_key(byte[] per_commitment_point, byte[] countersignatory_revocation_base_point);
7208 // void TxCreationKeys_free(struct LDKTxCreationKeys this_obj);
7209 public static native void TxCreationKeys_free(long this_obj);
7210 // struct LDKPublicKey TxCreationKeys_get_per_commitment_point(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
7211 public static native byte[] TxCreationKeys_get_per_commitment_point(long this_ptr);
7212 // void TxCreationKeys_set_per_commitment_point(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7213 public static native void TxCreationKeys_set_per_commitment_point(long this_ptr, byte[] val);
7214 // struct LDKPublicKey TxCreationKeys_get_revocation_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
7215 public static native byte[] TxCreationKeys_get_revocation_key(long this_ptr);
7216 // void TxCreationKeys_set_revocation_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7217 public static native void TxCreationKeys_set_revocation_key(long this_ptr, byte[] val);
7218 // struct LDKPublicKey TxCreationKeys_get_broadcaster_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
7219 public static native byte[] TxCreationKeys_get_broadcaster_htlc_key(long this_ptr);
7220 // void TxCreationKeys_set_broadcaster_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7221 public static native void TxCreationKeys_set_broadcaster_htlc_key(long this_ptr, byte[] val);
7222 // struct LDKPublicKey TxCreationKeys_get_countersignatory_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
7223 public static native byte[] TxCreationKeys_get_countersignatory_htlc_key(long this_ptr);
7224 // void TxCreationKeys_set_countersignatory_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7225 public static native void TxCreationKeys_set_countersignatory_htlc_key(long this_ptr, byte[] val);
7226 // struct LDKPublicKey TxCreationKeys_get_broadcaster_delayed_payment_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
7227 public static native byte[] TxCreationKeys_get_broadcaster_delayed_payment_key(long this_ptr);
7228 // void TxCreationKeys_set_broadcaster_delayed_payment_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7229 public static native void TxCreationKeys_set_broadcaster_delayed_payment_key(long this_ptr, byte[] val);
7230 // MUST_USE_RES struct LDKTxCreationKeys TxCreationKeys_new(struct LDKPublicKey per_commitment_point_arg, struct LDKPublicKey revocation_key_arg, struct LDKPublicKey broadcaster_htlc_key_arg, struct LDKPublicKey countersignatory_htlc_key_arg, struct LDKPublicKey broadcaster_delayed_payment_key_arg);
7231 public static native long TxCreationKeys_new(byte[] per_commitment_point_arg, byte[] revocation_key_arg, byte[] broadcaster_htlc_key_arg, byte[] countersignatory_htlc_key_arg, byte[] broadcaster_delayed_payment_key_arg);
7232 // bool TxCreationKeys_eq(const struct LDKTxCreationKeys *NONNULL_PTR a, const struct LDKTxCreationKeys *NONNULL_PTR b);
7233 public static native boolean TxCreationKeys_eq(long a, long b);
7234 // uint64_t TxCreationKeys_clone_ptr(LDKTxCreationKeys *NONNULL_PTR arg);
7235 public static native long TxCreationKeys_clone_ptr(long arg);
7236 // struct LDKTxCreationKeys TxCreationKeys_clone(const struct LDKTxCreationKeys *NONNULL_PTR orig);
7237 public static native long TxCreationKeys_clone(long orig);
7238 // struct LDKCVec_u8Z TxCreationKeys_write(const struct LDKTxCreationKeys *NONNULL_PTR obj);
7239 public static native byte[] TxCreationKeys_write(long obj);
7240 // struct LDKCResult_TxCreationKeysDecodeErrorZ TxCreationKeys_read(struct LDKu8slice ser);
7241 public static native long TxCreationKeys_read(byte[] ser);
7242 // void ChannelPublicKeys_free(struct LDKChannelPublicKeys this_obj);
7243 public static native void ChannelPublicKeys_free(long this_obj);
7244 // struct LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
7245 public static native byte[] ChannelPublicKeys_get_funding_pubkey(long this_ptr);
7246 // void ChannelPublicKeys_set_funding_pubkey(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7247 public static native void ChannelPublicKeys_set_funding_pubkey(long this_ptr, byte[] val);
7248 // struct LDKPublicKey ChannelPublicKeys_get_revocation_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
7249 public static native byte[] ChannelPublicKeys_get_revocation_basepoint(long this_ptr);
7250 // void ChannelPublicKeys_set_revocation_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7251 public static native void ChannelPublicKeys_set_revocation_basepoint(long this_ptr, byte[] val);
7252 // struct LDKPublicKey ChannelPublicKeys_get_payment_point(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
7253 public static native byte[] ChannelPublicKeys_get_payment_point(long this_ptr);
7254 // void ChannelPublicKeys_set_payment_point(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7255 public static native void ChannelPublicKeys_set_payment_point(long this_ptr, byte[] val);
7256 // struct LDKPublicKey ChannelPublicKeys_get_delayed_payment_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
7257 public static native byte[] ChannelPublicKeys_get_delayed_payment_basepoint(long this_ptr);
7258 // void ChannelPublicKeys_set_delayed_payment_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7259 public static native void ChannelPublicKeys_set_delayed_payment_basepoint(long this_ptr, byte[] val);
7260 // struct LDKPublicKey ChannelPublicKeys_get_htlc_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
7261 public static native byte[] ChannelPublicKeys_get_htlc_basepoint(long this_ptr);
7262 // void ChannelPublicKeys_set_htlc_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
7263 public static native void ChannelPublicKeys_set_htlc_basepoint(long this_ptr, byte[] val);
7264 // MUST_USE_RES struct LDKChannelPublicKeys ChannelPublicKeys_new(struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg);
7265 public static native long ChannelPublicKeys_new(byte[] funding_pubkey_arg, byte[] revocation_basepoint_arg, byte[] payment_point_arg, byte[] delayed_payment_basepoint_arg, byte[] htlc_basepoint_arg);
7266 // uint64_t ChannelPublicKeys_clone_ptr(LDKChannelPublicKeys *NONNULL_PTR arg);
7267 public static native long ChannelPublicKeys_clone_ptr(long arg);
7268 // struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig);
7269 public static native long ChannelPublicKeys_clone(long orig);
7270 // bool ChannelPublicKeys_eq(const struct LDKChannelPublicKeys *NONNULL_PTR a, const struct LDKChannelPublicKeys *NONNULL_PTR b);
7271 public static native boolean ChannelPublicKeys_eq(long a, long b);
7272 // struct LDKCVec_u8Z ChannelPublicKeys_write(const struct LDKChannelPublicKeys *NONNULL_PTR obj);
7273 public static native byte[] ChannelPublicKeys_write(long obj);
7274 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ ChannelPublicKeys_read(struct LDKu8slice ser);
7275 public static native long ChannelPublicKeys_read(byte[] ser);
7276 // MUST_USE_RES struct LDKTxCreationKeys TxCreationKeys_derive_new(struct LDKPublicKey per_commitment_point, struct LDKPublicKey broadcaster_delayed_payment_base, struct LDKPublicKey broadcaster_htlc_base, struct LDKPublicKey countersignatory_revocation_base, struct LDKPublicKey countersignatory_htlc_base);
7277 public static native long TxCreationKeys_derive_new(byte[] per_commitment_point, byte[] broadcaster_delayed_payment_base, byte[] broadcaster_htlc_base, byte[] countersignatory_revocation_base, byte[] countersignatory_htlc_base);
7278 // 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);
7279 public static native long TxCreationKeys_from_channel_static_keys(byte[] per_commitment_point, long broadcaster_keys, long countersignatory_keys);
7280 // struct LDKCVec_u8Z get_revokeable_redeemscript(struct LDKPublicKey revocation_key, uint16_t contest_delay, struct LDKPublicKey broadcaster_delayed_payment_key);
7281 public static native byte[] get_revokeable_redeemscript(byte[] revocation_key, short contest_delay, byte[] broadcaster_delayed_payment_key);
7282 // void HTLCOutputInCommitment_free(struct LDKHTLCOutputInCommitment this_obj);
7283 public static native void HTLCOutputInCommitment_free(long this_obj);
7284 // bool HTLCOutputInCommitment_get_offered(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
7285 public static native boolean HTLCOutputInCommitment_get_offered(long this_ptr);
7286 // void HTLCOutputInCommitment_set_offered(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, bool val);
7287 public static native void HTLCOutputInCommitment_set_offered(long this_ptr, boolean val);
7288 // uint64_t HTLCOutputInCommitment_get_amount_msat(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
7289 public static native long HTLCOutputInCommitment_get_amount_msat(long this_ptr);
7290 // void HTLCOutputInCommitment_set_amount_msat(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint64_t val);
7291 public static native void HTLCOutputInCommitment_set_amount_msat(long this_ptr, long val);
7292 // uint32_t HTLCOutputInCommitment_get_cltv_expiry(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
7293 public static native int HTLCOutputInCommitment_get_cltv_expiry(long this_ptr);
7294 // void HTLCOutputInCommitment_set_cltv_expiry(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint32_t val);
7295 public static native void HTLCOutputInCommitment_set_cltv_expiry(long this_ptr, int val);
7296 // const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr))[32];
7297 public static native byte[] HTLCOutputInCommitment_get_payment_hash(long this_ptr);
7298 // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7299 public static native void HTLCOutputInCommitment_set_payment_hash(long this_ptr, byte[] val);
7300 // struct LDKCOption_u32Z HTLCOutputInCommitment_get_transaction_output_index(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
7301 public static native long HTLCOutputInCommitment_get_transaction_output_index(long this_ptr);
7302 // void HTLCOutputInCommitment_set_transaction_output_index(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
7303 public static native void HTLCOutputInCommitment_set_transaction_output_index(long this_ptr, long val);
7304 // 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);
7305 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);
7306 // uint64_t HTLCOutputInCommitment_clone_ptr(LDKHTLCOutputInCommitment *NONNULL_PTR arg);
7307 public static native long HTLCOutputInCommitment_clone_ptr(long arg);
7308 // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_clone(const struct LDKHTLCOutputInCommitment *NONNULL_PTR orig);
7309 public static native long HTLCOutputInCommitment_clone(long orig);
7310 // bool HTLCOutputInCommitment_eq(const struct LDKHTLCOutputInCommitment *NONNULL_PTR a, const struct LDKHTLCOutputInCommitment *NONNULL_PTR b);
7311 public static native boolean HTLCOutputInCommitment_eq(long a, long b);
7312 // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj);
7313 public static native byte[] HTLCOutputInCommitment_write(long obj);
7314 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ HTLCOutputInCommitment_read(struct LDKu8slice ser);
7315 public static native long HTLCOutputInCommitment_read(byte[] ser);
7316 // struct LDKCVec_u8Z get_htlc_redeemscript(const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, bool opt_anchors, const struct LDKTxCreationKeys *NONNULL_PTR keys);
7317 public static native byte[] get_htlc_redeemscript(long htlc, boolean opt_anchors, long keys);
7318 // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory);
7319 public static native byte[] make_funding_redeemscript(byte[] broadcaster, byte[] countersignatory);
7320 // struct LDKTransaction build_htlc_transaction(const uint8_t (*commitment_txid)[32], uint32_t feerate_per_kw, uint16_t contest_delay, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, bool opt_anchors, bool use_non_zero_fee_anchors, struct LDKPublicKey broadcaster_delayed_payment_key, struct LDKPublicKey revocation_key);
7321 public static native byte[] build_htlc_transaction(byte[] commitment_txid, int feerate_per_kw, short contest_delay, long htlc, boolean opt_anchors, boolean use_non_zero_fee_anchors, byte[] broadcaster_delayed_payment_key, byte[] revocation_key);
7322 // struct LDKWitness build_htlc_input_witness(struct LDKSignature local_sig, struct LDKSignature remote_sig, struct LDKThirtyTwoBytes preimage, struct LDKu8slice redeem_script, bool opt_anchors);
7323 public static native byte[] build_htlc_input_witness(byte[] local_sig, byte[] remote_sig, byte[] preimage, byte[] redeem_script, boolean opt_anchors);
7324 // struct LDKCVec_u8Z get_to_countersignatory_with_anchors_redeemscript(struct LDKPublicKey payment_point);
7325 public static native byte[] get_to_countersignatory_with_anchors_redeemscript(byte[] payment_point);
7326 // struct LDKCVec_u8Z get_anchor_redeemscript(struct LDKPublicKey funding_pubkey);
7327 public static native byte[] get_anchor_redeemscript(byte[] funding_pubkey);
7328 // struct LDKWitness build_anchor_input_witness(struct LDKPublicKey funding_key, struct LDKSignature funding_sig);
7329 public static native byte[] build_anchor_input_witness(byte[] funding_key, byte[] funding_sig);
7330 // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_obj);
7331 public static native void ChannelTransactionParameters_free(long this_obj);
7332 // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
7333 public static native long ChannelTransactionParameters_get_holder_pubkeys(long this_ptr);
7334 // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
7335 public static native void ChannelTransactionParameters_set_holder_pubkeys(long this_ptr, long val);
7336 // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
7337 public static native short ChannelTransactionParameters_get_holder_selected_contest_delay(long this_ptr);
7338 // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
7339 public static native void ChannelTransactionParameters_set_holder_selected_contest_delay(long this_ptr, short val);
7340 // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
7341 public static native boolean ChannelTransactionParameters_get_is_outbound_from_holder(long this_ptr);
7342 // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val);
7343 public static native void ChannelTransactionParameters_set_is_outbound_from_holder(long this_ptr, boolean val);
7344 // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
7345 public static native long ChannelTransactionParameters_get_counterparty_parameters(long this_ptr);
7346 // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val);
7347 public static native void ChannelTransactionParameters_set_counterparty_parameters(long this_ptr, long val);
7348 // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
7349 public static native long ChannelTransactionParameters_get_funding_outpoint(long this_ptr);
7350 // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val);
7351 public static native void ChannelTransactionParameters_set_funding_outpoint(long this_ptr, long val);
7352 // enum LDKCOption_NoneZ ChannelTransactionParameters_get_opt_anchors(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
7353 public static native COption_NoneZ ChannelTransactionParameters_get_opt_anchors(long this_ptr);
7354 // void ChannelTransactionParameters_set_opt_anchors(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
7355 public static native void ChannelTransactionParameters_set_opt_anchors(long this_ptr, COption_NoneZ val);
7356 // enum LDKCOption_NoneZ ChannelTransactionParameters_get_opt_non_zero_fee_anchors(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
7357 public static native COption_NoneZ ChannelTransactionParameters_get_opt_non_zero_fee_anchors(long this_ptr);
7358 // void ChannelTransactionParameters_set_opt_non_zero_fee_anchors(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
7359 public static native void ChannelTransactionParameters_set_opt_non_zero_fee_anchors(long this_ptr, COption_NoneZ val);
7360 // MUST_USE_RES struct LDKChannelTransactionParameters ChannelTransactionParameters_new(struct LDKChannelPublicKeys holder_pubkeys_arg, uint16_t holder_selected_contest_delay_arg, bool is_outbound_from_holder_arg, struct LDKCounterpartyChannelTransactionParameters counterparty_parameters_arg, struct LDKOutPoint funding_outpoint_arg, enum LDKCOption_NoneZ opt_anchors_arg, enum LDKCOption_NoneZ opt_non_zero_fee_anchors_arg);
7361 public static native long ChannelTransactionParameters_new(long holder_pubkeys_arg, short holder_selected_contest_delay_arg, boolean is_outbound_from_holder_arg, long counterparty_parameters_arg, long funding_outpoint_arg, COption_NoneZ opt_anchors_arg, COption_NoneZ opt_non_zero_fee_anchors_arg);
7362 // uint64_t ChannelTransactionParameters_clone_ptr(LDKChannelTransactionParameters *NONNULL_PTR arg);
7363 public static native long ChannelTransactionParameters_clone_ptr(long arg);
7364 // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig);
7365 public static native long ChannelTransactionParameters_clone(long orig);
7366 // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_obj);
7367 public static native void CounterpartyChannelTransactionParameters_free(long this_obj);
7368 // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
7369 public static native long CounterpartyChannelTransactionParameters_get_pubkeys(long this_ptr);
7370 // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
7371 public static native void CounterpartyChannelTransactionParameters_set_pubkeys(long this_ptr, long val);
7372 // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
7373 public static native short CounterpartyChannelTransactionParameters_get_selected_contest_delay(long this_ptr);
7374 // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
7375 public static native void CounterpartyChannelTransactionParameters_set_selected_contest_delay(long this_ptr, short val);
7376 // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg);
7377 public static native long CounterpartyChannelTransactionParameters_new(long pubkeys_arg, short selected_contest_delay_arg);
7378 // uint64_t CounterpartyChannelTransactionParameters_clone_ptr(LDKCounterpartyChannelTransactionParameters *NONNULL_PTR arg);
7379 public static native long CounterpartyChannelTransactionParameters_clone_ptr(long arg);
7380 // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig);
7381 public static native long CounterpartyChannelTransactionParameters_clone(long orig);
7382 // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
7383 public static native boolean ChannelTransactionParameters_is_populated(long this_arg);
7384 // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
7385 public static native long ChannelTransactionParameters_as_holder_broadcastable(long this_arg);
7386 // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
7387 public static native long ChannelTransactionParameters_as_counterparty_broadcastable(long this_arg);
7388 // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj);
7389 public static native byte[] CounterpartyChannelTransactionParameters_write(long obj);
7390 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser);
7391 public static native long CounterpartyChannelTransactionParameters_read(byte[] ser);
7392 // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj);
7393 public static native byte[] ChannelTransactionParameters_write(long obj);
7394 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ ChannelTransactionParameters_read(struct LDKu8slice ser);
7395 public static native long ChannelTransactionParameters_read(byte[] ser);
7396 // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_obj);
7397 public static native void DirectedChannelTransactionParameters_free(long this_obj);
7398 // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
7399 public static native long DirectedChannelTransactionParameters_broadcaster_pubkeys(long this_arg);
7400 // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
7401 public static native long DirectedChannelTransactionParameters_countersignatory_pubkeys(long this_arg);
7402 // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
7403 public static native short DirectedChannelTransactionParameters_contest_delay(long this_arg);
7404 // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
7405 public static native boolean DirectedChannelTransactionParameters_is_outbound(long this_arg);
7406 // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
7407 public static native long DirectedChannelTransactionParameters_funding_outpoint(long this_arg);
7408 // MUST_USE_RES bool DirectedChannelTransactionParameters_opt_anchors(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
7409 public static native boolean DirectedChannelTransactionParameters_opt_anchors(long this_arg);
7410 // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_obj);
7411 public static native void HolderCommitmentTransaction_free(long this_obj);
7412 // struct LDKSignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
7413 public static native byte[] HolderCommitmentTransaction_get_counterparty_sig(long this_ptr);
7414 // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKSignature val);
7415 public static native void HolderCommitmentTransaction_set_counterparty_sig(long this_ptr, byte[] val);
7416 // struct LDKCVec_SignatureZ HolderCommitmentTransaction_get_counterparty_htlc_sigs(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
7417 public static native byte[][] HolderCommitmentTransaction_get_counterparty_htlc_sigs(long this_ptr);
7418 // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
7419 public static native void HolderCommitmentTransaction_set_counterparty_htlc_sigs(long this_ptr, byte[][] val);
7420 // uint64_t HolderCommitmentTransaction_clone_ptr(LDKHolderCommitmentTransaction *NONNULL_PTR arg);
7421 public static native long HolderCommitmentTransaction_clone_ptr(long arg);
7422 // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig);
7423 public static native long HolderCommitmentTransaction_clone(long orig);
7424 // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj);
7425 public static native byte[] HolderCommitmentTransaction_write(long obj);
7426 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransaction_read(struct LDKu8slice ser);
7427 public static native long HolderCommitmentTransaction_read(byte[] ser);
7428 // MUST_USE_RES struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_new(struct LDKCommitmentTransaction commitment_tx, struct LDKSignature counterparty_sig, struct LDKCVec_SignatureZ counterparty_htlc_sigs, struct LDKPublicKey holder_funding_key, struct LDKPublicKey counterparty_funding_key);
7429 public static native long HolderCommitmentTransaction_new(long commitment_tx, byte[] counterparty_sig, byte[][] counterparty_htlc_sigs, byte[] holder_funding_key, byte[] counterparty_funding_key);
7430 // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_obj);
7431 public static native void BuiltCommitmentTransaction_free(long this_obj);
7432 // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr);
7433 public static native byte[] BuiltCommitmentTransaction_get_transaction(long this_ptr);
7434 // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val);
7435 public static native void BuiltCommitmentTransaction_set_transaction(long this_ptr, byte[] val);
7436 // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32];
7437 public static native byte[] BuiltCommitmentTransaction_get_txid(long this_ptr);
7438 // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
7439 public static native void BuiltCommitmentTransaction_set_txid(long this_ptr, byte[] val);
7440 // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg);
7441 public static native long BuiltCommitmentTransaction_new(byte[] transaction_arg, byte[] txid_arg);
7442 // uint64_t BuiltCommitmentTransaction_clone_ptr(LDKBuiltCommitmentTransaction *NONNULL_PTR arg);
7443 public static native long BuiltCommitmentTransaction_clone_ptr(long arg);
7444 // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig);
7445 public static native long BuiltCommitmentTransaction_clone(long orig);
7446 // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj);
7447 public static native byte[] BuiltCommitmentTransaction_write(long obj);
7448 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ BuiltCommitmentTransaction_read(struct LDKu8slice ser);
7449 public static native long BuiltCommitmentTransaction_read(byte[] ser);
7450 // 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);
7451 public static native byte[] BuiltCommitmentTransaction_get_sighash_all(long this_arg, byte[] funding_redeemscript, long channel_value_satoshis);
7452 // MUST_USE_RES struct LDKSignature BuiltCommitmentTransaction_sign(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
7453 public static native byte[] BuiltCommitmentTransaction_sign(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis);
7454 // void ClosingTransaction_free(struct LDKClosingTransaction this_obj);
7455 public static native void ClosingTransaction_free(long this_obj);
7456 // uint64_t ClosingTransaction_clone_ptr(LDKClosingTransaction *NONNULL_PTR arg);
7457 public static native long ClosingTransaction_clone_ptr(long arg);
7458 // struct LDKClosingTransaction ClosingTransaction_clone(const struct LDKClosingTransaction *NONNULL_PTR orig);
7459 public static native long ClosingTransaction_clone(long orig);
7460 // uint64_t ClosingTransaction_hash(const struct LDKClosingTransaction *NONNULL_PTR o);
7461 public static native long ClosingTransaction_hash(long o);
7462 // bool ClosingTransaction_eq(const struct LDKClosingTransaction *NONNULL_PTR a, const struct LDKClosingTransaction *NONNULL_PTR b);
7463 public static native boolean ClosingTransaction_eq(long a, long b);
7464 // 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);
7465 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);
7466 // MUST_USE_RES struct LDKTrustedClosingTransaction ClosingTransaction_trust(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
7467 public static native long ClosingTransaction_trust(long this_arg);
7468 // MUST_USE_RES struct LDKCResult_TrustedClosingTransactionNoneZ ClosingTransaction_verify(const struct LDKClosingTransaction *NONNULL_PTR this_arg, struct LDKOutPoint funding_outpoint);
7469 public static native long ClosingTransaction_verify(long this_arg, long funding_outpoint);
7470 // MUST_USE_RES uint64_t ClosingTransaction_to_holder_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
7471 public static native long ClosingTransaction_to_holder_value_sat(long this_arg);
7472 // MUST_USE_RES uint64_t ClosingTransaction_to_counterparty_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
7473 public static native long ClosingTransaction_to_counterparty_value_sat(long this_arg);
7474 // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_holder_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
7475 public static native byte[] ClosingTransaction_to_holder_script(long this_arg);
7476 // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_counterparty_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
7477 public static native byte[] ClosingTransaction_to_counterparty_script(long this_arg);
7478 // void TrustedClosingTransaction_free(struct LDKTrustedClosingTransaction this_obj);
7479 public static native void TrustedClosingTransaction_free(long this_obj);
7480 // MUST_USE_RES struct LDKTransaction TrustedClosingTransaction_built_transaction(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg);
7481 public static native byte[] TrustedClosingTransaction_built_transaction(long this_arg);
7482 // 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);
7483 public static native byte[] TrustedClosingTransaction_get_sighash_all(long this_arg, byte[] funding_redeemscript, long channel_value_satoshis);
7484 // MUST_USE_RES struct LDKSignature TrustedClosingTransaction_sign(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
7485 public static native byte[] TrustedClosingTransaction_sign(long this_arg, byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis);
7486 // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_obj);
7487 public static native void CommitmentTransaction_free(long this_obj);
7488 // uint64_t CommitmentTransaction_clone_ptr(LDKCommitmentTransaction *NONNULL_PTR arg);
7489 public static native long CommitmentTransaction_clone_ptr(long arg);
7490 // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig);
7491 public static native long CommitmentTransaction_clone(long orig);
7492 // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj);
7493 public static native byte[] CommitmentTransaction_write(long obj);
7494 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CommitmentTransaction_read(struct LDKu8slice ser);
7495 public static native long CommitmentTransaction_read(byte[] ser);
7496 // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
7497 public static native long CommitmentTransaction_commitment_number(long this_arg);
7498 // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
7499 public static native long CommitmentTransaction_to_broadcaster_value_sat(long this_arg);
7500 // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
7501 public static native long CommitmentTransaction_to_countersignatory_value_sat(long this_arg);
7502 // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
7503 public static native int CommitmentTransaction_feerate_per_kw(long this_arg);
7504 // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
7505 public static native long CommitmentTransaction_trust(long this_arg);
7506 // 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);
7507 public static native long CommitmentTransaction_verify(long this_arg, long channel_parameters, long broadcaster_keys, long countersignatory_keys);
7508 // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_obj);
7509 public static native void TrustedCommitmentTransaction_free(long this_obj);
7510 // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
7511 public static native byte[] TrustedCommitmentTransaction_txid(long this_arg);
7512 // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
7513 public static native long TrustedCommitmentTransaction_built_transaction(long this_arg);
7514 // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
7515 public static native long TrustedCommitmentTransaction_keys(long this_arg);
7516 // MUST_USE_RES bool TrustedCommitmentTransaction_opt_anchors(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
7517 public static native boolean TrustedCommitmentTransaction_opt_anchors(long this_arg);
7518 // MUST_USE_RES struct LDKCResult_CVec_SignatureZNoneZ TrustedCommitmentTransaction_get_htlc_sigs(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*htlc_base_key)[32], const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR channel_parameters);
7519 public static native long TrustedCommitmentTransaction_get_htlc_sigs(long this_arg, byte[] htlc_base_key, long channel_parameters);
7520 // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster);
7521 public static native long get_commitment_transaction_number_obscure_factor(byte[] broadcaster_payment_basepoint, byte[] countersignatory_payment_basepoint, boolean outbound_from_broadcaster);
7522 // bool InitFeatures_eq(const struct LDKInitFeatures *NONNULL_PTR a, const struct LDKInitFeatures *NONNULL_PTR b);
7523 public static native boolean InitFeatures_eq(long a, long b);
7524 // bool NodeFeatures_eq(const struct LDKNodeFeatures *NONNULL_PTR a, const struct LDKNodeFeatures *NONNULL_PTR b);
7525 public static native boolean NodeFeatures_eq(long a, long b);
7526 // bool ChannelFeatures_eq(const struct LDKChannelFeatures *NONNULL_PTR a, const struct LDKChannelFeatures *NONNULL_PTR b);
7527 public static native boolean ChannelFeatures_eq(long a, long b);
7528 // bool InvoiceFeatures_eq(const struct LDKInvoiceFeatures *NONNULL_PTR a, const struct LDKInvoiceFeatures *NONNULL_PTR b);
7529 public static native boolean InvoiceFeatures_eq(long a, long b);
7530 // bool OfferFeatures_eq(const struct LDKOfferFeatures *NONNULL_PTR a, const struct LDKOfferFeatures *NONNULL_PTR b);
7531 public static native boolean OfferFeatures_eq(long a, long b);
7532 // bool InvoiceRequestFeatures_eq(const struct LDKInvoiceRequestFeatures *NONNULL_PTR a, const struct LDKInvoiceRequestFeatures *NONNULL_PTR b);
7533 public static native boolean InvoiceRequestFeatures_eq(long a, long b);
7534 // bool Bolt12InvoiceFeatures_eq(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR a, const struct LDKBolt12InvoiceFeatures *NONNULL_PTR b);
7535 public static native boolean Bolt12InvoiceFeatures_eq(long a, long b);
7536 // bool BlindedHopFeatures_eq(const struct LDKBlindedHopFeatures *NONNULL_PTR a, const struct LDKBlindedHopFeatures *NONNULL_PTR b);
7537 public static native boolean BlindedHopFeatures_eq(long a, long b);
7538 // bool ChannelTypeFeatures_eq(const struct LDKChannelTypeFeatures *NONNULL_PTR a, const struct LDKChannelTypeFeatures *NONNULL_PTR b);
7539 public static native boolean ChannelTypeFeatures_eq(long a, long b);
7540 // uint64_t InitFeatures_clone_ptr(LDKInitFeatures *NONNULL_PTR arg);
7541 public static native long InitFeatures_clone_ptr(long arg);
7542 // struct LDKInitFeatures InitFeatures_clone(const struct LDKInitFeatures *NONNULL_PTR orig);
7543 public static native long InitFeatures_clone(long orig);
7544 // uint64_t NodeFeatures_clone_ptr(LDKNodeFeatures *NONNULL_PTR arg);
7545 public static native long NodeFeatures_clone_ptr(long arg);
7546 // struct LDKNodeFeatures NodeFeatures_clone(const struct LDKNodeFeatures *NONNULL_PTR orig);
7547 public static native long NodeFeatures_clone(long orig);
7548 // uint64_t ChannelFeatures_clone_ptr(LDKChannelFeatures *NONNULL_PTR arg);
7549 public static native long ChannelFeatures_clone_ptr(long arg);
7550 // struct LDKChannelFeatures ChannelFeatures_clone(const struct LDKChannelFeatures *NONNULL_PTR orig);
7551 public static native long ChannelFeatures_clone(long orig);
7552 // uint64_t InvoiceFeatures_clone_ptr(LDKInvoiceFeatures *NONNULL_PTR arg);
7553 public static native long InvoiceFeatures_clone_ptr(long arg);
7554 // struct LDKInvoiceFeatures InvoiceFeatures_clone(const struct LDKInvoiceFeatures *NONNULL_PTR orig);
7555 public static native long InvoiceFeatures_clone(long orig);
7556 // uint64_t OfferFeatures_clone_ptr(LDKOfferFeatures *NONNULL_PTR arg);
7557 public static native long OfferFeatures_clone_ptr(long arg);
7558 // struct LDKOfferFeatures OfferFeatures_clone(const struct LDKOfferFeatures *NONNULL_PTR orig);
7559 public static native long OfferFeatures_clone(long orig);
7560 // uint64_t InvoiceRequestFeatures_clone_ptr(LDKInvoiceRequestFeatures *NONNULL_PTR arg);
7561 public static native long InvoiceRequestFeatures_clone_ptr(long arg);
7562 // struct LDKInvoiceRequestFeatures InvoiceRequestFeatures_clone(const struct LDKInvoiceRequestFeatures *NONNULL_PTR orig);
7563 public static native long InvoiceRequestFeatures_clone(long orig);
7564 // uint64_t Bolt12InvoiceFeatures_clone_ptr(LDKBolt12InvoiceFeatures *NONNULL_PTR arg);
7565 public static native long Bolt12InvoiceFeatures_clone_ptr(long arg);
7566 // struct LDKBolt12InvoiceFeatures Bolt12InvoiceFeatures_clone(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR orig);
7567 public static native long Bolt12InvoiceFeatures_clone(long orig);
7568 // uint64_t BlindedHopFeatures_clone_ptr(LDKBlindedHopFeatures *NONNULL_PTR arg);
7569 public static native long BlindedHopFeatures_clone_ptr(long arg);
7570 // struct LDKBlindedHopFeatures BlindedHopFeatures_clone(const struct LDKBlindedHopFeatures *NONNULL_PTR orig);
7571 public static native long BlindedHopFeatures_clone(long orig);
7572 // uint64_t ChannelTypeFeatures_clone_ptr(LDKChannelTypeFeatures *NONNULL_PTR arg);
7573 public static native long ChannelTypeFeatures_clone_ptr(long arg);
7574 // struct LDKChannelTypeFeatures ChannelTypeFeatures_clone(const struct LDKChannelTypeFeatures *NONNULL_PTR orig);
7575 public static native long ChannelTypeFeatures_clone(long orig);
7576 // void InitFeatures_free(struct LDKInitFeatures this_obj);
7577 public static native void InitFeatures_free(long this_obj);
7578 // void NodeFeatures_free(struct LDKNodeFeatures this_obj);
7579 public static native void NodeFeatures_free(long this_obj);
7580 // void ChannelFeatures_free(struct LDKChannelFeatures this_obj);
7581 public static native void ChannelFeatures_free(long this_obj);
7582 // void InvoiceFeatures_free(struct LDKInvoiceFeatures this_obj);
7583 public static native void InvoiceFeatures_free(long this_obj);
7584 // void OfferFeatures_free(struct LDKOfferFeatures this_obj);
7585 public static native void OfferFeatures_free(long this_obj);
7586 // void InvoiceRequestFeatures_free(struct LDKInvoiceRequestFeatures this_obj);
7587 public static native void InvoiceRequestFeatures_free(long this_obj);
7588 // void Bolt12InvoiceFeatures_free(struct LDKBolt12InvoiceFeatures this_obj);
7589 public static native void Bolt12InvoiceFeatures_free(long this_obj);
7590 // void BlindedHopFeatures_free(struct LDKBlindedHopFeatures this_obj);
7591 public static native void BlindedHopFeatures_free(long this_obj);
7592 // void ChannelTypeFeatures_free(struct LDKChannelTypeFeatures this_obj);
7593 public static native void ChannelTypeFeatures_free(long this_obj);
7594 // MUST_USE_RES struct LDKInitFeatures InitFeatures_empty(void);
7595 public static native long InitFeatures_empty();
7596 // MUST_USE_RES bool InitFeatures_requires_unknown_bits(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7597 public static native boolean InitFeatures_requires_unknown_bits(long this_arg);
7598 // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_empty(void);
7599 public static native long NodeFeatures_empty();
7600 // MUST_USE_RES bool NodeFeatures_requires_unknown_bits(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7601 public static native boolean NodeFeatures_requires_unknown_bits(long this_arg);
7602 // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_empty(void);
7603 public static native long ChannelFeatures_empty();
7604 // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits(const struct LDKChannelFeatures *NONNULL_PTR this_arg);
7605 public static native boolean ChannelFeatures_requires_unknown_bits(long this_arg);
7606 // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_empty(void);
7607 public static native long InvoiceFeatures_empty();
7608 // MUST_USE_RES bool InvoiceFeatures_requires_unknown_bits(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
7609 public static native boolean InvoiceFeatures_requires_unknown_bits(long this_arg);
7610 // MUST_USE_RES struct LDKOfferFeatures OfferFeatures_empty(void);
7611 public static native long OfferFeatures_empty();
7612 // MUST_USE_RES bool OfferFeatures_requires_unknown_bits(const struct LDKOfferFeatures *NONNULL_PTR this_arg);
7613 public static native boolean OfferFeatures_requires_unknown_bits(long this_arg);
7614 // MUST_USE_RES struct LDKInvoiceRequestFeatures InvoiceRequestFeatures_empty(void);
7615 public static native long InvoiceRequestFeatures_empty();
7616 // MUST_USE_RES bool InvoiceRequestFeatures_requires_unknown_bits(const struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg);
7617 public static native boolean InvoiceRequestFeatures_requires_unknown_bits(long this_arg);
7618 // MUST_USE_RES struct LDKBolt12InvoiceFeatures Bolt12InvoiceFeatures_empty(void);
7619 public static native long Bolt12InvoiceFeatures_empty();
7620 // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_unknown_bits(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
7621 public static native boolean Bolt12InvoiceFeatures_requires_unknown_bits(long this_arg);
7622 // MUST_USE_RES struct LDKBlindedHopFeatures BlindedHopFeatures_empty(void);
7623 public static native long BlindedHopFeatures_empty();
7624 // MUST_USE_RES bool BlindedHopFeatures_requires_unknown_bits(const struct LDKBlindedHopFeatures *NONNULL_PTR this_arg);
7625 public static native boolean BlindedHopFeatures_requires_unknown_bits(long this_arg);
7626 // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_empty(void);
7627 public static native long ChannelTypeFeatures_empty();
7628 // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
7629 public static native boolean ChannelTypeFeatures_requires_unknown_bits(long this_arg);
7630 // struct LDKCVec_u8Z InitFeatures_write(const struct LDKInitFeatures *NONNULL_PTR obj);
7631 public static native byte[] InitFeatures_write(long obj);
7632 // struct LDKCResult_InitFeaturesDecodeErrorZ InitFeatures_read(struct LDKu8slice ser);
7633 public static native long InitFeatures_read(byte[] ser);
7634 // struct LDKCVec_u8Z ChannelFeatures_write(const struct LDKChannelFeatures *NONNULL_PTR obj);
7635 public static native byte[] ChannelFeatures_write(long obj);
7636 // struct LDKCResult_ChannelFeaturesDecodeErrorZ ChannelFeatures_read(struct LDKu8slice ser);
7637 public static native long ChannelFeatures_read(byte[] ser);
7638 // struct LDKCVec_u8Z NodeFeatures_write(const struct LDKNodeFeatures *NONNULL_PTR obj);
7639 public static native byte[] NodeFeatures_write(long obj);
7640 // struct LDKCResult_NodeFeaturesDecodeErrorZ NodeFeatures_read(struct LDKu8slice ser);
7641 public static native long NodeFeatures_read(byte[] ser);
7642 // struct LDKCVec_u8Z InvoiceFeatures_write(const struct LDKInvoiceFeatures *NONNULL_PTR obj);
7643 public static native byte[] InvoiceFeatures_write(long obj);
7644 // struct LDKCResult_InvoiceFeaturesDecodeErrorZ InvoiceFeatures_read(struct LDKu8slice ser);
7645 public static native long InvoiceFeatures_read(byte[] ser);
7646 // struct LDKCVec_u8Z BlindedHopFeatures_write(const struct LDKBlindedHopFeatures *NONNULL_PTR obj);
7647 public static native byte[] BlindedHopFeatures_write(long obj);
7648 // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ BlindedHopFeatures_read(struct LDKu8slice ser);
7649 public static native long BlindedHopFeatures_read(byte[] ser);
7650 // struct LDKCVec_u8Z ChannelTypeFeatures_write(const struct LDKChannelTypeFeatures *NONNULL_PTR obj);
7651 public static native byte[] ChannelTypeFeatures_write(long obj);
7652 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ ChannelTypeFeatures_read(struct LDKu8slice ser);
7653 public static native long ChannelTypeFeatures_read(byte[] ser);
7654 // void InitFeatures_set_data_loss_protect_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
7655 public static native void InitFeatures_set_data_loss_protect_optional(long this_arg);
7656 // void InitFeatures_set_data_loss_protect_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
7657 public static native void InitFeatures_set_data_loss_protect_required(long this_arg);
7658 // MUST_USE_RES bool InitFeatures_supports_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7659 public static native boolean InitFeatures_supports_data_loss_protect(long this_arg);
7660 // void NodeFeatures_set_data_loss_protect_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7661 public static native void NodeFeatures_set_data_loss_protect_optional(long this_arg);
7662 // void NodeFeatures_set_data_loss_protect_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7663 public static native void NodeFeatures_set_data_loss_protect_required(long this_arg);
7664 // MUST_USE_RES bool NodeFeatures_supports_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7665 public static native boolean NodeFeatures_supports_data_loss_protect(long this_arg);
7666 // MUST_USE_RES bool InitFeatures_requires_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7667 public static native boolean InitFeatures_requires_data_loss_protect(long this_arg);
7668 // MUST_USE_RES bool NodeFeatures_requires_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7669 public static native boolean NodeFeatures_requires_data_loss_protect(long this_arg);
7670 // void InitFeatures_set_initial_routing_sync_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
7671 public static native void InitFeatures_set_initial_routing_sync_optional(long this_arg);
7672 // void InitFeatures_set_initial_routing_sync_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
7673 public static native void InitFeatures_set_initial_routing_sync_required(long this_arg);
7674 // MUST_USE_RES bool InitFeatures_initial_routing_sync(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7675 public static native boolean InitFeatures_initial_routing_sync(long this_arg);
7676 // void InitFeatures_set_upfront_shutdown_script_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
7677 public static native void InitFeatures_set_upfront_shutdown_script_optional(long this_arg);
7678 // void InitFeatures_set_upfront_shutdown_script_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
7679 public static native void InitFeatures_set_upfront_shutdown_script_required(long this_arg);
7680 // MUST_USE_RES bool InitFeatures_supports_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7681 public static native boolean InitFeatures_supports_upfront_shutdown_script(long this_arg);
7682 // void NodeFeatures_set_upfront_shutdown_script_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7683 public static native void NodeFeatures_set_upfront_shutdown_script_optional(long this_arg);
7684 // void NodeFeatures_set_upfront_shutdown_script_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7685 public static native void NodeFeatures_set_upfront_shutdown_script_required(long this_arg);
7686 // MUST_USE_RES bool NodeFeatures_supports_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7687 public static native boolean NodeFeatures_supports_upfront_shutdown_script(long this_arg);
7688 // MUST_USE_RES bool InitFeatures_requires_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7689 public static native boolean InitFeatures_requires_upfront_shutdown_script(long this_arg);
7690 // MUST_USE_RES bool NodeFeatures_requires_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7691 public static native boolean NodeFeatures_requires_upfront_shutdown_script(long this_arg);
7692 // void InitFeatures_set_gossip_queries_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
7693 public static native void InitFeatures_set_gossip_queries_optional(long this_arg);
7694 // void InitFeatures_set_gossip_queries_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
7695 public static native void InitFeatures_set_gossip_queries_required(long this_arg);
7696 // MUST_USE_RES bool InitFeatures_supports_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7697 public static native boolean InitFeatures_supports_gossip_queries(long this_arg);
7698 // void NodeFeatures_set_gossip_queries_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7699 public static native void NodeFeatures_set_gossip_queries_optional(long this_arg);
7700 // void NodeFeatures_set_gossip_queries_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7701 public static native void NodeFeatures_set_gossip_queries_required(long this_arg);
7702 // MUST_USE_RES bool NodeFeatures_supports_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7703 public static native boolean NodeFeatures_supports_gossip_queries(long this_arg);
7704 // MUST_USE_RES bool InitFeatures_requires_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7705 public static native boolean InitFeatures_requires_gossip_queries(long this_arg);
7706 // MUST_USE_RES bool NodeFeatures_requires_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7707 public static native boolean NodeFeatures_requires_gossip_queries(long this_arg);
7708 // void InitFeatures_set_variable_length_onion_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
7709 public static native void InitFeatures_set_variable_length_onion_optional(long this_arg);
7710 // void InitFeatures_set_variable_length_onion_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
7711 public static native void InitFeatures_set_variable_length_onion_required(long this_arg);
7712 // MUST_USE_RES bool InitFeatures_supports_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7713 public static native boolean InitFeatures_supports_variable_length_onion(long this_arg);
7714 // void NodeFeatures_set_variable_length_onion_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7715 public static native void NodeFeatures_set_variable_length_onion_optional(long this_arg);
7716 // void NodeFeatures_set_variable_length_onion_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7717 public static native void NodeFeatures_set_variable_length_onion_required(long this_arg);
7718 // MUST_USE_RES bool NodeFeatures_supports_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7719 public static native boolean NodeFeatures_supports_variable_length_onion(long this_arg);
7720 // void InvoiceFeatures_set_variable_length_onion_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
7721 public static native void InvoiceFeatures_set_variable_length_onion_optional(long this_arg);
7722 // void InvoiceFeatures_set_variable_length_onion_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
7723 public static native void InvoiceFeatures_set_variable_length_onion_required(long this_arg);
7724 // MUST_USE_RES bool InvoiceFeatures_supports_variable_length_onion(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
7725 public static native boolean InvoiceFeatures_supports_variable_length_onion(long this_arg);
7726 // MUST_USE_RES bool InitFeatures_requires_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7727 public static native boolean InitFeatures_requires_variable_length_onion(long this_arg);
7728 // MUST_USE_RES bool NodeFeatures_requires_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7729 public static native boolean NodeFeatures_requires_variable_length_onion(long this_arg);
7730 // MUST_USE_RES bool InvoiceFeatures_requires_variable_length_onion(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
7731 public static native boolean InvoiceFeatures_requires_variable_length_onion(long this_arg);
7732 // void InitFeatures_set_static_remote_key_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
7733 public static native void InitFeatures_set_static_remote_key_optional(long this_arg);
7734 // void InitFeatures_set_static_remote_key_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
7735 public static native void InitFeatures_set_static_remote_key_required(long this_arg);
7736 // MUST_USE_RES bool InitFeatures_supports_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7737 public static native boolean InitFeatures_supports_static_remote_key(long this_arg);
7738 // void NodeFeatures_set_static_remote_key_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7739 public static native void NodeFeatures_set_static_remote_key_optional(long this_arg);
7740 // void NodeFeatures_set_static_remote_key_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7741 public static native void NodeFeatures_set_static_remote_key_required(long this_arg);
7742 // MUST_USE_RES bool NodeFeatures_supports_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7743 public static native boolean NodeFeatures_supports_static_remote_key(long this_arg);
7744 // void ChannelTypeFeatures_set_static_remote_key_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
7745 public static native void ChannelTypeFeatures_set_static_remote_key_optional(long this_arg);
7746 // void ChannelTypeFeatures_set_static_remote_key_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
7747 public static native void ChannelTypeFeatures_set_static_remote_key_required(long this_arg);
7748 // MUST_USE_RES bool ChannelTypeFeatures_supports_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
7749 public static native boolean ChannelTypeFeatures_supports_static_remote_key(long this_arg);
7750 // MUST_USE_RES bool InitFeatures_requires_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7751 public static native boolean InitFeatures_requires_static_remote_key(long this_arg);
7752 // MUST_USE_RES bool NodeFeatures_requires_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7753 public static native boolean NodeFeatures_requires_static_remote_key(long this_arg);
7754 // MUST_USE_RES bool ChannelTypeFeatures_requires_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
7755 public static native boolean ChannelTypeFeatures_requires_static_remote_key(long this_arg);
7756 // void InitFeatures_set_payment_secret_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
7757 public static native void InitFeatures_set_payment_secret_optional(long this_arg);
7758 // void InitFeatures_set_payment_secret_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
7759 public static native void InitFeatures_set_payment_secret_required(long this_arg);
7760 // MUST_USE_RES bool InitFeatures_supports_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7761 public static native boolean InitFeatures_supports_payment_secret(long this_arg);
7762 // void NodeFeatures_set_payment_secret_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7763 public static native void NodeFeatures_set_payment_secret_optional(long this_arg);
7764 // void NodeFeatures_set_payment_secret_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7765 public static native void NodeFeatures_set_payment_secret_required(long this_arg);
7766 // MUST_USE_RES bool NodeFeatures_supports_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7767 public static native boolean NodeFeatures_supports_payment_secret(long this_arg);
7768 // void InvoiceFeatures_set_payment_secret_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
7769 public static native void InvoiceFeatures_set_payment_secret_optional(long this_arg);
7770 // void InvoiceFeatures_set_payment_secret_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
7771 public static native void InvoiceFeatures_set_payment_secret_required(long this_arg);
7772 // MUST_USE_RES bool InvoiceFeatures_supports_payment_secret(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
7773 public static native boolean InvoiceFeatures_supports_payment_secret(long this_arg);
7774 // MUST_USE_RES bool InitFeatures_requires_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7775 public static native boolean InitFeatures_requires_payment_secret(long this_arg);
7776 // MUST_USE_RES bool NodeFeatures_requires_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7777 public static native boolean NodeFeatures_requires_payment_secret(long this_arg);
7778 // MUST_USE_RES bool InvoiceFeatures_requires_payment_secret(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
7779 public static native boolean InvoiceFeatures_requires_payment_secret(long this_arg);
7780 // void InitFeatures_set_basic_mpp_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
7781 public static native void InitFeatures_set_basic_mpp_optional(long this_arg);
7782 // void InitFeatures_set_basic_mpp_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
7783 public static native void InitFeatures_set_basic_mpp_required(long this_arg);
7784 // MUST_USE_RES bool InitFeatures_supports_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7785 public static native boolean InitFeatures_supports_basic_mpp(long this_arg);
7786 // void NodeFeatures_set_basic_mpp_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7787 public static native void NodeFeatures_set_basic_mpp_optional(long this_arg);
7788 // void NodeFeatures_set_basic_mpp_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7789 public static native void NodeFeatures_set_basic_mpp_required(long this_arg);
7790 // MUST_USE_RES bool NodeFeatures_supports_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7791 public static native boolean NodeFeatures_supports_basic_mpp(long this_arg);
7792 // void InvoiceFeatures_set_basic_mpp_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
7793 public static native void InvoiceFeatures_set_basic_mpp_optional(long this_arg);
7794 // void InvoiceFeatures_set_basic_mpp_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
7795 public static native void InvoiceFeatures_set_basic_mpp_required(long this_arg);
7796 // MUST_USE_RES bool InvoiceFeatures_supports_basic_mpp(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
7797 public static native boolean InvoiceFeatures_supports_basic_mpp(long this_arg);
7798 // void Bolt12InvoiceFeatures_set_basic_mpp_optional(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
7799 public static native void Bolt12InvoiceFeatures_set_basic_mpp_optional(long this_arg);
7800 // void Bolt12InvoiceFeatures_set_basic_mpp_required(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
7801 public static native void Bolt12InvoiceFeatures_set_basic_mpp_required(long this_arg);
7802 // MUST_USE_RES bool Bolt12InvoiceFeatures_supports_basic_mpp(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
7803 public static native boolean Bolt12InvoiceFeatures_supports_basic_mpp(long this_arg);
7804 // MUST_USE_RES bool InitFeatures_requires_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7805 public static native boolean InitFeatures_requires_basic_mpp(long this_arg);
7806 // MUST_USE_RES bool NodeFeatures_requires_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7807 public static native boolean NodeFeatures_requires_basic_mpp(long this_arg);
7808 // MUST_USE_RES bool InvoiceFeatures_requires_basic_mpp(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
7809 public static native boolean InvoiceFeatures_requires_basic_mpp(long this_arg);
7810 // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_basic_mpp(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
7811 public static native boolean Bolt12InvoiceFeatures_requires_basic_mpp(long this_arg);
7812 // void InitFeatures_set_wumbo_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
7813 public static native void InitFeatures_set_wumbo_optional(long this_arg);
7814 // void InitFeatures_set_wumbo_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
7815 public static native void InitFeatures_set_wumbo_required(long this_arg);
7816 // MUST_USE_RES bool InitFeatures_supports_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7817 public static native boolean InitFeatures_supports_wumbo(long this_arg);
7818 // void NodeFeatures_set_wumbo_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7819 public static native void NodeFeatures_set_wumbo_optional(long this_arg);
7820 // void NodeFeatures_set_wumbo_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7821 public static native void NodeFeatures_set_wumbo_required(long this_arg);
7822 // MUST_USE_RES bool NodeFeatures_supports_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7823 public static native boolean NodeFeatures_supports_wumbo(long this_arg);
7824 // MUST_USE_RES bool InitFeatures_requires_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7825 public static native boolean InitFeatures_requires_wumbo(long this_arg);
7826 // MUST_USE_RES bool NodeFeatures_requires_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7827 public static native boolean NodeFeatures_requires_wumbo(long this_arg);
7828 // void InitFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
7829 public static native void InitFeatures_set_anchors_zero_fee_htlc_tx_optional(long this_arg);
7830 // void InitFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
7831 public static native void InitFeatures_set_anchors_zero_fee_htlc_tx_required(long this_arg);
7832 // MUST_USE_RES bool InitFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7833 public static native boolean InitFeatures_supports_anchors_zero_fee_htlc_tx(long this_arg);
7834 // void NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7835 public static native void NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(long this_arg);
7836 // void NodeFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7837 public static native void NodeFeatures_set_anchors_zero_fee_htlc_tx_required(long this_arg);
7838 // MUST_USE_RES bool NodeFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7839 public static native boolean NodeFeatures_supports_anchors_zero_fee_htlc_tx(long this_arg);
7840 // void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
7841 public static native void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional(long this_arg);
7842 // void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
7843 public static native void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required(long this_arg);
7844 // MUST_USE_RES bool ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
7845 public static native boolean ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx(long this_arg);
7846 // MUST_USE_RES bool InitFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7847 public static native boolean InitFeatures_requires_anchors_zero_fee_htlc_tx(long this_arg);
7848 // MUST_USE_RES bool NodeFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7849 public static native boolean NodeFeatures_requires_anchors_zero_fee_htlc_tx(long this_arg);
7850 // MUST_USE_RES bool ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
7851 public static native boolean ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx(long this_arg);
7852 // void InitFeatures_set_shutdown_any_segwit_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
7853 public static native void InitFeatures_set_shutdown_any_segwit_optional(long this_arg);
7854 // void InitFeatures_set_shutdown_any_segwit_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
7855 public static native void InitFeatures_set_shutdown_any_segwit_required(long this_arg);
7856 // MUST_USE_RES bool InitFeatures_supports_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7857 public static native boolean InitFeatures_supports_shutdown_anysegwit(long this_arg);
7858 // void NodeFeatures_set_shutdown_any_segwit_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7859 public static native void NodeFeatures_set_shutdown_any_segwit_optional(long this_arg);
7860 // void NodeFeatures_set_shutdown_any_segwit_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7861 public static native void NodeFeatures_set_shutdown_any_segwit_required(long this_arg);
7862 // MUST_USE_RES bool NodeFeatures_supports_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7863 public static native boolean NodeFeatures_supports_shutdown_anysegwit(long this_arg);
7864 // MUST_USE_RES bool InitFeatures_requires_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7865 public static native boolean InitFeatures_requires_shutdown_anysegwit(long this_arg);
7866 // MUST_USE_RES bool NodeFeatures_requires_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7867 public static native boolean NodeFeatures_requires_shutdown_anysegwit(long this_arg);
7868 // void InitFeatures_set_onion_messages_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
7869 public static native void InitFeatures_set_onion_messages_optional(long this_arg);
7870 // void InitFeatures_set_onion_messages_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
7871 public static native void InitFeatures_set_onion_messages_required(long this_arg);
7872 // MUST_USE_RES bool InitFeatures_supports_onion_messages(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7873 public static native boolean InitFeatures_supports_onion_messages(long this_arg);
7874 // void NodeFeatures_set_onion_messages_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7875 public static native void NodeFeatures_set_onion_messages_optional(long this_arg);
7876 // void NodeFeatures_set_onion_messages_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7877 public static native void NodeFeatures_set_onion_messages_required(long this_arg);
7878 // MUST_USE_RES bool NodeFeatures_supports_onion_messages(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7879 public static native boolean NodeFeatures_supports_onion_messages(long this_arg);
7880 // MUST_USE_RES bool InitFeatures_requires_onion_messages(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7881 public static native boolean InitFeatures_requires_onion_messages(long this_arg);
7882 // MUST_USE_RES bool NodeFeatures_requires_onion_messages(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7883 public static native boolean NodeFeatures_requires_onion_messages(long this_arg);
7884 // void InitFeatures_set_channel_type_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
7885 public static native void InitFeatures_set_channel_type_optional(long this_arg);
7886 // void InitFeatures_set_channel_type_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
7887 public static native void InitFeatures_set_channel_type_required(long this_arg);
7888 // MUST_USE_RES bool InitFeatures_supports_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7889 public static native boolean InitFeatures_supports_channel_type(long this_arg);
7890 // void NodeFeatures_set_channel_type_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7891 public static native void NodeFeatures_set_channel_type_optional(long this_arg);
7892 // void NodeFeatures_set_channel_type_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7893 public static native void NodeFeatures_set_channel_type_required(long this_arg);
7894 // MUST_USE_RES bool NodeFeatures_supports_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7895 public static native boolean NodeFeatures_supports_channel_type(long this_arg);
7896 // MUST_USE_RES bool InitFeatures_requires_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7897 public static native boolean InitFeatures_requires_channel_type(long this_arg);
7898 // MUST_USE_RES bool NodeFeatures_requires_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7899 public static native boolean NodeFeatures_requires_channel_type(long this_arg);
7900 // void InitFeatures_set_scid_privacy_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
7901 public static native void InitFeatures_set_scid_privacy_optional(long this_arg);
7902 // void InitFeatures_set_scid_privacy_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
7903 public static native void InitFeatures_set_scid_privacy_required(long this_arg);
7904 // MUST_USE_RES bool InitFeatures_supports_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7905 public static native boolean InitFeatures_supports_scid_privacy(long this_arg);
7906 // void NodeFeatures_set_scid_privacy_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7907 public static native void NodeFeatures_set_scid_privacy_optional(long this_arg);
7908 // void NodeFeatures_set_scid_privacy_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7909 public static native void NodeFeatures_set_scid_privacy_required(long this_arg);
7910 // MUST_USE_RES bool NodeFeatures_supports_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7911 public static native boolean NodeFeatures_supports_scid_privacy(long this_arg);
7912 // void ChannelTypeFeatures_set_scid_privacy_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
7913 public static native void ChannelTypeFeatures_set_scid_privacy_optional(long this_arg);
7914 // void ChannelTypeFeatures_set_scid_privacy_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
7915 public static native void ChannelTypeFeatures_set_scid_privacy_required(long this_arg);
7916 // MUST_USE_RES bool ChannelTypeFeatures_supports_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
7917 public static native boolean ChannelTypeFeatures_supports_scid_privacy(long this_arg);
7918 // MUST_USE_RES bool InitFeatures_requires_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7919 public static native boolean InitFeatures_requires_scid_privacy(long this_arg);
7920 // MUST_USE_RES bool NodeFeatures_requires_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7921 public static native boolean NodeFeatures_requires_scid_privacy(long this_arg);
7922 // MUST_USE_RES bool ChannelTypeFeatures_requires_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
7923 public static native boolean ChannelTypeFeatures_requires_scid_privacy(long this_arg);
7924 // void InitFeatures_set_zero_conf_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
7925 public static native void InitFeatures_set_zero_conf_optional(long this_arg);
7926 // void InitFeatures_set_zero_conf_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
7927 public static native void InitFeatures_set_zero_conf_required(long this_arg);
7928 // MUST_USE_RES bool InitFeatures_supports_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7929 public static native boolean InitFeatures_supports_zero_conf(long this_arg);
7930 // void NodeFeatures_set_zero_conf_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7931 public static native void NodeFeatures_set_zero_conf_optional(long this_arg);
7932 // void NodeFeatures_set_zero_conf_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7933 public static native void NodeFeatures_set_zero_conf_required(long this_arg);
7934 // MUST_USE_RES bool NodeFeatures_supports_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7935 public static native boolean NodeFeatures_supports_zero_conf(long this_arg);
7936 // void ChannelTypeFeatures_set_zero_conf_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
7937 public static native void ChannelTypeFeatures_set_zero_conf_optional(long this_arg);
7938 // void ChannelTypeFeatures_set_zero_conf_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
7939 public static native void ChannelTypeFeatures_set_zero_conf_required(long this_arg);
7940 // MUST_USE_RES bool ChannelTypeFeatures_supports_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
7941 public static native boolean ChannelTypeFeatures_supports_zero_conf(long this_arg);
7942 // MUST_USE_RES bool InitFeatures_requires_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
7943 public static native boolean InitFeatures_requires_zero_conf(long this_arg);
7944 // MUST_USE_RES bool NodeFeatures_requires_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7945 public static native boolean NodeFeatures_requires_zero_conf(long this_arg);
7946 // MUST_USE_RES bool ChannelTypeFeatures_requires_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
7947 public static native boolean ChannelTypeFeatures_requires_zero_conf(long this_arg);
7948 // void NodeFeatures_set_keysend_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7949 public static native void NodeFeatures_set_keysend_optional(long this_arg);
7950 // void NodeFeatures_set_keysend_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
7951 public static native void NodeFeatures_set_keysend_required(long this_arg);
7952 // MUST_USE_RES bool NodeFeatures_supports_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7953 public static native boolean NodeFeatures_supports_keysend(long this_arg);
7954 // MUST_USE_RES bool NodeFeatures_requires_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
7955 public static native boolean NodeFeatures_requires_keysend(long this_arg);
7956 // void ShutdownScript_free(struct LDKShutdownScript this_obj);
7957 public static native void ShutdownScript_free(long this_obj);
7958 // uint64_t ShutdownScript_clone_ptr(LDKShutdownScript *NONNULL_PTR arg);
7959 public static native long ShutdownScript_clone_ptr(long arg);
7960 // struct LDKShutdownScript ShutdownScript_clone(const struct LDKShutdownScript *NONNULL_PTR orig);
7961 public static native long ShutdownScript_clone(long orig);
7962 // bool ShutdownScript_eq(const struct LDKShutdownScript *NONNULL_PTR a, const struct LDKShutdownScript *NONNULL_PTR b);
7963 public static native boolean ShutdownScript_eq(long a, long b);
7964 // void InvalidShutdownScript_free(struct LDKInvalidShutdownScript this_obj);
7965 public static native void InvalidShutdownScript_free(long this_obj);
7966 // struct LDKu8slice InvalidShutdownScript_get_script(const struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr);
7967 public static native byte[] InvalidShutdownScript_get_script(long this_ptr);
7968 // void InvalidShutdownScript_set_script(struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
7969 public static native void InvalidShutdownScript_set_script(long this_ptr, byte[] val);
7970 // MUST_USE_RES struct LDKInvalidShutdownScript InvalidShutdownScript_new(struct LDKCVec_u8Z script_arg);
7971 public static native long InvalidShutdownScript_new(byte[] script_arg);
7972 // uint64_t InvalidShutdownScript_clone_ptr(LDKInvalidShutdownScript *NONNULL_PTR arg);
7973 public static native long InvalidShutdownScript_clone_ptr(long arg);
7974 // struct LDKInvalidShutdownScript InvalidShutdownScript_clone(const struct LDKInvalidShutdownScript *NONNULL_PTR orig);
7975 public static native long InvalidShutdownScript_clone(long orig);
7976 // struct LDKCVec_u8Z ShutdownScript_write(const struct LDKShutdownScript *NONNULL_PTR obj);
7977 public static native byte[] ShutdownScript_write(long obj);
7978 // struct LDKCResult_ShutdownScriptDecodeErrorZ ShutdownScript_read(struct LDKu8slice ser);
7979 public static native long ShutdownScript_read(byte[] ser);
7980 // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wpkh(const uint8_t (*pubkey_hash)[20]);
7981 public static native long ShutdownScript_new_p2wpkh(byte[] pubkey_hash);
7982 // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wsh(const uint8_t (*script_hash)[32]);
7983 public static native long ShutdownScript_new_p2wsh(byte[] script_hash);
7984 // MUST_USE_RES struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ ShutdownScript_new_witness_program(struct LDKWitnessVersion version, struct LDKu8slice program);
7985 public static native long ShutdownScript_new_witness_program(byte version, byte[] program);
7986 // MUST_USE_RES struct LDKCVec_u8Z ShutdownScript_into_inner(struct LDKShutdownScript this_arg);
7987 public static native byte[] ShutdownScript_into_inner(long this_arg);
7988 // MUST_USE_RES struct LDKPublicKey ShutdownScript_as_legacy_pubkey(const struct LDKShutdownScript *NONNULL_PTR this_arg);
7989 public static native byte[] ShutdownScript_as_legacy_pubkey(long this_arg);
7990 // MUST_USE_RES bool ShutdownScript_is_compatible(const struct LDKShutdownScript *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR features);
7991 public static native boolean ShutdownScript_is_compatible(long this_arg, long features);
7992 // void Retry_free(struct LDKRetry this_ptr);
7993 public static native void Retry_free(long this_ptr);
7994 // uint64_t Retry_clone_ptr(LDKRetry *NONNULL_PTR arg);
7995 public static native long Retry_clone_ptr(long arg);
7996 // struct LDKRetry Retry_clone(const struct LDKRetry *NONNULL_PTR orig);
7997 public static native long Retry_clone(long orig);
7998 // struct LDKRetry Retry_attempts(uintptr_t a);
7999 public static native long Retry_attempts(long a);
8000 // struct LDKRetry Retry_timeout(uint64_t a);
8001 public static native long Retry_timeout(long a);
8002 // bool Retry_eq(const struct LDKRetry *NONNULL_PTR a, const struct LDKRetry *NONNULL_PTR b);
8003 public static native boolean Retry_eq(long a, long b);
8004 // uint64_t Retry_hash(const struct LDKRetry *NONNULL_PTR o);
8005 public static native long Retry_hash(long o);
8006 // enum LDKRetryableSendFailure RetryableSendFailure_clone(const enum LDKRetryableSendFailure *NONNULL_PTR orig);
8007 public static native RetryableSendFailure RetryableSendFailure_clone(long orig);
8008 // enum LDKRetryableSendFailure RetryableSendFailure_payment_expired(void);
8009 public static native RetryableSendFailure RetryableSendFailure_payment_expired();
8010 // enum LDKRetryableSendFailure RetryableSendFailure_route_not_found(void);
8011 public static native RetryableSendFailure RetryableSendFailure_route_not_found();
8012 // enum LDKRetryableSendFailure RetryableSendFailure_duplicate_payment(void);
8013 public static native RetryableSendFailure RetryableSendFailure_duplicate_payment();
8014 // void PaymentSendFailure_free(struct LDKPaymentSendFailure this_ptr);
8015 public static native void PaymentSendFailure_free(long this_ptr);
8016 // uint64_t PaymentSendFailure_clone_ptr(LDKPaymentSendFailure *NONNULL_PTR arg);
8017 public static native long PaymentSendFailure_clone_ptr(long arg);
8018 // struct LDKPaymentSendFailure PaymentSendFailure_clone(const struct LDKPaymentSendFailure *NONNULL_PTR orig);
8019 public static native long PaymentSendFailure_clone(long orig);
8020 // struct LDKPaymentSendFailure PaymentSendFailure_parameter_error(struct LDKAPIError a);
8021 public static native long PaymentSendFailure_parameter_error(long a);
8022 // struct LDKPaymentSendFailure PaymentSendFailure_path_parameter_error(struct LDKCVec_CResult_NoneAPIErrorZZ a);
8023 public static native long PaymentSendFailure_path_parameter_error(long[] a);
8024 // struct LDKPaymentSendFailure PaymentSendFailure_all_failed_resend_safe(struct LDKCVec_APIErrorZ a);
8025 public static native long PaymentSendFailure_all_failed_resend_safe(long[] a);
8026 // struct LDKPaymentSendFailure PaymentSendFailure_duplicate_payment(void);
8027 public static native long PaymentSendFailure_duplicate_payment();
8028 // struct LDKPaymentSendFailure PaymentSendFailure_partial_failure(struct LDKCVec_CResult_NoneAPIErrorZZ results, struct LDKRouteParameters failed_paths_retry, struct LDKThirtyTwoBytes payment_id);
8029 public static native long PaymentSendFailure_partial_failure(long[] results, long failed_paths_retry, byte[] payment_id);
8030 // void CustomMessageReader_free(struct LDKCustomMessageReader this_ptr);
8031 public static native void CustomMessageReader_free(long this_ptr);
8032 // uint64_t Type_clone_ptr(LDKType *NONNULL_PTR arg);
8033 public static native long Type_clone_ptr(long arg);
8034 // struct LDKType Type_clone(const struct LDKType *NONNULL_PTR orig);
8035 public static native long Type_clone(long orig);
8036 // void Type_free(struct LDKType this_ptr);
8037 public static native void Type_free(long this_ptr);
8038 // enum LDKUtxoLookupError UtxoLookupError_clone(const enum LDKUtxoLookupError *NONNULL_PTR orig);
8039 public static native UtxoLookupError UtxoLookupError_clone(long orig);
8040 // enum LDKUtxoLookupError UtxoLookupError_unknown_chain(void);
8041 public static native UtxoLookupError UtxoLookupError_unknown_chain();
8042 // enum LDKUtxoLookupError UtxoLookupError_unknown_tx(void);
8043 public static native UtxoLookupError UtxoLookupError_unknown_tx();
8044 // void UtxoResult_free(struct LDKUtxoResult this_ptr);
8045 public static native void UtxoResult_free(long this_ptr);
8046 // uint64_t UtxoResult_clone_ptr(LDKUtxoResult *NONNULL_PTR arg);
8047 public static native long UtxoResult_clone_ptr(long arg);
8048 // struct LDKUtxoResult UtxoResult_clone(const struct LDKUtxoResult *NONNULL_PTR orig);
8049 public static native long UtxoResult_clone(long orig);
8050 // struct LDKUtxoResult UtxoResult_sync(struct LDKCResult_TxOutUtxoLookupErrorZ a);
8051 public static native long UtxoResult_sync(long a);
8052 // struct LDKUtxoResult UtxoResult_async(struct LDKUtxoFuture a);
8053 public static native long UtxoResult_async(long a);
8054 // void UtxoLookup_free(struct LDKUtxoLookup this_ptr);
8055 public static native void UtxoLookup_free(long this_ptr);
8056 // void UtxoFuture_free(struct LDKUtxoFuture this_obj);
8057 public static native void UtxoFuture_free(long this_obj);
8058 // uint64_t UtxoFuture_clone_ptr(LDKUtxoFuture *NONNULL_PTR arg);
8059 public static native long UtxoFuture_clone_ptr(long arg);
8060 // struct LDKUtxoFuture UtxoFuture_clone(const struct LDKUtxoFuture *NONNULL_PTR orig);
8061 public static native long UtxoFuture_clone(long orig);
8062 // MUST_USE_RES struct LDKUtxoFuture UtxoFuture_new(void);
8063 public static native long UtxoFuture_new();
8064 // void UtxoFuture_resolve_without_forwarding(const struct LDKUtxoFuture *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR graph, struct LDKCResult_TxOutUtxoLookupErrorZ result);
8065 public static native void UtxoFuture_resolve_without_forwarding(long this_arg, long graph, long result);
8066 // 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);
8067 public static native void UtxoFuture_resolve(long this_arg, long graph, long gossip, long result);
8068 // void NodeId_free(struct LDKNodeId this_obj);
8069 public static native void NodeId_free(long this_obj);
8070 // uint64_t NodeId_clone_ptr(LDKNodeId *NONNULL_PTR arg);
8071 public static native long NodeId_clone_ptr(long arg);
8072 // struct LDKNodeId NodeId_clone(const struct LDKNodeId *NONNULL_PTR orig);
8073 public static native long NodeId_clone(long orig);
8074 // MUST_USE_RES struct LDKNodeId NodeId_from_pubkey(struct LDKPublicKey pubkey);
8075 public static native long NodeId_from_pubkey(byte[] pubkey);
8076 // MUST_USE_RES struct LDKu8slice NodeId_as_slice(const struct LDKNodeId *NONNULL_PTR this_arg);
8077 public static native byte[] NodeId_as_slice(long this_arg);
8078 // uint64_t NodeId_hash(const struct LDKNodeId *NONNULL_PTR o);
8079 public static native long NodeId_hash(long o);
8080 // struct LDKCVec_u8Z NodeId_write(const struct LDKNodeId *NONNULL_PTR obj);
8081 public static native byte[] NodeId_write(long obj);
8082 // struct LDKCResult_NodeIdDecodeErrorZ NodeId_read(struct LDKu8slice ser);
8083 public static native long NodeId_read(byte[] ser);
8084 // void NetworkGraph_free(struct LDKNetworkGraph this_obj);
8085 public static native void NetworkGraph_free(long this_obj);
8086 // void ReadOnlyNetworkGraph_free(struct LDKReadOnlyNetworkGraph this_obj);
8087 public static native void ReadOnlyNetworkGraph_free(long this_obj);
8088 // void NetworkUpdate_free(struct LDKNetworkUpdate this_ptr);
8089 public static native void NetworkUpdate_free(long this_ptr);
8090 // uint64_t NetworkUpdate_clone_ptr(LDKNetworkUpdate *NONNULL_PTR arg);
8091 public static native long NetworkUpdate_clone_ptr(long arg);
8092 // struct LDKNetworkUpdate NetworkUpdate_clone(const struct LDKNetworkUpdate *NONNULL_PTR orig);
8093 public static native long NetworkUpdate_clone(long orig);
8094 // struct LDKNetworkUpdate NetworkUpdate_channel_update_message(struct LDKChannelUpdate msg);
8095 public static native long NetworkUpdate_channel_update_message(long msg);
8096 // struct LDKNetworkUpdate NetworkUpdate_channel_failure(uint64_t short_channel_id, bool is_permanent);
8097 public static native long NetworkUpdate_channel_failure(long short_channel_id, boolean is_permanent);
8098 // struct LDKNetworkUpdate NetworkUpdate_node_failure(struct LDKPublicKey node_id, bool is_permanent);
8099 public static native long NetworkUpdate_node_failure(byte[] node_id, boolean is_permanent);
8100 // bool NetworkUpdate_eq(const struct LDKNetworkUpdate *NONNULL_PTR a, const struct LDKNetworkUpdate *NONNULL_PTR b);
8101 public static native boolean NetworkUpdate_eq(long a, long b);
8102 // struct LDKCVec_u8Z NetworkUpdate_write(const struct LDKNetworkUpdate *NONNULL_PTR obj);
8103 public static native byte[] NetworkUpdate_write(long obj);
8104 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ NetworkUpdate_read(struct LDKu8slice ser);
8105 public static native long NetworkUpdate_read(byte[] ser);
8106 // void P2PGossipSync_free(struct LDKP2PGossipSync this_obj);
8107 public static native void P2PGossipSync_free(long this_obj);
8108 // MUST_USE_RES struct LDKP2PGossipSync P2PGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCOption_UtxoLookupZ utxo_lookup, struct LDKLogger logger);
8109 public static native long P2PGossipSync_new(long network_graph, long utxo_lookup, long logger);
8110 // void P2PGossipSync_add_utxo_lookup(struct LDKP2PGossipSync *NONNULL_PTR this_arg, struct LDKCOption_UtxoLookupZ utxo_lookup);
8111 public static native void P2PGossipSync_add_utxo_lookup(long this_arg, long utxo_lookup);
8112 // void NetworkGraph_handle_network_update(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNetworkUpdate *NONNULL_PTR network_update);
8113 public static native void NetworkGraph_handle_network_update(long this_arg, long network_update);
8114 // struct LDKRoutingMessageHandler P2PGossipSync_as_RoutingMessageHandler(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
8115 public static native long P2PGossipSync_as_RoutingMessageHandler(long this_arg);
8116 // struct LDKMessageSendEventsProvider P2PGossipSync_as_MessageSendEventsProvider(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
8117 public static native long P2PGossipSync_as_MessageSendEventsProvider(long this_arg);
8118 // void ChannelUpdateInfo_free(struct LDKChannelUpdateInfo this_obj);
8119 public static native void ChannelUpdateInfo_free(long this_obj);
8120 // uint32_t ChannelUpdateInfo_get_last_update(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
8121 public static native int ChannelUpdateInfo_get_last_update(long this_ptr);
8122 // void ChannelUpdateInfo_set_last_update(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint32_t val);
8123 public static native void ChannelUpdateInfo_set_last_update(long this_ptr, int val);
8124 // bool ChannelUpdateInfo_get_enabled(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
8125 public static native boolean ChannelUpdateInfo_get_enabled(long this_ptr);
8126 // void ChannelUpdateInfo_set_enabled(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, bool val);
8127 public static native void ChannelUpdateInfo_set_enabled(long this_ptr, boolean val);
8128 // uint16_t ChannelUpdateInfo_get_cltv_expiry_delta(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
8129 public static native short ChannelUpdateInfo_get_cltv_expiry_delta(long this_ptr);
8130 // void ChannelUpdateInfo_set_cltv_expiry_delta(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint16_t val);
8131 public static native void ChannelUpdateInfo_set_cltv_expiry_delta(long this_ptr, short val);
8132 // uint64_t ChannelUpdateInfo_get_htlc_minimum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
8133 public static native long ChannelUpdateInfo_get_htlc_minimum_msat(long this_ptr);
8134 // void ChannelUpdateInfo_set_htlc_minimum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
8135 public static native void ChannelUpdateInfo_set_htlc_minimum_msat(long this_ptr, long val);
8136 // uint64_t ChannelUpdateInfo_get_htlc_maximum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
8137 public static native long ChannelUpdateInfo_get_htlc_maximum_msat(long this_ptr);
8138 // void ChannelUpdateInfo_set_htlc_maximum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
8139 public static native void ChannelUpdateInfo_set_htlc_maximum_msat(long this_ptr, long val);
8140 // struct LDKRoutingFees ChannelUpdateInfo_get_fees(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
8141 public static native long ChannelUpdateInfo_get_fees(long this_ptr);
8142 // void ChannelUpdateInfo_set_fees(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
8143 public static native void ChannelUpdateInfo_set_fees(long this_ptr, long val);
8144 // struct LDKChannelUpdate ChannelUpdateInfo_get_last_update_message(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
8145 public static native long ChannelUpdateInfo_get_last_update_message(long this_ptr);
8146 // void ChannelUpdateInfo_set_last_update_message(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdate val);
8147 public static native void ChannelUpdateInfo_set_last_update_message(long this_ptr, long val);
8148 // 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);
8149 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);
8150 // uint64_t ChannelUpdateInfo_clone_ptr(LDKChannelUpdateInfo *NONNULL_PTR arg);
8151 public static native long ChannelUpdateInfo_clone_ptr(long arg);
8152 // struct LDKChannelUpdateInfo ChannelUpdateInfo_clone(const struct LDKChannelUpdateInfo *NONNULL_PTR orig);
8153 public static native long ChannelUpdateInfo_clone(long orig);
8154 // bool ChannelUpdateInfo_eq(const struct LDKChannelUpdateInfo *NONNULL_PTR a, const struct LDKChannelUpdateInfo *NONNULL_PTR b);
8155 public static native boolean ChannelUpdateInfo_eq(long a, long b);
8156 // struct LDKCVec_u8Z ChannelUpdateInfo_write(const struct LDKChannelUpdateInfo *NONNULL_PTR obj);
8157 public static native byte[] ChannelUpdateInfo_write(long obj);
8158 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ ChannelUpdateInfo_read(struct LDKu8slice ser);
8159 public static native long ChannelUpdateInfo_read(byte[] ser);
8160 // void ChannelInfo_free(struct LDKChannelInfo this_obj);
8161 public static native void ChannelInfo_free(long this_obj);
8162 // struct LDKChannelFeatures ChannelInfo_get_features(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
8163 public static native long ChannelInfo_get_features(long this_ptr);
8164 // void ChannelInfo_set_features(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
8165 public static native void ChannelInfo_set_features(long this_ptr, long val);
8166 // struct LDKNodeId ChannelInfo_get_node_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
8167 public static native long ChannelInfo_get_node_one(long this_ptr);
8168 // void ChannelInfo_set_node_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
8169 public static native void ChannelInfo_set_node_one(long this_ptr, long val);
8170 // struct LDKChannelUpdateInfo ChannelInfo_get_one_to_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
8171 public static native long ChannelInfo_get_one_to_two(long this_ptr);
8172 // void ChannelInfo_set_one_to_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
8173 public static native void ChannelInfo_set_one_to_two(long this_ptr, long val);
8174 // struct LDKNodeId ChannelInfo_get_node_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
8175 public static native long ChannelInfo_get_node_two(long this_ptr);
8176 // void ChannelInfo_set_node_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
8177 public static native void ChannelInfo_set_node_two(long this_ptr, long val);
8178 // struct LDKChannelUpdateInfo ChannelInfo_get_two_to_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
8179 public static native long ChannelInfo_get_two_to_one(long this_ptr);
8180 // void ChannelInfo_set_two_to_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
8181 public static native void ChannelInfo_set_two_to_one(long this_ptr, long val);
8182 // struct LDKCOption_u64Z ChannelInfo_get_capacity_sats(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
8183 public static native long ChannelInfo_get_capacity_sats(long this_ptr);
8184 // void ChannelInfo_set_capacity_sats(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
8185 public static native void ChannelInfo_set_capacity_sats(long this_ptr, long val);
8186 // struct LDKChannelAnnouncement ChannelInfo_get_announcement_message(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
8187 public static native long ChannelInfo_get_announcement_message(long this_ptr);
8188 // void ChannelInfo_set_announcement_message(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelAnnouncement val);
8189 public static native void ChannelInfo_set_announcement_message(long this_ptr, long val);
8190 // uint64_t ChannelInfo_clone_ptr(LDKChannelInfo *NONNULL_PTR arg);
8191 public static native long ChannelInfo_clone_ptr(long arg);
8192 // struct LDKChannelInfo ChannelInfo_clone(const struct LDKChannelInfo *NONNULL_PTR orig);
8193 public static native long ChannelInfo_clone(long orig);
8194 // bool ChannelInfo_eq(const struct LDKChannelInfo *NONNULL_PTR a, const struct LDKChannelInfo *NONNULL_PTR b);
8195 public static native boolean ChannelInfo_eq(long a, long b);
8196 // MUST_USE_RES struct LDKChannelUpdateInfo ChannelInfo_get_directional_info(const struct LDKChannelInfo *NONNULL_PTR this_arg, uint8_t channel_flags);
8197 public static native long ChannelInfo_get_directional_info(long this_arg, byte channel_flags);
8198 // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj);
8199 public static native byte[] ChannelInfo_write(long obj);
8200 // struct LDKCResult_ChannelInfoDecodeErrorZ ChannelInfo_read(struct LDKu8slice ser);
8201 public static native long ChannelInfo_read(byte[] ser);
8202 // void DirectedChannelInfo_free(struct LDKDirectedChannelInfo this_obj);
8203 public static native void DirectedChannelInfo_free(long this_obj);
8204 // uint64_t DirectedChannelInfo_clone_ptr(LDKDirectedChannelInfo *NONNULL_PTR arg);
8205 public static native long DirectedChannelInfo_clone_ptr(long arg);
8206 // struct LDKDirectedChannelInfo DirectedChannelInfo_clone(const struct LDKDirectedChannelInfo *NONNULL_PTR orig);
8207 public static native long DirectedChannelInfo_clone(long orig);
8208 // MUST_USE_RES struct LDKChannelInfo DirectedChannelInfo_channel(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
8209 public static native long DirectedChannelInfo_channel(long this_arg);
8210 // MUST_USE_RES uint64_t DirectedChannelInfo_htlc_maximum_msat(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
8211 public static native long DirectedChannelInfo_htlc_maximum_msat(long this_arg);
8212 // MUST_USE_RES struct LDKEffectiveCapacity DirectedChannelInfo_effective_capacity(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
8213 public static native long DirectedChannelInfo_effective_capacity(long this_arg);
8214 // void EffectiveCapacity_free(struct LDKEffectiveCapacity this_ptr);
8215 public static native void EffectiveCapacity_free(long this_ptr);
8216 // uint64_t EffectiveCapacity_clone_ptr(LDKEffectiveCapacity *NONNULL_PTR arg);
8217 public static native long EffectiveCapacity_clone_ptr(long arg);
8218 // struct LDKEffectiveCapacity EffectiveCapacity_clone(const struct LDKEffectiveCapacity *NONNULL_PTR orig);
8219 public static native long EffectiveCapacity_clone(long orig);
8220 // struct LDKEffectiveCapacity EffectiveCapacity_exact_liquidity(uint64_t liquidity_msat);
8221 public static native long EffectiveCapacity_exact_liquidity(long liquidity_msat);
8222 // struct LDKEffectiveCapacity EffectiveCapacity_maximum_htlc(uint64_t amount_msat);
8223 public static native long EffectiveCapacity_maximum_htlc(long amount_msat);
8224 // struct LDKEffectiveCapacity EffectiveCapacity_total(uint64_t capacity_msat, uint64_t htlc_maximum_msat);
8225 public static native long EffectiveCapacity_total(long capacity_msat, long htlc_maximum_msat);
8226 // struct LDKEffectiveCapacity EffectiveCapacity_infinite(void);
8227 public static native long EffectiveCapacity_infinite();
8228 // struct LDKEffectiveCapacity EffectiveCapacity_unknown(void);
8229 public static native long EffectiveCapacity_unknown();
8230 // MUST_USE_RES uint64_t EffectiveCapacity_as_msat(const struct LDKEffectiveCapacity *NONNULL_PTR this_arg);
8231 public static native long EffectiveCapacity_as_msat(long this_arg);
8232 // void RoutingFees_free(struct LDKRoutingFees this_obj);
8233 public static native void RoutingFees_free(long this_obj);
8234 // uint32_t RoutingFees_get_base_msat(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
8235 public static native int RoutingFees_get_base_msat(long this_ptr);
8236 // void RoutingFees_set_base_msat(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
8237 public static native void RoutingFees_set_base_msat(long this_ptr, int val);
8238 // uint32_t RoutingFees_get_proportional_millionths(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
8239 public static native int RoutingFees_get_proportional_millionths(long this_ptr);
8240 // void RoutingFees_set_proportional_millionths(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
8241 public static native void RoutingFees_set_proportional_millionths(long this_ptr, int val);
8242 // MUST_USE_RES struct LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg);
8243 public static native long RoutingFees_new(int base_msat_arg, int proportional_millionths_arg);
8244 // bool RoutingFees_eq(const struct LDKRoutingFees *NONNULL_PTR a, const struct LDKRoutingFees *NONNULL_PTR b);
8245 public static native boolean RoutingFees_eq(long a, long b);
8246 // uint64_t RoutingFees_clone_ptr(LDKRoutingFees *NONNULL_PTR arg);
8247 public static native long RoutingFees_clone_ptr(long arg);
8248 // struct LDKRoutingFees RoutingFees_clone(const struct LDKRoutingFees *NONNULL_PTR orig);
8249 public static native long RoutingFees_clone(long orig);
8250 // uint64_t RoutingFees_hash(const struct LDKRoutingFees *NONNULL_PTR o);
8251 public static native long RoutingFees_hash(long o);
8252 // struct LDKCVec_u8Z RoutingFees_write(const struct LDKRoutingFees *NONNULL_PTR obj);
8253 public static native byte[] RoutingFees_write(long obj);
8254 // struct LDKCResult_RoutingFeesDecodeErrorZ RoutingFees_read(struct LDKu8slice ser);
8255 public static native long RoutingFees_read(byte[] ser);
8256 // void NodeAnnouncementInfo_free(struct LDKNodeAnnouncementInfo this_obj);
8257 public static native void NodeAnnouncementInfo_free(long this_obj);
8258 // struct LDKNodeFeatures NodeAnnouncementInfo_get_features(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
8259 public static native long NodeAnnouncementInfo_get_features(long this_ptr);
8260 // void NodeAnnouncementInfo_set_features(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
8261 public static native void NodeAnnouncementInfo_set_features(long this_ptr, long val);
8262 // uint32_t NodeAnnouncementInfo_get_last_update(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
8263 public static native int NodeAnnouncementInfo_get_last_update(long this_ptr);
8264 // void NodeAnnouncementInfo_set_last_update(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, uint32_t val);
8265 public static native void NodeAnnouncementInfo_set_last_update(long this_ptr, int val);
8266 // const uint8_t (*NodeAnnouncementInfo_get_rgb(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[3];
8267 public static native byte[] NodeAnnouncementInfo_get_rgb(long this_ptr);
8268 // void NodeAnnouncementInfo_set_rgb(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
8269 public static native void NodeAnnouncementInfo_set_rgb(long this_ptr, byte[] val);
8270 // struct LDKNodeAlias NodeAnnouncementInfo_get_alias(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
8271 public static native long NodeAnnouncementInfo_get_alias(long this_ptr);
8272 // void NodeAnnouncementInfo_set_alias(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAlias val);
8273 public static native void NodeAnnouncementInfo_set_alias(long this_ptr, long val);
8274 // struct LDKCVec_NetAddressZ NodeAnnouncementInfo_get_addresses(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
8275 public static native long[] NodeAnnouncementInfo_get_addresses(long this_ptr);
8276 // void NodeAnnouncementInfo_set_addresses(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
8277 public static native void NodeAnnouncementInfo_set_addresses(long this_ptr, long[] val);
8278 // struct LDKNodeAnnouncement NodeAnnouncementInfo_get_announcement_message(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
8279 public static native long NodeAnnouncementInfo_get_announcement_message(long this_ptr);
8280 // void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncement val);
8281 public static native void NodeAnnouncementInfo_set_announcement_message(long this_ptr, long val);
8282 // MUST_USE_RES struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_new(struct LDKNodeFeatures features_arg, uint32_t last_update_arg, struct LDKThreeBytes rgb_arg, struct LDKNodeAlias alias_arg, struct LDKCVec_NetAddressZ addresses_arg, struct LDKNodeAnnouncement announcement_message_arg);
8283 public static native long NodeAnnouncementInfo_new(long features_arg, int last_update_arg, byte[] rgb_arg, long alias_arg, long[] addresses_arg, long announcement_message_arg);
8284 // uint64_t NodeAnnouncementInfo_clone_ptr(LDKNodeAnnouncementInfo *NONNULL_PTR arg);
8285 public static native long NodeAnnouncementInfo_clone_ptr(long arg);
8286 // struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_clone(const struct LDKNodeAnnouncementInfo *NONNULL_PTR orig);
8287 public static native long NodeAnnouncementInfo_clone(long orig);
8288 // bool NodeAnnouncementInfo_eq(const struct LDKNodeAnnouncementInfo *NONNULL_PTR a, const struct LDKNodeAnnouncementInfo *NONNULL_PTR b);
8289 public static native boolean NodeAnnouncementInfo_eq(long a, long b);
8290 // struct LDKCVec_u8Z NodeAnnouncementInfo_write(const struct LDKNodeAnnouncementInfo *NONNULL_PTR obj);
8291 public static native byte[] NodeAnnouncementInfo_write(long obj);
8292 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ NodeAnnouncementInfo_read(struct LDKu8slice ser);
8293 public static native long NodeAnnouncementInfo_read(byte[] ser);
8294 // void NodeAlias_free(struct LDKNodeAlias this_obj);
8295 public static native void NodeAlias_free(long this_obj);
8296 // const uint8_t (*NodeAlias_get_a(const struct LDKNodeAlias *NONNULL_PTR this_ptr))[32];
8297 public static native byte[] NodeAlias_get_a(long this_ptr);
8298 // void NodeAlias_set_a(struct LDKNodeAlias *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
8299 public static native void NodeAlias_set_a(long this_ptr, byte[] val);
8300 // MUST_USE_RES struct LDKNodeAlias NodeAlias_new(struct LDKThirtyTwoBytes a_arg);
8301 public static native long NodeAlias_new(byte[] a_arg);
8302 // uint64_t NodeAlias_clone_ptr(LDKNodeAlias *NONNULL_PTR arg);
8303 public static native long NodeAlias_clone_ptr(long arg);
8304 // struct LDKNodeAlias NodeAlias_clone(const struct LDKNodeAlias *NONNULL_PTR orig);
8305 public static native long NodeAlias_clone(long orig);
8306 // bool NodeAlias_eq(const struct LDKNodeAlias *NONNULL_PTR a, const struct LDKNodeAlias *NONNULL_PTR b);
8307 public static native boolean NodeAlias_eq(long a, long b);
8308 // struct LDKCVec_u8Z NodeAlias_write(const struct LDKNodeAlias *NONNULL_PTR obj);
8309 public static native byte[] NodeAlias_write(long obj);
8310 // struct LDKCResult_NodeAliasDecodeErrorZ NodeAlias_read(struct LDKu8slice ser);
8311 public static native long NodeAlias_read(byte[] ser);
8312 // void NodeInfo_free(struct LDKNodeInfo this_obj);
8313 public static native void NodeInfo_free(long this_obj);
8314 // struct LDKCVec_u64Z NodeInfo_get_channels(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
8315 public static native long[] NodeInfo_get_channels(long this_ptr);
8316 // void NodeInfo_set_channels(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
8317 public static native void NodeInfo_set_channels(long this_ptr, long[] val);
8318 // struct LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
8319 public static native long NodeInfo_get_announcement_info(long this_ptr);
8320 // void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncementInfo val);
8321 public static native void NodeInfo_set_announcement_info(long this_ptr, long val);
8322 // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKNodeAnnouncementInfo announcement_info_arg);
8323 public static native long NodeInfo_new(long[] channels_arg, long announcement_info_arg);
8324 // uint64_t NodeInfo_clone_ptr(LDKNodeInfo *NONNULL_PTR arg);
8325 public static native long NodeInfo_clone_ptr(long arg);
8326 // struct LDKNodeInfo NodeInfo_clone(const struct LDKNodeInfo *NONNULL_PTR orig);
8327 public static native long NodeInfo_clone(long orig);
8328 // bool NodeInfo_eq(const struct LDKNodeInfo *NONNULL_PTR a, const struct LDKNodeInfo *NONNULL_PTR b);
8329 public static native boolean NodeInfo_eq(long a, long b);
8330 // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj);
8331 public static native byte[] NodeInfo_write(long obj);
8332 // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser);
8333 public static native long NodeInfo_read(byte[] ser);
8334 // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj);
8335 public static native byte[] NetworkGraph_write(long obj);
8336 // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser, struct LDKLogger arg);
8337 public static native long NetworkGraph_read(byte[] ser, long arg);
8338 // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(enum LDKNetwork network, struct LDKLogger logger);
8339 public static native long NetworkGraph_new(Network network, long logger);
8340 // MUST_USE_RES struct LDKReadOnlyNetworkGraph NetworkGraph_read_only(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
8341 public static native long NetworkGraph_read_only(long this_arg);
8342 // MUST_USE_RES struct LDKCOption_u32Z NetworkGraph_get_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
8343 public static native long NetworkGraph_get_last_rapid_gossip_sync_timestamp(long this_arg);
8344 // void NetworkGraph_set_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint32_t last_rapid_gossip_sync_timestamp);
8345 public static native void NetworkGraph_set_last_rapid_gossip_sync_timestamp(long this_arg, int last_rapid_gossip_sync_timestamp);
8346 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg);
8347 public static native long NetworkGraph_update_node_from_announcement(long this_arg, long msg);
8348 // 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);
8349 public static native long NetworkGraph_update_node_from_unsigned_announcement(long this_arg, long msg);
8350 // 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);
8351 public static native long NetworkGraph_update_channel_from_announcement(long this_arg, long msg, long utxo_lookup);
8352 // 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);
8353 public static native long NetworkGraph_update_channel_from_unsigned_announcement(long this_arg, long msg, long utxo_lookup);
8354 // 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);
8355 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);
8356 // void NetworkGraph_channel_failed(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id, bool is_permanent);
8357 public static native void NetworkGraph_channel_failed(long this_arg, long short_channel_id, boolean is_permanent);
8358 // void NetworkGraph_node_failed_permanent(const struct LDKNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey node_id);
8359 public static native void NetworkGraph_node_failed_permanent(long this_arg, byte[] node_id);
8360 // void NetworkGraph_remove_stale_channels_and_tracking(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
8361 public static native void NetworkGraph_remove_stale_channels_and_tracking(long this_arg);
8362 // void NetworkGraph_remove_stale_channels_and_tracking_with_time(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t current_time_unix);
8363 public static native void NetworkGraph_remove_stale_channels_and_tracking_with_time(long this_arg, long current_time_unix);
8364 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
8365 public static native long NetworkGraph_update_channel(long this_arg, long msg);
8366 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg);
8367 public static native long NetworkGraph_update_channel_unsigned(long this_arg, long msg);
8368 // MUST_USE_RES struct LDKChannelInfo ReadOnlyNetworkGraph_channel(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id);
8369 public static native long ReadOnlyNetworkGraph_channel(long this_arg, long short_channel_id);
8370 // MUST_USE_RES struct LDKCVec_u64Z ReadOnlyNetworkGraph_list_channels(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg);
8371 public static native long[] ReadOnlyNetworkGraph_list_channels(long this_arg);
8372 // MUST_USE_RES struct LDKNodeInfo ReadOnlyNetworkGraph_node(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
8373 public static native long ReadOnlyNetworkGraph_node(long this_arg, long node_id);
8374 // MUST_USE_RES struct LDKCVec_NodeIdZ ReadOnlyNetworkGraph_list_nodes(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg);
8375 public static native long[] ReadOnlyNetworkGraph_list_nodes(long this_arg);
8376 // MUST_USE_RES struct LDKCOption_CVec_NetAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey);
8377 public static native long ReadOnlyNetworkGraph_get_addresses(long this_arg, byte[] pubkey);
8378 // void DefaultRouter_free(struct LDKDefaultRouter this_obj);
8379 public static native void DefaultRouter_free(long this_obj);
8380 // MUST_USE_RES struct LDKDefaultRouter DefaultRouter_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, struct LDKThirtyTwoBytes random_seed_bytes, struct LDKLockableScore scorer);
8381 public static native long DefaultRouter_new(long network_graph, long logger, byte[] random_seed_bytes, long scorer);
8382 // struct LDKRouter DefaultRouter_as_Router(const struct LDKDefaultRouter *NONNULL_PTR this_arg);
8383 public static native long DefaultRouter_as_Router(long this_arg);
8384 // void Router_free(struct LDKRouter this_ptr);
8385 public static native void Router_free(long this_ptr);
8386 // void ScorerAccountingForInFlightHtlcs_free(struct LDKScorerAccountingForInFlightHtlcs this_obj);
8387 public static native void ScorerAccountingForInFlightHtlcs_free(long this_obj);
8388 // MUST_USE_RES struct LDKScorerAccountingForInFlightHtlcs ScorerAccountingForInFlightHtlcs_new(struct LDKScore scorer, const struct LDKInFlightHtlcs *NONNULL_PTR inflight_htlcs);
8389 public static native long ScorerAccountingForInFlightHtlcs_new(long scorer, long inflight_htlcs);
8390 // struct LDKCVec_u8Z ScorerAccountingForInFlightHtlcs_write(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR obj);
8391 public static native byte[] ScorerAccountingForInFlightHtlcs_write(long obj);
8392 // struct LDKScore ScorerAccountingForInFlightHtlcs_as_Score(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR this_arg);
8393 public static native long ScorerAccountingForInFlightHtlcs_as_Score(long this_arg);
8394 // void InFlightHtlcs_free(struct LDKInFlightHtlcs this_obj);
8395 public static native void InFlightHtlcs_free(long this_obj);
8396 // uint64_t InFlightHtlcs_clone_ptr(LDKInFlightHtlcs *NONNULL_PTR arg);
8397 public static native long InFlightHtlcs_clone_ptr(long arg);
8398 // struct LDKInFlightHtlcs InFlightHtlcs_clone(const struct LDKInFlightHtlcs *NONNULL_PTR orig);
8399 public static native long InFlightHtlcs_clone(long orig);
8400 // MUST_USE_RES struct LDKInFlightHtlcs InFlightHtlcs_new(void);
8401 public static native long InFlightHtlcs_new();
8402 // 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);
8403 public static native long InFlightHtlcs_used_liquidity_msat(long this_arg, long source, long target, long channel_scid);
8404 // struct LDKCVec_u8Z InFlightHtlcs_write(const struct LDKInFlightHtlcs *NONNULL_PTR obj);
8405 public static native byte[] InFlightHtlcs_write(long obj);
8406 // struct LDKCResult_InFlightHtlcsDecodeErrorZ InFlightHtlcs_read(struct LDKu8slice ser);
8407 public static native long InFlightHtlcs_read(byte[] ser);
8408 // void RouteHop_free(struct LDKRouteHop this_obj);
8409 public static native void RouteHop_free(long this_obj);
8410 // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr);
8411 public static native byte[] RouteHop_get_pubkey(long this_ptr);
8412 // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8413 public static native void RouteHop_set_pubkey(long this_ptr, byte[] val);
8414 // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
8415 public static native long RouteHop_get_node_features(long this_ptr);
8416 // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
8417 public static native void RouteHop_set_node_features(long this_ptr, long val);
8418 // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr);
8419 public static native long RouteHop_get_short_channel_id(long this_ptr);
8420 // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
8421 public static native void RouteHop_set_short_channel_id(long this_ptr, long val);
8422 // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
8423 public static native long RouteHop_get_channel_features(long this_ptr);
8424 // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
8425 public static native void RouteHop_set_channel_features(long this_ptr, long val);
8426 // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr);
8427 public static native long RouteHop_get_fee_msat(long this_ptr);
8428 // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
8429 public static native void RouteHop_set_fee_msat(long this_ptr, long val);
8430 // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr);
8431 public static native int RouteHop_get_cltv_expiry_delta(long this_ptr);
8432 // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val);
8433 public static native void RouteHop_set_cltv_expiry_delta(long this_ptr, int val);
8434 // 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);
8435 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);
8436 // uint64_t RouteHop_clone_ptr(LDKRouteHop *NONNULL_PTR arg);
8437 public static native long RouteHop_clone_ptr(long arg);
8438 // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig);
8439 public static native long RouteHop_clone(long orig);
8440 // uint64_t RouteHop_hash(const struct LDKRouteHop *NONNULL_PTR o);
8441 public static native long RouteHop_hash(long o);
8442 // bool RouteHop_eq(const struct LDKRouteHop *NONNULL_PTR a, const struct LDKRouteHop *NONNULL_PTR b);
8443 public static native boolean RouteHop_eq(long a, long b);
8444 // struct LDKCVec_u8Z RouteHop_write(const struct LDKRouteHop *NONNULL_PTR obj);
8445 public static native byte[] RouteHop_write(long obj);
8446 // struct LDKCResult_RouteHopDecodeErrorZ RouteHop_read(struct LDKu8slice ser);
8447 public static native long RouteHop_read(byte[] ser);
8448 // void Route_free(struct LDKRoute this_obj);
8449 public static native void Route_free(long this_obj);
8450 // struct LDKCVec_CVec_RouteHopZZ Route_get_paths(const struct LDKRoute *NONNULL_PTR this_ptr);
8451 public static native long[][] Route_get_paths(long this_ptr);
8452 // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_CVec_RouteHopZZ val);
8453 public static native void Route_set_paths(long this_ptr, long[][] val);
8454 // struct LDKPaymentParameters Route_get_payment_params(const struct LDKRoute *NONNULL_PTR this_ptr);
8455 public static native long Route_get_payment_params(long this_ptr);
8456 // void Route_set_payment_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
8457 public static native void Route_set_payment_params(long this_ptr, long val);
8458 // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_CVec_RouteHopZZ paths_arg, struct LDKPaymentParameters payment_params_arg);
8459 public static native long Route_new(long[][] paths_arg, long payment_params_arg);
8460 // uint64_t Route_clone_ptr(LDKRoute *NONNULL_PTR arg);
8461 public static native long Route_clone_ptr(long arg);
8462 // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig);
8463 public static native long Route_clone(long orig);
8464 // uint64_t Route_hash(const struct LDKRoute *NONNULL_PTR o);
8465 public static native long Route_hash(long o);
8466 // bool Route_eq(const struct LDKRoute *NONNULL_PTR a, const struct LDKRoute *NONNULL_PTR b);
8467 public static native boolean Route_eq(long a, long b);
8468 // MUST_USE_RES uint64_t Route_get_total_fees(const struct LDKRoute *NONNULL_PTR this_arg);
8469 public static native long Route_get_total_fees(long this_arg);
8470 // MUST_USE_RES uint64_t Route_get_total_amount(const struct LDKRoute *NONNULL_PTR this_arg);
8471 public static native long Route_get_total_amount(long this_arg);
8472 // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj);
8473 public static native byte[] Route_write(long obj);
8474 // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser);
8475 public static native long Route_read(byte[] ser);
8476 // void RouteParameters_free(struct LDKRouteParameters this_obj);
8477 public static native void RouteParameters_free(long this_obj);
8478 // struct LDKPaymentParameters RouteParameters_get_payment_params(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
8479 public static native long RouteParameters_get_payment_params(long this_ptr);
8480 // void RouteParameters_set_payment_params(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
8481 public static native void RouteParameters_set_payment_params(long this_ptr, long val);
8482 // uint64_t RouteParameters_get_final_value_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
8483 public static native long RouteParameters_get_final_value_msat(long this_ptr);
8484 // void RouteParameters_set_final_value_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint64_t val);
8485 public static native void RouteParameters_set_final_value_msat(long this_ptr, long val);
8486 // MUST_USE_RES struct LDKRouteParameters RouteParameters_new(struct LDKPaymentParameters payment_params_arg, uint64_t final_value_msat_arg);
8487 public static native long RouteParameters_new(long payment_params_arg, long final_value_msat_arg);
8488 // uint64_t RouteParameters_clone_ptr(LDKRouteParameters *NONNULL_PTR arg);
8489 public static native long RouteParameters_clone_ptr(long arg);
8490 // struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters *NONNULL_PTR orig);
8491 public static native long RouteParameters_clone(long orig);
8492 // bool RouteParameters_eq(const struct LDKRouteParameters *NONNULL_PTR a, const struct LDKRouteParameters *NONNULL_PTR b);
8493 public static native boolean RouteParameters_eq(long a, long b);
8494 // struct LDKCVec_u8Z RouteParameters_write(const struct LDKRouteParameters *NONNULL_PTR obj);
8495 public static native byte[] RouteParameters_write(long obj);
8496 // struct LDKCResult_RouteParametersDecodeErrorZ RouteParameters_read(struct LDKu8slice ser);
8497 public static native long RouteParameters_read(byte[] ser);
8498 // void PaymentParameters_free(struct LDKPaymentParameters this_obj);
8499 public static native void PaymentParameters_free(long this_obj);
8500 // struct LDKPublicKey PaymentParameters_get_payee_pubkey(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
8501 public static native byte[] PaymentParameters_get_payee_pubkey(long this_ptr);
8502 // void PaymentParameters_set_payee_pubkey(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8503 public static native void PaymentParameters_set_payee_pubkey(long this_ptr, byte[] val);
8504 // struct LDKInvoiceFeatures PaymentParameters_get_features(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
8505 public static native long PaymentParameters_get_features(long this_ptr);
8506 // void PaymentParameters_set_features(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKInvoiceFeatures val);
8507 public static native void PaymentParameters_set_features(long this_ptr, long val);
8508 // struct LDKCVec_RouteHintZ PaymentParameters_get_route_hints(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
8509 public static native long[] PaymentParameters_get_route_hints(long this_ptr);
8510 // void PaymentParameters_set_route_hints(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintZ val);
8511 public static native void PaymentParameters_set_route_hints(long this_ptr, long[] val);
8512 // struct LDKCOption_u64Z PaymentParameters_get_expiry_time(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
8513 public static native long PaymentParameters_get_expiry_time(long this_ptr);
8514 // void PaymentParameters_set_expiry_time(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
8515 public static native void PaymentParameters_set_expiry_time(long this_ptr, long val);
8516 // uint32_t PaymentParameters_get_max_total_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
8517 public static native int PaymentParameters_get_max_total_cltv_expiry_delta(long this_ptr);
8518 // void PaymentParameters_set_max_total_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val);
8519 public static native void PaymentParameters_set_max_total_cltv_expiry_delta(long this_ptr, int val);
8520 // uint8_t PaymentParameters_get_max_path_count(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
8521 public static native byte PaymentParameters_get_max_path_count(long this_ptr);
8522 // void PaymentParameters_set_max_path_count(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
8523 public static native void PaymentParameters_set_max_path_count(long this_ptr, byte val);
8524 // uint8_t PaymentParameters_get_max_channel_saturation_power_of_half(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
8525 public static native byte PaymentParameters_get_max_channel_saturation_power_of_half(long this_ptr);
8526 // void PaymentParameters_set_max_channel_saturation_power_of_half(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
8527 public static native void PaymentParameters_set_max_channel_saturation_power_of_half(long this_ptr, byte val);
8528 // struct LDKCVec_u64Z PaymentParameters_get_previously_failed_channels(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
8529 public static native long[] PaymentParameters_get_previously_failed_channels(long this_ptr);
8530 // void PaymentParameters_set_previously_failed_channels(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
8531 public static native void PaymentParameters_set_previously_failed_channels(long this_ptr, long[] val);
8532 // uint32_t PaymentParameters_get_final_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
8533 public static native int PaymentParameters_get_final_cltv_expiry_delta(long this_ptr);
8534 // void PaymentParameters_set_final_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val);
8535 public static native void PaymentParameters_set_final_cltv_expiry_delta(long this_ptr, int val);
8536 // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_new(struct LDKPublicKey payee_pubkey_arg, struct LDKInvoiceFeatures features_arg, struct LDKCVec_RouteHintZ route_hints_arg, struct LDKCOption_u64Z expiry_time_arg, uint32_t max_total_cltv_expiry_delta_arg, uint8_t max_path_count_arg, uint8_t max_channel_saturation_power_of_half_arg, struct LDKCVec_u64Z previously_failed_channels_arg, uint32_t final_cltv_expiry_delta_arg);
8537 public static native long PaymentParameters_new(byte[] payee_pubkey_arg, long features_arg, long[] route_hints_arg, long expiry_time_arg, int max_total_cltv_expiry_delta_arg, byte max_path_count_arg, byte max_channel_saturation_power_of_half_arg, long[] previously_failed_channels_arg, int final_cltv_expiry_delta_arg);
8538 // uint64_t PaymentParameters_clone_ptr(LDKPaymentParameters *NONNULL_PTR arg);
8539 public static native long PaymentParameters_clone_ptr(long arg);
8540 // struct LDKPaymentParameters PaymentParameters_clone(const struct LDKPaymentParameters *NONNULL_PTR orig);
8541 public static native long PaymentParameters_clone(long orig);
8542 // uint64_t PaymentParameters_hash(const struct LDKPaymentParameters *NONNULL_PTR o);
8543 public static native long PaymentParameters_hash(long o);
8544 // bool PaymentParameters_eq(const struct LDKPaymentParameters *NONNULL_PTR a, const struct LDKPaymentParameters *NONNULL_PTR b);
8545 public static native boolean PaymentParameters_eq(long a, long b);
8546 // struct LDKCVec_u8Z PaymentParameters_write(const struct LDKPaymentParameters *NONNULL_PTR obj);
8547 public static native byte[] PaymentParameters_write(long obj);
8548 // struct LDKCResult_PaymentParametersDecodeErrorZ PaymentParameters_read(struct LDKu8slice ser, uint32_t arg);
8549 public static native long PaymentParameters_read(byte[] ser, int arg);
8550 // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_node_id(struct LDKPublicKey payee_pubkey, uint32_t final_cltv_expiry_delta);
8551 public static native long PaymentParameters_from_node_id(byte[] payee_pubkey, int final_cltv_expiry_delta);
8552 // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LDKPublicKey payee_pubkey, uint32_t final_cltv_expiry_delta);
8553 public static native long PaymentParameters_for_keysend(byte[] payee_pubkey, int final_cltv_expiry_delta);
8554 // void RouteHint_free(struct LDKRouteHint this_obj);
8555 public static native void RouteHint_free(long this_obj);
8556 // struct LDKCVec_RouteHintHopZ RouteHint_get_a(const struct LDKRouteHint *NONNULL_PTR this_ptr);
8557 public static native long[] RouteHint_get_a(long this_ptr);
8558 // void RouteHint_set_a(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintHopZ val);
8559 public static native void RouteHint_set_a(long this_ptr, long[] val);
8560 // MUST_USE_RES struct LDKRouteHint RouteHint_new(struct LDKCVec_RouteHintHopZ a_arg);
8561 public static native long RouteHint_new(long[] a_arg);
8562 // uint64_t RouteHint_clone_ptr(LDKRouteHint *NONNULL_PTR arg);
8563 public static native long RouteHint_clone_ptr(long arg);
8564 // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig);
8565 public static native long RouteHint_clone(long orig);
8566 // uint64_t RouteHint_hash(const struct LDKRouteHint *NONNULL_PTR o);
8567 public static native long RouteHint_hash(long o);
8568 // bool RouteHint_eq(const struct LDKRouteHint *NONNULL_PTR a, const struct LDKRouteHint *NONNULL_PTR b);
8569 public static native boolean RouteHint_eq(long a, long b);
8570 // struct LDKCVec_u8Z RouteHint_write(const struct LDKRouteHint *NONNULL_PTR obj);
8571 public static native byte[] RouteHint_write(long obj);
8572 // struct LDKCResult_RouteHintDecodeErrorZ RouteHint_read(struct LDKu8slice ser);
8573 public static native long RouteHint_read(byte[] ser);
8574 // void RouteHintHop_free(struct LDKRouteHintHop this_obj);
8575 public static native void RouteHintHop_free(long this_obj);
8576 // struct LDKPublicKey RouteHintHop_get_src_node_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
8577 public static native byte[] RouteHintHop_get_src_node_id(long this_ptr);
8578 // void RouteHintHop_set_src_node_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
8579 public static native void RouteHintHop_set_src_node_id(long this_ptr, byte[] val);
8580 // uint64_t RouteHintHop_get_short_channel_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
8581 public static native long RouteHintHop_get_short_channel_id(long this_ptr);
8582 // void RouteHintHop_set_short_channel_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint64_t val);
8583 public static native void RouteHintHop_set_short_channel_id(long this_ptr, long val);
8584 // struct LDKRoutingFees RouteHintHop_get_fees(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
8585 public static native long RouteHintHop_get_fees(long this_ptr);
8586 // void RouteHintHop_set_fees(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
8587 public static native void RouteHintHop_set_fees(long this_ptr, long val);
8588 // uint16_t RouteHintHop_get_cltv_expiry_delta(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
8589 public static native short RouteHintHop_get_cltv_expiry_delta(long this_ptr);
8590 // void RouteHintHop_set_cltv_expiry_delta(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint16_t val);
8591 public static native void RouteHintHop_set_cltv_expiry_delta(long this_ptr, short val);
8592 // struct LDKCOption_u64Z RouteHintHop_get_htlc_minimum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
8593 public static native long RouteHintHop_get_htlc_minimum_msat(long this_ptr);
8594 // void RouteHintHop_set_htlc_minimum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
8595 public static native void RouteHintHop_set_htlc_minimum_msat(long this_ptr, long val);
8596 // struct LDKCOption_u64Z RouteHintHop_get_htlc_maximum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
8597 public static native long RouteHintHop_get_htlc_maximum_msat(long this_ptr);
8598 // void RouteHintHop_set_htlc_maximum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
8599 public static native void RouteHintHop_set_htlc_maximum_msat(long this_ptr, long val);
8600 // 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);
8601 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);
8602 // uint64_t RouteHintHop_clone_ptr(LDKRouteHintHop *NONNULL_PTR arg);
8603 public static native long RouteHintHop_clone_ptr(long arg);
8604 // struct LDKRouteHintHop RouteHintHop_clone(const struct LDKRouteHintHop *NONNULL_PTR orig);
8605 public static native long RouteHintHop_clone(long orig);
8606 // uint64_t RouteHintHop_hash(const struct LDKRouteHintHop *NONNULL_PTR o);
8607 public static native long RouteHintHop_hash(long o);
8608 // bool RouteHintHop_eq(const struct LDKRouteHintHop *NONNULL_PTR a, const struct LDKRouteHintHop *NONNULL_PTR b);
8609 public static native boolean RouteHintHop_eq(long a, long b);
8610 // struct LDKCVec_u8Z RouteHintHop_write(const struct LDKRouteHintHop *NONNULL_PTR obj);
8611 public static native byte[] RouteHintHop_write(long obj);
8612 // struct LDKCResult_RouteHintHopDecodeErrorZ RouteHintHop_read(struct LDKu8slice ser);
8613 public static native long RouteHintHop_read(byte[] ser);
8614 // struct LDKCResult_RouteLightningErrorZ find_route(struct LDKPublicKey our_node_pubkey, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKLogger logger, const struct LDKScore *NONNULL_PTR scorer, const uint8_t (*random_seed_bytes)[32]);
8615 public static native long find_route(byte[] our_node_pubkey, long route_params, long network_graph, long[] first_hops, long logger, long scorer, byte[] random_seed_bytes);
8616 // 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]);
8617 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);
8618 // void Score_free(struct LDKScore this_ptr);
8619 public static native void Score_free(long this_ptr);
8620 // void LockableScore_free(struct LDKLockableScore this_ptr);
8621 public static native void LockableScore_free(long this_ptr);
8622 // void WriteableScore_free(struct LDKWriteableScore this_ptr);
8623 public static native void WriteableScore_free(long this_ptr);
8624 // void MultiThreadedLockableScore_free(struct LDKMultiThreadedLockableScore this_obj);
8625 public static native void MultiThreadedLockableScore_free(long this_obj);
8626 // void MultiThreadedScoreLock_free(struct LDKMultiThreadedScoreLock this_obj);
8627 public static native void MultiThreadedScoreLock_free(long this_obj);
8628 // struct LDKScore MultiThreadedScoreLock_as_Score(const struct LDKMultiThreadedScoreLock *NONNULL_PTR this_arg);
8629 public static native long MultiThreadedScoreLock_as_Score(long this_arg);
8630 // struct LDKCVec_u8Z MultiThreadedScoreLock_write(const struct LDKMultiThreadedScoreLock *NONNULL_PTR obj);
8631 public static native byte[] MultiThreadedScoreLock_write(long obj);
8632 // struct LDKLockableScore MultiThreadedLockableScore_as_LockableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg);
8633 public static native long MultiThreadedLockableScore_as_LockableScore(long this_arg);
8634 // struct LDKCVec_u8Z MultiThreadedLockableScore_write(const struct LDKMultiThreadedLockableScore *NONNULL_PTR obj);
8635 public static native byte[] MultiThreadedLockableScore_write(long obj);
8636 // struct LDKWriteableScore MultiThreadedLockableScore_as_WriteableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg);
8637 public static native long MultiThreadedLockableScore_as_WriteableScore(long this_arg);
8638 // MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score);
8639 public static native long MultiThreadedLockableScore_new(long score);
8640 // void ChannelUsage_free(struct LDKChannelUsage this_obj);
8641 public static native void ChannelUsage_free(long this_obj);
8642 // uint64_t ChannelUsage_get_amount_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
8643 public static native long ChannelUsage_get_amount_msat(long this_ptr);
8644 // void ChannelUsage_set_amount_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
8645 public static native void ChannelUsage_set_amount_msat(long this_ptr, long val);
8646 // uint64_t ChannelUsage_get_inflight_htlc_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
8647 public static native long ChannelUsage_get_inflight_htlc_msat(long this_ptr);
8648 // void ChannelUsage_set_inflight_htlc_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
8649 public static native void ChannelUsage_set_inflight_htlc_msat(long this_ptr, long val);
8650 // struct LDKEffectiveCapacity ChannelUsage_get_effective_capacity(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
8651 public static native long ChannelUsage_get_effective_capacity(long this_ptr);
8652 // void ChannelUsage_set_effective_capacity(struct LDKChannelUsage *NONNULL_PTR this_ptr, struct LDKEffectiveCapacity val);
8653 public static native void ChannelUsage_set_effective_capacity(long this_ptr, long val);
8654 // MUST_USE_RES struct LDKChannelUsage ChannelUsage_new(uint64_t amount_msat_arg, uint64_t inflight_htlc_msat_arg, struct LDKEffectiveCapacity effective_capacity_arg);
8655 public static native long ChannelUsage_new(long amount_msat_arg, long inflight_htlc_msat_arg, long effective_capacity_arg);
8656 // uint64_t ChannelUsage_clone_ptr(LDKChannelUsage *NONNULL_PTR arg);
8657 public static native long ChannelUsage_clone_ptr(long arg);
8658 // struct LDKChannelUsage ChannelUsage_clone(const struct LDKChannelUsage *NONNULL_PTR orig);
8659 public static native long ChannelUsage_clone(long orig);
8660 // void FixedPenaltyScorer_free(struct LDKFixedPenaltyScorer this_obj);
8661 public static native void FixedPenaltyScorer_free(long this_obj);
8662 // uint64_t FixedPenaltyScorer_clone_ptr(LDKFixedPenaltyScorer *NONNULL_PTR arg);
8663 public static native long FixedPenaltyScorer_clone_ptr(long arg);
8664 // struct LDKFixedPenaltyScorer FixedPenaltyScorer_clone(const struct LDKFixedPenaltyScorer *NONNULL_PTR orig);
8665 public static native long FixedPenaltyScorer_clone(long orig);
8666 // MUST_USE_RES struct LDKFixedPenaltyScorer FixedPenaltyScorer_with_penalty(uint64_t penalty_msat);
8667 public static native long FixedPenaltyScorer_with_penalty(long penalty_msat);
8668 // struct LDKScore FixedPenaltyScorer_as_Score(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg);
8669 public static native long FixedPenaltyScorer_as_Score(long this_arg);
8670 // struct LDKCVec_u8Z FixedPenaltyScorer_write(const struct LDKFixedPenaltyScorer *NONNULL_PTR obj);
8671 public static native byte[] FixedPenaltyScorer_write(long obj);
8672 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ FixedPenaltyScorer_read(struct LDKu8slice ser, uint64_t arg);
8673 public static native long FixedPenaltyScorer_read(byte[] ser, long arg);
8674 // void ProbabilisticScorer_free(struct LDKProbabilisticScorer this_obj);
8675 public static native void ProbabilisticScorer_free(long this_obj);
8676 // void ProbabilisticScoringParameters_free(struct LDKProbabilisticScoringParameters this_obj);
8677 public static native void ProbabilisticScoringParameters_free(long this_obj);
8678 // uint64_t ProbabilisticScoringParameters_get_base_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
8679 public static native long ProbabilisticScoringParameters_get_base_penalty_msat(long this_ptr);
8680 // void ProbabilisticScoringParameters_set_base_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
8681 public static native void ProbabilisticScoringParameters_set_base_penalty_msat(long this_ptr, long val);
8682 // uint64_t ProbabilisticScoringParameters_get_base_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
8683 public static native long ProbabilisticScoringParameters_get_base_penalty_amount_multiplier_msat(long this_ptr);
8684 // void ProbabilisticScoringParameters_set_base_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
8685 public static native void ProbabilisticScoringParameters_set_base_penalty_amount_multiplier_msat(long this_ptr, long val);
8686 // uint64_t ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
8687 public static native long ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(long this_ptr);
8688 // void ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
8689 public static native void ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(long this_ptr, long val);
8690 // uint64_t ProbabilisticScoringParameters_get_liquidity_offset_half_life(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
8691 public static native long ProbabilisticScoringParameters_get_liquidity_offset_half_life(long this_ptr);
8692 // void ProbabilisticScoringParameters_set_liquidity_offset_half_life(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
8693 public static native void ProbabilisticScoringParameters_set_liquidity_offset_half_life(long this_ptr, long val);
8694 // uint64_t ProbabilisticScoringParameters_get_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
8695 public static native long ProbabilisticScoringParameters_get_liquidity_penalty_amount_multiplier_msat(long this_ptr);
8696 // void ProbabilisticScoringParameters_set_liquidity_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
8697 public static native void ProbabilisticScoringParameters_set_liquidity_penalty_amount_multiplier_msat(long this_ptr, long val);
8698 // uint64_t ProbabilisticScoringParameters_get_historical_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
8699 public static native long ProbabilisticScoringParameters_get_historical_liquidity_penalty_multiplier_msat(long this_ptr);
8700 // void ProbabilisticScoringParameters_set_historical_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
8701 public static native void ProbabilisticScoringParameters_set_historical_liquidity_penalty_multiplier_msat(long this_ptr, long val);
8702 // uint64_t ProbabilisticScoringParameters_get_historical_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
8703 public static native long ProbabilisticScoringParameters_get_historical_liquidity_penalty_amount_multiplier_msat(long this_ptr);
8704 // void ProbabilisticScoringParameters_set_historical_liquidity_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
8705 public static native void ProbabilisticScoringParameters_set_historical_liquidity_penalty_amount_multiplier_msat(long this_ptr, long val);
8706 // uint64_t ProbabilisticScoringParameters_get_historical_no_updates_half_life(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
8707 public static native long ProbabilisticScoringParameters_get_historical_no_updates_half_life(long this_ptr);
8708 // void ProbabilisticScoringParameters_set_historical_no_updates_half_life(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
8709 public static native void ProbabilisticScoringParameters_set_historical_no_updates_half_life(long this_ptr, long val);
8710 // uint64_t ProbabilisticScoringParameters_get_anti_probing_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
8711 public static native long ProbabilisticScoringParameters_get_anti_probing_penalty_msat(long this_ptr);
8712 // void ProbabilisticScoringParameters_set_anti_probing_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
8713 public static native void ProbabilisticScoringParameters_set_anti_probing_penalty_msat(long this_ptr, long val);
8714 // uint64_t ProbabilisticScoringParameters_get_considered_impossible_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
8715 public static native long ProbabilisticScoringParameters_get_considered_impossible_penalty_msat(long this_ptr);
8716 // void ProbabilisticScoringParameters_set_considered_impossible_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
8717 public static native void ProbabilisticScoringParameters_set_considered_impossible_penalty_msat(long this_ptr, long val);
8718 // uint64_t ProbabilisticScoringParameters_clone_ptr(LDKProbabilisticScoringParameters *NONNULL_PTR arg);
8719 public static native long ProbabilisticScoringParameters_clone_ptr(long arg);
8720 // struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_clone(const struct LDKProbabilisticScoringParameters *NONNULL_PTR orig);
8721 public static native long ProbabilisticScoringParameters_clone(long orig);
8722 // MUST_USE_RES struct LDKProbabilisticScorer ProbabilisticScorer_new(struct LDKProbabilisticScoringParameters params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
8723 public static native long ProbabilisticScorer_new(long params, long network_graph, long logger);
8724 // void ProbabilisticScorer_debug_log_liquidity_stats(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
8725 public static native void ProbabilisticScorer_debug_log_liquidity_stats(long this_arg);
8726 // 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);
8727 public static native long ProbabilisticScorer_estimated_channel_liquidity_range(long this_arg, long scid, long target);
8728 // MUST_USE_RES struct LDKCOption_C2Tuple_EightU16sEightU16sZZ ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target);
8729 public static native long ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(long this_arg, long scid, long target);
8730 // void ProbabilisticScorer_add_banned(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
8731 public static native void ProbabilisticScorer_add_banned(long this_arg, long node_id);
8732 // void ProbabilisticScorer_remove_banned(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
8733 public static native void ProbabilisticScorer_remove_banned(long this_arg, long node_id);
8734 // void ProbabilisticScorer_set_manual_penalty(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id, uint64_t penalty);
8735 public static native void ProbabilisticScorer_set_manual_penalty(long this_arg, long node_id, long penalty);
8736 // void ProbabilisticScorer_remove_manual_penalty(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
8737 public static native void ProbabilisticScorer_remove_manual_penalty(long this_arg, long node_id);
8738 // void ProbabilisticScorer_clear_manual_penalties(struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
8739 public static native void ProbabilisticScorer_clear_manual_penalties(long this_arg);
8740 // void ProbabilisticScoringParameters_add_banned_from_list(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_arg, struct LDKCVec_NodeIdZ node_ids);
8741 public static native void ProbabilisticScoringParameters_add_banned_from_list(long this_arg, long[] node_ids);
8742 // MUST_USE_RES struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_default(void);
8743 public static native long ProbabilisticScoringParameters_default();
8744 // struct LDKScore ProbabilisticScorer_as_Score(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
8745 public static native long ProbabilisticScorer_as_Score(long this_arg);
8746 // struct LDKCVec_u8Z ProbabilisticScorer_write(const struct LDKProbabilisticScorer *NONNULL_PTR obj);
8747 public static native byte[] ProbabilisticScorer_write(long obj);
8748 // struct LDKCResult_ProbabilisticScorerDecodeErrorZ ProbabilisticScorer_read(struct LDKu8slice ser, struct LDKProbabilisticScoringParameters arg_a, const struct LDKNetworkGraph *NONNULL_PTR arg_b, struct LDKLogger arg_c);
8749 public static native long ProbabilisticScorer_read(byte[] ser, long arg_a, long arg_b, long arg_c);
8750 // void BlindedPath_free(struct LDKBlindedPath this_obj);
8751 public static native void BlindedPath_free(long this_obj);
8752 // uint64_t BlindedPath_clone_ptr(LDKBlindedPath *NONNULL_PTR arg);
8753 public static native long BlindedPath_clone_ptr(long arg);
8754 // struct LDKBlindedPath BlindedPath_clone(const struct LDKBlindedPath *NONNULL_PTR orig);
8755 public static native long BlindedPath_clone(long orig);
8756 // void BlindedHop_free(struct LDKBlindedHop this_obj);
8757 public static native void BlindedHop_free(long this_obj);
8758 // uint64_t BlindedHop_clone_ptr(LDKBlindedHop *NONNULL_PTR arg);
8759 public static native long BlindedHop_clone_ptr(long arg);
8760 // struct LDKBlindedHop BlindedHop_clone(const struct LDKBlindedHop *NONNULL_PTR orig);
8761 public static native long BlindedHop_clone(long orig);
8762 // MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_new(struct LDKCVec_PublicKeyZ node_pks, const struct LDKEntropySource *NONNULL_PTR entropy_source);
8763 public static native long BlindedPath_new(byte[][] node_pks, long entropy_source);
8764 // struct LDKCVec_u8Z BlindedPath_write(const struct LDKBlindedPath *NONNULL_PTR obj);
8765 public static native byte[] BlindedPath_write(long obj);
8766 // struct LDKCResult_BlindedPathDecodeErrorZ BlindedPath_read(struct LDKu8slice ser);
8767 public static native long BlindedPath_read(byte[] ser);
8768 // struct LDKCVec_u8Z BlindedHop_write(const struct LDKBlindedHop *NONNULL_PTR obj);
8769 public static native byte[] BlindedHop_write(long obj);
8770 // struct LDKCResult_BlindedHopDecodeErrorZ BlindedHop_read(struct LDKu8slice ser);
8771 public static native long BlindedHop_read(byte[] ser);
8772 // void OnionMessenger_free(struct LDKOnionMessenger this_obj);
8773 public static native void OnionMessenger_free(long this_obj);
8774 // void Destination_free(struct LDKDestination this_ptr);
8775 public static native void Destination_free(long this_ptr);
8776 // uint64_t Destination_clone_ptr(LDKDestination *NONNULL_PTR arg);
8777 public static native long Destination_clone_ptr(long arg);
8778 // struct LDKDestination Destination_clone(const struct LDKDestination *NONNULL_PTR orig);
8779 public static native long Destination_clone(long orig);
8780 // struct LDKDestination Destination_node(struct LDKPublicKey a);
8781 public static native long Destination_node(byte[] a);
8782 // struct LDKDestination Destination_blinded_path(struct LDKBlindedPath a);
8783 public static native long Destination_blinded_path(long a);
8784 // void SendError_free(struct LDKSendError this_ptr);
8785 public static native void SendError_free(long this_ptr);
8786 // uint64_t SendError_clone_ptr(LDKSendError *NONNULL_PTR arg);
8787 public static native long SendError_clone_ptr(long arg);
8788 // struct LDKSendError SendError_clone(const struct LDKSendError *NONNULL_PTR orig);
8789 public static native long SendError_clone(long orig);
8790 // struct LDKSendError SendError_secp256k1(enum LDKSecp256k1Error a);
8791 public static native long SendError_secp256k1(Secp256k1Error a);
8792 // struct LDKSendError SendError_too_big_packet(void);
8793 public static native long SendError_too_big_packet();
8794 // struct LDKSendError SendError_too_few_blinded_hops(void);
8795 public static native long SendError_too_few_blinded_hops();
8796 // struct LDKSendError SendError_invalid_first_hop(void);
8797 public static native long SendError_invalid_first_hop();
8798 // struct LDKSendError SendError_invalid_message(void);
8799 public static native long SendError_invalid_message();
8800 // struct LDKSendError SendError_buffer_full(void);
8801 public static native long SendError_buffer_full();
8802 // struct LDKSendError SendError_get_node_id_failed(void);
8803 public static native long SendError_get_node_id_failed();
8804 // struct LDKSendError SendError_blinded_path_advance_failed(void);
8805 public static native long SendError_blinded_path_advance_failed();
8806 // bool SendError_eq(const struct LDKSendError *NONNULL_PTR a, const struct LDKSendError *NONNULL_PTR b);
8807 public static native boolean SendError_eq(long a, long b);
8808 // void CustomOnionMessageHandler_free(struct LDKCustomOnionMessageHandler this_ptr);
8809 public static native void CustomOnionMessageHandler_free(long this_ptr);
8810 // MUST_USE_RES struct LDKOnionMessenger OnionMessenger_new(struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, struct LDKCustomOnionMessageHandler custom_handler);
8811 public static native long OnionMessenger_new(long entropy_source, long node_signer, long logger, long custom_handler);
8812 // MUST_USE_RES struct LDKCResult_NoneSendErrorZ OnionMessenger_send_onion_message(const struct LDKOnionMessenger *NONNULL_PTR this_arg, struct LDKCVec_PublicKeyZ intermediate_nodes, struct LDKDestination destination, struct LDKOnionMessageContents message, struct LDKBlindedPath reply_path);
8813 public static native long OnionMessenger_send_onion_message(long this_arg, byte[][] intermediate_nodes, long destination, long message, long reply_path);
8814 // struct LDKOnionMessageHandler OnionMessenger_as_OnionMessageHandler(const struct LDKOnionMessenger *NONNULL_PTR this_arg);
8815 public static native long OnionMessenger_as_OnionMessageHandler(long this_arg);
8816 // struct LDKOnionMessageProvider OnionMessenger_as_OnionMessageProvider(const struct LDKOnionMessenger *NONNULL_PTR this_arg);
8817 public static native long OnionMessenger_as_OnionMessageProvider(long this_arg);
8818 // void OnionMessageContents_free(struct LDKOnionMessageContents this_ptr);
8819 public static native void OnionMessageContents_free(long this_ptr);
8820 // uint64_t OnionMessageContents_clone_ptr(LDKOnionMessageContents *NONNULL_PTR arg);
8821 public static native long OnionMessageContents_clone_ptr(long arg);
8822 // struct LDKOnionMessageContents OnionMessageContents_clone(const struct LDKOnionMessageContents *NONNULL_PTR orig);
8823 public static native long OnionMessageContents_clone(long orig);
8824 // struct LDKOnionMessageContents OnionMessageContents_custom(struct LDKCustomOnionMessageContents a);
8825 public static native long OnionMessageContents_custom(long a);
8826 // uint64_t CustomOnionMessageContents_clone_ptr(LDKCustomOnionMessageContents *NONNULL_PTR arg);
8827 public static native long CustomOnionMessageContents_clone_ptr(long arg);
8828 // struct LDKCustomOnionMessageContents CustomOnionMessageContents_clone(const struct LDKCustomOnionMessageContents *NONNULL_PTR orig);
8829 public static native long CustomOnionMessageContents_clone(long orig);
8830 // void CustomOnionMessageContents_free(struct LDKCustomOnionMessageContents this_ptr);
8831 public static native void CustomOnionMessageContents_free(long this_ptr);
8832 // void FilesystemPersister_free(struct LDKFilesystemPersister this_obj);
8833 public static native void FilesystemPersister_free(long this_obj);
8834 // MUST_USE_RES struct LDKFilesystemPersister FilesystemPersister_new(struct LDKStr path_to_channel_data);
8835 public static native long FilesystemPersister_new(String path_to_channel_data);
8836 // MUST_USE_RES struct LDKStr FilesystemPersister_get_data_dir(const struct LDKFilesystemPersister *NONNULL_PTR this_arg);
8837 public static native String FilesystemPersister_get_data_dir(long this_arg);
8838 // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ FilesystemPersister_read_channelmonitors(const struct LDKFilesystemPersister *NONNULL_PTR this_arg, struct LDKEntropySource entropy_source, const struct LDKSignerProvider *NONNULL_PTR signer_provider);
8839 public static native long FilesystemPersister_read_channelmonitors(long this_arg, long entropy_source, long signer_provider);
8840 // void BackgroundProcessor_free(struct LDKBackgroundProcessor this_obj);
8841 public static native void BackgroundProcessor_free(long this_obj);
8842 // void GossipSync_free(struct LDKGossipSync this_ptr);
8843 public static native void GossipSync_free(long this_ptr);
8844 // struct LDKGossipSync GossipSync_p2_p(const struct LDKP2PGossipSync *NONNULL_PTR a);
8845 public static native long GossipSync_p2_p(long a);
8846 // struct LDKGossipSync GossipSync_rapid(const struct LDKRapidGossipSync *NONNULL_PTR a);
8847 public static native long GossipSync_rapid(long a);
8848 // struct LDKGossipSync GossipSync_none(void);
8849 public static native long GossipSync_none();
8850 // 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);
8851 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);
8852 // MUST_USE_RES struct LDKCResult_NoneErrorZ BackgroundProcessor_join(struct LDKBackgroundProcessor this_arg);
8853 public static native long BackgroundProcessor_join(long this_arg);
8854 // MUST_USE_RES struct LDKCResult_NoneErrorZ BackgroundProcessor_stop(struct LDKBackgroundProcessor this_arg);
8855 public static native long BackgroundProcessor_stop(long this_arg);
8856 // void ParseError_free(struct LDKParseError this_ptr);
8857 public static native void ParseError_free(long this_ptr);
8858 // uint64_t ParseError_clone_ptr(LDKParseError *NONNULL_PTR arg);
8859 public static native long ParseError_clone_ptr(long arg);
8860 // struct LDKParseError ParseError_clone(const struct LDKParseError *NONNULL_PTR orig);
8861 public static native long ParseError_clone(long orig);
8862 // struct LDKParseError ParseError_bech32_error(struct LDKBech32Error a);
8863 public static native long ParseError_bech32_error(long a);
8864 // struct LDKParseError ParseError_parse_amount_error(struct LDKError a);
8865 public static native long ParseError_parse_amount_error(int a);
8866 // struct LDKParseError ParseError_malformed_signature(enum LDKSecp256k1Error a);
8867 public static native long ParseError_malformed_signature(Secp256k1Error a);
8868 // struct LDKParseError ParseError_bad_prefix(void);
8869 public static native long ParseError_bad_prefix();
8870 // struct LDKParseError ParseError_unknown_currency(void);
8871 public static native long ParseError_unknown_currency();
8872 // struct LDKParseError ParseError_unknown_si_prefix(void);
8873 public static native long ParseError_unknown_si_prefix();
8874 // struct LDKParseError ParseError_malformed_hrp(void);
8875 public static native long ParseError_malformed_hrp();
8876 // struct LDKParseError ParseError_too_short_data_part(void);
8877 public static native long ParseError_too_short_data_part();
8878 // struct LDKParseError ParseError_unexpected_end_of_tagged_fields(void);
8879 public static native long ParseError_unexpected_end_of_tagged_fields();
8880 // struct LDKParseError ParseError_description_decode_error(struct LDKError a);
8881 public static native long ParseError_description_decode_error(int a);
8882 // struct LDKParseError ParseError_padding_error(void);
8883 public static native long ParseError_padding_error();
8884 // struct LDKParseError ParseError_integer_overflow_error(void);
8885 public static native long ParseError_integer_overflow_error();
8886 // struct LDKParseError ParseError_invalid_seg_wit_program_length(void);
8887 public static native long ParseError_invalid_seg_wit_program_length();
8888 // struct LDKParseError ParseError_invalid_pub_key_hash_length(void);
8889 public static native long ParseError_invalid_pub_key_hash_length();
8890 // struct LDKParseError ParseError_invalid_script_hash_length(void);
8891 public static native long ParseError_invalid_script_hash_length();
8892 // struct LDKParseError ParseError_invalid_recovery_id(void);
8893 public static native long ParseError_invalid_recovery_id();
8894 // struct LDKParseError ParseError_invalid_slice_length(struct LDKStr a);
8895 public static native long ParseError_invalid_slice_length(String a);
8896 // struct LDKParseError ParseError_skip(void);
8897 public static native long ParseError_skip();
8898 // bool ParseError_eq(const struct LDKParseError *NONNULL_PTR a, const struct LDKParseError *NONNULL_PTR b);
8899 public static native boolean ParseError_eq(long a, long b);
8900 // void ParseOrSemanticError_free(struct LDKParseOrSemanticError this_ptr);
8901 public static native void ParseOrSemanticError_free(long this_ptr);
8902 // uint64_t ParseOrSemanticError_clone_ptr(LDKParseOrSemanticError *NONNULL_PTR arg);
8903 public static native long ParseOrSemanticError_clone_ptr(long arg);
8904 // struct LDKParseOrSemanticError ParseOrSemanticError_clone(const struct LDKParseOrSemanticError *NONNULL_PTR orig);
8905 public static native long ParseOrSemanticError_clone(long orig);
8906 // struct LDKParseOrSemanticError ParseOrSemanticError_parse_error(struct LDKParseError a);
8907 public static native long ParseOrSemanticError_parse_error(long a);
8908 // struct LDKParseOrSemanticError ParseOrSemanticError_semantic_error(enum LDKSemanticError a);
8909 public static native long ParseOrSemanticError_semantic_error(SemanticError a);
8910 // bool ParseOrSemanticError_eq(const struct LDKParseOrSemanticError *NONNULL_PTR a, const struct LDKParseOrSemanticError *NONNULL_PTR b);
8911 public static native boolean ParseOrSemanticError_eq(long a, long b);
8912 // void Invoice_free(struct LDKInvoice this_obj);
8913 public static native void Invoice_free(long this_obj);
8914 // bool Invoice_eq(const struct LDKInvoice *NONNULL_PTR a, const struct LDKInvoice *NONNULL_PTR b);
8915 public static native boolean Invoice_eq(long a, long b);
8916 // uint64_t Invoice_clone_ptr(LDKInvoice *NONNULL_PTR arg);
8917 public static native long Invoice_clone_ptr(long arg);
8918 // struct LDKInvoice Invoice_clone(const struct LDKInvoice *NONNULL_PTR orig);
8919 public static native long Invoice_clone(long orig);
8920 // uint64_t Invoice_hash(const struct LDKInvoice *NONNULL_PTR o);
8921 public static native long Invoice_hash(long o);
8922 // void SignedRawInvoice_free(struct LDKSignedRawInvoice this_obj);
8923 public static native void SignedRawInvoice_free(long this_obj);
8924 // bool SignedRawInvoice_eq(const struct LDKSignedRawInvoice *NONNULL_PTR a, const struct LDKSignedRawInvoice *NONNULL_PTR b);
8925 public static native boolean SignedRawInvoice_eq(long a, long b);
8926 // uint64_t SignedRawInvoice_clone_ptr(LDKSignedRawInvoice *NONNULL_PTR arg);
8927 public static native long SignedRawInvoice_clone_ptr(long arg);
8928 // struct LDKSignedRawInvoice SignedRawInvoice_clone(const struct LDKSignedRawInvoice *NONNULL_PTR orig);
8929 public static native long SignedRawInvoice_clone(long orig);
8930 // uint64_t SignedRawInvoice_hash(const struct LDKSignedRawInvoice *NONNULL_PTR o);
8931 public static native long SignedRawInvoice_hash(long o);
8932 // void RawInvoice_free(struct LDKRawInvoice this_obj);
8933 public static native void RawInvoice_free(long this_obj);
8934 // struct LDKRawDataPart RawInvoice_get_data(const struct LDKRawInvoice *NONNULL_PTR this_ptr);
8935 public static native long RawInvoice_get_data(long this_ptr);
8936 // void RawInvoice_set_data(struct LDKRawInvoice *NONNULL_PTR this_ptr, struct LDKRawDataPart val);
8937 public static native void RawInvoice_set_data(long this_ptr, long val);
8938 // bool RawInvoice_eq(const struct LDKRawInvoice *NONNULL_PTR a, const struct LDKRawInvoice *NONNULL_PTR b);
8939 public static native boolean RawInvoice_eq(long a, long b);
8940 // uint64_t RawInvoice_clone_ptr(LDKRawInvoice *NONNULL_PTR arg);
8941 public static native long RawInvoice_clone_ptr(long arg);
8942 // struct LDKRawInvoice RawInvoice_clone(const struct LDKRawInvoice *NONNULL_PTR orig);
8943 public static native long RawInvoice_clone(long orig);
8944 // uint64_t RawInvoice_hash(const struct LDKRawInvoice *NONNULL_PTR o);
8945 public static native long RawInvoice_hash(long o);
8946 // void RawDataPart_free(struct LDKRawDataPart this_obj);
8947 public static native void RawDataPart_free(long this_obj);
8948 // struct LDKPositiveTimestamp RawDataPart_get_timestamp(const struct LDKRawDataPart *NONNULL_PTR this_ptr);
8949 public static native long RawDataPart_get_timestamp(long this_ptr);
8950 // void RawDataPart_set_timestamp(struct LDKRawDataPart *NONNULL_PTR this_ptr, struct LDKPositiveTimestamp val);
8951 public static native void RawDataPart_set_timestamp(long this_ptr, long val);
8952 // bool RawDataPart_eq(const struct LDKRawDataPart *NONNULL_PTR a, const struct LDKRawDataPart *NONNULL_PTR b);
8953 public static native boolean RawDataPart_eq(long a, long b);
8954 // uint64_t RawDataPart_clone_ptr(LDKRawDataPart *NONNULL_PTR arg);
8955 public static native long RawDataPart_clone_ptr(long arg);
8956 // struct LDKRawDataPart RawDataPart_clone(const struct LDKRawDataPart *NONNULL_PTR orig);
8957 public static native long RawDataPart_clone(long orig);
8958 // uint64_t RawDataPart_hash(const struct LDKRawDataPart *NONNULL_PTR o);
8959 public static native long RawDataPart_hash(long o);
8960 // void PositiveTimestamp_free(struct LDKPositiveTimestamp this_obj);
8961 public static native void PositiveTimestamp_free(long this_obj);
8962 // bool PositiveTimestamp_eq(const struct LDKPositiveTimestamp *NONNULL_PTR a, const struct LDKPositiveTimestamp *NONNULL_PTR b);
8963 public static native boolean PositiveTimestamp_eq(long a, long b);
8964 // uint64_t PositiveTimestamp_clone_ptr(LDKPositiveTimestamp *NONNULL_PTR arg);
8965 public static native long PositiveTimestamp_clone_ptr(long arg);
8966 // struct LDKPositiveTimestamp PositiveTimestamp_clone(const struct LDKPositiveTimestamp *NONNULL_PTR orig);
8967 public static native long PositiveTimestamp_clone(long orig);
8968 // uint64_t PositiveTimestamp_hash(const struct LDKPositiveTimestamp *NONNULL_PTR o);
8969 public static native long PositiveTimestamp_hash(long o);
8970 // enum LDKSiPrefix SiPrefix_clone(const enum LDKSiPrefix *NONNULL_PTR orig);
8971 public static native SiPrefix SiPrefix_clone(long orig);
8972 // enum LDKSiPrefix SiPrefix_milli(void);
8973 public static native SiPrefix SiPrefix_milli();
8974 // enum LDKSiPrefix SiPrefix_micro(void);
8975 public static native SiPrefix SiPrefix_micro();
8976 // enum LDKSiPrefix SiPrefix_nano(void);
8977 public static native SiPrefix SiPrefix_nano();
8978 // enum LDKSiPrefix SiPrefix_pico(void);
8979 public static native SiPrefix SiPrefix_pico();
8980 // bool SiPrefix_eq(const enum LDKSiPrefix *NONNULL_PTR a, const enum LDKSiPrefix *NONNULL_PTR b);
8981 public static native boolean SiPrefix_eq(long a, long b);
8982 // uint64_t SiPrefix_hash(const enum LDKSiPrefix *NONNULL_PTR o);
8983 public static native long SiPrefix_hash(long o);
8984 // MUST_USE_RES uint64_t SiPrefix_multiplier(const enum LDKSiPrefix *NONNULL_PTR this_arg);
8985 public static native long SiPrefix_multiplier(long this_arg);
8986 // enum LDKCurrency Currency_clone(const enum LDKCurrency *NONNULL_PTR orig);
8987 public static native Currency Currency_clone(long orig);
8988 // enum LDKCurrency Currency_bitcoin(void);
8989 public static native Currency Currency_bitcoin();
8990 // enum LDKCurrency Currency_bitcoin_testnet(void);
8991 public static native Currency Currency_bitcoin_testnet();
8992 // enum LDKCurrency Currency_regtest(void);
8993 public static native Currency Currency_regtest();
8994 // enum LDKCurrency Currency_simnet(void);
8995 public static native Currency Currency_simnet();
8996 // enum LDKCurrency Currency_signet(void);
8997 public static native Currency Currency_signet();
8998 // uint64_t Currency_hash(const enum LDKCurrency *NONNULL_PTR o);
8999 public static native long Currency_hash(long o);
9000 // bool Currency_eq(const enum LDKCurrency *NONNULL_PTR a, const enum LDKCurrency *NONNULL_PTR b);
9001 public static native boolean Currency_eq(long a, long b);
9002 // void Sha256_free(struct LDKSha256 this_obj);
9003 public static native void Sha256_free(long this_obj);
9004 // uint64_t Sha256_clone_ptr(LDKSha256 *NONNULL_PTR arg);
9005 public static native long Sha256_clone_ptr(long arg);
9006 // struct LDKSha256 Sha256_clone(const struct LDKSha256 *NONNULL_PTR orig);
9007 public static native long Sha256_clone(long orig);
9008 // uint64_t Sha256_hash(const struct LDKSha256 *NONNULL_PTR o);
9009 public static native long Sha256_hash(long o);
9010 // bool Sha256_eq(const struct LDKSha256 *NONNULL_PTR a, const struct LDKSha256 *NONNULL_PTR b);
9011 public static native boolean Sha256_eq(long a, long b);
9012 // void Description_free(struct LDKDescription this_obj);
9013 public static native void Description_free(long this_obj);
9014 // uint64_t Description_clone_ptr(LDKDescription *NONNULL_PTR arg);
9015 public static native long Description_clone_ptr(long arg);
9016 // struct LDKDescription Description_clone(const struct LDKDescription *NONNULL_PTR orig);
9017 public static native long Description_clone(long orig);
9018 // uint64_t Description_hash(const struct LDKDescription *NONNULL_PTR o);
9019 public static native long Description_hash(long o);
9020 // bool Description_eq(const struct LDKDescription *NONNULL_PTR a, const struct LDKDescription *NONNULL_PTR b);
9021 public static native boolean Description_eq(long a, long b);
9022 // void PayeePubKey_free(struct LDKPayeePubKey this_obj);
9023 public static native void PayeePubKey_free(long this_obj);
9024 // struct LDKPublicKey PayeePubKey_get_a(const struct LDKPayeePubKey *NONNULL_PTR this_ptr);
9025 public static native byte[] PayeePubKey_get_a(long this_ptr);
9026 // void PayeePubKey_set_a(struct LDKPayeePubKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
9027 public static native void PayeePubKey_set_a(long this_ptr, byte[] val);
9028 // MUST_USE_RES struct LDKPayeePubKey PayeePubKey_new(struct LDKPublicKey a_arg);
9029 public static native long PayeePubKey_new(byte[] a_arg);
9030 // uint64_t PayeePubKey_clone_ptr(LDKPayeePubKey *NONNULL_PTR arg);
9031 public static native long PayeePubKey_clone_ptr(long arg);
9032 // struct LDKPayeePubKey PayeePubKey_clone(const struct LDKPayeePubKey *NONNULL_PTR orig);
9033 public static native long PayeePubKey_clone(long orig);
9034 // uint64_t PayeePubKey_hash(const struct LDKPayeePubKey *NONNULL_PTR o);
9035 public static native long PayeePubKey_hash(long o);
9036 // bool PayeePubKey_eq(const struct LDKPayeePubKey *NONNULL_PTR a, const struct LDKPayeePubKey *NONNULL_PTR b);
9037 public static native boolean PayeePubKey_eq(long a, long b);
9038 // void ExpiryTime_free(struct LDKExpiryTime this_obj);
9039 public static native void ExpiryTime_free(long this_obj);
9040 // uint64_t ExpiryTime_clone_ptr(LDKExpiryTime *NONNULL_PTR arg);
9041 public static native long ExpiryTime_clone_ptr(long arg);
9042 // struct LDKExpiryTime ExpiryTime_clone(const struct LDKExpiryTime *NONNULL_PTR orig);
9043 public static native long ExpiryTime_clone(long orig);
9044 // uint64_t ExpiryTime_hash(const struct LDKExpiryTime *NONNULL_PTR o);
9045 public static native long ExpiryTime_hash(long o);
9046 // bool ExpiryTime_eq(const struct LDKExpiryTime *NONNULL_PTR a, const struct LDKExpiryTime *NONNULL_PTR b);
9047 public static native boolean ExpiryTime_eq(long a, long b);
9048 // void MinFinalCltvExpiryDelta_free(struct LDKMinFinalCltvExpiryDelta this_obj);
9049 public static native void MinFinalCltvExpiryDelta_free(long this_obj);
9050 // uint64_t MinFinalCltvExpiryDelta_get_a(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR this_ptr);
9051 public static native long MinFinalCltvExpiryDelta_get_a(long this_ptr);
9052 // void MinFinalCltvExpiryDelta_set_a(struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR this_ptr, uint64_t val);
9053 public static native void MinFinalCltvExpiryDelta_set_a(long this_ptr, long val);
9054 // MUST_USE_RES struct LDKMinFinalCltvExpiryDelta MinFinalCltvExpiryDelta_new(uint64_t a_arg);
9055 public static native long MinFinalCltvExpiryDelta_new(long a_arg);
9056 // uint64_t MinFinalCltvExpiryDelta_clone_ptr(LDKMinFinalCltvExpiryDelta *NONNULL_PTR arg);
9057 public static native long MinFinalCltvExpiryDelta_clone_ptr(long arg);
9058 // struct LDKMinFinalCltvExpiryDelta MinFinalCltvExpiryDelta_clone(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR orig);
9059 public static native long MinFinalCltvExpiryDelta_clone(long orig);
9060 // uint64_t MinFinalCltvExpiryDelta_hash(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR o);
9061 public static native long MinFinalCltvExpiryDelta_hash(long o);
9062 // bool MinFinalCltvExpiryDelta_eq(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR a, const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR b);
9063 public static native boolean MinFinalCltvExpiryDelta_eq(long a, long b);
9064 // void Fallback_free(struct LDKFallback this_ptr);
9065 public static native void Fallback_free(long this_ptr);
9066 // uint64_t Fallback_clone_ptr(LDKFallback *NONNULL_PTR arg);
9067 public static native long Fallback_clone_ptr(long arg);
9068 // struct LDKFallback Fallback_clone(const struct LDKFallback *NONNULL_PTR orig);
9069 public static native long Fallback_clone(long orig);
9070 // struct LDKFallback Fallback_seg_wit_program(struct LDKU5 version, struct LDKCVec_u8Z program);
9071 public static native long Fallback_seg_wit_program(byte version, byte[] program);
9072 // struct LDKFallback Fallback_pub_key_hash(struct LDKTwentyBytes a);
9073 public static native long Fallback_pub_key_hash(byte[] a);
9074 // struct LDKFallback Fallback_script_hash(struct LDKTwentyBytes a);
9075 public static native long Fallback_script_hash(byte[] a);
9076 // uint64_t Fallback_hash(const struct LDKFallback *NONNULL_PTR o);
9077 public static native long Fallback_hash(long o);
9078 // bool Fallback_eq(const struct LDKFallback *NONNULL_PTR a, const struct LDKFallback *NONNULL_PTR b);
9079 public static native boolean Fallback_eq(long a, long b);
9080 // void InvoiceSignature_free(struct LDKInvoiceSignature this_obj);
9081 public static native void InvoiceSignature_free(long this_obj);
9082 // uint64_t InvoiceSignature_clone_ptr(LDKInvoiceSignature *NONNULL_PTR arg);
9083 public static native long InvoiceSignature_clone_ptr(long arg);
9084 // struct LDKInvoiceSignature InvoiceSignature_clone(const struct LDKInvoiceSignature *NONNULL_PTR orig);
9085 public static native long InvoiceSignature_clone(long orig);
9086 // uint64_t InvoiceSignature_hash(const struct LDKInvoiceSignature *NONNULL_PTR o);
9087 public static native long InvoiceSignature_hash(long o);
9088 // bool InvoiceSignature_eq(const struct LDKInvoiceSignature *NONNULL_PTR a, const struct LDKInvoiceSignature *NONNULL_PTR b);
9089 public static native boolean InvoiceSignature_eq(long a, long b);
9090 // void PrivateRoute_free(struct LDKPrivateRoute this_obj);
9091 public static native void PrivateRoute_free(long this_obj);
9092 // uint64_t PrivateRoute_clone_ptr(LDKPrivateRoute *NONNULL_PTR arg);
9093 public static native long PrivateRoute_clone_ptr(long arg);
9094 // struct LDKPrivateRoute PrivateRoute_clone(const struct LDKPrivateRoute *NONNULL_PTR orig);
9095 public static native long PrivateRoute_clone(long orig);
9096 // uint64_t PrivateRoute_hash(const struct LDKPrivateRoute *NONNULL_PTR o);
9097 public static native long PrivateRoute_hash(long o);
9098 // bool PrivateRoute_eq(const struct LDKPrivateRoute *NONNULL_PTR a, const struct LDKPrivateRoute *NONNULL_PTR b);
9099 public static native boolean PrivateRoute_eq(long a, long b);
9100 // MUST_USE_RES struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ SignedRawInvoice_into_parts(struct LDKSignedRawInvoice this_arg);
9101 public static native long SignedRawInvoice_into_parts(long this_arg);
9102 // MUST_USE_RES struct LDKRawInvoice SignedRawInvoice_raw_invoice(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
9103 public static native long SignedRawInvoice_raw_invoice(long this_arg);
9104 // MUST_USE_RES const uint8_t (*SignedRawInvoice_signable_hash(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg))[32];
9105 public static native byte[] SignedRawInvoice_signable_hash(long this_arg);
9106 // MUST_USE_RES struct LDKInvoiceSignature SignedRawInvoice_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
9107 public static native long SignedRawInvoice_signature(long this_arg);
9108 // MUST_USE_RES struct LDKCResult_PayeePubKeyErrorZ SignedRawInvoice_recover_payee_pub_key(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
9109 public static native long SignedRawInvoice_recover_payee_pub_key(long this_arg);
9110 // MUST_USE_RES bool SignedRawInvoice_check_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
9111 public static native boolean SignedRawInvoice_check_signature(long this_arg);
9112 // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_signable_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
9113 public static native byte[] RawInvoice_signable_hash(long this_arg);
9114 // MUST_USE_RES struct LDKSha256 RawInvoice_payment_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
9115 public static native long RawInvoice_payment_hash(long this_arg);
9116 // MUST_USE_RES struct LDKDescription RawInvoice_description(const struct LDKRawInvoice *NONNULL_PTR this_arg);
9117 public static native long RawInvoice_description(long this_arg);
9118 // MUST_USE_RES struct LDKPayeePubKey RawInvoice_payee_pub_key(const struct LDKRawInvoice *NONNULL_PTR this_arg);
9119 public static native long RawInvoice_payee_pub_key(long this_arg);
9120 // MUST_USE_RES struct LDKSha256 RawInvoice_description_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
9121 public static native long RawInvoice_description_hash(long this_arg);
9122 // MUST_USE_RES struct LDKExpiryTime RawInvoice_expiry_time(const struct LDKRawInvoice *NONNULL_PTR this_arg);
9123 public static native long RawInvoice_expiry_time(long this_arg);
9124 // MUST_USE_RES struct LDKMinFinalCltvExpiryDelta RawInvoice_min_final_cltv_expiry_delta(const struct LDKRawInvoice *NONNULL_PTR this_arg);
9125 public static native long RawInvoice_min_final_cltv_expiry_delta(long this_arg);
9126 // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_payment_secret(const struct LDKRawInvoice *NONNULL_PTR this_arg);
9127 public static native byte[] RawInvoice_payment_secret(long this_arg);
9128 // MUST_USE_RES struct LDKInvoiceFeatures RawInvoice_features(const struct LDKRawInvoice *NONNULL_PTR this_arg);
9129 public static native long RawInvoice_features(long this_arg);
9130 // MUST_USE_RES struct LDKCVec_PrivateRouteZ RawInvoice_private_routes(const struct LDKRawInvoice *NONNULL_PTR this_arg);
9131 public static native long[] RawInvoice_private_routes(long this_arg);
9132 // MUST_USE_RES struct LDKCOption_u64Z RawInvoice_amount_pico_btc(const struct LDKRawInvoice *NONNULL_PTR this_arg);
9133 public static native long RawInvoice_amount_pico_btc(long this_arg);
9134 // MUST_USE_RES enum LDKCurrency RawInvoice_currency(const struct LDKRawInvoice *NONNULL_PTR this_arg);
9135 public static native Currency RawInvoice_currency(long this_arg);
9136 // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_unix_timestamp(uint64_t unix_seconds);
9137 public static native long PositiveTimestamp_from_unix_timestamp(long unix_seconds);
9138 // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_system_time(uint64_t time);
9139 public static native long PositiveTimestamp_from_system_time(long time);
9140 // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_duration_since_epoch(uint64_t duration);
9141 public static native long PositiveTimestamp_from_duration_since_epoch(long duration);
9142 // MUST_USE_RES uint64_t PositiveTimestamp_as_unix_timestamp(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
9143 public static native long PositiveTimestamp_as_unix_timestamp(long this_arg);
9144 // MUST_USE_RES uint64_t PositiveTimestamp_as_duration_since_epoch(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
9145 public static native long PositiveTimestamp_as_duration_since_epoch(long this_arg);
9146 // MUST_USE_RES uint64_t PositiveTimestamp_as_time(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
9147 public static native long PositiveTimestamp_as_time(long this_arg);
9148 // MUST_USE_RES struct LDKSignedRawInvoice Invoice_into_signed_raw(struct LDKInvoice this_arg);
9149 public static native long Invoice_into_signed_raw(long this_arg);
9150 // MUST_USE_RES struct LDKCResult_NoneSemanticErrorZ Invoice_check_signature(const struct LDKInvoice *NONNULL_PTR this_arg);
9151 public static native long Invoice_check_signature(long this_arg);
9152 // MUST_USE_RES struct LDKCResult_InvoiceSemanticErrorZ Invoice_from_signed(struct LDKSignedRawInvoice signed_invoice);
9153 public static native long Invoice_from_signed(long signed_invoice);
9154 // MUST_USE_RES uint64_t Invoice_timestamp(const struct LDKInvoice *NONNULL_PTR this_arg);
9155 public static native long Invoice_timestamp(long this_arg);
9156 // MUST_USE_RES uint64_t Invoice_duration_since_epoch(const struct LDKInvoice *NONNULL_PTR this_arg);
9157 public static native long Invoice_duration_since_epoch(long this_arg);
9158 // MUST_USE_RES const uint8_t (*Invoice_payment_hash(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
9159 public static native byte[] Invoice_payment_hash(long this_arg);
9160 // MUST_USE_RES struct LDKPublicKey Invoice_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
9161 public static native byte[] Invoice_payee_pub_key(long this_arg);
9162 // MUST_USE_RES const uint8_t (*Invoice_payment_secret(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
9163 public static native byte[] Invoice_payment_secret(long this_arg);
9164 // MUST_USE_RES struct LDKInvoiceFeatures Invoice_features(const struct LDKInvoice *NONNULL_PTR this_arg);
9165 public static native long Invoice_features(long this_arg);
9166 // MUST_USE_RES struct LDKPublicKey Invoice_recover_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
9167 public static native byte[] Invoice_recover_payee_pub_key(long this_arg);
9168 // MUST_USE_RES uint64_t Invoice_expiry_time(const struct LDKInvoice *NONNULL_PTR this_arg);
9169 public static native long Invoice_expiry_time(long this_arg);
9170 // MUST_USE_RES bool Invoice_is_expired(const struct LDKInvoice *NONNULL_PTR this_arg);
9171 public static native boolean Invoice_is_expired(long this_arg);
9172 // MUST_USE_RES bool Invoice_would_expire(const struct LDKInvoice *NONNULL_PTR this_arg, uint64_t at_time);
9173 public static native boolean Invoice_would_expire(long this_arg, long at_time);
9174 // MUST_USE_RES uint64_t Invoice_min_final_cltv_expiry_delta(const struct LDKInvoice *NONNULL_PTR this_arg);
9175 public static native long Invoice_min_final_cltv_expiry_delta(long this_arg);
9176 // MUST_USE_RES struct LDKCVec_PrivateRouteZ Invoice_private_routes(const struct LDKInvoice *NONNULL_PTR this_arg);
9177 public static native long[] Invoice_private_routes(long this_arg);
9178 // MUST_USE_RES struct LDKCVec_RouteHintZ Invoice_route_hints(const struct LDKInvoice *NONNULL_PTR this_arg);
9179 public static native long[] Invoice_route_hints(long this_arg);
9180 // MUST_USE_RES enum LDKCurrency Invoice_currency(const struct LDKInvoice *NONNULL_PTR this_arg);
9181 public static native Currency Invoice_currency(long this_arg);
9182 // MUST_USE_RES struct LDKCOption_u64Z Invoice_amount_milli_satoshis(const struct LDKInvoice *NONNULL_PTR this_arg);
9183 public static native long Invoice_amount_milli_satoshis(long this_arg);
9184 // MUST_USE_RES struct LDKCResult_DescriptionCreationErrorZ Description_new(struct LDKStr description);
9185 public static native long Description_new(String description);
9186 // MUST_USE_RES struct LDKStr Description_into_inner(struct LDKDescription this_arg);
9187 public static native String Description_into_inner(long this_arg);
9188 // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_seconds(uint64_t seconds);
9189 public static native long ExpiryTime_from_seconds(long seconds);
9190 // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_duration(uint64_t duration);
9191 public static native long ExpiryTime_from_duration(long duration);
9192 // MUST_USE_RES uint64_t ExpiryTime_as_seconds(const struct LDKExpiryTime *NONNULL_PTR this_arg);
9193 public static native long ExpiryTime_as_seconds(long this_arg);
9194 // MUST_USE_RES uint64_t ExpiryTime_as_duration(const struct LDKExpiryTime *NONNULL_PTR this_arg);
9195 public static native long ExpiryTime_as_duration(long this_arg);
9196 // MUST_USE_RES struct LDKCResult_PrivateRouteCreationErrorZ PrivateRoute_new(struct LDKRouteHint hops);
9197 public static native long PrivateRoute_new(long hops);
9198 // MUST_USE_RES struct LDKRouteHint PrivateRoute_into_inner(struct LDKPrivateRoute this_arg);
9199 public static native long PrivateRoute_into_inner(long this_arg);
9200 // enum LDKCreationError CreationError_clone(const enum LDKCreationError *NONNULL_PTR orig);
9201 public static native CreationError CreationError_clone(long orig);
9202 // enum LDKCreationError CreationError_description_too_long(void);
9203 public static native CreationError CreationError_description_too_long();
9204 // enum LDKCreationError CreationError_route_too_long(void);
9205 public static native CreationError CreationError_route_too_long();
9206 // enum LDKCreationError CreationError_timestamp_out_of_bounds(void);
9207 public static native CreationError CreationError_timestamp_out_of_bounds();
9208 // enum LDKCreationError CreationError_invalid_amount(void);
9209 public static native CreationError CreationError_invalid_amount();
9210 // enum LDKCreationError CreationError_missing_route_hints(void);
9211 public static native CreationError CreationError_missing_route_hints();
9212 // enum LDKCreationError CreationError_min_final_cltv_expiry_delta_too_short(void);
9213 public static native CreationError CreationError_min_final_cltv_expiry_delta_too_short();
9214 // bool CreationError_eq(const enum LDKCreationError *NONNULL_PTR a, const enum LDKCreationError *NONNULL_PTR b);
9215 public static native boolean CreationError_eq(long a, long b);
9216 // struct LDKStr CreationError_to_str(const enum LDKCreationError *NONNULL_PTR o);
9217 public static native String CreationError_to_str(long o);
9218 // enum LDKSemanticError SemanticError_clone(const enum LDKSemanticError *NONNULL_PTR orig);
9219 public static native SemanticError SemanticError_clone(long orig);
9220 // enum LDKSemanticError SemanticError_no_payment_hash(void);
9221 public static native SemanticError SemanticError_no_payment_hash();
9222 // enum LDKSemanticError SemanticError_multiple_payment_hashes(void);
9223 public static native SemanticError SemanticError_multiple_payment_hashes();
9224 // enum LDKSemanticError SemanticError_no_description(void);
9225 public static native SemanticError SemanticError_no_description();
9226 // enum LDKSemanticError SemanticError_multiple_descriptions(void);
9227 public static native SemanticError SemanticError_multiple_descriptions();
9228 // enum LDKSemanticError SemanticError_no_payment_secret(void);
9229 public static native SemanticError SemanticError_no_payment_secret();
9230 // enum LDKSemanticError SemanticError_multiple_payment_secrets(void);
9231 public static native SemanticError SemanticError_multiple_payment_secrets();
9232 // enum LDKSemanticError SemanticError_invalid_features(void);
9233 public static native SemanticError SemanticError_invalid_features();
9234 // enum LDKSemanticError SemanticError_invalid_recovery_id(void);
9235 public static native SemanticError SemanticError_invalid_recovery_id();
9236 // enum LDKSemanticError SemanticError_invalid_signature(void);
9237 public static native SemanticError SemanticError_invalid_signature();
9238 // enum LDKSemanticError SemanticError_imprecise_amount(void);
9239 public static native SemanticError SemanticError_imprecise_amount();
9240 // bool SemanticError_eq(const enum LDKSemanticError *NONNULL_PTR a, const enum LDKSemanticError *NONNULL_PTR b);
9241 public static native boolean SemanticError_eq(long a, long b);
9242 // struct LDKStr SemanticError_to_str(const enum LDKSemanticError *NONNULL_PTR o);
9243 public static native String SemanticError_to_str(long o);
9244 // void SignOrCreationError_free(struct LDKSignOrCreationError this_ptr);
9245 public static native void SignOrCreationError_free(long this_ptr);
9246 // uint64_t SignOrCreationError_clone_ptr(LDKSignOrCreationError *NONNULL_PTR arg);
9247 public static native long SignOrCreationError_clone_ptr(long arg);
9248 // struct LDKSignOrCreationError SignOrCreationError_clone(const struct LDKSignOrCreationError *NONNULL_PTR orig);
9249 public static native long SignOrCreationError_clone(long orig);
9250 // struct LDKSignOrCreationError SignOrCreationError_sign_error(void);
9251 public static native long SignOrCreationError_sign_error();
9252 // struct LDKSignOrCreationError SignOrCreationError_creation_error(enum LDKCreationError a);
9253 public static native long SignOrCreationError_creation_error(CreationError a);
9254 // bool SignOrCreationError_eq(const struct LDKSignOrCreationError *NONNULL_PTR a, const struct LDKSignOrCreationError *NONNULL_PTR b);
9255 public static native boolean SignOrCreationError_eq(long a, long b);
9256 // struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NONNULL_PTR o);
9257 public static native String SignOrCreationError_to_str(long o);
9258 // struct LDKCResult_PaymentIdPaymentErrorZ pay_invoice(const struct LDKInvoice *NONNULL_PTR invoice, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
9259 public static native long pay_invoice(long invoice, long retry_strategy, long channelmanager);
9260 // struct LDKCResult_NonePaymentErrorZ pay_invoice_with_id(const struct LDKInvoice *NONNULL_PTR invoice, struct LDKThirtyTwoBytes payment_id, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
9261 public static native long pay_invoice_with_id(long invoice, byte[] payment_id, long retry_strategy, long channelmanager);
9262 // struct LDKCResult_PaymentIdPaymentErrorZ pay_zero_value_invoice(const struct LDKInvoice *NONNULL_PTR invoice, uint64_t amount_msats, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
9263 public static native long pay_zero_value_invoice(long invoice, long amount_msats, long retry_strategy, long channelmanager);
9264 // struct LDKCResult_NonePaymentErrorZ pay_zero_value_invoice_with_id(const struct LDKInvoice *NONNULL_PTR invoice, uint64_t amount_msats, struct LDKThirtyTwoBytes payment_id, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
9265 public static native long pay_zero_value_invoice_with_id(long invoice, long amount_msats, byte[] payment_id, long retry_strategy, long channelmanager);
9266 // void PaymentError_free(struct LDKPaymentError this_ptr);
9267 public static native void PaymentError_free(long this_ptr);
9268 // uint64_t PaymentError_clone_ptr(LDKPaymentError *NONNULL_PTR arg);
9269 public static native long PaymentError_clone_ptr(long arg);
9270 // struct LDKPaymentError PaymentError_clone(const struct LDKPaymentError *NONNULL_PTR orig);
9271 public static native long PaymentError_clone(long orig);
9272 // struct LDKPaymentError PaymentError_invoice(struct LDKStr a);
9273 public static native long PaymentError_invoice(String a);
9274 // struct LDKPaymentError PaymentError_sending(enum LDKRetryableSendFailure a);
9275 public static native long PaymentError_sending(RetryableSendFailure a);
9276 // struct LDKCResult_InvoiceSignOrCreationErrorZ create_phantom_invoice(struct LDKCOption_u64Z amt_msat, struct LDKThirtyTwoBytes payment_hash, struct LDKStr description, uint32_t invoice_expiry_delta_secs, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct 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);
9277 public static native long create_phantom_invoice(long amt_msat, byte[] payment_hash, String description, int invoice_expiry_delta_secs, long[] phantom_route_hints, long entropy_source, long node_signer, long logger, Currency network, long min_final_cltv_expiry_delta, long duration_since_epoch);
9278 // struct LDKCResult_InvoiceSignOrCreationErrorZ create_phantom_invoice_with_description_hash(struct LDKCOption_u64Z amt_msat, struct LDKThirtyTwoBytes payment_hash, uint32_t invoice_expiry_delta_secs, struct LDKSha256 description_hash, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct 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);
9279 public static native long create_phantom_invoice_with_description_hash(long amt_msat, byte[] payment_hash, int invoice_expiry_delta_secs, long description_hash, long[] phantom_route_hints, long entropy_source, long node_signer, long logger, Currency network, long min_final_cltv_expiry_delta, long duration_since_epoch);
9280 // struct LDKCResult_InvoiceSignOrCreationErrorZ 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);
9281 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);
9282 // struct LDKCResult_InvoiceSignOrCreationErrorZ 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);
9283 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);
9284 // struct LDKCResult_InvoiceSignOrCreationErrorZ 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);
9285 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);
9286 // struct LDKCResult_InvoiceSignOrCreationErrorZ 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);
9287 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);
9288 // struct LDKCResult_InvoiceSignOrCreationErrorZ 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);
9289 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);
9290 // struct LDKCResult_SiPrefixParseErrorZ SiPrefix_from_str(struct LDKStr s);
9291 public static native long SiPrefix_from_str(String s);
9292 // struct LDKCResult_InvoiceParseOrSemanticErrorZ Invoice_from_str(struct LDKStr s);
9293 public static native long Invoice_from_str(String s);
9294 // struct LDKCResult_SignedRawInvoiceParseErrorZ SignedRawInvoice_from_str(struct LDKStr s);
9295 public static native long SignedRawInvoice_from_str(String s);
9296 // struct LDKStr ParseError_to_str(const struct LDKParseError *NONNULL_PTR o);
9297 public static native String ParseError_to_str(long o);
9298 // struct LDKStr ParseOrSemanticError_to_str(const struct LDKParseOrSemanticError *NONNULL_PTR o);
9299 public static native String ParseOrSemanticError_to_str(long o);
9300 // struct LDKStr Invoice_to_str(const struct LDKInvoice *NONNULL_PTR o);
9301 public static native String Invoice_to_str(long o);
9302 // struct LDKStr SignedRawInvoice_to_str(const struct LDKSignedRawInvoice *NONNULL_PTR o);
9303 public static native String SignedRawInvoice_to_str(long o);
9304 // struct LDKStr Currency_to_str(const enum LDKCurrency *NONNULL_PTR o);
9305 public static native String Currency_to_str(long o);
9306 // struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o);
9307 public static native String SiPrefix_to_str(long o);
9308 // void RapidGossipSync_free(struct LDKRapidGossipSync this_obj);
9309 public static native void RapidGossipSync_free(long this_obj);
9310 // MUST_USE_RES struct LDKRapidGossipSync RapidGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
9311 public static native long RapidGossipSync_new(long network_graph, long logger);
9312 // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_update_network_graph(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKu8slice update_data);
9313 public static native long RapidGossipSync_update_network_graph(long this_arg, byte[] update_data);
9314 // 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);
9315 public static native long RapidGossipSync_update_network_graph_no_std(long this_arg, byte[] update_data, long current_time_unix);
9316 // MUST_USE_RES bool RapidGossipSync_is_initial_sync_complete(const struct LDKRapidGossipSync *NONNULL_PTR this_arg);
9317 public static native boolean RapidGossipSync_is_initial_sync_complete(long this_arg);
9318 // void GraphSyncError_free(struct LDKGraphSyncError this_ptr);
9319 public static native void GraphSyncError_free(long this_ptr);
9320 // uint64_t GraphSyncError_clone_ptr(LDKGraphSyncError *NONNULL_PTR arg);
9321 public static native long GraphSyncError_clone_ptr(long arg);
9322 // struct LDKGraphSyncError GraphSyncError_clone(const struct LDKGraphSyncError *NONNULL_PTR orig);
9323 public static native long GraphSyncError_clone(long orig);
9324 // struct LDKGraphSyncError GraphSyncError_decode_error(struct LDKDecodeError a);
9325 public static native long GraphSyncError_decode_error(long a);
9326 // struct LDKGraphSyncError GraphSyncError_lightning_error(struct LDKLightningError a);
9327 public static native long GraphSyncError_lightning_error(long a);