+ // void FilesystemPersister_free(struct LDKFilesystemPersister this_obj);
+ public static native void FilesystemPersister_free(long this_obj);
+ // MUST_USE_RES struct LDKFilesystemPersister FilesystemPersister_new(struct LDKStr path_to_channel_data);
+ public static native long FilesystemPersister_new(String path_to_channel_data);
+ // MUST_USE_RES struct LDKStr FilesystemPersister_get_data_dir(const struct LDKFilesystemPersister *NONNULL_PTR this_arg);
+ public static native String FilesystemPersister_get_data_dir(long this_arg);
+ // MUST_USE_RES struct LDKCResult_NoneErrorZ FilesystemPersister_persist_manager(struct LDKStr data_dir, const struct LDKChannelManager *NONNULL_PTR manager);
+ public static native long FilesystemPersister_persist_manager(String data_dir, long manager);
+ // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ FilesystemPersister_read_channelmonitors(const struct LDKFilesystemPersister *NONNULL_PTR this_arg, struct LDKKeysInterface keys_manager);
+ public static native long FilesystemPersister_read_channelmonitors(long this_arg, long keys_manager);
+ // struct LDKPersist FilesystemPersister_as_Persist(const struct LDKFilesystemPersister *NONNULL_PTR this_arg);
+ public static native long FilesystemPersister_as_Persist(long this_arg);
+ // void BackgroundProcessor_free(struct LDKBackgroundProcessor this_obj);
+ public static native void BackgroundProcessor_free(long this_obj);
+ // void ChannelManagerPersister_free(struct LDKChannelManagerPersister this_ptr);
+ public static native void ChannelManagerPersister_free(long this_ptr);
+ // MUST_USE_RES struct LDKBackgroundProcessor BackgroundProcessor_start(struct LDKChannelManagerPersister persister, struct LDKEventHandler event_handler, const struct LDKChainMonitor *NONNULL_PTR chain_monitor, const struct LDKChannelManager *NONNULL_PTR channel_manager, const struct LDKPeerManager *NONNULL_PTR peer_manager, struct LDKLogger logger);
+ public static native long BackgroundProcessor_start(long persister, long event_handler, long chain_monitor, long channel_manager, long peer_manager, long logger);
+ // MUST_USE_RES struct LDKCResult_NoneErrorZ BackgroundProcessor_join(struct LDKBackgroundProcessor this_arg);
+ public static native long BackgroundProcessor_join(long this_arg);
+ // MUST_USE_RES struct LDKCResult_NoneErrorZ BackgroundProcessor_stop(struct LDKBackgroundProcessor this_arg);
+ public static native long BackgroundProcessor_stop(long this_arg);
+ // void check_platform(void);
+ public static native void check_platform();
+ // void Invoice_free(struct LDKInvoice this_obj);
+ public static native void Invoice_free(long this_obj);
+ // bool Invoice_eq(const struct LDKInvoice *NONNULL_PTR a, const struct LDKInvoice *NONNULL_PTR b);
+ public static native boolean Invoice_eq(long a, long b);
+ // struct LDKInvoice Invoice_clone(const struct LDKInvoice *NONNULL_PTR orig);
+ public static native long Invoice_clone(long orig);
+ // void SignedRawInvoice_free(struct LDKSignedRawInvoice this_obj);
+ public static native void SignedRawInvoice_free(long this_obj);
+ // bool SignedRawInvoice_eq(const struct LDKSignedRawInvoice *NONNULL_PTR a, const struct LDKSignedRawInvoice *NONNULL_PTR b);
+ public static native boolean SignedRawInvoice_eq(long a, long b);
+ // struct LDKSignedRawInvoice SignedRawInvoice_clone(const struct LDKSignedRawInvoice *NONNULL_PTR orig);
+ public static native long SignedRawInvoice_clone(long orig);
+ // void RawInvoice_free(struct LDKRawInvoice this_obj);
+ public static native void RawInvoice_free(long this_obj);
+ // struct LDKRawDataPart RawInvoice_get_data(const struct LDKRawInvoice *NONNULL_PTR this_ptr);
+ public static native long RawInvoice_get_data(long this_ptr);
+ // void RawInvoice_set_data(struct LDKRawInvoice *NONNULL_PTR this_ptr, struct LDKRawDataPart val);
+ public static native void RawInvoice_set_data(long this_ptr, long val);
+ // bool RawInvoice_eq(const struct LDKRawInvoice *NONNULL_PTR a, const struct LDKRawInvoice *NONNULL_PTR b);
+ public static native boolean RawInvoice_eq(long a, long b);
+ // struct LDKRawInvoice RawInvoice_clone(const struct LDKRawInvoice *NONNULL_PTR orig);
+ public static native long RawInvoice_clone(long orig);
+ // void RawDataPart_free(struct LDKRawDataPart this_obj);
+ public static native void RawDataPart_free(long this_obj);
+ // struct LDKPositiveTimestamp RawDataPart_get_timestamp(const struct LDKRawDataPart *NONNULL_PTR this_ptr);
+ public static native long RawDataPart_get_timestamp(long this_ptr);
+ // void RawDataPart_set_timestamp(struct LDKRawDataPart *NONNULL_PTR this_ptr, struct LDKPositiveTimestamp val);
+ public static native void RawDataPart_set_timestamp(long this_ptr, long val);
+ // bool RawDataPart_eq(const struct LDKRawDataPart *NONNULL_PTR a, const struct LDKRawDataPart *NONNULL_PTR b);
+ public static native boolean RawDataPart_eq(long a, long b);
+ // struct LDKRawDataPart RawDataPart_clone(const struct LDKRawDataPart *NONNULL_PTR orig);
+ public static native long RawDataPart_clone(long orig);
+ // void PositiveTimestamp_free(struct LDKPositiveTimestamp this_obj);
+ public static native void PositiveTimestamp_free(long this_obj);
+ // bool PositiveTimestamp_eq(const struct LDKPositiveTimestamp *NONNULL_PTR a, const struct LDKPositiveTimestamp *NONNULL_PTR b);
+ public static native boolean PositiveTimestamp_eq(long a, long b);
+ // struct LDKPositiveTimestamp PositiveTimestamp_clone(const struct LDKPositiveTimestamp *NONNULL_PTR orig);
+ public static native long PositiveTimestamp_clone(long orig);
+ // enum LDKSiPrefix SiPrefix_clone(const enum LDKSiPrefix *NONNULL_PTR orig);
+ public static native SiPrefix SiPrefix_clone(long orig);
+ // enum LDKSiPrefix SiPrefix_milli(void);
+ public static native SiPrefix SiPrefix_milli();
+ // enum LDKSiPrefix SiPrefix_micro(void);
+ public static native SiPrefix SiPrefix_micro();
+ // enum LDKSiPrefix SiPrefix_nano(void);
+ public static native SiPrefix SiPrefix_nano();
+ // enum LDKSiPrefix SiPrefix_pico(void);
+ public static native SiPrefix SiPrefix_pico();
+ // bool SiPrefix_eq(const enum LDKSiPrefix *NONNULL_PTR a, const enum LDKSiPrefix *NONNULL_PTR b);
+ public static native boolean SiPrefix_eq(long a, long b);
+ // MUST_USE_RES uint64_t SiPrefix_multiplier(const enum LDKSiPrefix *NONNULL_PTR this_arg);
+ public static native long SiPrefix_multiplier(long this_arg);
+ // enum LDKCurrency Currency_clone(const enum LDKCurrency *NONNULL_PTR orig);
+ public static native Currency Currency_clone(long orig);
+ // enum LDKCurrency Currency_bitcoin(void);
+ public static native Currency Currency_bitcoin();
+ // enum LDKCurrency Currency_bitcoin_testnet(void);
+ public static native Currency Currency_bitcoin_testnet();
+ // enum LDKCurrency Currency_regtest(void);
+ public static native Currency Currency_regtest();
+ // enum LDKCurrency Currency_simnet(void);
+ public static native Currency Currency_simnet();
+ // enum LDKCurrency Currency_signet(void);
+ public static native Currency Currency_signet();
+ // bool Currency_eq(const enum LDKCurrency *NONNULL_PTR a, const enum LDKCurrency *NONNULL_PTR b);
+ public static native boolean Currency_eq(long a, long b);
+ // void Sha256_free(struct LDKSha256 this_obj);
+ public static native void Sha256_free(long this_obj);
+ // bool Sha256_eq(const struct LDKSha256 *NONNULL_PTR a, const struct LDKSha256 *NONNULL_PTR b);
+ public static native boolean Sha256_eq(long a, long b);
+ // struct LDKSha256 Sha256_clone(const struct LDKSha256 *NONNULL_PTR orig);
+ public static native long Sha256_clone(long orig);
+ // void Description_free(struct LDKDescription this_obj);
+ public static native void Description_free(long this_obj);
+ // bool Description_eq(const struct LDKDescription *NONNULL_PTR a, const struct LDKDescription *NONNULL_PTR b);
+ public static native boolean Description_eq(long a, long b);
+ // struct LDKDescription Description_clone(const struct LDKDescription *NONNULL_PTR orig);
+ public static native long Description_clone(long orig);
+ // void PayeePubKey_free(struct LDKPayeePubKey this_obj);
+ public static native void PayeePubKey_free(long this_obj);
+ // bool PayeePubKey_eq(const struct LDKPayeePubKey *NONNULL_PTR a, const struct LDKPayeePubKey *NONNULL_PTR b);
+ public static native boolean PayeePubKey_eq(long a, long b);
+ // struct LDKPayeePubKey PayeePubKey_clone(const struct LDKPayeePubKey *NONNULL_PTR orig);
+ public static native long PayeePubKey_clone(long orig);
+ // void ExpiryTime_free(struct LDKExpiryTime this_obj);
+ public static native void ExpiryTime_free(long this_obj);
+ // bool ExpiryTime_eq(const struct LDKExpiryTime *NONNULL_PTR a, const struct LDKExpiryTime *NONNULL_PTR b);
+ public static native boolean ExpiryTime_eq(long a, long b);
+ // struct LDKExpiryTime ExpiryTime_clone(const struct LDKExpiryTime *NONNULL_PTR orig);
+ public static native long ExpiryTime_clone(long orig);
+ // void MinFinalCltvExpiry_free(struct LDKMinFinalCltvExpiry this_obj);
+ public static native void MinFinalCltvExpiry_free(long this_obj);
+ // bool MinFinalCltvExpiry_eq(const struct LDKMinFinalCltvExpiry *NONNULL_PTR a, const struct LDKMinFinalCltvExpiry *NONNULL_PTR b);
+ public static native boolean MinFinalCltvExpiry_eq(long a, long b);
+ // struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_clone(const struct LDKMinFinalCltvExpiry *NONNULL_PTR orig);
+ public static native long MinFinalCltvExpiry_clone(long orig);
+ // void Fallback_free(struct LDKFallback this_ptr);
+ public static native void Fallback_free(long this_ptr);
+ // struct LDKFallback Fallback_clone(const struct LDKFallback *NONNULL_PTR orig);
+ public static native long Fallback_clone(long orig);
+ // struct LDKFallback Fallback_seg_wit_program(struct LDKu5 version, struct LDKCVec_u8Z program);
+ public static native long Fallback_seg_wit_program(byte version, byte[] program);
+ // struct LDKFallback Fallback_pub_key_hash(struct LDKTwentyBytes a);
+ public static native long Fallback_pub_key_hash(byte[] a);
+ // struct LDKFallback Fallback_script_hash(struct LDKTwentyBytes a);
+ public static native long Fallback_script_hash(byte[] a);
+ // bool Fallback_eq(const struct LDKFallback *NONNULL_PTR a, const struct LDKFallback *NONNULL_PTR b);
+ public static native boolean Fallback_eq(long a, long b);
+ // void InvoiceSignature_free(struct LDKInvoiceSignature this_obj);
+ public static native void InvoiceSignature_free(long this_obj);
+ // bool InvoiceSignature_eq(const struct LDKInvoiceSignature *NONNULL_PTR a, const struct LDKInvoiceSignature *NONNULL_PTR b);
+ public static native boolean InvoiceSignature_eq(long a, long b);
+ // struct LDKInvoiceSignature InvoiceSignature_clone(const struct LDKInvoiceSignature *NONNULL_PTR orig);
+ public static native long InvoiceSignature_clone(long orig);
+ // void PrivateRoute_free(struct LDKPrivateRoute this_obj);
+ public static native void PrivateRoute_free(long this_obj);
+ // bool PrivateRoute_eq(const struct LDKPrivateRoute *NONNULL_PTR a, const struct LDKPrivateRoute *NONNULL_PTR b);
+ public static native boolean PrivateRoute_eq(long a, long b);
+ // struct LDKPrivateRoute PrivateRoute_clone(const struct LDKPrivateRoute *NONNULL_PTR orig);
+ public static native long PrivateRoute_clone(long orig);
+ // MUST_USE_RES struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ SignedRawInvoice_into_parts(struct LDKSignedRawInvoice this_arg);
+ public static native long SignedRawInvoice_into_parts(long this_arg);
+ // MUST_USE_RES struct LDKRawInvoice SignedRawInvoice_raw_invoice(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
+ public static native long SignedRawInvoice_raw_invoice(long this_arg);
+ // MUST_USE_RES const uint8_t (*SignedRawInvoice_hash(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg))[32];
+ public static native byte[] SignedRawInvoice_hash(long this_arg);
+ // MUST_USE_RES struct LDKInvoiceSignature SignedRawInvoice_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
+ public static native long SignedRawInvoice_signature(long this_arg);
+ // MUST_USE_RES struct LDKCResult_PayeePubKeyErrorZ SignedRawInvoice_recover_payee_pub_key(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
+ public static native long SignedRawInvoice_recover_payee_pub_key(long this_arg);
+ // MUST_USE_RES bool SignedRawInvoice_check_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
+ public static native boolean SignedRawInvoice_check_signature(long this_arg);
+ // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native byte[] RawInvoice_hash(long this_arg);
+ // MUST_USE_RES struct LDKSha256 RawInvoice_payment_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_payment_hash(long this_arg);
+ // MUST_USE_RES struct LDKDescription RawInvoice_description(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_description(long this_arg);
+ // MUST_USE_RES struct LDKPayeePubKey RawInvoice_payee_pub_key(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_payee_pub_key(long this_arg);
+ // MUST_USE_RES struct LDKSha256 RawInvoice_description_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_description_hash(long this_arg);
+ // MUST_USE_RES struct LDKExpiryTime RawInvoice_expiry_time(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_expiry_time(long this_arg);
+ // MUST_USE_RES struct LDKMinFinalCltvExpiry RawInvoice_min_final_cltv_expiry(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_min_final_cltv_expiry(long this_arg);
+ // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_payment_secret(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native byte[] RawInvoice_payment_secret(long this_arg);
+ // MUST_USE_RES struct LDKInvoiceFeatures RawInvoice_features(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_features(long this_arg);
+ // MUST_USE_RES struct LDKCVec_PrivateRouteZ RawInvoice_private_routes(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long[] RawInvoice_private_routes(long this_arg);
+ // MUST_USE_RES struct LDKCOption_u64Z RawInvoice_amount_pico_btc(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_amount_pico_btc(long this_arg);
+ // MUST_USE_RES enum LDKCurrency RawInvoice_currency(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native Currency RawInvoice_currency(long this_arg);
+ // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_unix_timestamp(uint64_t unix_seconds);
+ public static native long PositiveTimestamp_from_unix_timestamp(long unix_seconds);
+ // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_system_time(uint64_t time);
+ public static native long PositiveTimestamp_from_system_time(long time);
+ // MUST_USE_RES uint64_t PositiveTimestamp_as_unix_timestamp(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
+ public static native long PositiveTimestamp_as_unix_timestamp(long this_arg);
+ // MUST_USE_RES uint64_t PositiveTimestamp_as_time(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
+ public static native long PositiveTimestamp_as_time(long this_arg);
+ // MUST_USE_RES struct LDKSignedRawInvoice Invoice_into_signed_raw(struct LDKInvoice this_arg);
+ public static native long Invoice_into_signed_raw(long this_arg);
+ // MUST_USE_RES struct LDKCResult_NoneSemanticErrorZ Invoice_check_signature(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long Invoice_check_signature(long this_arg);
+ // MUST_USE_RES struct LDKCResult_InvoiceSemanticErrorZ Invoice_from_signed(struct LDKSignedRawInvoice signed_invoice);
+ public static native long Invoice_from_signed(long signed_invoice);
+ // MUST_USE_RES uint64_t Invoice_timestamp(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long Invoice_timestamp(long this_arg);
+ // MUST_USE_RES const uint8_t (*Invoice_payment_hash(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
+ public static native byte[] Invoice_payment_hash(long this_arg);
+ // MUST_USE_RES struct LDKPublicKey Invoice_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native byte[] Invoice_payee_pub_key(long this_arg);
+ // MUST_USE_RES struct LDKThirtyTwoBytes Invoice_payment_secret(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native byte[] Invoice_payment_secret(long this_arg);
+ // MUST_USE_RES struct LDKInvoiceFeatures Invoice_features(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long Invoice_features(long this_arg);
+ // MUST_USE_RES struct LDKPublicKey Invoice_recover_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native byte[] Invoice_recover_payee_pub_key(long this_arg);
+ // MUST_USE_RES uint64_t Invoice_expiry_time(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long Invoice_expiry_time(long this_arg);
+ // MUST_USE_RES uint64_t Invoice_min_final_cltv_expiry(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long Invoice_min_final_cltv_expiry(long this_arg);
+ // MUST_USE_RES struct LDKCVec_PrivateRouteZ Invoice_private_routes(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long[] Invoice_private_routes(long this_arg);
+ // MUST_USE_RES struct LDKCVec_RouteHintZ Invoice_route_hints(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long[] Invoice_route_hints(long this_arg);
+ // MUST_USE_RES enum LDKCurrency Invoice_currency(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native Currency Invoice_currency(long this_arg);
+ // MUST_USE_RES struct LDKCOption_u64Z Invoice_amount_pico_btc(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long Invoice_amount_pico_btc(long this_arg);
+ // MUST_USE_RES struct LDKCResult_DescriptionCreationErrorZ Description_new(struct LDKStr description);
+ public static native long Description_new(String description);
+ // MUST_USE_RES struct LDKStr Description_into_inner(struct LDKDescription this_arg);
+ public static native String Description_into_inner(long this_arg);
+ // MUST_USE_RES struct LDKCResult_ExpiryTimeCreationErrorZ ExpiryTime_from_seconds(uint64_t seconds);
+ public static native long ExpiryTime_from_seconds(long seconds);
+ // MUST_USE_RES struct LDKCResult_ExpiryTimeCreationErrorZ ExpiryTime_from_duration(uint64_t duration);
+ public static native long ExpiryTime_from_duration(long duration);
+ // MUST_USE_RES uint64_t ExpiryTime_as_seconds(const struct LDKExpiryTime *NONNULL_PTR this_arg);
+ public static native long ExpiryTime_as_seconds(long this_arg);
+ // MUST_USE_RES uint64_t ExpiryTime_as_duration(const struct LDKExpiryTime *NONNULL_PTR this_arg);
+ public static native long ExpiryTime_as_duration(long this_arg);
+ // MUST_USE_RES struct LDKCResult_PrivateRouteCreationErrorZ PrivateRoute_new(struct LDKRouteHint hops);
+ public static native long PrivateRoute_new(long hops);
+ // MUST_USE_RES struct LDKRouteHint PrivateRoute_into_inner(struct LDKPrivateRoute this_arg);
+ public static native long PrivateRoute_into_inner(long this_arg);
+ // enum LDKCreationError CreationError_clone(const enum LDKCreationError *NONNULL_PTR orig);
+ public static native CreationError CreationError_clone(long orig);
+ // enum LDKCreationError CreationError_description_too_long(void);
+ public static native CreationError CreationError_description_too_long();
+ // enum LDKCreationError CreationError_route_too_long(void);
+ public static native CreationError CreationError_route_too_long();
+ // enum LDKCreationError CreationError_timestamp_out_of_bounds(void);
+ public static native CreationError CreationError_timestamp_out_of_bounds();
+ // enum LDKCreationError CreationError_expiry_time_out_of_bounds(void);
+ public static native CreationError CreationError_expiry_time_out_of_bounds();
+ // bool CreationError_eq(const enum LDKCreationError *NONNULL_PTR a, const enum LDKCreationError *NONNULL_PTR b);
+ public static native boolean CreationError_eq(long a, long b);
+ // struct LDKStr CreationError_to_str(const enum LDKCreationError *NONNULL_PTR o);
+ public static native String CreationError_to_str(long o);
+ // enum LDKSemanticError SemanticError_clone(const enum LDKSemanticError *NONNULL_PTR orig);
+ public static native SemanticError SemanticError_clone(long orig);
+ // enum LDKSemanticError SemanticError_no_payment_hash(void);
+ public static native SemanticError SemanticError_no_payment_hash();
+ // enum LDKSemanticError SemanticError_multiple_payment_hashes(void);
+ public static native SemanticError SemanticError_multiple_payment_hashes();
+ // enum LDKSemanticError SemanticError_no_description(void);
+ public static native SemanticError SemanticError_no_description();
+ // enum LDKSemanticError SemanticError_multiple_descriptions(void);
+ public static native SemanticError SemanticError_multiple_descriptions();
+ // enum LDKSemanticError SemanticError_multiple_payment_secrets(void);
+ public static native SemanticError SemanticError_multiple_payment_secrets();
+ // enum LDKSemanticError SemanticError_invalid_features(void);
+ public static native SemanticError SemanticError_invalid_features();
+ // enum LDKSemanticError SemanticError_invalid_recovery_id(void);
+ public static native SemanticError SemanticError_invalid_recovery_id();
+ // enum LDKSemanticError SemanticError_invalid_signature(void);
+ public static native SemanticError SemanticError_invalid_signature();
+ // bool SemanticError_eq(const enum LDKSemanticError *NONNULL_PTR a, const enum LDKSemanticError *NONNULL_PTR b);
+ public static native boolean SemanticError_eq(long a, long b);
+ // struct LDKStr SemanticError_to_str(const enum LDKSemanticError *NONNULL_PTR o);
+ public static native String SemanticError_to_str(long o);
+ // void SignOrCreationError_free(struct LDKSignOrCreationError this_ptr);
+ public static native void SignOrCreationError_free(long this_ptr);
+ // struct LDKSignOrCreationError SignOrCreationError_clone(const struct LDKSignOrCreationError *NONNULL_PTR orig);
+ public static native long SignOrCreationError_clone(long orig);
+ // struct LDKSignOrCreationError SignOrCreationError_sign_error(void);
+ public static native long SignOrCreationError_sign_error();
+ // struct LDKSignOrCreationError SignOrCreationError_creation_error(enum LDKCreationError a);
+ public static native long SignOrCreationError_creation_error(CreationError a);
+ // bool SignOrCreationError_eq(const struct LDKSignOrCreationError *NONNULL_PTR a, const struct LDKSignOrCreationError *NONNULL_PTR b);
+ public static native boolean SignOrCreationError_eq(long a, long b);
+ // struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NONNULL_PTR o);
+ public static native String SignOrCreationError_to_str(long o);
+ // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKKeysInterface keys_manager, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description);
+ public static native long create_invoice_from_channelmanager(long channelmanager, long keys_manager, Currency network, long amt_msat, String description);
+ // struct LDKCResult_SiPrefixNoneZ SiPrefix_from_str(struct LDKStr s);
+ public static native long SiPrefix_from_str(String s);
+ // struct LDKCResult_InvoiceNoneZ Invoice_from_str(struct LDKStr s);
+ public static native long Invoice_from_str(String s);
+ // struct LDKCResult_SignedRawInvoiceNoneZ SignedRawInvoice_from_str(struct LDKStr s);
+ public static native long SignedRawInvoice_from_str(String s);
+ // struct LDKStr Invoice_to_str(const struct LDKInvoice *NONNULL_PTR o);
+ public static native String Invoice_to_str(long o);
+ // struct LDKStr SignedRawInvoice_to_str(const struct LDKSignedRawInvoice *NONNULL_PTR o);
+ public static native String SignedRawInvoice_to_str(long o);
+ // struct LDKStr Currency_to_str(const enum LDKCurrency *NONNULL_PTR o);
+ public static native String Currency_to_str(long o);
+ // struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o);
+ public static native String SiPrefix_to_str(long o);