3 public class bindings {
5 System.loadLibrary("lightning");
8 /// extern const void (*C2Tuple_OutPointScriptZ_free)(LDKC2Tuple_OutPointScriptZ);
9 public static native void C2TupleOutPointScriptZfree(long arg);
10 /// extern const void (*C2Tuple_Scriptu64Z_free)(LDKC2Tuple_Scriptu64Z);
11 public static native void C2TupleScriptu64Zfree(long arg);
12 /// extern const void (*C2Tuple_SecretKey_u832Z_free)(LDKC2Tuple_SecretKey_u832Z);
13 public static native void C2TupleSecretKeyu832Zfree(long arg);
14 /// extern const void (*C2Tuple_SignatureCVec_SignatureZZ_free)(LDKC2Tuple_SignatureCVec_SignatureZZ);
15 public static native void C2TupleSignatureCVecSignatureZZfree(long arg);
16 /// extern const void (*C2Tuple_Txidu32Z_free)(LDKC2Tuple_Txidu32Z);
17 public static native void C2TupleTxidu32Zfree(long arg);
18 /// extern const void (*C2Tuple_u64u64Z_free)(LDKC2Tuple_u64u64Z);
19 public static native void C2Tupleu64u64Zfree(long arg);
20 /// extern const void (*C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free)(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ);
21 public static native void C3TupleChannelAnnouncementChannelUpdateChannelUpdateZfree(long arg);
22 /// extern const LDKCResult_C2Tuple_Scriptu64ZChainErrorZ (*CResult_C2Tuple_Scriptu64ZChainErrorZ_err)(LDKChainError);
23 public static native long CResultC2TupleScriptu64ZChainErrorZerr(long arg);
24 /// extern const void (*CResult_C2Tuple_Scriptu64ZChainErrorZ_free)(LDKCResult_C2Tuple_Scriptu64ZChainErrorZ);
25 public static native void CResultC2TupleScriptu64ZChainErrorZfree(long arg);
26 /// extern const LDKCResult_C2Tuple_Scriptu64ZChainErrorZ (*CResult_C2Tuple_Scriptu64ZChainErrorZ_good)(LDKC2Tuple_Scriptu64Z);
27 public static native long CResultC2TupleScriptu64ZChainErrorZgood(long arg);
28 /// extern const void (*CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free)(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ);
29 public static native void CResultC2TupleSignatureCVecSignatureZZNoneZfree(long arg);
30 /// extern const LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ (*CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_good)(LDKC2Tuple_SignatureCVec_SignatureZZ);
31 public static native long CResultC2TupleSignatureCVecSignatureZZNoneZgood(long arg);
32 /// extern const void (*CResult_CVec_SignatureZNoneZ_free)(LDKCResult_CVec_SignatureZNoneZ);
33 public static native void CResultCVecSignatureZNoneZfree(long arg);
34 /// extern const LDKCResult_CVec_SignatureZNoneZ (*CResult_CVec_SignatureZNoneZ_good)(LDKCVec_SignatureZ);
35 public static native long CResultCVecSignatureZNoneZgood(long arg);
36 /// extern const LDKCResult_CVec_u8ZPeerHandleErrorZ (*CResult_CVec_u8ZPeerHandleErrorZ_err)(LDKPeerHandleError);
37 public static native long CResultCVecu8ZPeerHandleErrorZerr(long arg);
38 /// extern const void (*CResult_CVec_u8ZPeerHandleErrorZ_free)(LDKCResult_CVec_u8ZPeerHandleErrorZ);
39 public static native void CResultCVecu8ZPeerHandleErrorZfree(long arg);
40 /// extern const LDKCResult_CVec_u8ZPeerHandleErrorZ (*CResult_CVec_u8ZPeerHandleErrorZ_good)(LDKCVec_u8Z);
41 public static native long CResultCVecu8ZPeerHandleErrorZgood(long arg);
42 /// extern const LDKCResult_NoneAPIErrorZ (*CResult_NoneAPIErrorZ_err)(LDKAPIError);
43 public static native long CResultNoneAPIErrorZerr(long arg);
44 /// extern const void (*CResult_NoneAPIErrorZ_free)(LDKCResult_NoneAPIErrorZ);
45 public static native void CResultNoneAPIErrorZfree(long arg);
46 /// extern const LDKCResult_NoneChannelMonitorUpdateErrZ (*CResult_NoneChannelMonitorUpdateErrZ_err)(LDKChannelMonitorUpdateErr);
47 public static native long CResultNoneChannelMonitorUpdateErrZerr(long arg);
48 /// extern const void (*CResult_NoneChannelMonitorUpdateErrZ_free)(LDKCResult_NoneChannelMonitorUpdateErrZ);
49 public static native void CResultNoneChannelMonitorUpdateErrZfree(long arg);
50 /// extern const LDKCResult_NoneMonitorUpdateErrorZ (*CResult_NoneMonitorUpdateErrorZ_err)(LDKMonitorUpdateError);
51 public static native long CResultNoneMonitorUpdateErrorZerr(long arg);
52 /// extern const void (*CResult_NoneMonitorUpdateErrorZ_free)(LDKCResult_NoneMonitorUpdateErrorZ);
53 public static native void CResultNoneMonitorUpdateErrorZfree(long arg);
54 /// extern const LDKCResult_NonePaymentSendFailureZ (*CResult_NonePaymentSendFailureZ_err)(LDKPaymentSendFailure);
55 public static native long CResultNonePaymentSendFailureZerr(long arg);
56 /// extern const void (*CResult_NonePaymentSendFailureZ_free)(LDKCResult_NonePaymentSendFailureZ);
57 public static native void CResultNonePaymentSendFailureZfree(long arg);
58 /// extern const LDKCResult_NonePeerHandleErrorZ (*CResult_NonePeerHandleErrorZ_err)(LDKPeerHandleError);
59 public static native long CResultNonePeerHandleErrorZerr(long arg);
60 /// extern const void (*CResult_NonePeerHandleErrorZ_free)(LDKCResult_NonePeerHandleErrorZ);
61 public static native void CResultNonePeerHandleErrorZfree(long arg);
62 /// extern const LDKCResult_RouteLightningErrorZ (*CResult_RouteLightningErrorZ_err)(LDKLightningError);
63 public static native long CResultRouteLightningErrorZerr(long arg);
64 /// extern const void (*CResult_RouteLightningErrorZ_free)(LDKCResult_RouteLightningErrorZ);
65 public static native void CResultRouteLightningErrorZfree(long arg);
66 /// extern const LDKCResult_RouteLightningErrorZ (*CResult_RouteLightningErrorZ_good)(LDKRoute);
67 public static native long CResultRouteLightningErrorZgood(long arg);
68 /// extern const void (*CResult_SignatureNoneZ_free)(LDKCResult_SignatureNoneZ);
69 public static native void CResultSignatureNoneZfree(long arg);
70 /// extern const LDKCResult_SignatureNoneZ (*CResult_SignatureNoneZ_good)(LDKSignature);
71 public static native long CResultSignatureNoneZgood(long arg);
72 /// extern const LDKCResult_boolLightningErrorZ (*CResult_boolLightningErrorZ_err)(LDKLightningError);
73 public static native long CResultboolLightningErrorZerr(long arg);
74 /// extern const void (*CResult_boolLightningErrorZ_free)(LDKCResult_boolLightningErrorZ);
75 public static native void CResultboolLightningErrorZfree(long arg);
76 /// extern const LDKCResult_boolLightningErrorZ (*CResult_boolLightningErrorZ_good)(bool);
77 public static native long CResultboolLightningErrorZgood(boolean arg);
78 /// extern const LDKCResult_boolPeerHandleErrorZ (*CResult_boolPeerHandleErrorZ_err)(LDKPeerHandleError);
79 public static native long CResultboolPeerHandleErrorZerr(long arg);
80 /// extern const void (*CResult_boolPeerHandleErrorZ_free)(LDKCResult_boolPeerHandleErrorZ);
81 public static native void CResultboolPeerHandleErrorZfree(long arg);
82 /// extern const LDKCResult_boolPeerHandleErrorZ (*CResult_boolPeerHandleErrorZ_good)(bool);
83 public static native long CResultboolPeerHandleErrorZgood(boolean arg);
84 /// extern const void (*CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free)(LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ);
85 public static native void CVecC3TupleChannelAnnouncementChannelUpdateChannelUpdateZZfree(long arg);
86 /// extern const void (*CVec_CVec_RouteHopZZ_free)(LDKCVec_CVec_RouteHopZZ);
87 public static native void CVecCVecRouteHopZZfree(long arg);
88 /// extern const void (*CVec_ChannelDetailsZ_free)(LDKCVec_ChannelDetailsZ);
89 public static native void CVecChannelDetailsZfree(long arg);
90 /// extern const void (*CVec_EventZ_free)(LDKCVec_EventZ);
91 public static native void CVecEventZfree(long arg);
92 /// extern const void (*CVec_HTLCUpdateZ_free)(LDKCVec_HTLCUpdateZ);
93 public static native void CVecHTLCUpdateZfree(long arg);
94 /// extern const void (*CVec_MessageSendEventZ_free)(LDKCVec_MessageSendEventZ);
95 public static native void CVecMessageSendEventZfree(long arg);
96 /// extern const void (*CVec_NetAddressZ_free)(LDKCVec_NetAddressZ);
97 public static native void CVecNetAddressZfree(long arg);
98 /// extern const void (*CVec_NodeAnnouncementZ_free)(LDKCVec_NodeAnnouncementZ);
99 public static native void CVecNodeAnnouncementZfree(long arg);
100 /// extern const void (*CVec_PublicKeyZ_free)(LDKCVec_PublicKeyZ);
101 public static native void CVecPublicKeyZfree(long arg);
102 /// extern const void (*CVec_RouteHopZ_free)(LDKCVec_RouteHopZ);
103 public static native void CVecRouteHopZfree(long arg);
104 /// extern const void (*CVec_SignatureZ_free)(LDKCVec_SignatureZ);
105 public static native void CVecSignatureZfree(long arg);
106 /// extern const void (*CVec_SpendableOutputDescriptorZ_free)(LDKCVec_SpendableOutputDescriptorZ);
107 public static native void CVecSpendableOutputDescriptorZfree(long arg);
108 /// extern const void (*CVec_TransactionZ_free)(LDKCVec_TransactionZ);
109 public static native void CVecTransactionZfree(long arg);
110 /// extern const void (*CVec_UpdateAddHTLCZ_free)(LDKCVec_UpdateAddHTLCZ);
111 public static native void CVecUpdateAddHTLCZfree(long arg);
112 /// extern const void (*CVec_UpdateFailHTLCZ_free)(LDKCVec_UpdateFailHTLCZ);
113 public static native void CVecUpdateFailHTLCZfree(long arg);
114 /// extern const void (*CVec_UpdateFailMalformedHTLCZ_free)(LDKCVec_UpdateFailMalformedHTLCZ);
115 public static native void CVecUpdateFailMalformedHTLCZfree(long arg);
116 /// extern const void (*CVec_UpdateFulfillHTLCZ_free)(LDKCVec_UpdateFulfillHTLCZ);
117 public static native void CVecUpdateFulfillHTLCZfree(long arg);
118 /// extern const void (*CVec_u64Z_free)(LDKCVec_u64Z);
119 public static native void CVecu64Zfree(long arg);
120 /// extern const void (*CVec_u8Z_free)(LDKCVec_u8Z);
121 public static native void CVecu8Zfree(long arg);
122 /// extern const void (*CVec_usizeZ_free)(LDKCVec_usizeZ);
123 public static native void CVecusizeZfree(long arg);
124 /// LDKC2Tuple_Txidu32Z C2Tuple_Txidu32Z_new(LDKThirtyTwoBytes a, uint32_t b);
125 public static native long C2TupleTxidu32Znew(long a, int b);
126 /// LDKC2Tuple_Scriptu64Z C2Tuple_Scriptu64Z_new(LDKCVec_u8Z a, uint64_t b);
127 public static native long C2TupleScriptu64Znew(long a, long b);
128 /// LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_new(uint64_t a, uint64_t b);
129 public static native long C2Tupleu64u64Znew(long a, long b);
130 /// LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(LDKSignature a, LDKCVec_SignatureZ b);
131 public static native long C2TupleSignatureCVecSignatureZZnew(long a, long b);
132 /// LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void);
133 public static native long CResultC2TupleSignatureCVecSignatureZZNoneZerr();
134 /// LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void);
135 public static native long CResultSignatureNoneZerr();
136 /// LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_err(void);
137 public static native long CResultCVecSignatureZNoneZerr();
138 /// LDKC2Tuple_SecretKey_u832Z C2Tuple_SecretKey_u832Z_new(LDKSecretKey a, LDKThirtyTwoBytes b);
139 public static native long C2TupleSecretKeyu832Znew(long a, long b);
140 /// LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_good(void);
141 public static native long CResultNoneAPIErrorZgood();
142 /// LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_good(void);
143 public static native long CResultNonePaymentSendFailureZgood();
144 /// LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_good(void);
145 public static native long CResultNoneChannelMonitorUpdateErrZgood();
146 /// LDKCResult_NoneMonitorUpdateErrorZ CResult_NoneMonitorUpdateErrorZ_good(void);
147 public static native long CResultNoneMonitorUpdateErrorZgood();
148 /// LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(LDKOutPoint a, LDKCVec_u8Z b);
149 public static native long C2TupleOutPointScriptZnew(long a, long b);
150 /// LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(LDKChannelAnnouncement a, LDKChannelUpdate b, LDKChannelUpdate c);
151 public static native long C3TupleChannelAnnouncementChannelUpdateChannelUpdateZnew(long a, long b, long c);
152 /// LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_good(void);
153 public static native long CResultNonePeerHandleErrorZgood();
154 /// void Event_free(LDKEvent this_ptr);
155 public static native void Eventfree(long this_ptr);
156 /// void MessageSendEvent_free(LDKMessageSendEvent this_ptr);
157 public static native void MessageSendEventfree(long this_ptr);
158 /// void MessageSendEventsProvider_free(LDKMessageSendEventsProvider this_ptr);
159 public static native void MessageSendEventsProviderfree(long this_ptr);
160 /// void EventsProvider_free(LDKEventsProvider this_ptr);
161 public static native void EventsProviderfree(long this_ptr);
162 /// void APIError_free(LDKAPIError this_ptr);
163 public static native void APIErrorfree(long this_ptr);
164 /// MUST_USE_RES LDKLevel Level_max(void);
165 public static native long Levelmax();
166 /// void Logger_free(LDKLogger this_ptr);
167 public static native void Loggerfree(long this_ptr);
168 /// void ChannelHandshakeConfig_free(LDKChannelHandshakeConfig this_ptr);
169 public static native void ChannelHandshakeConfigfree(long this_ptr);
170 /// uint32_t ChannelHandshakeConfig_get_minimum_depth(const LDKChannelHandshakeConfig *this_ptr);
171 public static native int ChannelHandshakeConfiggetminimumdepth(long this_ptr);
172 /// void ChannelHandshakeConfig_set_minimum_depth(LDKChannelHandshakeConfig *this_ptr, uint32_t val);
173 public static native void ChannelHandshakeConfigsetminimumdepth(long this_ptr, int val);
174 /// uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const LDKChannelHandshakeConfig *this_ptr);
175 public static native long ChannelHandshakeConfiggetourtoselfdelay(long this_ptr);
176 /// void ChannelHandshakeConfig_set_our_to_self_delay(LDKChannelHandshakeConfig *this_ptr, uint16_t val);
177 public static native void ChannelHandshakeConfigsetourtoselfdelay(long this_ptr, long val);
178 /// uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const LDKChannelHandshakeConfig *this_ptr);
179 public static native long ChannelHandshakeConfiggetourhtlcminimummsat(long this_ptr);
180 /// void ChannelHandshakeConfig_set_our_htlc_minimum_msat(LDKChannelHandshakeConfig *this_ptr, uint64_t val);
181 public static native void ChannelHandshakeConfigsetourhtlcminimummsat(long this_ptr, long val);
182 /// MUST_USE_RES LDKChannelHandshakeConfig ChannelHandshakeConfig_new(uint32_t minimum_depth_arg, uint16_t our_to_self_delay_arg, uint64_t our_htlc_minimum_msat_arg);
183 public static native long ChannelHandshakeConfignew(int minimum_depth_arg, long our_to_self_delay_arg, long our_htlc_minimum_msat_arg);
184 /// MUST_USE_RES LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
185 public static native long ChannelHandshakeConfigdefault();
186 /// void ChannelHandshakeLimits_free(LDKChannelHandshakeLimits this_ptr);
187 public static native void ChannelHandshakeLimitsfree(long this_ptr);
188 /// uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const LDKChannelHandshakeLimits *this_ptr);
189 public static native long ChannelHandshakeLimitsgetminfundingsatoshis(long this_ptr);
190 /// void ChannelHandshakeLimits_set_min_funding_satoshis(LDKChannelHandshakeLimits *this_ptr, uint64_t val);
191 public static native void ChannelHandshakeLimitssetminfundingsatoshis(long this_ptr, long val);
192 /// uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const LDKChannelHandshakeLimits *this_ptr);
193 public static native long ChannelHandshakeLimitsgetmaxhtlcminimummsat(long this_ptr);
194 /// void ChannelHandshakeLimits_set_max_htlc_minimum_msat(LDKChannelHandshakeLimits *this_ptr, uint64_t val);
195 public static native void ChannelHandshakeLimitssetmaxhtlcminimummsat(long this_ptr, long val);
196 /// uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const LDKChannelHandshakeLimits *this_ptr);
197 public static native long ChannelHandshakeLimitsgetminmaxhtlcvalueinflightmsat(long this_ptr);
198 /// void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(LDKChannelHandshakeLimits *this_ptr, uint64_t val);
199 public static native void ChannelHandshakeLimitssetminmaxhtlcvalueinflightmsat(long this_ptr, long val);
200 /// uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const LDKChannelHandshakeLimits *this_ptr);
201 public static native long ChannelHandshakeLimitsgetmaxchannelreservesatoshis(long this_ptr);
202 /// void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(LDKChannelHandshakeLimits *this_ptr, uint64_t val);
203 public static native void ChannelHandshakeLimitssetmaxchannelreservesatoshis(long this_ptr, long val);
204 /// uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const LDKChannelHandshakeLimits *this_ptr);
205 public static native long ChannelHandshakeLimitsgetminmaxacceptedhtlcs(long this_ptr);
206 /// void ChannelHandshakeLimits_set_min_max_accepted_htlcs(LDKChannelHandshakeLimits *this_ptr, uint16_t val);
207 public static native void ChannelHandshakeLimitssetminmaxacceptedhtlcs(long this_ptr, long val);
208 /// uint64_t ChannelHandshakeLimits_get_min_dust_limit_satoshis(const LDKChannelHandshakeLimits *this_ptr);
209 public static native long ChannelHandshakeLimitsgetmindustlimitsatoshis(long this_ptr);
210 /// void ChannelHandshakeLimits_set_min_dust_limit_satoshis(LDKChannelHandshakeLimits *this_ptr, uint64_t val);
211 public static native void ChannelHandshakeLimitssetmindustlimitsatoshis(long this_ptr, long val);
212 /// uint64_t ChannelHandshakeLimits_get_max_dust_limit_satoshis(const LDKChannelHandshakeLimits *this_ptr);
213 public static native long ChannelHandshakeLimitsgetmaxdustlimitsatoshis(long this_ptr);
214 /// void ChannelHandshakeLimits_set_max_dust_limit_satoshis(LDKChannelHandshakeLimits *this_ptr, uint64_t val);
215 public static native void ChannelHandshakeLimitssetmaxdustlimitsatoshis(long this_ptr, long val);
216 /// uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const LDKChannelHandshakeLimits *this_ptr);
217 public static native int ChannelHandshakeLimitsgetmaxminimumdepth(long this_ptr);
218 /// void ChannelHandshakeLimits_set_max_minimum_depth(LDKChannelHandshakeLimits *this_ptr, uint32_t val);
219 public static native void ChannelHandshakeLimitssetmaxminimumdepth(long this_ptr, int val);
220 /// bool ChannelHandshakeLimits_get_force_announced_channel_preference(const LDKChannelHandshakeLimits *this_ptr);
221 public static native boolean ChannelHandshakeLimitsgetforceannouncedchannelpreference(long this_ptr);
222 /// void ChannelHandshakeLimits_set_force_announced_channel_preference(LDKChannelHandshakeLimits *this_ptr, bool val);
223 public static native void ChannelHandshakeLimitssetforceannouncedchannelpreference(long this_ptr, boolean va);
224 /// uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const LDKChannelHandshakeLimits *this_ptr);
225 public static native long ChannelHandshakeLimitsgettheirtoselfdelay(long this_ptr);
226 /// void ChannelHandshakeLimits_set_their_to_self_delay(LDKChannelHandshakeLimits *this_ptr, uint16_t val);
227 public static native void ChannelHandshakeLimitssettheirtoselfdelay(long this_ptr, long val);
228 /// MUST_USE_RES LDKChannelHandshakeLimits ChannelHandshakeLimits_new(uint64_t min_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, uint64_t min_dust_limit_satoshis_arg, uint64_t max_dust_limit_satoshis_arg, uint32_t max_minimum_depth_arg, bool force_announced_channel_preference_arg, uint16_t their_to_self_delay_arg);
229 public static native long ChannelHandshakeLimitsnew(long min_funding_satoshis_arg, long max_htlc_minimum_msat_arg, long min_max_htlc_value_in_flight_msat_arg, long max_channel_reserve_satoshis_arg, long min_max_accepted_htlcs_arg, long min_dust_limit_satoshis_arg, long max_dust_limit_satoshis_arg, int max_minimum_depth_arg, boolean force_announced_channel_preference_arg, long their_to_self_delay_arg);
230 /// MUST_USE_RES LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
231 public static native long ChannelHandshakeLimitsdefault();
232 /// void ChannelConfig_free(LDKChannelConfig this_ptr);
233 public static native void ChannelConfigfree(long this_ptr);
234 /// uint32_t ChannelConfig_get_fee_proportional_millionths(const LDKChannelConfig *this_ptr);
235 public static native int ChannelConfiggetfeeproportionalmillionths(long this_ptr);
236 /// void ChannelConfig_set_fee_proportional_millionths(LDKChannelConfig *this_ptr, uint32_t val);
237 public static native void ChannelConfigsetfeeproportionalmillionths(long this_ptr, int val);
238 /// bool ChannelConfig_get_announced_channel(const LDKChannelConfig *this_ptr);
239 public static native boolean ChannelConfiggetannouncedchannel(long this_ptr);
240 /// void ChannelConfig_set_announced_channel(LDKChannelConfig *this_ptr, bool val);
241 public static native void ChannelConfigsetannouncedchannel(long this_ptr, boolean va);
242 /// bool ChannelConfig_get_commit_upfront_shutdown_pubkey(const LDKChannelConfig *this_ptr);
243 public static native boolean ChannelConfiggetcommitupfrontshutdownpubkey(long this_ptr);
244 /// void ChannelConfig_set_commit_upfront_shutdown_pubkey(LDKChannelConfig *this_ptr, bool val);
245 public static native void ChannelConfigsetcommitupfrontshutdownpubkey(long this_ptr, boolean va);
246 /// MUST_USE_RES LDKChannelConfig ChannelConfig_new(uint32_t fee_proportional_millionths_arg, bool announced_channel_arg, bool commit_upfront_shutdown_pubkey_arg);
247 public static native long ChannelConfignew(int fee_proportional_millionths_arg, boolean announced_channel_arg, boolean commit_upfront_shutdown_pubkey_arg);
248 /// MUST_USE_RES LDKChannelConfig ChannelConfig_default(void);
249 public static native long ChannelConfigdefault();
250 /// LDKCVec_u8Z ChannelConfig_write(const LDKChannelConfig *obj);
251 public static native long ChannelConfigwrite(long obj);
252 /// LDKChannelConfig ChannelConfig_read(LDKu8slice ser);
253 public static native long ChannelConfigread(long ser);
254 /// void UserConfig_free(LDKUserConfig this_ptr);
255 public static native void UserConfigfree(long this_ptr);
256 /// LDKChannelHandshakeConfig UserConfig_get_own_channel_config(const LDKUserConfig *this_ptr);
257 public static native long UserConfiggetownchannelconfig(long this_ptr);
258 /// void UserConfig_set_own_channel_config(LDKUserConfig *this_ptr, LDKChannelHandshakeConfig val);
259 public static native void UserConfigsetownchannelconfig(long this_ptr, long val);
260 /// LDKChannelHandshakeLimits UserConfig_get_peer_channel_config_limits(const LDKUserConfig *this_ptr);
261 public static native long UserConfiggetpeerchannelconfiglimits(long this_ptr);
262 /// void UserConfig_set_peer_channel_config_limits(LDKUserConfig *this_ptr, LDKChannelHandshakeLimits val);
263 public static native void UserConfigsetpeerchannelconfiglimits(long this_ptr, long val);
264 /// LDKChannelConfig UserConfig_get_channel_options(const LDKUserConfig *this_ptr);
265 public static native long UserConfiggetchanneloptions(long this_ptr);
266 /// void UserConfig_set_channel_options(LDKUserConfig *this_ptr, LDKChannelConfig val);
267 public static native void UserConfigsetchanneloptions(long this_ptr, long val);
268 /// MUST_USE_RES LDKUserConfig UserConfig_new(LDKChannelHandshakeConfig own_channel_config_arg, LDKChannelHandshakeLimits peer_channel_config_limits_arg, LDKChannelConfig channel_options_arg);
269 public static native long UserConfignew(long own_channel_config_arg, long peer_channel_config_limits_arg, long channel_options_arg);
270 /// MUST_USE_RES LDKUserConfig UserConfig_default(void);
271 public static native long UserConfigdefault();
272 /// void ChainWatchInterface_free(LDKChainWatchInterface this_ptr);
273 public static native void ChainWatchInterfacefree(long this_ptr);
274 /// void BroadcasterInterface_free(LDKBroadcasterInterface this_ptr);
275 public static native void BroadcasterInterfacefree(long this_ptr);
276 /// void ChainListener_free(LDKChainListener this_ptr);
277 public static native void ChainListenerfree(long this_ptr);
278 /// void FeeEstimator_free(LDKFeeEstimator this_ptr);
279 public static native void FeeEstimatorfree(long this_ptr);
280 /// void ChainWatchedUtil_free(LDKChainWatchedUtil this_ptr);
281 public static native void ChainWatchedUtilfree(long this_ptr);
282 /// MUST_USE_RES LDKChainWatchedUtil ChainWatchedUtil_new(void);
283 public static native long ChainWatchedUtilnew();
284 /// MUST_USE_RES bool ChainWatchedUtil_register_tx(LDKChainWatchedUtil *this_arg, const uint8_t (*txid)[32], LDKu8slice script_pub_key);
285 public static native boolean ChainWatchedUtilregistertx(long this_arg, byte[] txid, long script_pub_key);
286 /// MUST_USE_RES bool ChainWatchedUtil_register_outpoint(LDKChainWatchedUtil *this_arg, LDKC2Tuple_Txidu32Z outpoint, LDKu8slice _script_pub_key);
287 public static native boolean ChainWatchedUtilregisteroutpoint(long this_arg, long outpoint, long _script_pub_key);
288 /// MUST_USE_RES bool ChainWatchedUtil_watch_all(LDKChainWatchedUtil *this_arg);
289 public static native boolean ChainWatchedUtilwatchall(long this_arg);
290 /// MUST_USE_RES bool ChainWatchedUtil_does_match_tx(const LDKChainWatchedUtil *this_arg, LDKTransaction tx);
291 public static native boolean ChainWatchedUtildoesmatchtx(long this_arg, long tx);
292 /// void BlockNotifier_free(LDKBlockNotifier this_ptr);
293 public static native void BlockNotifierfree(long this_ptr);
294 /// MUST_USE_RES LDKBlockNotifier BlockNotifier_new(LDKChainWatchInterface chain_monitor);
295 public static native long BlockNotifiernew(long chain_monitor);
296 /// void BlockNotifier_register_listener(const LDKBlockNotifier *this_arg, LDKChainListener listener);
297 public static native void BlockNotifierregisterlistener(long this_arg, long listener);
298 /// void BlockNotifier_block_connected(const LDKBlockNotifier *this_arg, LDKu8slice block, uint32_t height);
299 public static native void BlockNotifierblockconnected(long this_arg, long block, int heigh);
300 /// MUST_USE_RES bool BlockNotifier_block_connected_checked(const LDKBlockNotifier *this_arg, const uint8_t (*header)[80], uint32_t height, LDKCTransactionSlice txn_matched, LDKusizeslice indexes_of_txn_matched);
301 public static native boolean BlockNotifierblockconnectedchecked(long this_arg, byte[] header, int heigh, long txn_matched, long indexes_of_txn_matched);
302 /// void BlockNotifier_block_disconnected(const LDKBlockNotifier *this_arg, const uint8_t (*header)[80], uint32_t disconnected_height);
303 public static native void BlockNotifierblockdisconnected(long this_arg, byte[] header, int disconnected_heigh);
304 /// void ChainWatchInterfaceUtil_free(LDKChainWatchInterfaceUtil this_ptr);
305 public static native void ChainWatchInterfaceUtilfree(long this_ptr);
306 /// LDKChainWatchInterface ChainWatchInterfaceUtil_as_ChainWatchInterface(const LDKChainWatchInterfaceUtil *this_arg);
307 public static native long ChainWatchInterfaceUtilasChainWatchInterface(long this_arg);
308 /// MUST_USE_RES LDKChainWatchInterfaceUtil ChainWatchInterfaceUtil_new(LDKNetwork network);
309 public static native long ChainWatchInterfaceUtilnew(long network);
310 /// MUST_USE_RES bool ChainWatchInterfaceUtil_does_match_tx(const LDKChainWatchInterfaceUtil *this_arg, LDKTransaction tx);
311 public static native boolean ChainWatchInterfaceUtildoesmatchtx(long this_arg, long tx);
312 /// void OutPoint_free(LDKOutPoint this_ptr);
313 public static native void OutPointfree(long this_ptr);
314 /// const uint8_t (*OutPoint_get_txid(const LDKOutPoint *this_ptr))[32];
315 public static native byte[] OutPointgettxid(long this_ptr);
316 /// void OutPoint_set_txid(LDKOutPoint *this_ptr, LDKThirtyTwoBytes val);
317 public static native void OutPointsettxid(long this_ptr, long val);
318 /// uint16_t OutPoint_get_index(const LDKOutPoint *this_ptr);
319 public static native long OutPointgetindex(long this_ptr);
320 /// void OutPoint_set_index(LDKOutPoint *this_ptr, uint16_t val);
321 public static native void OutPointsetindex(long this_ptr, long val);
322 /// MUST_USE_RES LDKOutPoint OutPoint_new(LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
323 public static native long OutPointnew(long txid_arg, long index_arg);
324 /// MUST_USE_RES LDKThirtyTwoBytes OutPoint_to_channel_id(const LDKOutPoint *this_arg);
325 public static native long OutPointtochannelid(long this_arg);
326 /// LDKCVec_u8Z OutPoint_write(const LDKOutPoint *obj);
327 public static native long OutPointwrite(long obj);
328 /// LDKOutPoint OutPoint_read(LDKu8slice ser);
329 public static native long OutPointread(long ser);
330 /// void SpendableOutputDescriptor_free(LDKSpendableOutputDescriptor this_ptr);
331 public static native void SpendableOutputDescriptorfree(long this_ptr);
332 /// LDKCVec_u8Z SpendableOutputDescriptor_write(const LDKSpendableOutputDescriptor *obj);
333 public static native long SpendableOutputDescriptorwrite(long obj);
334 /// LDKSpendableOutputDescriptor SpendableOutputDescriptor_read(LDKu8slice ser);
335 public static native long SpendableOutputDescriptorread(long ser);
336 /// void ChannelKeys_free(LDKChannelKeys this_ptr);
337 public static native void ChannelKeysfree(long this_ptr);
338 /// void KeysInterface_free(LDKKeysInterface this_ptr);
339 public static native void KeysInterfacefree(long this_ptr);
340 /// void InMemoryChannelKeys_free(LDKInMemoryChannelKeys this_ptr);
341 public static native void InMemoryChannelKeysfree(long this_ptr);
342 /// const uint8_t (*InMemoryChannelKeys_get_funding_key(const LDKInMemoryChannelKeys *this_ptr))[32];
343 public static native byte[] InMemoryChannelKeysgetfundingkey(long this_ptr);
344 /// void InMemoryChannelKeys_set_funding_key(LDKInMemoryChannelKeys *this_ptr, LDKSecretKey val);
345 public static native void InMemoryChannelKeyssetfundingkey(long this_ptr, long val);
346 /// const uint8_t (*InMemoryChannelKeys_get_revocation_base_key(const LDKInMemoryChannelKeys *this_ptr))[32];
347 public static native byte[] InMemoryChannelKeysgetrevocationbasekey(long this_ptr);
348 /// void InMemoryChannelKeys_set_revocation_base_key(LDKInMemoryChannelKeys *this_ptr, LDKSecretKey val);
349 public static native void InMemoryChannelKeyssetrevocationbasekey(long this_ptr, long val);
350 /// const uint8_t (*InMemoryChannelKeys_get_payment_key(const LDKInMemoryChannelKeys *this_ptr))[32];
351 public static native byte[] InMemoryChannelKeysgetpaymentkey(long this_ptr);
352 /// void InMemoryChannelKeys_set_payment_key(LDKInMemoryChannelKeys *this_ptr, LDKSecretKey val);
353 public static native void InMemoryChannelKeyssetpaymentkey(long this_ptr, long val);
354 /// const uint8_t (*InMemoryChannelKeys_get_delayed_payment_base_key(const LDKInMemoryChannelKeys *this_ptr))[32];
355 public static native byte[] InMemoryChannelKeysgetdelayedpaymentbasekey(long this_ptr);
356 /// void InMemoryChannelKeys_set_delayed_payment_base_key(LDKInMemoryChannelKeys *this_ptr, LDKSecretKey val);
357 public static native void InMemoryChannelKeyssetdelayedpaymentbasekey(long this_ptr, long val);
358 /// const uint8_t (*InMemoryChannelKeys_get_htlc_base_key(const LDKInMemoryChannelKeys *this_ptr))[32];
359 public static native byte[] InMemoryChannelKeysgethtlcbasekey(long this_ptr);
360 /// void InMemoryChannelKeys_set_htlc_base_key(LDKInMemoryChannelKeys *this_ptr, LDKSecretKey val);
361 public static native void InMemoryChannelKeyssethtlcbasekey(long this_ptr, long val);
362 /// const uint8_t (*InMemoryChannelKeys_get_commitment_seed(const LDKInMemoryChannelKeys *this_ptr))[32];
363 public static native byte[] InMemoryChannelKeysgetcommitmentseed(long this_ptr);
364 /// void InMemoryChannelKeys_set_commitment_seed(LDKInMemoryChannelKeys *this_ptr, LDKThirtyTwoBytes val);
365 public static native void InMemoryChannelKeyssetcommitmentseed(long this_ptr, long val);
366 /// MUST_USE_RES LDKInMemoryChannelKeys InMemoryChannelKeys_new(LDKSecretKey funding_key, LDKSecretKey revocation_base_key, LDKSecretKey payment_key, LDKSecretKey delayed_payment_base_key, LDKSecretKey htlc_base_key, LDKThirtyTwoBytes commitment_seed, uint64_t channel_value_satoshis, LDKC2Tuple_u64u64Z key_derivation_params);
367 public static native long InMemoryChannelKeysnew(long funding_key, long revocation_base_key, long payment_key, long delayed_payment_base_key, long htlc_base_key, long commitment_seed, long channel_value_satoshis, long key_derivation_params);
368 /// LDKChannelKeys InMemoryChannelKeys_as_ChannelKeys(const LDKInMemoryChannelKeys *this_arg);
369 public static native long InMemoryChannelKeysasChannelKeys(long this_arg);
370 /// LDKCVec_u8Z InMemoryChannelKeys_write(const LDKInMemoryChannelKeys *obj);
371 public static native long InMemoryChannelKeyswrite(long obj);
372 /// LDKInMemoryChannelKeys InMemoryChannelKeys_read(LDKu8slice ser);
373 public static native long InMemoryChannelKeysread(long ser);
374 /// void KeysManager_free(LDKKeysManager this_ptr);
375 public static native void KeysManagerfree(long this_ptr);
376 /// MUST_USE_RES LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], LDKNetwork network, uint64_t starting_time_secs, uint32_t starting_time_nanos);
377 public static native long KeysManagernew(byte[] seed, long network, long starting_time_secs, int starting_time_nanos);
378 /// MUST_USE_RES LDKInMemoryChannelKeys KeysManager_derive_channel_keys(const LDKKeysManager *this_arg, uint64_t channel_value_satoshis, uint64_t params_1, uint64_t params_2);
379 public static native long KeysManagerderivechannelkeys(long this_arg, long channel_value_satoshis, long params_1, long params_2);
380 /// LDKKeysInterface KeysManager_as_KeysInterface(const LDKKeysManager *this_arg);
381 public static native long KeysManagerasKeysInterface(long this_arg);
382 /// void ChannelManager_free(LDKChannelManager this_ptr);
383 public static native void ChannelManagerfree(long this_ptr);
384 /// void ChannelDetails_free(LDKChannelDetails this_ptr);
385 public static native void ChannelDetailsfree(long this_ptr);
386 /// const uint8_t (*ChannelDetails_get_channel_id(const LDKChannelDetails *this_ptr))[32];
387 public static native byte[] ChannelDetailsgetchannelid(long this_ptr);
388 /// void ChannelDetails_set_channel_id(LDKChannelDetails *this_ptr, LDKThirtyTwoBytes val);
389 public static native void ChannelDetailssetchannelid(long this_ptr, long val);
390 /// LDKPublicKey ChannelDetails_get_remote_network_id(const LDKChannelDetails *this_ptr);
391 public static native long ChannelDetailsgetremotenetworkid(long this_ptr);
392 /// void ChannelDetails_set_remote_network_id(LDKChannelDetails *this_ptr, LDKPublicKey val);
393 public static native void ChannelDetailssetremotenetworkid(long this_ptr, long val);
394 /// LDKInitFeatures ChannelDetails_get_counterparty_features(const LDKChannelDetails *this_ptr);
395 public static native long ChannelDetailsgetcounterpartyfeatures(long this_ptr);
396 /// void ChannelDetails_set_counterparty_features(LDKChannelDetails *this_ptr, LDKInitFeatures val);
397 public static native void ChannelDetailssetcounterpartyfeatures(long this_ptr, long val);
398 /// uint64_t ChannelDetails_get_channel_value_satoshis(const LDKChannelDetails *this_ptr);
399 public static native long ChannelDetailsgetchannelvaluesatoshis(long this_ptr);
400 /// void ChannelDetails_set_channel_value_satoshis(LDKChannelDetails *this_ptr, uint64_t val);
401 public static native void ChannelDetailssetchannelvaluesatoshis(long this_ptr, long val);
402 /// uint64_t ChannelDetails_get_user_id(const LDKChannelDetails *this_ptr);
403 public static native long ChannelDetailsgetuserid(long this_ptr);
404 /// void ChannelDetails_set_user_id(LDKChannelDetails *this_ptr, uint64_t val);
405 public static native void ChannelDetailssetuserid(long this_ptr, long val);
406 /// uint64_t ChannelDetails_get_outbound_capacity_msat(const LDKChannelDetails *this_ptr);
407 public static native long ChannelDetailsgetoutboundcapacitymsat(long this_ptr);
408 /// void ChannelDetails_set_outbound_capacity_msat(LDKChannelDetails *this_ptr, uint64_t val);
409 public static native void ChannelDetailssetoutboundcapacitymsat(long this_ptr, long val);
410 /// uint64_t ChannelDetails_get_inbound_capacity_msat(const LDKChannelDetails *this_ptr);
411 public static native long ChannelDetailsgetinboundcapacitymsat(long this_ptr);
412 /// void ChannelDetails_set_inbound_capacity_msat(LDKChannelDetails *this_ptr, uint64_t val);
413 public static native void ChannelDetailssetinboundcapacitymsat(long this_ptr, long val);
414 /// bool ChannelDetails_get_is_live(const LDKChannelDetails *this_ptr);
415 public static native boolean ChannelDetailsgetislive(long this_ptr);
416 /// void ChannelDetails_set_is_live(LDKChannelDetails *this_ptr, bool val);
417 public static native void ChannelDetailssetislive(long this_ptr, boolean va);
418 /// void PaymentSendFailure_free(LDKPaymentSendFailure this_ptr);
419 public static native void PaymentSendFailurefree(long this_ptr);
420 /// MUST_USE_RES LDKChannelManager ChannelManager_new(LDKNetwork network, LDKFeeEstimator fee_est, LDKManyChannelMonitor monitor, LDKBroadcasterInterface tx_broadcaster, LDKLogger logger, LDKKeysInterface keys_manager, LDKUserConfig config, uintptr_t current_blockchain_height);
421 public static native long ChannelManagernew(long network, long fee_est, long monitor, long tx_broadcaster, long logger, long keys_manager, long config, long current_blockchain_height);
422 /// MUST_USE_RES LDKCResult_NoneAPIErrorZ ChannelManager_create_channel(const LDKChannelManager *this_arg, LDKPublicKey their_network_key, uint64_t channel_value_satoshis, uint64_t push_msat, uint64_t user_id, LDKUserConfig override_config);
423 public static native long ChannelManagercreatechannel(long this_arg, long their_network_key, long channel_value_satoshis, long push_msa, long ser_id, long override_config);
424 /// MUST_USE_RES LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const LDKChannelManager *this_arg);
425 public static native long ChannelManagerlistchannels(long this_arg);
426 /// MUST_USE_RES LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const LDKChannelManager *this_arg);
427 public static native long ChannelManagerlistusablechannels(long this_arg);
428 /// MUST_USE_RES LDKCResult_NoneAPIErrorZ ChannelManager_close_channel(const LDKChannelManager *this_arg, const uint8_t (*channel_id)[32]);
429 public static native long ChannelManagerclosechannel(long this_arg, byte[] channel_id);
430 /// void ChannelManager_force_close_channel(const LDKChannelManager *this_arg, const uint8_t (*channel_id)[32]);
431 public static native void ChannelManagerforceclosechannel(long this_arg, byte[] channel_id);
432 /// void ChannelManager_force_close_all_channels(const LDKChannelManager *this_arg);
433 public static native void ChannelManagerforcecloseallchannels(long this_arg);
434 /// MUST_USE_RES LDKCResult_NonePaymentSendFailureZ ChannelManager_send_payment(const LDKChannelManager *this_arg, const LDKRoute *route, LDKThirtyTwoBytes payment_hash, LDKThirtyTwoBytes payment_secret);
435 public static native long ChannelManagersendpayment(long this_arg, long route, long payment_hash, long payment_secret);
436 /// void ChannelManager_funding_transaction_generated(const LDKChannelManager *this_arg, const uint8_t (*temporary_channel_id)[32], LDKOutPoint funding_txo);
437 public static native void ChannelManagerfundingtransactiongenerated(long this_arg, byte[] temporary_channel_id, long funding_txo);
438 /// void ChannelManager_broadcast_node_announcement(const LDKChannelManager *this_arg, LDKThreeBytes rgb, LDKThirtyTwoBytes alias, LDKCVec_NetAddressZ addresses);
439 public static native void ChannelManagerbroadcastnodeannouncement(long this_arg, long rgb, long alias, long addresses);
440 /// void ChannelManager_process_pending_htlc_forwards(const LDKChannelManager *this_arg);
441 public static native void ChannelManagerprocesspendinghtlcforwards(long this_arg);
442 /// void ChannelManager_timer_chan_freshness_every_min(const LDKChannelManager *this_arg);
443 public static native void ChannelManagertimerchanfreshnesseverymin(long this_arg);
444 /// MUST_USE_RES bool ChannelManager_fail_htlc_backwards(const LDKChannelManager *this_arg, const uint8_t (*payment_hash)[32], LDKThirtyTwoBytes payment_secret);
445 public static native boolean ChannelManagerfailhtlcbackwards(long this_arg, byte[] payment_hash, long payment_secret);
446 /// MUST_USE_RES bool ChannelManager_claim_funds(const LDKChannelManager *this_arg, LDKThirtyTwoBytes payment_preimage, LDKThirtyTwoBytes payment_secret, uint64_t expected_amount);
447 public static native boolean ChannelManagerclaimfunds(long this_arg, long payment_preimage, long payment_secret, long expected_amo);
448 /// MUST_USE_RES LDKPublicKey ChannelManager_get_our_node_id(const LDKChannelManager *this_arg);
449 public static native long ChannelManagergetournodeid(long this_arg);
450 /// void ChannelManager_channel_monitor_updated(const LDKChannelManager *this_arg, const LDKOutPoint *funding_txo, uint64_t highest_applied_update_id);
451 public static native void ChannelManagerchannelmonitorupdated(long this_arg, long funding_txo, long highest_applied_update_id);
452 /// LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const LDKChannelManager *this_arg);
453 public static native long ChannelManagerasMessageSendEventsProvider(long this_arg);
454 /// LDKEventsProvider ChannelManager_as_EventsProvider(const LDKChannelManager *this_arg);
455 public static native long ChannelManagerasEventsProvider(long this_arg);
456 /// LDKChainListener ChannelManager_as_ChainListener(const LDKChannelManager *this_arg);
457 public static native long ChannelManagerasChainListener(long this_arg);
458 /// LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const LDKChannelManager *this_arg);
459 public static native long ChannelManagerasChannelMessageHandler(long this_arg);
460 /// void ChannelMonitorUpdate_free(LDKChannelMonitorUpdate this_ptr);
461 public static native void ChannelMonitorUpdatefree(long this_ptr);
462 /// uint64_t ChannelMonitorUpdate_get_update_id(const LDKChannelMonitorUpdate *this_ptr);
463 public static native long ChannelMonitorUpdategetupdateid(long this_ptr);
464 /// void ChannelMonitorUpdate_set_update_id(LDKChannelMonitorUpdate *this_ptr, uint64_t val);
465 public static native void ChannelMonitorUpdatesetupdateid(long this_ptr, long val);
466 /// LDKCVec_u8Z ChannelMonitorUpdate_write(const LDKChannelMonitorUpdate *obj);
467 public static native long ChannelMonitorUpdatewrite(long obj);
468 /// LDKChannelMonitorUpdate ChannelMonitorUpdate_read(LDKu8slice ser);
469 public static native long ChannelMonitorUpdateread(long ser);
470 /// void MonitorUpdateError_free(LDKMonitorUpdateError this_ptr);
471 public static native void MonitorUpdateErrorfree(long this_ptr);
472 /// void HTLCUpdate_free(LDKHTLCUpdate this_ptr);
473 public static native void HTLCUpdatefree(long this_ptr);
474 /// LDKCVec_u8Z HTLCUpdate_write(const LDKHTLCUpdate *obj);
475 public static native long HTLCUpdatewrite(long obj);
476 /// LDKHTLCUpdate HTLCUpdate_read(LDKu8slice ser);
477 public static native long HTLCUpdateread(long ser);
478 /// void ChannelMonitor_free(LDKChannelMonitor this_ptr);
479 public static native void ChannelMonitorfree(long this_ptr);
480 /// void ManyChannelMonitor_free(LDKManyChannelMonitor this_ptr);
481 public static native void ManyChannelMonitorfree(long this_ptr);
482 /// MUST_USE_RES LDKCResult_NoneMonitorUpdateErrorZ ChannelMonitor_update_monitor(LDKChannelMonitor *this_arg, LDKChannelMonitorUpdate updates, const LDKBroadcasterInterface *broadcaster, const LDKLogger *logger);
483 public static native long ChannelMonitorupdatemonitor(long this_arg, long updates, long broadcaster, long logger);
484 /// MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const LDKChannelMonitor *this_arg);
485 public static native long ChannelMonitorgetlatestupdateid(long this_arg);
486 /// MUST_USE_RES LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const LDKChannelMonitor *this_arg);
487 public static native long ChannelMonitorgetfundingtxo(long this_arg);
488 /// MUST_USE_RES LDKCVec_HTLCUpdateZ ChannelMonitor_get_and_clear_pending_htlcs_updated(LDKChannelMonitor *this_arg);
489 public static native long ChannelMonitorgetandclearpendinghtlcsupdated(long this_arg);
490 /// MUST_USE_RES LDKCVec_EventZ ChannelMonitor_get_and_clear_pending_events(LDKChannelMonitor *this_arg);
491 public static native long ChannelMonitorgetandclearpendingevents(long this_arg);
492 /// MUST_USE_RES LDKCVec_TransactionZ ChannelMonitor_get_latest_local_commitment_txn(LDKChannelMonitor *this_arg, const LDKLogger *logger);
493 public static native long ChannelMonitorgetlatestlocalcommitmenttxn(long this_arg, long logger);
494 /// void DecodeError_free(LDKDecodeError this_ptr);
495 public static native void DecodeErrorfree(long this_ptr);
496 /// void Init_free(LDKInit this_ptr);
497 public static native void Initfree(long this_ptr);
498 /// void ErrorMessage_free(LDKErrorMessage this_ptr);
499 public static native void ErrorMessagefree(long this_ptr);
500 /// void Ping_free(LDKPing this_ptr);
501 public static native void Pingfree(long this_ptr);
502 /// void Pong_free(LDKPong this_ptr);
503 public static native void Pongfree(long this_ptr);
504 /// void OpenChannel_free(LDKOpenChannel this_ptr);
505 public static native void OpenChannelfree(long this_ptr);
506 /// void AcceptChannel_free(LDKAcceptChannel this_ptr);
507 public static native void AcceptChannelfree(long this_ptr);
508 /// void FundingCreated_free(LDKFundingCreated this_ptr);
509 public static native void FundingCreatedfree(long this_ptr);
510 /// void FundingSigned_free(LDKFundingSigned this_ptr);
511 public static native void FundingSignedfree(long this_ptr);
512 /// void FundingLocked_free(LDKFundingLocked this_ptr);
513 public static native void FundingLockedfree(long this_ptr);
514 /// const uint8_t (*FundingLocked_get_channel_id(const LDKFundingLocked *this_ptr))[32];
515 public static native byte[] FundingLockedgetchannelid(long this_ptr);
516 /// void FundingLocked_set_channel_id(LDKFundingLocked *this_ptr, LDKThirtyTwoBytes val);
517 public static native void FundingLockedsetchannelid(long this_ptr, long val);
518 /// LDKPublicKey FundingLocked_get_next_per_commitment_point(const LDKFundingLocked *this_ptr);
519 public static native long FundingLockedgetnextpercommitmentpoint(long this_ptr);
520 /// void FundingLocked_set_next_per_commitment_point(LDKFundingLocked *this_ptr, LDKPublicKey val);
521 public static native void FundingLockedsetnextpercommitmentpoint(long this_ptr, long val);
522 /// MUST_USE_RES LDKFundingLocked FundingLocked_new(LDKThirtyTwoBytes channel_id_arg, LDKPublicKey next_per_commitment_point_arg);
523 public static native long FundingLockednew(long channel_id_arg, long next_per_commitment_point_arg);
524 /// void Shutdown_free(LDKShutdown this_ptr);
525 public static native void Shutdownfree(long this_ptr);
526 /// void ClosingSigned_free(LDKClosingSigned this_ptr);
527 public static native void ClosingSignedfree(long this_ptr);
528 /// void UpdateAddHTLC_free(LDKUpdateAddHTLC this_ptr);
529 public static native void UpdateAddHTLCfree(long this_ptr);
530 /// void UpdateFulfillHTLC_free(LDKUpdateFulfillHTLC this_ptr);
531 public static native void UpdateFulfillHTLCfree(long this_ptr);
532 /// void UpdateFailHTLC_free(LDKUpdateFailHTLC this_ptr);
533 public static native void UpdateFailHTLCfree(long this_ptr);
534 /// void UpdateFailMalformedHTLC_free(LDKUpdateFailMalformedHTLC this_ptr);
535 public static native void UpdateFailMalformedHTLCfree(long this_ptr);
536 /// void CommitmentSigned_free(LDKCommitmentSigned this_ptr);
537 public static native void CommitmentSignedfree(long this_ptr);
538 /// void RevokeAndACK_free(LDKRevokeAndACK this_ptr);
539 public static native void RevokeAndACKfree(long this_ptr);
540 /// void UpdateFee_free(LDKUpdateFee this_ptr);
541 public static native void UpdateFeefree(long this_ptr);
542 /// void ChannelReestablish_free(LDKChannelReestablish this_ptr);
543 public static native void ChannelReestablishfree(long this_ptr);
544 /// void AnnouncementSignatures_free(LDKAnnouncementSignatures this_ptr);
545 public static native void AnnouncementSignaturesfree(long this_ptr);
546 /// void NetAddress_free(LDKNetAddress this_ptr);
547 public static native void NetAddressfree(long this_ptr);
548 /// void UnsignedNodeAnnouncement_free(LDKUnsignedNodeAnnouncement this_ptr);
549 public static native void UnsignedNodeAnnouncementfree(long this_ptr);
550 /// LDKPublicKey UnsignedNodeAnnouncement_get_node_id(const LDKUnsignedNodeAnnouncement *this_ptr);
551 public static native long UnsignedNodeAnnouncementgetnodeid(long this_ptr);
552 /// void UnsignedNodeAnnouncement_set_node_id(LDKUnsignedNodeAnnouncement *this_ptr, LDKPublicKey val);
553 public static native void UnsignedNodeAnnouncementsetnodeid(long this_ptr, long val);
554 /// void NodeAnnouncement_free(LDKNodeAnnouncement this_ptr);
555 public static native void NodeAnnouncementfree(long this_ptr);
556 /// void UnsignedChannelAnnouncement_free(LDKUnsignedChannelAnnouncement this_ptr);
557 public static native void UnsignedChannelAnnouncementfree(long this_ptr);
558 /// LDKPublicKey UnsignedChannelAnnouncement_get_node_id_1(const LDKUnsignedChannelAnnouncement *this_ptr);
559 public static native long UnsignedChannelAnnouncementgetnodeid1(long this_ptr);
560 /// void UnsignedChannelAnnouncement_set_node_id_1(LDKUnsignedChannelAnnouncement *this_ptr, LDKPublicKey val);
561 public static native void UnsignedChannelAnnouncementsetnodeid1(long this_ptr, long val);
562 /// LDKPublicKey UnsignedChannelAnnouncement_get_node_id_2(const LDKUnsignedChannelAnnouncement *this_ptr);
563 public static native long UnsignedChannelAnnouncementgetnodeid2(long this_ptr);
564 /// void UnsignedChannelAnnouncement_set_node_id_2(LDKUnsignedChannelAnnouncement *this_ptr, LDKPublicKey val);
565 public static native void UnsignedChannelAnnouncementsetnodeid2(long this_ptr, long val);
566 /// void ChannelAnnouncement_free(LDKChannelAnnouncement this_ptr);
567 public static native void ChannelAnnouncementfree(long this_ptr);
568 /// void ChannelUpdate_free(LDKChannelUpdate this_ptr);
569 public static native void ChannelUpdatefree(long this_ptr);
570 /// void ErrorAction_free(LDKErrorAction this_ptr);
571 public static native void ErrorActionfree(long this_ptr);
572 /// void LightningError_free(LDKLightningError this_ptr);
573 public static native void LightningErrorfree(long this_ptr);
574 /// LDKStr LightningError_get_err(const LDKLightningError *this_ptr);
575 public static native long LightningErrorgeterr(long this_ptr);
576 /// void LightningError_set_err(LDKLightningError *this_ptr, LDKCVec_u8Z val);
577 public static native void LightningErrorseterr(long this_ptr, long val);
578 /// LDKErrorAction LightningError_get_action(const LDKLightningError *this_ptr);
579 public static native long LightningErrorgetaction(long this_ptr);
580 /// void LightningError_set_action(LDKLightningError *this_ptr, LDKErrorAction val);
581 public static native void LightningErrorsetaction(long this_ptr, long val);
582 /// MUST_USE_RES LDKLightningError LightningError_new(LDKCVec_u8Z err_arg, LDKErrorAction action_arg);
583 public static native long LightningErrornew(long err_arg, long action_arg);
584 /// void CommitmentUpdate_free(LDKCommitmentUpdate this_ptr);
585 public static native void CommitmentUpdatefree(long this_ptr);
586 /// void CommitmentUpdate_set_update_add_htlcs(LDKCommitmentUpdate *this_ptr, LDKCVec_UpdateAddHTLCZ val);
587 public static native void CommitmentUpdatesetupdateaddhtlcs(long this_ptr, long val);
588 /// void CommitmentUpdate_set_update_fulfill_htlcs(LDKCommitmentUpdate *this_ptr, LDKCVec_UpdateFulfillHTLCZ val);
589 public static native void CommitmentUpdatesetupdatefulfillhtlcs(long this_ptr, long val);
590 /// void CommitmentUpdate_set_update_fail_htlcs(LDKCommitmentUpdate *this_ptr, LDKCVec_UpdateFailHTLCZ val);
591 public static native void CommitmentUpdatesetupdatefailhtlcs(long this_ptr, long val);
592 /// void CommitmentUpdate_set_update_fail_malformed_htlcs(LDKCommitmentUpdate *this_ptr, LDKCVec_UpdateFailMalformedHTLCZ val);
593 public static native void CommitmentUpdatesetupdatefailmalformedhtlcs(long this_ptr, long val);
594 /// LDKUpdateFee CommitmentUpdate_get_update_fee(const LDKCommitmentUpdate *this_ptr);
595 public static native long CommitmentUpdategetupdatefee(long this_ptr);
596 /// void CommitmentUpdate_set_update_fee(LDKCommitmentUpdate *this_ptr, LDKUpdateFee val);
597 public static native void CommitmentUpdatesetupdatefee(long this_ptr, long val);
598 /// LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const LDKCommitmentUpdate *this_ptr);
599 public static native long CommitmentUpdategetcommitmentsigned(long this_ptr);
600 /// void CommitmentUpdate_set_commitment_signed(LDKCommitmentUpdate *this_ptr, LDKCommitmentSigned val);
601 public static native void CommitmentUpdatesetcommitmentsigned(long this_ptr, long val);
602 /// MUST_USE_RES LDKCommitmentUpdate CommitmentUpdate_new(LDKCVec_UpdateAddHTLCZ update_add_htlcs_arg, LDKCVec_UpdateFulfillHTLCZ update_fulfill_htlcs_arg, LDKCVec_UpdateFailHTLCZ update_fail_htlcs_arg, LDKCVec_UpdateFailMalformedHTLCZ update_fail_malformed_htlcs_arg, LDKUpdateFee update_fee_arg, LDKCommitmentSigned commitment_signed_arg);
603 public static native long CommitmentUpdatenew(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);
604 /// void HTLCFailChannelUpdate_free(LDKHTLCFailChannelUpdate this_ptr);
605 public static native void HTLCFailChannelUpdatefree(long this_ptr);
606 /// void ChannelMessageHandler_free(LDKChannelMessageHandler this_ptr);
607 public static native void ChannelMessageHandlerfree(long this_ptr);
608 /// void RoutingMessageHandler_free(LDKRoutingMessageHandler this_ptr);
609 public static native void RoutingMessageHandlerfree(long this_ptr);
610 /// LDKCVec_u8Z AcceptChannel_write(const LDKAcceptChannel *obj);
611 public static native long AcceptChannelwrite(long obj);
612 /// LDKAcceptChannel AcceptChannel_read(LDKu8slice ser);
613 public static native long AcceptChannelread(long ser);
614 /// LDKCVec_u8Z AnnouncementSignatures_write(const LDKAnnouncementSignatures *obj);
615 public static native long AnnouncementSignatureswrite(long obj);
616 /// LDKAnnouncementSignatures AnnouncementSignatures_read(LDKu8slice ser);
617 public static native long AnnouncementSignaturesread(long ser);
618 /// LDKCVec_u8Z ChannelReestablish_write(const LDKChannelReestablish *obj);
619 public static native long ChannelReestablishwrite(long obj);
620 /// LDKChannelReestablish ChannelReestablish_read(LDKu8slice ser);
621 public static native long ChannelReestablishread(long ser);
622 /// LDKCVec_u8Z ClosingSigned_write(const LDKClosingSigned *obj);
623 public static native long ClosingSignedwrite(long obj);
624 /// LDKClosingSigned ClosingSigned_read(LDKu8slice ser);
625 public static native long ClosingSignedread(long ser);
626 /// LDKCVec_u8Z CommitmentSigned_write(const LDKCommitmentSigned *obj);
627 public static native long CommitmentSignedwrite(long obj);
628 /// LDKCommitmentSigned CommitmentSigned_read(LDKu8slice ser);
629 public static native long CommitmentSignedread(long ser);
630 /// LDKCVec_u8Z FundingCreated_write(const LDKFundingCreated *obj);
631 public static native long FundingCreatedwrite(long obj);
632 /// LDKFundingCreated FundingCreated_read(LDKu8slice ser);
633 public static native long FundingCreatedread(long ser);
634 /// LDKCVec_u8Z FundingSigned_write(const LDKFundingSigned *obj);
635 public static native long FundingSignedwrite(long obj);
636 /// LDKFundingSigned FundingSigned_read(LDKu8slice ser);
637 public static native long FundingSignedread(long ser);
638 /// LDKCVec_u8Z FundingLocked_write(const LDKFundingLocked *obj);
639 public static native long FundingLockedwrite(long obj);
640 /// LDKFundingLocked FundingLocked_read(LDKu8slice ser);
641 public static native long FundingLockedread(long ser);
642 /// LDKCVec_u8Z Init_write(const LDKInit *obj);
643 public static native long Initwrite(long obj);
644 /// LDKInit Init_read(LDKu8slice ser);
645 public static native long Initread(long ser);
646 /// LDKCVec_u8Z OpenChannel_write(const LDKOpenChannel *obj);
647 public static native long OpenChannelwrite(long obj);
648 /// LDKOpenChannel OpenChannel_read(LDKu8slice ser);
649 public static native long OpenChannelread(long ser);
650 /// LDKCVec_u8Z RevokeAndACK_write(const LDKRevokeAndACK *obj);
651 public static native long RevokeAndACKwrite(long obj);
652 /// LDKRevokeAndACK RevokeAndACK_read(LDKu8slice ser);
653 public static native long RevokeAndACKread(long ser);
654 /// LDKCVec_u8Z Shutdown_write(const LDKShutdown *obj);
655 public static native long Shutdownwrite(long obj);
656 /// LDKShutdown Shutdown_read(LDKu8slice ser);
657 public static native long Shutdownread(long ser);
658 /// LDKCVec_u8Z UpdateFailHTLC_write(const LDKUpdateFailHTLC *obj);
659 public static native long UpdateFailHTLCwrite(long obj);
660 /// LDKUpdateFailHTLC UpdateFailHTLC_read(LDKu8slice ser);
661 public static native long UpdateFailHTLCread(long ser);
662 /// LDKCVec_u8Z UpdateFailMalformedHTLC_write(const LDKUpdateFailMalformedHTLC *obj);
663 public static native long UpdateFailMalformedHTLCwrite(long obj);
664 /// LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_read(LDKu8slice ser);
665 public static native long UpdateFailMalformedHTLCread(long ser);
666 /// LDKCVec_u8Z UpdateFee_write(const LDKUpdateFee *obj);
667 public static native long UpdateFeewrite(long obj);
668 /// LDKUpdateFee UpdateFee_read(LDKu8slice ser);
669 public static native long UpdateFeeread(long ser);
670 /// LDKCVec_u8Z UpdateFulfillHTLC_write(const LDKUpdateFulfillHTLC *obj);
671 public static native long UpdateFulfillHTLCwrite(long obj);
672 /// LDKUpdateFulfillHTLC UpdateFulfillHTLC_read(LDKu8slice ser);
673 public static native long UpdateFulfillHTLCread(long ser);
674 /// LDKCVec_u8Z UpdateAddHTLC_write(const LDKUpdateAddHTLC *obj);
675 public static native long UpdateAddHTLCwrite(long obj);
676 /// LDKUpdateAddHTLC UpdateAddHTLC_read(LDKu8slice ser);
677 public static native long UpdateAddHTLCread(long ser);
678 /// LDKCVec_u8Z Ping_write(const LDKPing *obj);
679 public static native long Pingwrite(long obj);
680 /// LDKPing Ping_read(LDKu8slice ser);
681 public static native long Pingread(long ser);
682 /// LDKCVec_u8Z Pong_write(const LDKPong *obj);
683 public static native long Pongwrite(long obj);
684 /// LDKPong Pong_read(LDKu8slice ser);
685 public static native long Pongread(long ser);
686 /// LDKCVec_u8Z UnsignedChannelAnnouncement_write(const LDKUnsignedChannelAnnouncement *obj);
687 public static native long UnsignedChannelAnnouncementwrite(long obj);
688 /// LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_read(LDKu8slice ser);
689 public static native long UnsignedChannelAnnouncementread(long ser);
690 /// LDKCVec_u8Z ChannelAnnouncement_write(const LDKChannelAnnouncement *obj);
691 public static native long ChannelAnnouncementwrite(long obj);
692 /// LDKChannelAnnouncement ChannelAnnouncement_read(LDKu8slice ser);
693 public static native long ChannelAnnouncementread(long ser);
694 /// LDKCVec_u8Z ChannelUpdate_write(const LDKChannelUpdate *obj);
695 public static native long ChannelUpdatewrite(long obj);
696 /// LDKChannelUpdate ChannelUpdate_read(LDKu8slice ser);
697 public static native long ChannelUpdateread(long ser);
698 /// LDKCVec_u8Z ErrorMessage_write(const LDKErrorMessage *obj);
699 public static native long ErrorMessagewrite(long obj);
700 /// LDKErrorMessage ErrorMessage_read(LDKu8slice ser);
701 public static native long ErrorMessageread(long ser);
702 /// LDKCVec_u8Z UnsignedNodeAnnouncement_write(const LDKUnsignedNodeAnnouncement *obj);
703 public static native long UnsignedNodeAnnouncementwrite(long obj);
704 /// LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_read(LDKu8slice ser);
705 public static native long UnsignedNodeAnnouncementread(long ser);
706 /// LDKCVec_u8Z NodeAnnouncement_write(const LDKNodeAnnouncement *obj);
707 public static native long NodeAnnouncementwrite(long obj);
708 /// LDKNodeAnnouncement NodeAnnouncement_read(LDKu8slice ser);
709 public static native long NodeAnnouncementread(long ser);
710 /// void MessageHandler_free(LDKMessageHandler this_ptr);
711 public static native void MessageHandlerfree(long this_ptr);
712 /// const LDKChannelMessageHandler *MessageHandler_get_chan_handler(const LDKMessageHandler *this_ptr);
713 public static native long MessageHandlergetchanhandler(long this_ptr);
714 /// void MessageHandler_set_chan_handler(LDKMessageHandler *this_ptr, LDKChannelMessageHandler val);
715 public static native void MessageHandlersetchanhandler(long this_ptr, long val);
716 /// const LDKRoutingMessageHandler *MessageHandler_get_route_handler(const LDKMessageHandler *this_ptr);
717 public static native long MessageHandlergetroutehandler(long this_ptr);
718 /// void MessageHandler_set_route_handler(LDKMessageHandler *this_ptr, LDKRoutingMessageHandler val);
719 public static native void MessageHandlersetroutehandler(long this_ptr, long val);
720 /// MUST_USE_RES LDKMessageHandler MessageHandler_new(LDKChannelMessageHandler chan_handler_arg, LDKRoutingMessageHandler route_handler_arg);
721 public static native long MessageHandlernew(long chan_handler_arg, long route_handler_arg);
722 /// void SocketDescriptor_free(LDKSocketDescriptor this_ptr);
723 public static native void SocketDescriptorfree(long this_ptr);
724 /// void PeerHandleError_free(LDKPeerHandleError this_ptr);
725 public static native void PeerHandleErrorfree(long this_ptr);
726 /// bool PeerHandleError_get_no_connection_possible(const LDKPeerHandleError *this_ptr);
727 public static native boolean PeerHandleErrorgetnoconnectionpossible(long this_ptr);
728 /// void PeerHandleError_set_no_connection_possible(LDKPeerHandleError *this_ptr, bool val);
729 public static native void PeerHandleErrorsetnoconnectionpossible(long this_ptr, boolean va);
730 /// MUST_USE_RES LDKPeerHandleError PeerHandleError_new(bool no_connection_possible_arg);
731 public static native long PeerHandleErrornew(boolean no_connection_possible_arg);
732 /// void PeerManager_free(LDKPeerManager this_ptr);
733 public static native void PeerManagerfree(long this_ptr);
734 /// MUST_USE_RES LDKPeerManager PeerManager_new(LDKMessageHandler message_handler, LDKSecretKey our_node_secret, const uint8_t (*ephemeral_random_data)[32], LDKLogger logger);
735 public static native long PeerManagernew(long message_handler, long our_node_secret, byte[] ephemeral_random_data, long logger);
736 /// MUST_USE_RES LDKCVec_PublicKeyZ PeerManager_get_peer_node_ids(const LDKPeerManager *this_arg);
737 public static native long PeerManagergetpeernodeids(long this_arg);
738 /// MUST_USE_RES LDKCResult_CVec_u8ZPeerHandleErrorZ PeerManager_new_outbound_connection(const LDKPeerManager *this_arg, LDKPublicKey their_node_id, LDKSocketDescriptor descriptor);
739 public static native long PeerManagernewoutboundconnection(long this_arg, long their_node_id, long descriptor);
740 /// MUST_USE_RES LDKCResult_NonePeerHandleErrorZ PeerManager_new_inbound_connection(const LDKPeerManager *this_arg, LDKSocketDescriptor descriptor);
741 public static native long PeerManagernewinboundconnection(long this_arg, long descriptor);
742 /// MUST_USE_RES LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const LDKPeerManager *this_arg, LDKSocketDescriptor *descriptor);
743 public static native long PeerManagerwritebufferspaceavail(long this_arg, long descriptor);
744 /// MUST_USE_RES LDKCResult_boolPeerHandleErrorZ PeerManager_read_event(const LDKPeerManager *this_arg, LDKSocketDescriptor *peer_descriptor, LDKu8slice data);
745 public static native long PeerManagerreadevent(long this_arg, long peer_descriptor, long data);
746 /// void PeerManager_process_events(const LDKPeerManager *this_arg);
747 public static native void PeerManagerprocessevents(long this_arg);
748 /// void PeerManager_socket_disconnected(const LDKPeerManager *this_arg, const LDKSocketDescriptor *descriptor);
749 public static native void PeerManagersocketdisconnected(long this_arg, long descriptor);
750 /// void PeerManager_timer_tick_occured(const LDKPeerManager *this_arg);
751 public static native void PeerManagertimertickoccured(long this_arg);
752 /// LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx);
753 public static native long buildcommitmentsecret(byte[] commitment_seed, long dx);
754 /// void TxCreationKeys_free(LDKTxCreationKeys this_ptr);
755 public static native void TxCreationKeysfree(long this_ptr);
756 /// LDKPublicKey TxCreationKeys_get_per_commitment_point(const LDKTxCreationKeys *this_ptr);
757 public static native long TxCreationKeysgetpercommitmentpoint(long this_ptr);
758 /// void TxCreationKeys_set_per_commitment_point(LDKTxCreationKeys *this_ptr, LDKPublicKey val);
759 public static native void TxCreationKeyssetpercommitmentpoint(long this_ptr, long val);
760 /// LDKCVec_u8Z TxCreationKeys_write(const LDKTxCreationKeys *obj);
761 public static native long TxCreationKeyswrite(long obj);
762 /// LDKTxCreationKeys TxCreationKeys_read(LDKu8slice ser);
763 public static native long TxCreationKeysread(long ser);
764 /// void ChannelPublicKeys_free(LDKChannelPublicKeys this_ptr);
765 public static native void ChannelPublicKeysfree(long this_ptr);
766 /// LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const LDKChannelPublicKeys *this_ptr);
767 public static native long ChannelPublicKeysgetfundingpubkey(long this_ptr);
768 /// void ChannelPublicKeys_set_funding_pubkey(LDKChannelPublicKeys *this_ptr, LDKPublicKey val);
769 public static native void ChannelPublicKeyssetfundingpubkey(long this_ptr, long val);
770 /// LDKPublicKey ChannelPublicKeys_get_revocation_basepoint(const LDKChannelPublicKeys *this_ptr);
771 public static native long ChannelPublicKeysgetrevocationbasepoint(long this_ptr);
772 /// void ChannelPublicKeys_set_revocation_basepoint(LDKChannelPublicKeys *this_ptr, LDKPublicKey val);
773 public static native void ChannelPublicKeyssetrevocationbasepoint(long this_ptr, long val);
774 /// LDKPublicKey ChannelPublicKeys_get_payment_point(const LDKChannelPublicKeys *this_ptr);
775 public static native long ChannelPublicKeysgetpaymentpoint(long this_ptr);
776 /// void ChannelPublicKeys_set_payment_point(LDKChannelPublicKeys *this_ptr, LDKPublicKey val);
777 public static native void ChannelPublicKeyssetpaymentpoint(long this_ptr, long val);
778 /// LDKPublicKey ChannelPublicKeys_get_delayed_payment_basepoint(const LDKChannelPublicKeys *this_ptr);
779 public static native long ChannelPublicKeysgetdelayedpaymentbasepoint(long this_ptr);
780 /// void ChannelPublicKeys_set_delayed_payment_basepoint(LDKChannelPublicKeys *this_ptr, LDKPublicKey val);
781 public static native void ChannelPublicKeyssetdelayedpaymentbasepoint(long this_ptr, long val);
782 /// LDKPublicKey ChannelPublicKeys_get_htlc_basepoint(const LDKChannelPublicKeys *this_ptr);
783 public static native long ChannelPublicKeysgethtlcbasepoint(long this_ptr);
784 /// void ChannelPublicKeys_set_htlc_basepoint(LDKChannelPublicKeys *this_ptr, LDKPublicKey val);
785 public static native void ChannelPublicKeyssethtlcbasepoint(long this_ptr, long val);
786 /// MUST_USE_RES LDKChannelPublicKeys ChannelPublicKeys_new(LDKPublicKey funding_pubkey_arg, LDKPublicKey revocation_basepoint_arg, LDKPublicKey payment_point_arg, LDKPublicKey delayed_payment_basepoint_arg, LDKPublicKey htlc_basepoint_arg);
787 public static native long ChannelPublicKeysnew(long funding_pubkey_arg, long revocation_basepoint_arg, long payment_point_arg, long delayed_payment_basepoint_arg, long htlc_basepoint_arg);
788 /// LDKCVec_u8Z ChannelPublicKeys_write(const LDKChannelPublicKeys *obj);
789 public static native long ChannelPublicKeyswrite(long obj);
790 /// LDKChannelPublicKeys ChannelPublicKeys_read(LDKu8slice ser);
791 public static native long ChannelPublicKeysread(long ser);
792 /// LDKCVec_u8Z get_revokeable_redeemscript(LDKPublicKey revocation_key, uint16_t to_self_delay, LDKPublicKey delayed_payment_key);
793 public static native long getrevokeableredeemscript(long revocation_key, long to_self_delay, long delayed_payment_key);
794 /// void HTLCOutputInCommitment_free(LDKHTLCOutputInCommitment this_ptr);
795 public static native void HTLCOutputInCommitmentfree(long this_ptr);
796 /// bool HTLCOutputInCommitment_get_offered(const LDKHTLCOutputInCommitment *this_ptr);
797 public static native boolean HTLCOutputInCommitmentgetoffered(long this_ptr);
798 /// void HTLCOutputInCommitment_set_offered(LDKHTLCOutputInCommitment *this_ptr, bool val);
799 public static native void HTLCOutputInCommitmentsetoffered(long this_ptr, boolean va);
800 /// uint64_t HTLCOutputInCommitment_get_amount_msat(const LDKHTLCOutputInCommitment *this_ptr);
801 public static native long HTLCOutputInCommitmentgetamountmsat(long this_ptr);
802 /// void HTLCOutputInCommitment_set_amount_msat(LDKHTLCOutputInCommitment *this_ptr, uint64_t val);
803 public static native void HTLCOutputInCommitmentsetamountmsat(long this_ptr, long val);
804 /// uint32_t HTLCOutputInCommitment_get_cltv_expiry(const LDKHTLCOutputInCommitment *this_ptr);
805 public static native int HTLCOutputInCommitmentgetcltvexpiry(long this_ptr);
806 /// void HTLCOutputInCommitment_set_cltv_expiry(LDKHTLCOutputInCommitment *this_ptr, uint32_t val);
807 public static native void HTLCOutputInCommitmentsetcltvexpiry(long this_ptr, int val);
808 /// const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const LDKHTLCOutputInCommitment *this_ptr))[32];
809 public static native byte[] HTLCOutputInCommitmentgetpaymenthash(long this_ptr);
810 /// void HTLCOutputInCommitment_set_payment_hash(LDKHTLCOutputInCommitment *this_ptr, LDKThirtyTwoBytes val);
811 public static native void HTLCOutputInCommitmentsetpaymenthash(long this_ptr, long val);
812 /// LDKCVec_u8Z HTLCOutputInCommitment_write(const LDKHTLCOutputInCommitment *obj);
813 public static native long HTLCOutputInCommitmentwrite(long obj);
814 /// LDKHTLCOutputInCommitment HTLCOutputInCommitment_read(LDKu8slice ser);
815 public static native long HTLCOutputInCommitmentread(long ser);
816 /// LDKCVec_u8Z get_htlc_redeemscript(const LDKHTLCOutputInCommitment *htlc, const LDKTxCreationKeys *keys);
817 public static native long gethtlcredeemscript(long htlc, long keys);
818 /// LDKCVec_u8Z make_funding_redeemscript(LDKPublicKey a, LDKPublicKey b);
819 public static native long makefundingredeemscript(long a, long b);
820 /// LDKCVec_u8Z build_htlc_transaction(const uint8_t (*prev_hash)[32], uint32_t feerate_per_kw, uint16_t to_self_delay, const LDKHTLCOutputInCommitment *htlc, LDKPublicKey a_delayed_payment_key, LDKPublicKey revocation_key);
821 public static native long buildhtlctransaction(byte[] prev_hash, int feerate_per_kw, long to_self_delay, long htlc, long a_delayed_payment_key, long revocation_key);
822 /// void LocalCommitmentTransaction_free(LDKLocalCommitmentTransaction this_ptr);
823 public static native void LocalCommitmentTransactionfree(long this_ptr);
824 /// LDKCVec_u8Z LocalCommitmentTransaction_get_unsigned_tx(const LDKLocalCommitmentTransaction *this_ptr);
825 public static native long LocalCommitmentTransactiongetunsignedtx(long this_ptr);
826 /// void LocalCommitmentTransaction_set_unsigned_tx(LDKLocalCommitmentTransaction *this_ptr, LDKCVec_u8Z val);
827 public static native void LocalCommitmentTransactionsetunsignedtx(long this_ptr, long val);
828 /// LDKSignature LocalCommitmentTransaction_get_their_sig(const LDKLocalCommitmentTransaction *this_ptr);
829 public static native long LocalCommitmentTransactiongettheirsig(long this_ptr);
830 /// void LocalCommitmentTransaction_set_their_sig(LDKLocalCommitmentTransaction *this_ptr, LDKSignature val);
831 public static native void LocalCommitmentTransactionsettheirsig(long this_ptr, long val);
832 /// LDKTxCreationKeys LocalCommitmentTransaction_get_local_keys(const LDKLocalCommitmentTransaction *this_ptr);
833 public static native long LocalCommitmentTransactiongetlocalkeys(long this_ptr);
834 /// void LocalCommitmentTransaction_set_local_keys(LDKLocalCommitmentTransaction *this_ptr, LDKTxCreationKeys val);
835 public static native void LocalCommitmentTransactionsetlocalkeys(long this_ptr, long val);
836 /// uint32_t LocalCommitmentTransaction_get_feerate_per_kw(const LDKLocalCommitmentTransaction *this_ptr);
837 public static native int LocalCommitmentTransactiongetfeerateperkw(long this_ptr);
838 /// void LocalCommitmentTransaction_set_feerate_per_kw(LDKLocalCommitmentTransaction *this_ptr, uint32_t val);
839 public static native void LocalCommitmentTransactionsetfeerateperkw(long this_ptr, int val);
840 /// MUST_USE_RES LDKThirtyTwoBytes LocalCommitmentTransaction_txid(const LDKLocalCommitmentTransaction *this_arg);
841 public static native long LocalCommitmentTransactiontxid(long this_arg);
842 /// MUST_USE_RES LDKSignature LocalCommitmentTransaction_get_local_sig(const LDKLocalCommitmentTransaction *this_arg, const uint8_t (*funding_key)[32], LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
843 public static native long LocalCommitmentTransactiongetlocalsig(long this_arg, byte[] funding_key, long funding_redeemscript, long channel_value_satoshis);
844 /// LDKCVec_u8Z LocalCommitmentTransaction_write(const LDKLocalCommitmentTransaction *obj);
845 public static native long LocalCommitmentTransactionwrite(long obj);
846 /// LDKLocalCommitmentTransaction LocalCommitmentTransaction_read(LDKu8slice ser);
847 public static native long LocalCommitmentTransactionread(long ser);
848 /// void InitFeatures_free(LDKInitFeatures this_ptr);
849 public static native void InitFeaturesfree(long this_ptr);
850 /// void NodeFeatures_free(LDKNodeFeatures this_ptr);
851 public static native void NodeFeaturesfree(long this_ptr);
852 /// void ChannelFeatures_free(LDKChannelFeatures this_ptr);
853 public static native void ChannelFeaturesfree(long this_ptr);
854 /// void RouteHop_free(LDKRouteHop this_ptr);
855 public static native void RouteHopfree(long this_ptr);
856 /// LDKPublicKey RouteHop_get_pubkey(const LDKRouteHop *this_ptr);
857 public static native long RouteHopgetpubkey(long this_ptr);
858 /// void RouteHop_set_pubkey(LDKRouteHop *this_ptr, LDKPublicKey val);
859 public static native void RouteHopsetpubkey(long this_ptr, long val);
860 /// uint64_t RouteHop_get_short_channel_id(const LDKRouteHop *this_ptr);
861 public static native long RouteHopgetshortchannelid(long this_ptr);
862 /// void RouteHop_set_short_channel_id(LDKRouteHop *this_ptr, uint64_t val);
863 public static native void RouteHopsetshortchannelid(long this_ptr, long val);
864 /// uint64_t RouteHop_get_fee_msat(const LDKRouteHop *this_ptr);
865 public static native long RouteHopgetfeemsat(long this_ptr);
866 /// void RouteHop_set_fee_msat(LDKRouteHop *this_ptr, uint64_t val);
867 public static native void RouteHopsetfeemsat(long this_ptr, long val);
868 /// uint32_t RouteHop_get_cltv_expiry_delta(const LDKRouteHop *this_ptr);
869 public static native int RouteHopgetcltvexpirydelta(long this_ptr);
870 /// void RouteHop_set_cltv_expiry_delta(LDKRouteHop *this_ptr, uint32_t val);
871 public static native void RouteHopsetcltvexpirydelta(long this_ptr, int val);
872 /// void Route_free(LDKRoute this_ptr);
873 public static native void Routefree(long this_ptr);
874 /// void Route_set_paths(LDKRoute *this_ptr, LDKCVec_CVec_RouteHopZZ val);
875 public static native void Routesetpaths(long this_ptr, long val);
876 /// MUST_USE_RES LDKRoute Route_new(LDKCVec_CVec_RouteHopZZ paths_arg);
877 public static native long Routenew(long paths_arg);
878 /// LDKCVec_u8Z Route_write(const LDKRoute *obj);
879 public static native long Routewrite(long obj);
880 /// LDKRoute Route_read(LDKu8slice ser);
881 public static native long Routeread(long ser);
882 /// void RouteHint_free(LDKRouteHint this_ptr);
883 public static native void RouteHintfree(long this_ptr);
884 /// LDKPublicKey RouteHint_get_src_node_id(const LDKRouteHint *this_ptr);
885 public static native long RouteHintgetsrcnodeid(long this_ptr);
886 /// void RouteHint_set_src_node_id(LDKRouteHint *this_ptr, LDKPublicKey val);
887 public static native void RouteHintsetsrcnodeid(long this_ptr, long val);
888 /// uint64_t RouteHint_get_short_channel_id(const LDKRouteHint *this_ptr);
889 public static native long RouteHintgetshortchannelid(long this_ptr);
890 /// void RouteHint_set_short_channel_id(LDKRouteHint *this_ptr, uint64_t val);
891 public static native void RouteHintsetshortchannelid(long this_ptr, long val);
892 /// LDKRoutingFees RouteHint_get_fees(const LDKRouteHint *this_ptr);
893 public static native long RouteHintgetfees(long this_ptr);
894 /// void RouteHint_set_fees(LDKRouteHint *this_ptr, LDKRoutingFees val);
895 public static native void RouteHintsetfees(long this_ptr, long val);
896 /// uint16_t RouteHint_get_cltv_expiry_delta(const LDKRouteHint *this_ptr);
897 public static native long RouteHintgetcltvexpirydelta(long this_ptr);
898 /// void RouteHint_set_cltv_expiry_delta(LDKRouteHint *this_ptr, uint16_t val);
899 public static native void RouteHintsetcltvexpirydelta(long this_ptr, long val);
900 /// uint64_t RouteHint_get_htlc_minimum_msat(const LDKRouteHint *this_ptr);
901 public static native long RouteHintgethtlcminimummsat(long this_ptr);
902 /// void RouteHint_set_htlc_minimum_msat(LDKRouteHint *this_ptr, uint64_t val);
903 public static native void RouteHintsethtlcminimummsat(long this_ptr, long val);
904 /// MUST_USE_RES LDKRouteHint RouteHint_new(LDKPublicKey src_node_id_arg, uint64_t short_channel_id_arg, LDKRoutingFees fees_arg, uint16_t cltv_expiry_delta_arg, uint64_t htlc_minimum_msat_arg);
905 public static native long RouteHintnew(long src_node_id_arg, long short_channel_id_arg, long fees_arg, long cltv_expiry_delta_arg, long htlc_minimum_msat_arg);
906 /// LDKCResult_RouteLightningErrorZ get_route(LDKPublicKey our_node_id, const LDKNetworkGraph *network, LDKPublicKey target, const LDKCChannelDetailsSlice *first_hops, LDKCRouteHintSlice last_hops, uint64_t final_value_msat, uint32_t final_cltv, LDKLogger logger);
907 public static native long getroute(long our_node_id, long network, long target, long first_hops, long last_hops, long final_value_msa, int final_cltv, long logger);
908 /// void NetworkGraph_free(LDKNetworkGraph this_ptr);
909 public static native void NetworkGraphfree(long this_ptr);
910 /// void NetGraphMsgHandler_free(LDKNetGraphMsgHandler this_ptr);
911 public static native void NetGraphMsgHandlerfree(long this_ptr);
912 /// MUST_USE_RES LDKNetGraphMsgHandler NetGraphMsgHandler_new(LDKChainWatchInterface chain_monitor, LDKLogger logger);
913 public static native long NetGraphMsgHandlernew(long chain_monitor, long logger);
914 /// MUST_USE_RES LDKNetGraphMsgHandler NetGraphMsgHandler_from_net_graph(LDKChainWatchInterface chain_monitor, LDKLogger logger, LDKNetworkGraph network_graph);
915 public static native long NetGraphMsgHandlerfromnetgraph(long chain_monitor, long logger, long network_graph);
916 /// LDKRoutingMessageHandler NetGraphMsgHandler_as_RoutingMessageHandler(const LDKNetGraphMsgHandler *this_arg);
917 public static native long NetGraphMsgHandlerasRoutingMessageHandler(long this_arg);
918 /// void DirectionalChannelInfo_free(LDKDirectionalChannelInfo this_ptr);
919 public static native void DirectionalChannelInfofree(long this_ptr);
920 /// uint32_t DirectionalChannelInfo_get_last_update(const LDKDirectionalChannelInfo *this_ptr);
921 public static native int DirectionalChannelInfogetlastupdate(long this_ptr);
922 /// void DirectionalChannelInfo_set_last_update(LDKDirectionalChannelInfo *this_ptr, uint32_t val);
923 public static native void DirectionalChannelInfosetlastupdate(long this_ptr, int val);
924 /// bool DirectionalChannelInfo_get_enabled(const LDKDirectionalChannelInfo *this_ptr);
925 public static native boolean DirectionalChannelInfogetenabled(long this_ptr);
926 /// void DirectionalChannelInfo_set_enabled(LDKDirectionalChannelInfo *this_ptr, bool val);
927 public static native void DirectionalChannelInfosetenabled(long this_ptr, boolean va);
928 /// uint16_t DirectionalChannelInfo_get_cltv_expiry_delta(const LDKDirectionalChannelInfo *this_ptr);
929 public static native long DirectionalChannelInfogetcltvexpirydelta(long this_ptr);
930 /// void DirectionalChannelInfo_set_cltv_expiry_delta(LDKDirectionalChannelInfo *this_ptr, uint16_t val);
931 public static native void DirectionalChannelInfosetcltvexpirydelta(long this_ptr, long val);
932 /// uint64_t DirectionalChannelInfo_get_htlc_minimum_msat(const LDKDirectionalChannelInfo *this_ptr);
933 public static native long DirectionalChannelInfogethtlcminimummsat(long this_ptr);
934 /// void DirectionalChannelInfo_set_htlc_minimum_msat(LDKDirectionalChannelInfo *this_ptr, uint64_t val);
935 public static native void DirectionalChannelInfosethtlcminimummsat(long this_ptr, long val);
936 /// LDKCVec_u8Z DirectionalChannelInfo_write(const LDKDirectionalChannelInfo *obj);
937 public static native long DirectionalChannelInfowrite(long obj);
938 /// LDKDirectionalChannelInfo DirectionalChannelInfo_read(LDKu8slice ser);
939 public static native long DirectionalChannelInforead(long ser);
940 /// void ChannelInfo_free(LDKChannelInfo this_ptr);
941 public static native void ChannelInfofree(long this_ptr);
942 /// LDKPublicKey ChannelInfo_get_node_one(const LDKChannelInfo *this_ptr);
943 public static native long ChannelInfogetnodeone(long this_ptr);
944 /// void ChannelInfo_set_node_one(LDKChannelInfo *this_ptr, LDKPublicKey val);
945 public static native void ChannelInfosetnodeone(long this_ptr, long val);
946 /// LDKDirectionalChannelInfo ChannelInfo_get_one_to_two(const LDKChannelInfo *this_ptr);
947 public static native long ChannelInfogetonetotwo(long this_ptr);
948 /// void ChannelInfo_set_one_to_two(LDKChannelInfo *this_ptr, LDKDirectionalChannelInfo val);
949 public static native void ChannelInfosetonetotwo(long this_ptr, long val);
950 /// LDKPublicKey ChannelInfo_get_node_two(const LDKChannelInfo *this_ptr);
951 public static native long ChannelInfogetnodetwo(long this_ptr);
952 /// void ChannelInfo_set_node_two(LDKChannelInfo *this_ptr, LDKPublicKey val);
953 public static native void ChannelInfosetnodetwo(long this_ptr, long val);
954 /// LDKDirectionalChannelInfo ChannelInfo_get_two_to_one(const LDKChannelInfo *this_ptr);
955 public static native long ChannelInfogettwotoone(long this_ptr);
956 /// void ChannelInfo_set_two_to_one(LDKChannelInfo *this_ptr, LDKDirectionalChannelInfo val);
957 public static native void ChannelInfosettwotoone(long this_ptr, long val);
958 /// LDKCVec_u8Z ChannelInfo_write(const LDKChannelInfo *obj);
959 public static native long ChannelInfowrite(long obj);
960 /// LDKChannelInfo ChannelInfo_read(LDKu8slice ser);
961 public static native long ChannelInforead(long ser);
962 /// void RoutingFees_free(LDKRoutingFees this_ptr);
963 public static native void RoutingFeesfree(long this_ptr);
964 /// uint32_t RoutingFees_get_base_msat(const LDKRoutingFees *this_ptr);
965 public static native int RoutingFeesgetbasemsat(long this_ptr);
966 /// void RoutingFees_set_base_msat(LDKRoutingFees *this_ptr, uint32_t val);
967 public static native void RoutingFeessetbasemsat(long this_ptr, int val);
968 /// uint32_t RoutingFees_get_proportional_millionths(const LDKRoutingFees *this_ptr);
969 public static native int RoutingFeesgetproportionalmillionths(long this_ptr);
970 /// void RoutingFees_set_proportional_millionths(LDKRoutingFees *this_ptr, uint32_t val);
971 public static native void RoutingFeessetproportionalmillionths(long this_ptr, int val);
972 /// MUST_USE_RES LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg);
973 public static native long RoutingFeesnew(int base_msat_arg, int proportional_millionths_arg);
974 /// LDKRoutingFees RoutingFees_read(LDKu8slice ser);
975 public static native long RoutingFeesread(long ser);
976 /// LDKCVec_u8Z RoutingFees_write(const LDKRoutingFees *obj);
977 public static native long RoutingFeeswrite(long obj);
978 /// void NodeAnnouncementInfo_free(LDKNodeAnnouncementInfo this_ptr);
979 public static native void NodeAnnouncementInfofree(long this_ptr);
980 /// uint32_t NodeAnnouncementInfo_get_last_update(const LDKNodeAnnouncementInfo *this_ptr);
981 public static native int NodeAnnouncementInfogetlastupdate(long this_ptr);
982 /// void NodeAnnouncementInfo_set_last_update(LDKNodeAnnouncementInfo *this_ptr, uint32_t val);
983 public static native void NodeAnnouncementInfosetlastupdate(long this_ptr, int val);
984 /// const uint8_t (*NodeAnnouncementInfo_get_rgb(const LDKNodeAnnouncementInfo *this_ptr))[3];
985 public static native byte[] NodeAnnouncementInfogetrgb(long this_ptr);
986 /// void NodeAnnouncementInfo_set_rgb(LDKNodeAnnouncementInfo *this_ptr, LDKThreeBytes val);
987 public static native void NodeAnnouncementInfosetrgb(long this_ptr, long val);
988 /// const uint8_t (*NodeAnnouncementInfo_get_alias(const LDKNodeAnnouncementInfo *this_ptr))[32];
989 public static native byte[] NodeAnnouncementInfogetalias(long this_ptr);
990 /// void NodeAnnouncementInfo_set_alias(LDKNodeAnnouncementInfo *this_ptr, LDKThirtyTwoBytes val);
991 public static native void NodeAnnouncementInfosetalias(long this_ptr, long val);
992 /// void NodeAnnouncementInfo_set_addresses(LDKNodeAnnouncementInfo *this_ptr, LDKCVec_NetAddressZ val);
993 public static native void NodeAnnouncementInfosetaddresses(long this_ptr, long val);
994 /// LDKCVec_u8Z NodeAnnouncementInfo_write(const LDKNodeAnnouncementInfo *obj);
995 public static native long NodeAnnouncementInfowrite(long obj);
996 /// LDKNodeAnnouncementInfo NodeAnnouncementInfo_read(LDKu8slice ser);
997 public static native long NodeAnnouncementInforead(long ser);
998 /// void NodeInfo_free(LDKNodeInfo this_ptr);
999 public static native void NodeInfofree(long this_ptr);
1000 /// void NodeInfo_set_channels(LDKNodeInfo *this_ptr, LDKCVec_u64Z val);
1001 public static native void NodeInfosetchannels(long this_ptr, long val);
1002 /// LDKRoutingFees NodeInfo_get_lowest_inbound_channel_fees(const LDKNodeInfo *this_ptr);
1003 public static native long NodeInfogetlowestinboundchannelfees(long this_ptr);
1004 /// void NodeInfo_set_lowest_inbound_channel_fees(LDKNodeInfo *this_ptr, LDKRoutingFees val);
1005 public static native void NodeInfosetlowestinboundchannelfees(long this_ptr, long val);
1006 /// LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const LDKNodeInfo *this_ptr);
1007 public static native long NodeInfogetannouncementinfo(long this_ptr);
1008 /// void NodeInfo_set_announcement_info(LDKNodeInfo *this_ptr, LDKNodeAnnouncementInfo val);
1009 public static native void NodeInfosetannouncementinfo(long this_ptr, long val);
1010 /// MUST_USE_RES LDKNodeInfo NodeInfo_new(LDKCVec_u64Z channels_arg, LDKRoutingFees lowest_inbound_channel_fees_arg, LDKNodeAnnouncementInfo announcement_info_arg);
1011 public static native long NodeInfonew(long channels_arg, long lowest_inbound_channel_fees_arg, long announcement_info_arg);
1012 /// LDKCVec_u8Z NodeInfo_write(const LDKNodeInfo *obj);
1013 public static native long NodeInfowrite(long obj);
1014 /// LDKNodeInfo NodeInfo_read(LDKu8slice ser);
1015 public static native long NodeInforead(long ser);
1016 /// LDKCVec_u8Z NetworkGraph_write(const LDKNetworkGraph *obj);
1017 public static native long NetworkGraphwrite(long obj);
1018 /// LDKNetworkGraph NetworkGraph_read(LDKu8slice ser);
1019 public static native long NetworkGraphread(long ser);
1020 /// MUST_USE_RES LDKNetworkGraph NetworkGraph_new(void);
1021 public static native long NetworkGraphnew();
1022 /// void NetworkGraph_close_channel_from_update(LDKNetworkGraph *this_arg, uint64_t short_channel_id, bool is_permanent);
1023 public static native void NetworkGraphclosechannelfromupdate(long this_arg, long short_channel_id, boolean is_permanent);