- static { LDKFallback.init(); }
- public static native LDKFallback LDKFallback_ref_from_ptr(long ptr);
- // struct LDKStr _ldk_get_compiled_version(void);
- public static native String _ldk_get_compiled_version();
- // struct LDKStr _ldk_c_bindings_get_compiled_version(void);
- public static native String _ldk_c_bindings_get_compiled_version();
- // struct LDKSixteenBytes U128_le_bytes(struct LDKU128 val);
- public static native byte[] U128_le_bytes(byte[] val);
- // struct LDKU128 U128_new(struct LDKSixteenBytes le_bytes);
- public static native byte[] U128_new(byte[] le_bytes);
- // struct LDKBigEndianScalar BigEndianScalar_new(struct LDKThirtyTwoBytes big_endian_bytes);
- public static native long BigEndianScalar_new(byte[] big_endian_bytes);
- // uint64_t Bech32Error_clone_ptr(LDKBech32Error *NONNULL_PTR arg);
- public static native long Bech32Error_clone_ptr(long arg);
- // struct LDKBech32Error Bech32Error_clone(const struct LDKBech32Error *NONNULL_PTR orig);
- public static native long Bech32Error_clone(long orig);
- // void Bech32Error_free(struct LDKBech32Error o);
- public static native void Bech32Error_free(long o);
- // void Transaction_free(struct LDKTransaction _res);
- public static native void Transaction_free(byte[] _res);
- // void Witness_free(struct LDKWitness _res);
- public static native void Witness_free(byte[] _res);
- // struct LDKTxOut TxOut_new(struct LDKCVec_u8Z script_pubkey, uint64_t value);
- public static native long TxOut_new(byte[] script_pubkey, long value);
- // void TxOut_free(struct LDKTxOut _res);
- public static native void TxOut_free(long _res);
- // uint64_t TxOut_clone_ptr(LDKTxOut *NONNULL_PTR arg);
- public static native long TxOut_clone_ptr(long arg);
- // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
- public static native long TxOut_clone(long orig);
- // void Str_free(struct LDKStr _res);
- public static native void Str_free(String _res);
- // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
- public static native long CResult_NoneAPIErrorZ_ok();
- // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
- public static native long CResult_NoneAPIErrorZ_err(long e);
- // bool CResult_NoneAPIErrorZ_is_ok(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR o);
- public static native boolean CResult_NoneAPIErrorZ_is_ok(long o);
- // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
- public static native void CResult_NoneAPIErrorZ_free(long _res);
- // uint64_t CResult_NoneAPIErrorZ_clone_ptr(LDKCResult_NoneAPIErrorZ *NONNULL_PTR arg);
- public static native long CResult_NoneAPIErrorZ_clone_ptr(long arg);
- // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig);
- public static native long CResult_NoneAPIErrorZ_clone(long orig);
- // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res);
- public static native void CVec_CResult_NoneAPIErrorZZ_free(long[] _res);
- // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res);
- public static native void CVec_APIErrorZ_free(long[] _res);
- // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_some(enum LDKHTLCClaim o);
- public static native long COption_HTLCClaimZ_some(HTLCClaim o);
- // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_none(void);
- public static native long COption_HTLCClaimZ_none();
- // void COption_HTLCClaimZ_free(struct LDKCOption_HTLCClaimZ _res);
- public static native void COption_HTLCClaimZ_free(long _res);
- // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_ok(void);
- public static native long CResult_NoneNoneZ_ok();
- // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_err(void);
- public static native long CResult_NoneNoneZ_err();
- // bool CResult_NoneNoneZ_is_ok(const struct LDKCResult_NoneNoneZ *NONNULL_PTR o);
- public static native boolean CResult_NoneNoneZ_is_ok(long o);
- // void CResult_NoneNoneZ_free(struct LDKCResult_NoneNoneZ _res);
- public static native void CResult_NoneNoneZ_free(long _res);
- // uint64_t CResult_NoneNoneZ_clone_ptr(LDKCResult_NoneNoneZ *NONNULL_PTR arg);
- public static native long CResult_NoneNoneZ_clone_ptr(long arg);
- // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_NoneNoneZ *NONNULL_PTR orig);
- public static native long CResult_NoneNoneZ_clone(long orig);
- // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o);
- public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(long o);
- // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(long e);
- // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(long o);
- // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res);
- public static native void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(long _res);
- // uint64_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(long orig);
- // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o);
- public static native long CResult_TxCreationKeysDecodeErrorZ_ok(long o);
- // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_TxCreationKeysDecodeErrorZ_err(long e);
- // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_TxCreationKeysDecodeErrorZ_is_ok(long o);
- // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
- public static native void CResult_TxCreationKeysDecodeErrorZ_free(long _res);
- // uint64_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_TxCreationKeysDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_TxCreationKeysDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o);
- public static native long CResult_ChannelPublicKeysDecodeErrorZ_ok(long o);
- // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ChannelPublicKeysDecodeErrorZ_err(long e);
- // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ChannelPublicKeysDecodeErrorZ_is_ok(long o);
- // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
- public static native void CResult_ChannelPublicKeysDecodeErrorZ_free(long _res);
- // uint64_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone(long orig);
- // struct LDKCOption_u32Z COption_u32Z_some(uint32_t o);
- public static native long COption_u32Z_some(int o);
- // struct LDKCOption_u32Z COption_u32Z_none(void);
- public static native long COption_u32Z_none();
- // void COption_u32Z_free(struct LDKCOption_u32Z _res);
- public static native void COption_u32Z_free(long _res);
- // uint64_t COption_u32Z_clone_ptr(LDKCOption_u32Z *NONNULL_PTR arg);
- public static native long COption_u32Z_clone_ptr(long arg);
- // struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig);
- public static native long COption_u32Z_clone(long orig);
- // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o);
- public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(long o);
- // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_err(long e);
- // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(long o);
- // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
- public static native void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(long _res);
- // uint64_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(long orig);
- // enum LDKCOption_NoneZ COption_NoneZ_some(void);
- public static native COption_NoneZ COption_NoneZ_some();
- // enum LDKCOption_NoneZ COption_NoneZ_none(void);
- public static native COption_NoneZ COption_NoneZ_none();
- // void COption_NoneZ_free(enum LDKCOption_NoneZ _res);
- public static native void COption_NoneZ_free(COption_NoneZ _res);
- // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o);
- public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(long o);
- // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(long e);
- // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(long o);
- // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
- public static native void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(long _res);
- // uint64_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o);
- public static native long CResult_ChannelTransactionParametersDecodeErrorZ_ok(long o);
- // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ChannelTransactionParametersDecodeErrorZ_err(long e);
- // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(long o);
- // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
- public static native void CResult_ChannelTransactionParametersDecodeErrorZ_free(long _res);
- // uint64_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone(long orig);
- // void CVec_SignatureZ_free(struct LDKCVec_SignatureZ _res);
- public static native void CVec_SignatureZ_free(byte[][] _res);
- // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o);
- public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_ok(long o);
- // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_err(long e);
- // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(long o);
- // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
- public static native void CResult_HolderCommitmentTransactionDecodeErrorZ_free(long _res);
- // uint64_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone(long orig);
- // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o);
- public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(long o);
- // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_err(long e);
- // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(long o);
- // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
- public static native void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(long _res);
- // uint64_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(long orig);
- // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o);
- public static native long CResult_TrustedClosingTransactionNoneZ_ok(long o);
- // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void);
- public static native long CResult_TrustedClosingTransactionNoneZ_err();
- // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o);
- public static native boolean CResult_TrustedClosingTransactionNoneZ_is_ok(long o);
- // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res);
- public static native void CResult_TrustedClosingTransactionNoneZ_free(long _res);
- // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o);
- public static native long CResult_CommitmentTransactionDecodeErrorZ_ok(long o);
- // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_CommitmentTransactionDecodeErrorZ_err(long e);
- // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_CommitmentTransactionDecodeErrorZ_is_ok(long o);
- // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
- public static native void CResult_CommitmentTransactionDecodeErrorZ_free(long _res);
- // uint64_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_CommitmentTransactionDecodeErrorZ_clone(long orig);
- // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
- public static native long CResult_TrustedCommitmentTransactionNoneZ_ok(long o);
- // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
- public static native long CResult_TrustedCommitmentTransactionNoneZ_err();
- // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o);
- public static native boolean CResult_TrustedCommitmentTransactionNoneZ_is_ok(long o);
- // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
- public static native void CResult_TrustedCommitmentTransactionNoneZ_free(long _res);
- // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_ok(struct LDKCVec_SignatureZ o);
- public static native long CResult_CVec_SignatureZNoneZ_ok(byte[][] o);
- // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_err(void);
- public static native long CResult_CVec_SignatureZNoneZ_err();
- // bool CResult_CVec_SignatureZNoneZ_is_ok(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR o);
- public static native boolean CResult_CVec_SignatureZNoneZ_is_ok(long o);
- // void CResult_CVec_SignatureZNoneZ_free(struct LDKCResult_CVec_SignatureZNoneZ _res);
- public static native void CResult_CVec_SignatureZNoneZ_free(long _res);
- // uint64_t CResult_CVec_SignatureZNoneZ_clone_ptr(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR arg);
- public static native long CResult_CVec_SignatureZNoneZ_clone_ptr(long arg);
- // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_clone(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR orig);
- public static native long CResult_CVec_SignatureZNoneZ_clone(long orig);
- // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o);
- public static native long CResult_ShutdownScriptDecodeErrorZ_ok(long o);
- // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ShutdownScriptDecodeErrorZ_err(long e);
- // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ShutdownScriptDecodeErrorZ_is_ok(long o);
- // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res);
- public static native void CResult_ShutdownScriptDecodeErrorZ_free(long _res);
- // uint64_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ShutdownScriptDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ShutdownScriptDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o);
- public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_ok(long o);
- // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e);
- public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_err(long e);
- // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o);
- public static native boolean CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(long o);
- // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res);
- public static native void CResult_ShutdownScriptInvalidShutdownScriptZ_free(long _res);
- // uint64_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg);
- public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(long arg);
- // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig);
- public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_clone(long orig);
- // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
- public static native void CVec_PublicKeyZ_free(byte[][] _res);
- // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_ok(struct LDKBlindedPath o);
- public static native long CResult_BlindedPathNoneZ_ok(long o);
- // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_err(void);
- public static native long CResult_BlindedPathNoneZ_err();
- // bool CResult_BlindedPathNoneZ_is_ok(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR o);
- public static native boolean CResult_BlindedPathNoneZ_is_ok(long o);
- // void CResult_BlindedPathNoneZ_free(struct LDKCResult_BlindedPathNoneZ _res);
- public static native void CResult_BlindedPathNoneZ_free(long _res);
- // uint64_t CResult_BlindedPathNoneZ_clone_ptr(LDKCResult_BlindedPathNoneZ *NONNULL_PTR arg);
- public static native long CResult_BlindedPathNoneZ_clone_ptr(long arg);
- // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_clone(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR orig);
- public static native long CResult_BlindedPathNoneZ_clone(long orig);
- // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_ok(struct LDKBlindedPath o);
- public static native long CResult_BlindedPathDecodeErrorZ_ok(long o);
- // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_BlindedPathDecodeErrorZ_err(long e);
- // bool CResult_BlindedPathDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_BlindedPathDecodeErrorZ_is_ok(long o);
- // void CResult_BlindedPathDecodeErrorZ_free(struct LDKCResult_BlindedPathDecodeErrorZ _res);
- public static native void CResult_BlindedPathDecodeErrorZ_free(long _res);
- // uint64_t CResult_BlindedPathDecodeErrorZ_clone_ptr(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_BlindedPathDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_clone(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_BlindedPathDecodeErrorZ_clone(long orig);
- // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_ok(struct LDKBlindedHop o);
- public static native long CResult_BlindedHopDecodeErrorZ_ok(long o);
- // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_BlindedHopDecodeErrorZ_err(long e);
- // bool CResult_BlindedHopDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_BlindedHopDecodeErrorZ_is_ok(long o);
- // void CResult_BlindedHopDecodeErrorZ_free(struct LDKCResult_BlindedHopDecodeErrorZ _res);
- public static native void CResult_BlindedHopDecodeErrorZ_free(long _res);
- // uint64_t CResult_BlindedHopDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_BlindedHopDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_clone(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_BlindedHopDecodeErrorZ_clone(long orig);
- // struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_some(struct LDKWriteableScore o);
- public static native long COption_WriteableScoreZ_some(long o);
- // struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_none(void);
- public static native long COption_WriteableScoreZ_none();
- // void COption_WriteableScoreZ_free(struct LDKCOption_WriteableScoreZ _res);
- public static native void COption_WriteableScoreZ_free(long _res);
- // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_ok(void);
- public static native long CResult_NoneErrorZ_ok();
- // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_err(enum LDKIOError e);
- public static native long CResult_NoneErrorZ_err(IOError e);
- // bool CResult_NoneErrorZ_is_ok(const struct LDKCResult_NoneErrorZ *NONNULL_PTR o);
- public static native boolean CResult_NoneErrorZ_is_ok(long o);
- // void CResult_NoneErrorZ_free(struct LDKCResult_NoneErrorZ _res);
- public static native void CResult_NoneErrorZ_free(long _res);
- // uint64_t CResult_NoneErrorZ_clone_ptr(LDKCResult_NoneErrorZ *NONNULL_PTR arg);
- public static native long CResult_NoneErrorZ_clone_ptr(long arg);
- // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_clone(const struct LDKCResult_NoneErrorZ *NONNULL_PTR orig);
- public static native long CResult_NoneErrorZ_clone(long orig);
- // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
- public static native void CVec_ChannelDetailsZ_free(long[] _res);
- // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
- public static native long CResult_RouteLightningErrorZ_ok(long o);
- // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
- public static native long CResult_RouteLightningErrorZ_err(long e);
- // bool CResult_RouteLightningErrorZ_is_ok(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR o);
- public static native boolean CResult_RouteLightningErrorZ_is_ok(long o);
- // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
- public static native void CResult_RouteLightningErrorZ_free(long _res);
- // uint64_t CResult_RouteLightningErrorZ_clone_ptr(LDKCResult_RouteLightningErrorZ *NONNULL_PTR arg);
- public static native long CResult_RouteLightningErrorZ_clone_ptr(long arg);
- // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
- public static native long CResult_RouteLightningErrorZ_clone(long orig);
- // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
- public static native void CVec_RouteHopZ_free(long[] _res);
- // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o);
- public static native long COption_u64Z_some(long o);
- // struct LDKCOption_u64Z COption_u64Z_none(void);
- public static native long COption_u64Z_none();
- // void COption_u64Z_free(struct LDKCOption_u64Z _res);
- public static native void COption_u64Z_free(long _res);
- // uint64_t COption_u64Z_clone_ptr(LDKCOption_u64Z *NONNULL_PTR arg);
- public static native long COption_u64Z_clone_ptr(long arg);
- // struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig);
- public static native long COption_u64Z_clone(long orig);
- // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_ok(struct LDKInFlightHtlcs o);
- public static native long CResult_InFlightHtlcsDecodeErrorZ_ok(long o);
- // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_InFlightHtlcsDecodeErrorZ_err(long e);
- // bool CResult_InFlightHtlcsDecodeErrorZ_is_ok(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_InFlightHtlcsDecodeErrorZ_is_ok(long o);
- // void CResult_InFlightHtlcsDecodeErrorZ_free(struct LDKCResult_InFlightHtlcsDecodeErrorZ _res);
- public static native void CResult_InFlightHtlcsDecodeErrorZ_free(long _res);
- // uint64_t CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_clone(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_InFlightHtlcsDecodeErrorZ_clone(long orig);
- // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_ok(struct LDKRouteHop o);
- public static native long CResult_RouteHopDecodeErrorZ_ok(long o);
- // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_RouteHopDecodeErrorZ_err(long e);
- // bool CResult_RouteHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_RouteHopDecodeErrorZ_is_ok(long o);
- // void CResult_RouteHopDecodeErrorZ_free(struct LDKCResult_RouteHopDecodeErrorZ _res);
- public static native void CResult_RouteHopDecodeErrorZ_free(long _res);
- // uint64_t CResult_RouteHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_RouteHopDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_clone(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_RouteHopDecodeErrorZ_clone(long orig);
- // void CVec_CVec_RouteHopZZ_free(struct LDKCVec_CVec_RouteHopZZ _res);
- public static native void CVec_CVec_RouteHopZZ_free(long[][] _res);
- // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
- public static native long CResult_RouteDecodeErrorZ_ok(long o);
- // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_RouteDecodeErrorZ_err(long e);
- // bool CResult_RouteDecodeErrorZ_is_ok(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_RouteDecodeErrorZ_is_ok(long o);
- // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
- public static native void CResult_RouteDecodeErrorZ_free(long _res);
- // uint64_t CResult_RouteDecodeErrorZ_clone_ptr(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_RouteDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_RouteDecodeErrorZ_clone(long orig);
- // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_ok(struct LDKRouteParameters o);
- public static native long CResult_RouteParametersDecodeErrorZ_ok(long o);
- // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_RouteParametersDecodeErrorZ_err(long e);
- // bool CResult_RouteParametersDecodeErrorZ_is_ok(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_RouteParametersDecodeErrorZ_is_ok(long o);
- // void CResult_RouteParametersDecodeErrorZ_free(struct LDKCResult_RouteParametersDecodeErrorZ _res);
- public static native void CResult_RouteParametersDecodeErrorZ_free(long _res);
- // uint64_t CResult_RouteParametersDecodeErrorZ_clone_ptr(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_RouteParametersDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_clone(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_RouteParametersDecodeErrorZ_clone(long orig);
- // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
- public static native void CVec_RouteHintZ_free(long[] _res);
- // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
- public static native void CVec_u64Z_free(long[] _res);
- // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_ok(struct LDKPaymentParameters o);
- public static native long CResult_PaymentParametersDecodeErrorZ_ok(long o);
- // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_PaymentParametersDecodeErrorZ_err(long e);
- // bool CResult_PaymentParametersDecodeErrorZ_is_ok(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_PaymentParametersDecodeErrorZ_is_ok(long o);
- // void CResult_PaymentParametersDecodeErrorZ_free(struct LDKCResult_PaymentParametersDecodeErrorZ _res);
- public static native void CResult_PaymentParametersDecodeErrorZ_free(long _res);
- // uint64_t CResult_PaymentParametersDecodeErrorZ_clone_ptr(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_PaymentParametersDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_clone(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_PaymentParametersDecodeErrorZ_clone(long orig);
- // void CVec_RouteHintHopZ_free(struct LDKCVec_RouteHintHopZ _res);
- public static native void CVec_RouteHintHopZ_free(long[] _res);
- // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_ok(struct LDKRouteHint o);
- public static native long CResult_RouteHintDecodeErrorZ_ok(long o);
- // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_RouteHintDecodeErrorZ_err(long e);
- // bool CResult_RouteHintDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_RouteHintDecodeErrorZ_is_ok(long o);
- // void CResult_RouteHintDecodeErrorZ_free(struct LDKCResult_RouteHintDecodeErrorZ _res);
- public static native void CResult_RouteHintDecodeErrorZ_free(long _res);
- // uint64_t CResult_RouteHintDecodeErrorZ_clone_ptr(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_RouteHintDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_clone(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_RouteHintDecodeErrorZ_clone(long orig);
- // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_ok(struct LDKRouteHintHop o);
- public static native long CResult_RouteHintHopDecodeErrorZ_ok(long o);
- // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_RouteHintHopDecodeErrorZ_err(long e);
- // bool CResult_RouteHintHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_RouteHintHopDecodeErrorZ_is_ok(long o);
- // void CResult_RouteHintHopDecodeErrorZ_free(struct LDKCResult_RouteHintHopDecodeErrorZ _res);
- public static native void CResult_RouteHintHopDecodeErrorZ_free(long _res);
- // uint64_t CResult_RouteHintHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_RouteHintHopDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_clone(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_RouteHintHopDecodeErrorZ_clone(long orig);
- // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_ok(struct LDKPaymentPurpose o);
- public static native long CResult_PaymentPurposeDecodeErrorZ_ok(long o);
- // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_PaymentPurposeDecodeErrorZ_err(long e);
- // bool CResult_PaymentPurposeDecodeErrorZ_is_ok(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_PaymentPurposeDecodeErrorZ_is_ok(long o);
- // void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDecodeErrorZ _res);
- public static native void CResult_PaymentPurposeDecodeErrorZ_free(long _res);
- // uint64_t CResult_PaymentPurposeDecodeErrorZ_clone_ptr(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_PaymentPurposeDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_PaymentPurposeDecodeErrorZ_clone(long orig);
- // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_some(struct LDKNetworkUpdate o);
- public static native long COption_NetworkUpdateZ_some(long o);
- // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_none(void);
- public static native long COption_NetworkUpdateZ_none();
- // void COption_NetworkUpdateZ_free(struct LDKCOption_NetworkUpdateZ _res);
- public static native void COption_NetworkUpdateZ_free(long _res);
- // uint64_t COption_NetworkUpdateZ_clone_ptr(LDKCOption_NetworkUpdateZ *NONNULL_PTR arg);
- public static native long COption_NetworkUpdateZ_clone_ptr(long arg);
- // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_clone(const struct LDKCOption_NetworkUpdateZ *NONNULL_PTR orig);
- public static native long COption_NetworkUpdateZ_clone(long orig);
- // struct LDKCOption_PathFailureZ COption_PathFailureZ_some(struct LDKPathFailure o);
- public static native long COption_PathFailureZ_some(long o);
- // struct LDKCOption_PathFailureZ COption_PathFailureZ_none(void);
- public static native long COption_PathFailureZ_none();
- // void COption_PathFailureZ_free(struct LDKCOption_PathFailureZ _res);
- public static native void COption_PathFailureZ_free(long _res);
- // uint64_t COption_PathFailureZ_clone_ptr(LDKCOption_PathFailureZ *NONNULL_PTR arg);
- public static native long COption_PathFailureZ_clone_ptr(long arg);
- // struct LDKCOption_PathFailureZ COption_PathFailureZ_clone(const struct LDKCOption_PathFailureZ *NONNULL_PTR orig);
- public static native long COption_PathFailureZ_clone(long orig);
- // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_ok(struct LDKCOption_PathFailureZ o);
- public static native long CResult_COption_PathFailureZDecodeErrorZ_ok(long o);
- // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_COption_PathFailureZDecodeErrorZ_err(long e);
- // bool CResult_COption_PathFailureZDecodeErrorZ_is_ok(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_COption_PathFailureZDecodeErrorZ_is_ok(long o);
- // void CResult_COption_PathFailureZDecodeErrorZ_free(struct LDKCResult_COption_PathFailureZDecodeErrorZ _res);
- public static native void CResult_COption_PathFailureZDecodeErrorZ_free(long _res);
- // uint64_t CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_clone(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_COption_PathFailureZDecodeErrorZ_clone(long orig);
- // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o);
- public static native long COption_ClosureReasonZ_some(long o);
- // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void);
- public static native long COption_ClosureReasonZ_none();
- // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res);
- public static native void COption_ClosureReasonZ_free(long _res);
- // uint64_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg);
- public static native long COption_ClosureReasonZ_clone_ptr(long arg);
- // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig);
- public static native long COption_ClosureReasonZ_clone(long orig);
- // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o);
- public static native long CResult_COption_ClosureReasonZDecodeErrorZ_ok(long o);
- // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_COption_ClosureReasonZDecodeErrorZ_err(long e);
- // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(long o);
- // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res);
- public static native void CResult_COption_ClosureReasonZDecodeErrorZ_free(long _res);
- // uint64_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_COption_ClosureReasonZDecodeErrorZ_clone(long orig);
- // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_some(struct LDKHTLCDestination o);
- public static native long COption_HTLCDestinationZ_some(long o);
- // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_none(void);
- public static native long COption_HTLCDestinationZ_none();
- // void COption_HTLCDestinationZ_free(struct LDKCOption_HTLCDestinationZ _res);
- public static native void COption_HTLCDestinationZ_free(long _res);
- // uint64_t COption_HTLCDestinationZ_clone_ptr(LDKCOption_HTLCDestinationZ *NONNULL_PTR arg);
- public static native long COption_HTLCDestinationZ_clone_ptr(long arg);
- // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_clone(const struct LDKCOption_HTLCDestinationZ *NONNULL_PTR orig);
- public static native long COption_HTLCDestinationZ_clone(long orig);
- // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_ok(struct LDKCOption_HTLCDestinationZ o);
- public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_ok(long o);
- // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_err(long e);
- // bool CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(long o);
- // void CResult_COption_HTLCDestinationZDecodeErrorZ_free(struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ _res);
- public static native void CResult_COption_HTLCDestinationZDecodeErrorZ_free(long _res);
- // uint64_t CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_clone(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_clone(long orig);
- // struct LDKCOption_u128Z COption_u128Z_some(struct LDKU128 o);
- public static native long COption_u128Z_some(byte[] o);
- // struct LDKCOption_u128Z COption_u128Z_none(void);
- public static native long COption_u128Z_none();
- // void COption_u128Z_free(struct LDKCOption_u128Z _res);
- public static native void COption_u128Z_free(long _res);
- // uint64_t COption_u128Z_clone_ptr(LDKCOption_u128Z *NONNULL_PTR arg);
- public static native long COption_u128Z_clone_ptr(long arg);
- // struct LDKCOption_u128Z COption_u128Z_clone(const struct LDKCOption_u128Z *NONNULL_PTR orig);
- public static native long COption_u128Z_clone(long orig);
- // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
- public static native void CVec_SpendableOutputDescriptorZ_free(long[] _res);
- // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o);
- public static native long COption_EventZ_some(long o);
- // struct LDKCOption_EventZ COption_EventZ_none(void);
- public static native long COption_EventZ_none();
- // void COption_EventZ_free(struct LDKCOption_EventZ _res);
- public static native void COption_EventZ_free(long _res);
- // uint64_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg);
- public static native long COption_EventZ_clone_ptr(long arg);
- // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig);
- public static native long COption_EventZ_clone(long orig);
- // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o);
- public static native long CResult_COption_EventZDecodeErrorZ_ok(long o);
- // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_COption_EventZDecodeErrorZ_err(long e);
- // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_COption_EventZDecodeErrorZ_is_ok(long o);
- // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res);
- public static native void CResult_COption_EventZDecodeErrorZ_free(long _res);
- // uint64_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_COption_EventZDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_COption_EventZDecodeErrorZ_clone(long orig);
- // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
- public static native void CVec_MessageSendEventZ_free(long[] _res);
- // uint64_t C2Tuple_usizeTransactionZ_clone_ptr(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR arg);
- public static native long C2Tuple_usizeTransactionZ_clone_ptr(long arg);
- // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_clone(const struct LDKC2Tuple_usizeTransactionZ *NONNULL_PTR orig);
- public static native long C2Tuple_usizeTransactionZ_clone(long orig);
- // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
- public static native long C2Tuple_usizeTransactionZ_new(long a, byte[] b);
- // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
- public static native void C2Tuple_usizeTransactionZ_free(long _res);
- // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
- public static native void CVec_C2Tuple_usizeTransactionZZ_free(long[] _res);
- // uint64_t C2Tuple_TxidBlockHashZ_clone_ptr(LDKC2Tuple_TxidBlockHashZ *NONNULL_PTR arg);
- public static native long C2Tuple_TxidBlockHashZ_clone_ptr(long arg);
- // struct LDKC2Tuple_TxidBlockHashZ C2Tuple_TxidBlockHashZ_clone(const struct LDKC2Tuple_TxidBlockHashZ *NONNULL_PTR orig);
- public static native long C2Tuple_TxidBlockHashZ_clone(long orig);
- // struct LDKC2Tuple_TxidBlockHashZ C2Tuple_TxidBlockHashZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
- public static native long C2Tuple_TxidBlockHashZ_new(byte[] a, byte[] b);
- // void C2Tuple_TxidBlockHashZ_free(struct LDKC2Tuple_TxidBlockHashZ _res);
- public static native void C2Tuple_TxidBlockHashZ_free(long _res);
- // void CVec_C2Tuple_TxidBlockHashZZ_free(struct LDKCVec_C2Tuple_TxidBlockHashZZ _res);
- public static native void CVec_C2Tuple_TxidBlockHashZZ_free(long[] _res);
- // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
- public static native void CVec_MonitorEventZ_free(long[] _res);
- // uint64_t C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR arg);
- public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(long arg);
- // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(const struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR orig);
- public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(long orig);
- // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorEventZ b, struct LDKPublicKey c);
- public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(long a, long[] b, byte[] c);
- // void C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ _res);
- public static native void C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(long _res);
- // void CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(struct LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ _res);
- public static native void CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(long[] _res);
- // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_ok(struct LDKFixedPenaltyScorer o);
- public static native long CResult_FixedPenaltyScorerDecodeErrorZ_ok(long o);
- // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_FixedPenaltyScorerDecodeErrorZ_err(long e);
- // bool CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(long o);
- // void CResult_FixedPenaltyScorerDecodeErrorZ_free(struct LDKCResult_FixedPenaltyScorerDecodeErrorZ _res);
- public static native void CResult_FixedPenaltyScorerDecodeErrorZ_free(long _res);
- // uint64_t CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_clone(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_FixedPenaltyScorerDecodeErrorZ_clone(long orig);
- // uint64_t C2Tuple_u64u64Z_clone_ptr(LDKC2Tuple_u64u64Z *NONNULL_PTR arg);
- public static native long C2Tuple_u64u64Z_clone_ptr(long arg);
- // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_clone(const struct LDKC2Tuple_u64u64Z *NONNULL_PTR orig);
- public static native long C2Tuple_u64u64Z_clone(long orig);
- // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_new(uint64_t a, uint64_t b);
- public static native long C2Tuple_u64u64Z_new(long a, long b);
- // void C2Tuple_u64u64Z_free(struct LDKC2Tuple_u64u64Z _res);
- public static native void C2Tuple_u64u64Z_free(long _res);
- // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_some(struct LDKC2Tuple_u64u64Z o);
- public static native long COption_C2Tuple_u64u64ZZ_some(long o);
- // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_none(void);
- public static native long COption_C2Tuple_u64u64ZZ_none();
- // void COption_C2Tuple_u64u64ZZ_free(struct LDKCOption_C2Tuple_u64u64ZZ _res);
- public static native void COption_C2Tuple_u64u64ZZ_free(long _res);
- // uint64_t COption_C2Tuple_u64u64ZZ_clone_ptr(LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR arg);
- public static native long COption_C2Tuple_u64u64ZZ_clone_ptr(long arg);
- // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_clone(const struct LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR orig);
- public static native long COption_C2Tuple_u64u64ZZ_clone(long orig);
- // uint64_t C2Tuple_Z_clone_ptr(LDKC2Tuple_Z *NONNULL_PTR arg);
- public static native long C2Tuple_Z_clone_ptr(long arg);
- // struct LDKC2Tuple_Z C2Tuple_Z_clone(const struct LDKC2Tuple_Z *NONNULL_PTR orig);
- public static native long C2Tuple_Z_clone(long orig);
- // struct LDKC2Tuple_Z C2Tuple_Z_new(struct LDKEightU16s a, struct LDKEightU16s b);
- public static native long C2Tuple_Z_new(short[] a, short[] b);
- // void C2Tuple_Z_free(struct LDKC2Tuple_Z _res);
- public static native void C2Tuple_Z_free(long _res);
- // uint64_t C2Tuple__u168_u168Z_clone_ptr(LDKC2Tuple__u168_u168Z *NONNULL_PTR arg);
- public static native long C2Tuple__u168_u168Z_clone_ptr(long arg);
- // struct LDKC2Tuple__u168_u168Z C2Tuple__u168_u168Z_clone(const struct LDKC2Tuple__u168_u168Z *NONNULL_PTR orig);
- public static native long C2Tuple__u168_u168Z_clone(long orig);
- // struct LDKC2Tuple__u168_u168Z C2Tuple__u168_u168Z_new(struct LDKEightU16s a, struct LDKEightU16s b);
- public static native long C2Tuple__u168_u168Z_new(short[] a, short[] b);
- // void C2Tuple__u168_u168Z_free(struct LDKC2Tuple__u168_u168Z _res);
- public static native void C2Tuple__u168_u168Z_free(long _res);
- // struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_some(struct LDKC2Tuple__u168_u168Z o);
- public static native long COption_C2Tuple_EightU16sEightU16sZZ_some(long o);
- // struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_none(void);
- public static native long COption_C2Tuple_EightU16sEightU16sZZ_none();
- // void COption_C2Tuple_EightU16sEightU16sZZ_free(struct LDKCOption_C2Tuple_EightU16sEightU16sZZ _res);
- public static native void COption_C2Tuple_EightU16sEightU16sZZ_free(long _res);
- // uint64_t COption_C2Tuple_EightU16sEightU16sZZ_clone_ptr(LDKCOption_C2Tuple_EightU16sEightU16sZZ *NONNULL_PTR arg);
- public static native long COption_C2Tuple_EightU16sEightU16sZZ_clone_ptr(long arg);
- // struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_clone(const struct LDKCOption_C2Tuple_EightU16sEightU16sZZ *NONNULL_PTR orig);
- public static native long COption_C2Tuple_EightU16sEightU16sZZ_clone(long orig);
- // void CVec_NodeIdZ_free(struct LDKCVec_NodeIdZ _res);
- public static native void CVec_NodeIdZ_free(long[] _res);
- // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_ok(struct LDKProbabilisticScorer o);
- public static native long CResult_ProbabilisticScorerDecodeErrorZ_ok(long o);
- // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ProbabilisticScorerDecodeErrorZ_err(long e);
- // bool CResult_ProbabilisticScorerDecodeErrorZ_is_ok(const struct LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ProbabilisticScorerDecodeErrorZ_is_ok(long o);
- // void CResult_ProbabilisticScorerDecodeErrorZ_free(struct LDKCResult_ProbabilisticScorerDecodeErrorZ _res);
- public static native void CResult_ProbabilisticScorerDecodeErrorZ_free(long _res);
- // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
- public static native long CResult_InitFeaturesDecodeErrorZ_ok(long o);
- // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_InitFeaturesDecodeErrorZ_err(long e);
- // bool CResult_InitFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_InitFeaturesDecodeErrorZ_is_ok(long o);
- // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
- public static native void CResult_InitFeaturesDecodeErrorZ_free(long _res);
- // uint64_t CResult_InitFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_InitFeaturesDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_clone(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_InitFeaturesDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
- public static native long CResult_ChannelFeaturesDecodeErrorZ_ok(long o);
- // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ChannelFeaturesDecodeErrorZ_err(long e);
- // bool CResult_ChannelFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ChannelFeaturesDecodeErrorZ_is_ok(long o);
- // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
- public static native void CResult_ChannelFeaturesDecodeErrorZ_free(long _res);
- // uint64_t CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ChannelFeaturesDecodeErrorZ_clone(long orig);
- // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
- public static native long CResult_NodeFeaturesDecodeErrorZ_ok(long o);
- // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_NodeFeaturesDecodeErrorZ_err(long e);
- // bool CResult_NodeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_NodeFeaturesDecodeErrorZ_is_ok(long o);
- // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
- public static native void CResult_NodeFeaturesDecodeErrorZ_free(long _res);
- // uint64_t CResult_NodeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_NodeFeaturesDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_clone(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_NodeFeaturesDecodeErrorZ_clone(long orig);
- // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_ok(struct LDKInvoiceFeatures o);
- public static native long CResult_InvoiceFeaturesDecodeErrorZ_ok(long o);
- // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_InvoiceFeaturesDecodeErrorZ_err(long e);
- // bool CResult_InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_InvoiceFeaturesDecodeErrorZ_is_ok(long o);
- // void CResult_InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_InvoiceFeaturesDecodeErrorZ _res);
- public static native void CResult_InvoiceFeaturesDecodeErrorZ_free(long _res);
- // uint64_t CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_InvoiceFeaturesDecodeErrorZ_clone(long orig);
- // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_ok(struct LDKBlindedHopFeatures o);
- public static native long CResult_BlindedHopFeaturesDecodeErrorZ_ok(long o);
- // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_BlindedHopFeaturesDecodeErrorZ_err(long e);
- // bool CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(long o);
- // void CResult_BlindedHopFeaturesDecodeErrorZ_free(struct LDKCResult_BlindedHopFeaturesDecodeErrorZ _res);
- public static native void CResult_BlindedHopFeaturesDecodeErrorZ_free(long _res);
- // uint64_t CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_clone(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_BlindedHopFeaturesDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_ok(struct LDKChannelTypeFeatures o);
- public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_ok(long o);
- // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_err(long e);
- // bool CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(long o);
- // void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ _res);
- public static native void CResult_ChannelTypeFeaturesDecodeErrorZ_free(long _res);
- // uint64_t CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_clone(long orig);
- // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o);
- public static native long CResult_NodeIdDecodeErrorZ_ok(long o);
- // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_NodeIdDecodeErrorZ_err(long e);
- // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_NodeIdDecodeErrorZ_is_ok(long o);
- // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res);
- public static native void CResult_NodeIdDecodeErrorZ_free(long _res);
- // uint64_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_NodeIdDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_NodeIdDecodeErrorZ_clone(long orig);
- // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_ok(struct LDKCOption_NetworkUpdateZ o);
- public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_ok(long o);
- // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_err(long e);
- // bool CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(long o);
- // void CResult_COption_NetworkUpdateZDecodeErrorZ_free(struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ _res);
- public static native void CResult_COption_NetworkUpdateZDecodeErrorZ_free(long _res);
- // uint64_t CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_clone(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_clone(long orig);
- // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_some(struct LDKUtxoLookup o);
- public static native long COption_UtxoLookupZ_some(long o);
- // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_none(void);
- public static native long COption_UtxoLookupZ_none();
- // void COption_UtxoLookupZ_free(struct LDKCOption_UtxoLookupZ _res);
- public static native void COption_UtxoLookupZ_free(long _res);
- // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
- public static native long CResult_boolLightningErrorZ_ok(boolean o);
- // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
- public static native long CResult_boolLightningErrorZ_err(long e);
- // bool CResult_boolLightningErrorZ_is_ok(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR o);
- public static native boolean CResult_boolLightningErrorZ_is_ok(long o);
- // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
- public static native void CResult_boolLightningErrorZ_free(long _res);
- // uint64_t CResult_boolLightningErrorZ_clone_ptr(LDKCResult_boolLightningErrorZ *NONNULL_PTR arg);
- public static native long CResult_boolLightningErrorZ_clone_ptr(long arg);
- // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
- public static native long CResult_boolLightningErrorZ_clone(long orig);
- // uint64_t C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR arg);
- public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(long arg);
- // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
- public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(long orig);
- // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
- public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(long a, long b, long c);
- // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
- public static native void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(long _res);
- // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ o);
- public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(long o);
- // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none(void);
- public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none();
- // void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
- public static native void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(long _res);
- // uint64_t COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR arg);
- public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(long arg);
- // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(const struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR orig);
- public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(long orig);
- // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
- public static native long CResult_NoneLightningErrorZ_ok();
- // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
- public static native long CResult_NoneLightningErrorZ_err(long e);
- // bool CResult_NoneLightningErrorZ_is_ok(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR o);
- public static native boolean CResult_NoneLightningErrorZ_is_ok(long o);
- // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
- public static native void CResult_NoneLightningErrorZ_free(long _res);
- // uint64_t CResult_NoneLightningErrorZ_clone_ptr(LDKCResult_NoneLightningErrorZ *NONNULL_PTR arg);
- public static native long CResult_NoneLightningErrorZ_clone_ptr(long arg);
- // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
- public static native long CResult_NoneLightningErrorZ_clone(long orig);
- // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_ok(struct LDKChannelUpdateInfo o);
- public static native long CResult_ChannelUpdateInfoDecodeErrorZ_ok(long o);
- // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ChannelUpdateInfoDecodeErrorZ_err(long e);
- // bool CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(long o);
- // void CResult_ChannelUpdateInfoDecodeErrorZ_free(struct LDKCResult_ChannelUpdateInfoDecodeErrorZ _res);
- public static native void CResult_ChannelUpdateInfoDecodeErrorZ_free(long _res);
- // uint64_t CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ChannelUpdateInfoDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
- public static native long CResult_ChannelInfoDecodeErrorZ_ok(long o);
- // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ChannelInfoDecodeErrorZ_err(long e);
- // bool CResult_ChannelInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ChannelInfoDecodeErrorZ_is_ok(long o);
- // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
- public static native void CResult_ChannelInfoDecodeErrorZ_free(long _res);
- // uint64_t CResult_ChannelInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ChannelInfoDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ChannelInfoDecodeErrorZ_clone(long orig);
- // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
- public static native long CResult_RoutingFeesDecodeErrorZ_ok(long o);
- // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_RoutingFeesDecodeErrorZ_err(long e);
- // bool CResult_RoutingFeesDecodeErrorZ_is_ok(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_RoutingFeesDecodeErrorZ_is_ok(long o);
- // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
- public static native void CResult_RoutingFeesDecodeErrorZ_free(long _res);
- // uint64_t CResult_RoutingFeesDecodeErrorZ_clone_ptr(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_RoutingFeesDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_RoutingFeesDecodeErrorZ_clone(long orig);
- // void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res);
- public static native void CVec_NetAddressZ_free(long[] _res);
- // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
- public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_ok(long o);
- // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_err(long e);
- // bool CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(long o);
- // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
- public static native void CResult_NodeAnnouncementInfoDecodeErrorZ_free(long _res);
- // uint64_t CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone(long orig);
- // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_ok(struct LDKNodeAlias o);
- public static native long CResult_NodeAliasDecodeErrorZ_ok(long o);
- // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_NodeAliasDecodeErrorZ_err(long e);
- // bool CResult_NodeAliasDecodeErrorZ_is_ok(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_NodeAliasDecodeErrorZ_is_ok(long o);
- // void CResult_NodeAliasDecodeErrorZ_free(struct LDKCResult_NodeAliasDecodeErrorZ _res);
- public static native void CResult_NodeAliasDecodeErrorZ_free(long _res);
- // uint64_t CResult_NodeAliasDecodeErrorZ_clone_ptr(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_NodeAliasDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_clone(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_NodeAliasDecodeErrorZ_clone(long orig);
- // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
- public static native long CResult_NodeInfoDecodeErrorZ_ok(long o);
- // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_NodeInfoDecodeErrorZ_err(long e);
- // bool CResult_NodeInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_NodeInfoDecodeErrorZ_is_ok(long o);
- // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
- public static native void CResult_NodeInfoDecodeErrorZ_free(long _res);
- // uint64_t CResult_NodeInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_NodeInfoDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_NodeInfoDecodeErrorZ_clone(long orig);
- // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
- public static native long CResult_NetworkGraphDecodeErrorZ_ok(long o);
- // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_NetworkGraphDecodeErrorZ_err(long e);
- // bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_NetworkGraphDecodeErrorZ_is_ok(long o);
- // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
- public static native void CResult_NetworkGraphDecodeErrorZ_free(long _res);
- // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_some(struct LDKCVec_NetAddressZ o);
- public static native long COption_CVec_NetAddressZZ_some(long[] o);
- // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_none(void);
- public static native long COption_CVec_NetAddressZZ_none();
- // void COption_CVec_NetAddressZZ_free(struct LDKCOption_CVec_NetAddressZZ _res);
- public static native void COption_CVec_NetAddressZZ_free(long _res);
- // uint64_t COption_CVec_NetAddressZZ_clone_ptr(LDKCOption_CVec_NetAddressZZ *NONNULL_PTR arg);
- public static native long COption_CVec_NetAddressZZ_clone_ptr(long arg);
- // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_clone(const struct LDKCOption_CVec_NetAddressZZ *NONNULL_PTR orig);
- public static native long COption_CVec_NetAddressZZ_clone(long orig);
- // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKDelayedPaymentOutputDescriptor o);
- public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(long o);
- // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(long e);
- // bool CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(long o);
- // void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ _res);
- public static native void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(long _res);
- // uint64_t CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
- // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKStaticPaymentOutputDescriptor o);
- public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(long o);
- // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(long e);
- // bool CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(long o);
- // void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ _res);
- public static native void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(long _res);
- // uint64_t CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
- // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
- public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_ok(long o);
- // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_err(long e);
- // bool CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(long o);
- // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
- public static native void CResult_SpendableOutputDescriptorDecodeErrorZ_free(long _res);
- // uint64_t CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone(long orig);
- // void CVec_PaymentPreimageZ_free(struct LDKCVec_PaymentPreimageZ _res);
- public static native void CVec_PaymentPreimageZ_free(byte[][] _res);
- // uint64_t C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR arg);
- public static native long C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(long arg);
- // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_clone(const struct LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR orig);
- public static native long C2Tuple_SignatureCVec_SignatureZZ_clone(long orig);
- // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b);
- public static native long C2Tuple_SignatureCVec_SignatureZZ_new(byte[] a, byte[][] b);
- // void C2Tuple_SignatureCVec_SignatureZZ_free(struct LDKC2Tuple_SignatureCVec_SignatureZZ _res);
- public static native void C2Tuple_SignatureCVec_SignatureZZ_free(long _res);
- // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2Tuple_SignatureCVec_SignatureZZ o);
- public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(long o);
- // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void);
- public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err();
- // bool CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR o);
- public static native boolean CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(long o);
- // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ _res);
- public static native void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(long _res);
- // uint64_t CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR arg);
- public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(long arg);
- // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR orig);
- public static native long CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(long orig);
- // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_ok(struct LDKSignature o);
- public static native long CResult_SignatureNoneZ_ok(byte[] o);
- // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void);
- public static native long CResult_SignatureNoneZ_err();
- // bool CResult_SignatureNoneZ_is_ok(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR o);
- public static native boolean CResult_SignatureNoneZ_is_ok(long o);
- // void CResult_SignatureNoneZ_free(struct LDKCResult_SignatureNoneZ _res);
- public static native void CResult_SignatureNoneZ_free(long _res);
- // uint64_t CResult_SignatureNoneZ_clone_ptr(LDKCResult_SignatureNoneZ *NONNULL_PTR arg);
- public static native long CResult_SignatureNoneZ_clone_ptr(long arg);
- // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_clone(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR orig);
- public static native long CResult_SignatureNoneZ_clone(long orig);
- // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_ok(struct LDKPublicKey o);
- public static native long CResult_PublicKeyNoneZ_ok(byte[] o);
- // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_err(void);
- public static native long CResult_PublicKeyNoneZ_err();
- // bool CResult_PublicKeyNoneZ_is_ok(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR o);
- public static native boolean CResult_PublicKeyNoneZ_is_ok(long o);
- // void CResult_PublicKeyNoneZ_free(struct LDKCResult_PublicKeyNoneZ _res);
- public static native void CResult_PublicKeyNoneZ_free(long _res);
- // uint64_t CResult_PublicKeyNoneZ_clone_ptr(LDKCResult_PublicKeyNoneZ *NONNULL_PTR arg);
- public static native long CResult_PublicKeyNoneZ_clone_ptr(long arg);
- // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_clone(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR orig);
- public static native long CResult_PublicKeyNoneZ_clone(long orig);
- // struct LDKCOption_ScalarZ COption_ScalarZ_some(struct LDKBigEndianScalar o);
- public static native long COption_ScalarZ_some(long o);
- // struct LDKCOption_ScalarZ COption_ScalarZ_none(void);
- public static native long COption_ScalarZ_none();
- // void COption_ScalarZ_free(struct LDKCOption_ScalarZ _res);
- public static native void COption_ScalarZ_free(long _res);
- // struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_ok(struct LDKThirtyTwoBytes o);
- public static native long CResult_SharedSecretNoneZ_ok(byte[] o);
- // struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_err(void);
- public static native long CResult_SharedSecretNoneZ_err();
- // bool CResult_SharedSecretNoneZ_is_ok(const struct LDKCResult_SharedSecretNoneZ *NONNULL_PTR o);
- public static native boolean CResult_SharedSecretNoneZ_is_ok(long o);
- // void CResult_SharedSecretNoneZ_free(struct LDKCResult_SharedSecretNoneZ _res);
- public static native void CResult_SharedSecretNoneZ_free(long _res);
- // uint64_t CResult_SharedSecretNoneZ_clone_ptr(LDKCResult_SharedSecretNoneZ *NONNULL_PTR arg);
- public static native long CResult_SharedSecretNoneZ_clone_ptr(long arg);
- // struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_clone(const struct LDKCResult_SharedSecretNoneZ *NONNULL_PTR orig);
- public static native long CResult_SharedSecretNoneZ_clone(long orig);
- // void CVec_U5Z_free(struct LDKCVec_U5Z _res);
- public static native void CVec_U5Z_free(byte[] _res);
- // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o);
- public static native long CResult_RecoverableSignatureNoneZ_ok(byte[] o);
- // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void);
- public static native long CResult_RecoverableSignatureNoneZ_err();
- // bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o);
- public static native boolean CResult_RecoverableSignatureNoneZ_is_ok(long o);
- // void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res);
- public static native void CResult_RecoverableSignatureNoneZ_free(long _res);
- // uint64_t CResult_RecoverableSignatureNoneZ_clone_ptr(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR arg);
- public static native long CResult_RecoverableSignatureNoneZ_clone_ptr(long arg);
- // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig);
- public static native long CResult_RecoverableSignatureNoneZ_clone(long orig);
- // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(struct LDKWriteableEcdsaChannelSigner o);
- public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(long o);
- // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(long e);
- // bool CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(long o);
- // void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ _res);
- public static native void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(long _res);
- // uint64_t CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(long orig);
- // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
- public static native void CVec_u8Z_free(byte[] _res);
- // void CVec_CVec_u8ZZ_free(struct LDKCVec_CVec_u8ZZ _res);
- public static native void CVec_CVec_u8ZZ_free(byte[][] _res);
- // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_ok(struct LDKCVec_CVec_u8ZZ o);
- public static native long CResult_CVec_CVec_u8ZZNoneZ_ok(byte[][] o);
- // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_err(void);
- public static native long CResult_CVec_CVec_u8ZZNoneZ_err();
- // bool CResult_CVec_CVec_u8ZZNoneZ_is_ok(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR o);
- public static native boolean CResult_CVec_CVec_u8ZZNoneZ_is_ok(long o);
- // void CResult_CVec_CVec_u8ZZNoneZ_free(struct LDKCResult_CVec_CVec_u8ZZNoneZ _res);
- public static native void CResult_CVec_CVec_u8ZZNoneZ_free(long _res);
- // uint64_t CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR arg);
- public static native long CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(long arg);
- // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_clone(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR orig);
- public static native long CResult_CVec_CVec_u8ZZNoneZ_clone(long orig);
- // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
- public static native long CResult_InMemorySignerDecodeErrorZ_ok(long o);
- // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_InMemorySignerDecodeErrorZ_err(long e);
- // bool CResult_InMemorySignerDecodeErrorZ_is_ok(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_InMemorySignerDecodeErrorZ_is_ok(long o);
- // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
- public static native void CResult_InMemorySignerDecodeErrorZ_free(long _res);
- // uint64_t CResult_InMemorySignerDecodeErrorZ_clone_ptr(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_InMemorySignerDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_InMemorySignerDecodeErrorZ_clone(long orig);
- // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
- public static native void CVec_TxOutZ_free(long[] _res);
- // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
- public static native long CResult_TransactionNoneZ_ok(byte[] o);
- // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
- public static native long CResult_TransactionNoneZ_err();
- // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o);
- public static native boolean CResult_TransactionNoneZ_is_ok(long o);
- // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
- public static native void CResult_TransactionNoneZ_free(long _res);
- // uint64_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg);
- public static native long CResult_TransactionNoneZ_clone_ptr(long arg);
- // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig);
- public static native long CResult_TransactionNoneZ_clone(long orig);
- // uint64_t C2Tuple_BlockHashChannelMonitorZ_clone_ptr(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR arg);
- public static native long C2Tuple_BlockHashChannelMonitorZ_clone_ptr(long arg);
- // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_clone(const struct LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR orig);
- public static native long C2Tuple_BlockHashChannelMonitorZ_clone(long orig);
- // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
- public static native long C2Tuple_BlockHashChannelMonitorZ_new(byte[] a, long b);
- // void C2Tuple_BlockHashChannelMonitorZ_free(struct LDKC2Tuple_BlockHashChannelMonitorZ _res);
- public static native void C2Tuple_BlockHashChannelMonitorZ_free(long _res);
- // void CVec_C2Tuple_BlockHashChannelMonitorZZ_free(struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ _res);
- public static native void CVec_C2Tuple_BlockHashChannelMonitorZZ_free(long[] _res);
- // struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_ok(struct LDKCVec_C2Tuple_BlockHashChannelMonitorZZ o);
- public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_ok(long[] o);
- // struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_err(enum LDKIOError e);
- public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_err(IOError e);
- // bool CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_is_ok(const struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR o);
- public static native boolean CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_is_ok(long o);
- // void CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_free(struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ _res);
- public static native void CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_free(long _res);
- // uint64_t CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone_ptr(LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR arg);
- public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone_ptr(long arg);
- // struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone(const struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ *NONNULL_PTR orig);
- public static native long CResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_clone(long orig);
- // struct LDKCOption_u16Z COption_u16Z_some(uint16_t o);
- public static native long COption_u16Z_some(short o);
- // struct LDKCOption_u16Z COption_u16Z_none(void);
- public static native long COption_u16Z_none();
- // void COption_u16Z_free(struct LDKCOption_u16Z _res);
- public static native void COption_u16Z_free(long _res);
- // uint64_t COption_u16Z_clone_ptr(LDKCOption_u16Z *NONNULL_PTR arg);
- public static native long COption_u16Z_clone_ptr(long arg);
- // struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig);
- public static native long COption_u16Z_clone(long orig);
- // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_ok(struct LDKThirtyTwoBytes o);
- public static native long CResult__u832APIErrorZ_ok(byte[] o);
- // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_err(struct LDKAPIError e);
- public static native long CResult__u832APIErrorZ_err(long e);
- // bool CResult__u832APIErrorZ_is_ok(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR o);
- public static native boolean CResult__u832APIErrorZ_is_ok(long o);
- // void CResult__u832APIErrorZ_free(struct LDKCResult__u832APIErrorZ _res);
- public static native void CResult__u832APIErrorZ_free(long _res);
- // uint64_t CResult__u832APIErrorZ_clone_ptr(LDKCResult__u832APIErrorZ *NONNULL_PTR arg);
- public static native long CResult__u832APIErrorZ_clone_ptr(long arg);
- // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_clone(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR orig);
- public static native long CResult__u832APIErrorZ_clone(long orig);
- // void CVec_RecentPaymentDetailsZ_free(struct LDKCVec_RecentPaymentDetailsZ _res);
- public static native void CVec_RecentPaymentDetailsZ_free(long[] _res);
- // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
- public static native long CResult_NonePaymentSendFailureZ_ok();
- // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
- public static native long CResult_NonePaymentSendFailureZ_err(long e);
- // bool CResult_NonePaymentSendFailureZ_is_ok(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR o);
- public static native boolean CResult_NonePaymentSendFailureZ_is_ok(long o);
- // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
- public static native void CResult_NonePaymentSendFailureZ_free(long _res);
- // uint64_t CResult_NonePaymentSendFailureZ_clone_ptr(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR arg);
- public static native long CResult_NonePaymentSendFailureZ_clone_ptr(long arg);
- // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig);
- public static native long CResult_NonePaymentSendFailureZ_clone(long orig);
- // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_ok(void);
- public static native long CResult_NoneRetryableSendFailureZ_ok();
- // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_err(enum LDKRetryableSendFailure e);
- public static native long CResult_NoneRetryableSendFailureZ_err(RetryableSendFailure e);
- // bool CResult_NoneRetryableSendFailureZ_is_ok(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR o);
- public static native boolean CResult_NoneRetryableSendFailureZ_is_ok(long o);
- // void CResult_NoneRetryableSendFailureZ_free(struct LDKCResult_NoneRetryableSendFailureZ _res);
- public static native void CResult_NoneRetryableSendFailureZ_free(long _res);
- // uint64_t CResult_NoneRetryableSendFailureZ_clone_ptr(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR arg);
- public static native long CResult_NoneRetryableSendFailureZ_clone_ptr(long arg);
- // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_clone(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR orig);
- public static native long CResult_NoneRetryableSendFailureZ_clone(long orig);
- // struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o);
- public static native long CResult_PaymentHashPaymentSendFailureZ_ok(byte[] o);
- // struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
- public static native long CResult_PaymentHashPaymentSendFailureZ_err(long e);
- // bool CResult_PaymentHashPaymentSendFailureZ_is_ok(const struct LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR o);
- public static native boolean CResult_PaymentHashPaymentSendFailureZ_is_ok(long o);
- // void CResult_PaymentHashPaymentSendFailureZ_free(struct LDKCResult_PaymentHashPaymentSendFailureZ _res);
- public static native void CResult_PaymentHashPaymentSendFailureZ_free(long _res);
- // uint64_t CResult_PaymentHashPaymentSendFailureZ_clone_ptr(LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR arg);
- public static native long CResult_PaymentHashPaymentSendFailureZ_clone_ptr(long arg);
- // struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_clone(const struct LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR orig);
- public static native long CResult_PaymentHashPaymentSendFailureZ_clone(long orig);
- // struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_ok(struct LDKThirtyTwoBytes o);
- public static native long CResult_PaymentHashRetryableSendFailureZ_ok(byte[] o);
- // struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_err(enum LDKRetryableSendFailure e);
- public static native long CResult_PaymentHashRetryableSendFailureZ_err(RetryableSendFailure e);
- // bool CResult_PaymentHashRetryableSendFailureZ_is_ok(const struct LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR o);
- public static native boolean CResult_PaymentHashRetryableSendFailureZ_is_ok(long o);
- // void CResult_PaymentHashRetryableSendFailureZ_free(struct LDKCResult_PaymentHashRetryableSendFailureZ _res);
- public static native void CResult_PaymentHashRetryableSendFailureZ_free(long _res);
- // uint64_t CResult_PaymentHashRetryableSendFailureZ_clone_ptr(LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR arg);
- public static native long CResult_PaymentHashRetryableSendFailureZ_clone_ptr(long arg);
- // struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_clone(const struct LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR orig);
- public static native long CResult_PaymentHashRetryableSendFailureZ_clone(long orig);
- // uint64_t C2Tuple_PaymentHashPaymentIdZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR arg);
- public static native long C2Tuple_PaymentHashPaymentIdZ_clone_ptr(long arg);
- // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_clone(const struct LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR orig);
- public static native long C2Tuple_PaymentHashPaymentIdZ_clone(long orig);
- // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
- public static native long C2Tuple_PaymentHashPaymentIdZ_new(byte[] a, byte[] b);
- // void C2Tuple_PaymentHashPaymentIdZ_free(struct LDKC2Tuple_PaymentHashPaymentIdZ _res);
- public static native void C2Tuple_PaymentHashPaymentIdZ_free(long _res);
- // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(struct LDKC2Tuple_PaymentHashPaymentIdZ o);
- public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(long o);
- // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
- public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(long e);
- // bool CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR o);
- public static native boolean CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(long o);
- // void CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ _res);
- public static native void CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(long _res);
- // uint64_t CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR arg);
- public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(long arg);
- // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR orig);
- public static native long CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(long orig);
- // void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res);
- public static native void CVec_ThirtyTwoBytesZ_free(byte[][] _res);
- // uint64_t C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR arg);
- public static native long C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(long arg);
- // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_clone(const struct LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR orig);
- public static native long C2Tuple_PaymentHashPaymentSecretZ_clone(long orig);
- // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
- public static native long C2Tuple_PaymentHashPaymentSecretZ_new(byte[] a, byte[] b);
- // void C2Tuple_PaymentHashPaymentSecretZ_free(struct LDKC2Tuple_PaymentHashPaymentSecretZ _res);
- public static native void C2Tuple_PaymentHashPaymentSecretZ_free(long _res);
- // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
- public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(long o);
- // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(void);
- public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err();
- // bool CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR o);
- public static native boolean CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(long o);
- // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ _res);
- public static native void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(long _res);
- // uint64_t CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR arg);
- public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(long arg);
- // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR orig);
- public static native long CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(long orig);
- // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
- public static native long CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(long o);
- // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(struct LDKAPIError e);
- public static native long CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(long e);
- // bool CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR o);
- public static native boolean CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(long o);
- // void CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ _res);
- public static native void CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(long _res);
- // uint64_t CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR arg);
- public static native long CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(long arg);
- // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR orig);
- public static native long CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(long orig);
- // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_ok(struct LDKThirtyTwoBytes o);
- public static native long CResult_PaymentSecretNoneZ_ok(byte[] o);
- // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_err(void);
- public static native long CResult_PaymentSecretNoneZ_err();
- // bool CResult_PaymentSecretNoneZ_is_ok(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR o);
- public static native boolean CResult_PaymentSecretNoneZ_is_ok(long o);
- // void CResult_PaymentSecretNoneZ_free(struct LDKCResult_PaymentSecretNoneZ _res);
- public static native void CResult_PaymentSecretNoneZ_free(long _res);
- // uint64_t CResult_PaymentSecretNoneZ_clone_ptr(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR arg);
- public static native long CResult_PaymentSecretNoneZ_clone_ptr(long arg);
- // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_clone(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR orig);
- public static native long CResult_PaymentSecretNoneZ_clone(long orig);
- // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
- public static native long CResult_PaymentSecretAPIErrorZ_ok(byte[] o);
- // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_err(struct LDKAPIError e);
- public static native long CResult_PaymentSecretAPIErrorZ_err(long e);
- // bool CResult_PaymentSecretAPIErrorZ_is_ok(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR o);
- public static native boolean CResult_PaymentSecretAPIErrorZ_is_ok(long o);
- // void CResult_PaymentSecretAPIErrorZ_free(struct LDKCResult_PaymentSecretAPIErrorZ _res);
- public static native void CResult_PaymentSecretAPIErrorZ_free(long _res);
- // uint64_t CResult_PaymentSecretAPIErrorZ_clone_ptr(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR arg);
- public static native long CResult_PaymentSecretAPIErrorZ_clone_ptr(long arg);
- // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_clone(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR orig);
- public static native long CResult_PaymentSecretAPIErrorZ_clone(long orig);
- // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
- public static native long CResult_PaymentPreimageAPIErrorZ_ok(byte[] o);
- // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_err(struct LDKAPIError e);
- public static native long CResult_PaymentPreimageAPIErrorZ_err(long e);
- // bool CResult_PaymentPreimageAPIErrorZ_is_ok(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR o);
- public static native boolean CResult_PaymentPreimageAPIErrorZ_is_ok(long o);
- // void CResult_PaymentPreimageAPIErrorZ_free(struct LDKCResult_PaymentPreimageAPIErrorZ _res);
- public static native void CResult_PaymentPreimageAPIErrorZ_free(long _res);
- // uint64_t CResult_PaymentPreimageAPIErrorZ_clone_ptr(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR arg);
- public static native long CResult_PaymentPreimageAPIErrorZ_clone_ptr(long arg);
- // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_clone(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR orig);
- public static native long CResult_PaymentPreimageAPIErrorZ_clone(long orig);
- // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o);
- public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(long o);
- // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_err(long e);
- // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(long o);
- // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res);
- public static native void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(long _res);
- // uint64_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o);
- public static native long CResult_ChannelCounterpartyDecodeErrorZ_ok(long o);
- // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ChannelCounterpartyDecodeErrorZ_err(long e);
- // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ChannelCounterpartyDecodeErrorZ_is_ok(long o);
- // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res);
- public static native void CResult_ChannelCounterpartyDecodeErrorZ_free(long _res);
- // uint64_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ChannelCounterpartyDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o);
- public static native long CResult_ChannelDetailsDecodeErrorZ_ok(long o);
- // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ChannelDetailsDecodeErrorZ_err(long e);
- // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ChannelDetailsDecodeErrorZ_is_ok(long o);
- // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res);
- public static native void CResult_ChannelDetailsDecodeErrorZ_free(long _res);
- // uint64_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ChannelDetailsDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ChannelDetailsDecodeErrorZ_clone(long orig);
- // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_ok(struct LDKPhantomRouteHints o);
- public static native long CResult_PhantomRouteHintsDecodeErrorZ_ok(long o);
- // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_PhantomRouteHintsDecodeErrorZ_err(long e);
- // bool CResult_PhantomRouteHintsDecodeErrorZ_is_ok(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_PhantomRouteHintsDecodeErrorZ_is_ok(long o);
- // void CResult_PhantomRouteHintsDecodeErrorZ_free(struct LDKCResult_PhantomRouteHintsDecodeErrorZ _res);
- public static native void CResult_PhantomRouteHintsDecodeErrorZ_free(long _res);
- // uint64_t CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_clone(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_PhantomRouteHintsDecodeErrorZ_clone(long orig);
- // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
- public static native void CVec_ChannelMonitorZ_free(long[] _res);
- // struct LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
- public static native long C2Tuple_BlockHashChannelManagerZ_new(byte[] a, long b);
- // void C2Tuple_BlockHashChannelManagerZ_free(struct LDKC2Tuple_BlockHashChannelManagerZ _res);
- public static native void C2Tuple_BlockHashChannelManagerZ_free(long _res);
- // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelManagerZ o);
- public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(long o);
- // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(long e);
- // bool CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(long o);
- // void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ _res);
- public static native void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(long _res);
- // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
- public static native long CResult_ChannelConfigDecodeErrorZ_ok(long o);
- // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ChannelConfigDecodeErrorZ_err(long e);
- // bool CResult_ChannelConfigDecodeErrorZ_is_ok(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ChannelConfigDecodeErrorZ_is_ok(long o);
- // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
- public static native void CResult_ChannelConfigDecodeErrorZ_free(long _res);
- // uint64_t CResult_ChannelConfigDecodeErrorZ_clone_ptr(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ChannelConfigDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ChannelConfigDecodeErrorZ_clone(long orig);
- // struct LDKCOption_APIErrorZ COption_APIErrorZ_some(struct LDKAPIError o);
- public static native long COption_APIErrorZ_some(long o);
- // struct LDKCOption_APIErrorZ COption_APIErrorZ_none(void);
- public static native long COption_APIErrorZ_none();
- // void COption_APIErrorZ_free(struct LDKCOption_APIErrorZ _res);
- public static native void COption_APIErrorZ_free(long _res);
- // uint64_t COption_APIErrorZ_clone_ptr(LDKCOption_APIErrorZ *NONNULL_PTR arg);
- public static native long COption_APIErrorZ_clone_ptr(long arg);
- // struct LDKCOption_APIErrorZ COption_APIErrorZ_clone(const struct LDKCOption_APIErrorZ *NONNULL_PTR orig);
- public static native long COption_APIErrorZ_clone(long orig);
- // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_ok(struct LDKCOption_APIErrorZ o);
- public static native long CResult_COption_APIErrorZDecodeErrorZ_ok(long o);
- // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_COption_APIErrorZDecodeErrorZ_err(long e);
- // bool CResult_COption_APIErrorZDecodeErrorZ_is_ok(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_COption_APIErrorZDecodeErrorZ_is_ok(long o);
- // void CResult_COption_APIErrorZDecodeErrorZ_free(struct LDKCResult_COption_APIErrorZDecodeErrorZ _res);
- public static native void CResult_COption_APIErrorZDecodeErrorZ_free(long _res);
- // uint64_t CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_clone(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_COption_APIErrorZDecodeErrorZ_clone(long orig);
- // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
- public static native long CResult_OutPointDecodeErrorZ_ok(long o);
- // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_OutPointDecodeErrorZ_err(long e);
- // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_OutPointDecodeErrorZ_is_ok(long o);
- // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
- public static native void CResult_OutPointDecodeErrorZ_free(long _res);
- // uint64_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_OutPointDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_OutPointDecodeErrorZ_clone(long orig);
- // struct LDKCOption_TypeZ COption_TypeZ_some(struct LDKType o);
- public static native long COption_TypeZ_some(long o);
- // struct LDKCOption_TypeZ COption_TypeZ_none(void);
- public static native long COption_TypeZ_none();
- // void COption_TypeZ_free(struct LDKCOption_TypeZ _res);
- public static native void COption_TypeZ_free(long _res);
- // uint64_t COption_TypeZ_clone_ptr(LDKCOption_TypeZ *NONNULL_PTR arg);
- public static native long COption_TypeZ_clone_ptr(long arg);
- // struct LDKCOption_TypeZ COption_TypeZ_clone(const struct LDKCOption_TypeZ *NONNULL_PTR orig);
- public static native long COption_TypeZ_clone(long orig);
- // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_ok(struct LDKCOption_TypeZ o);
- public static native long CResult_COption_TypeZDecodeErrorZ_ok(long o);
- // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_COption_TypeZDecodeErrorZ_err(long e);
- // bool CResult_COption_TypeZDecodeErrorZ_is_ok(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_COption_TypeZDecodeErrorZ_is_ok(long o);
- // void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecodeErrorZ _res);
- public static native void CResult_COption_TypeZDecodeErrorZ_free(long _res);
- // uint64_t CResult_COption_TypeZDecodeErrorZ_clone_ptr(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_COption_TypeZDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_COption_TypeZDecodeErrorZ_clone(long orig);
- // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_ok(struct LDKThirtyTwoBytes o);
- public static native long CResult_PaymentIdPaymentErrorZ_ok(byte[] o);
- // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_err(struct LDKPaymentError e);
- public static native long CResult_PaymentIdPaymentErrorZ_err(long e);
- // bool CResult_PaymentIdPaymentErrorZ_is_ok(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR o);
- public static native boolean CResult_PaymentIdPaymentErrorZ_is_ok(long o);
- // void CResult_PaymentIdPaymentErrorZ_free(struct LDKCResult_PaymentIdPaymentErrorZ _res);
- public static native void CResult_PaymentIdPaymentErrorZ_free(long _res);
- // uint64_t CResult_PaymentIdPaymentErrorZ_clone_ptr(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR arg);
- public static native long CResult_PaymentIdPaymentErrorZ_clone_ptr(long arg);
- // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_clone(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR orig);
- public static native long CResult_PaymentIdPaymentErrorZ_clone(long orig);
- // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_ok(void);
- public static native long CResult_NonePaymentErrorZ_ok();
- // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_err(struct LDKPaymentError e);
- public static native long CResult_NonePaymentErrorZ_err(long e);
- // bool CResult_NonePaymentErrorZ_is_ok(const struct LDKCResult_NonePaymentErrorZ *NONNULL_PTR o);
- public static native boolean CResult_NonePaymentErrorZ_is_ok(long o);
- // void CResult_NonePaymentErrorZ_free(struct LDKCResult_NonePaymentErrorZ _res);
- public static native void CResult_NonePaymentErrorZ_free(long _res);
- // uint64_t CResult_NonePaymentErrorZ_clone_ptr(LDKCResult_NonePaymentErrorZ *NONNULL_PTR arg);
- public static native long CResult_NonePaymentErrorZ_clone_ptr(long arg);
- // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_clone(const struct LDKCResult_NonePaymentErrorZ *NONNULL_PTR orig);
- public static native long CResult_NonePaymentErrorZ_clone(long orig);
- // struct LDKCResult_StringErrorZ CResult_StringErrorZ_ok(struct LDKStr o);
- public static native long CResult_StringErrorZ_ok(String o);
- // struct LDKCResult_StringErrorZ CResult_StringErrorZ_err(enum LDKSecp256k1Error e);
- public static native long CResult_StringErrorZ_err(Secp256k1Error e);
- // bool CResult_StringErrorZ_is_ok(const struct LDKCResult_StringErrorZ *NONNULL_PTR o);
- public static native boolean CResult_StringErrorZ_is_ok(long o);
- // void CResult_StringErrorZ_free(struct LDKCResult_StringErrorZ _res);
- public static native void CResult_StringErrorZ_free(long _res);
- // uint64_t CResult_StringErrorZ_clone_ptr(LDKCResult_StringErrorZ *NONNULL_PTR arg);
- public static native long CResult_StringErrorZ_clone_ptr(long arg);
- // struct LDKCResult_StringErrorZ CResult_StringErrorZ_clone(const struct LDKCResult_StringErrorZ *NONNULL_PTR orig);
- public static native long CResult_StringErrorZ_clone(long orig);
- // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_ok(struct LDKPublicKey o);
- public static native long CResult_PublicKeyErrorZ_ok(byte[] o);
- // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_err(enum LDKSecp256k1Error e);
- public static native long CResult_PublicKeyErrorZ_err(Secp256k1Error e);
- // bool CResult_PublicKeyErrorZ_is_ok(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR o);
- public static native boolean CResult_PublicKeyErrorZ_is_ok(long o);
- // void CResult_PublicKeyErrorZ_free(struct LDKCResult_PublicKeyErrorZ _res);
- public static native void CResult_PublicKeyErrorZ_free(long _res);
- // uint64_t CResult_PublicKeyErrorZ_clone_ptr(LDKCResult_PublicKeyErrorZ *NONNULL_PTR arg);
- public static native long CResult_PublicKeyErrorZ_clone_ptr(long arg);
- // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_clone(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR orig);
- public static native long CResult_PublicKeyErrorZ_clone(long orig);
- // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
- public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_ok(long o);
- // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_err(long e);
- // bool CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(long o);
- // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
- public static native void CResult_ChannelMonitorUpdateDecodeErrorZ_free(long _res);
- // uint64_t CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone(long orig);
- // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_some(struct LDKMonitorEvent o);
- public static native long COption_MonitorEventZ_some(long o);
- // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_none(void);
- public static native long COption_MonitorEventZ_none();
- // void COption_MonitorEventZ_free(struct LDKCOption_MonitorEventZ _res);
- public static native void COption_MonitorEventZ_free(long _res);
- // uint64_t COption_MonitorEventZ_clone_ptr(LDKCOption_MonitorEventZ *NONNULL_PTR arg);
- public static native long COption_MonitorEventZ_clone_ptr(long arg);
- // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_clone(const struct LDKCOption_MonitorEventZ *NONNULL_PTR orig);
- public static native long COption_MonitorEventZ_clone(long orig);
- // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_ok(struct LDKCOption_MonitorEventZ o);
- public static native long CResult_COption_MonitorEventZDecodeErrorZ_ok(long o);
- // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_COption_MonitorEventZDecodeErrorZ_err(long e);
- // bool CResult_COption_MonitorEventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_COption_MonitorEventZDecodeErrorZ_is_ok(long o);
- // void CResult_COption_MonitorEventZDecodeErrorZ_free(struct LDKCResult_COption_MonitorEventZDecodeErrorZ _res);
- public static native void CResult_COption_MonitorEventZDecodeErrorZ_free(long _res);
- // uint64_t CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_clone(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_COption_MonitorEventZDecodeErrorZ_clone(long orig);
- // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
- public static native long CResult_HTLCUpdateDecodeErrorZ_ok(long o);
- // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_HTLCUpdateDecodeErrorZ_err(long e);
- // bool CResult_HTLCUpdateDecodeErrorZ_is_ok(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_HTLCUpdateDecodeErrorZ_is_ok(long o);
- // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
- public static native void CResult_HTLCUpdateDecodeErrorZ_free(long _res);
- // uint64_t CResult_HTLCUpdateDecodeErrorZ_clone_ptr(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_HTLCUpdateDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_HTLCUpdateDecodeErrorZ_clone(long orig);
- // uint64_t C2Tuple_OutPointScriptZ_clone_ptr(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR arg);
- public static native long C2Tuple_OutPointScriptZ_clone_ptr(long arg);
- // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_clone(const struct LDKC2Tuple_OutPointScriptZ *NONNULL_PTR orig);
- public static native long C2Tuple_OutPointScriptZ_clone(long orig);
- // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
- public static native long C2Tuple_OutPointScriptZ_new(long a, byte[] b);
- // void C2Tuple_OutPointScriptZ_free(struct LDKC2Tuple_OutPointScriptZ _res);
- public static native void C2Tuple_OutPointScriptZ_free(long _res);
- // uint64_t C2Tuple_u32ScriptZ_clone_ptr(LDKC2Tuple_u32ScriptZ *NONNULL_PTR arg);
- public static native long C2Tuple_u32ScriptZ_clone_ptr(long arg);
- // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_clone(const struct LDKC2Tuple_u32ScriptZ *NONNULL_PTR orig);
- public static native long C2Tuple_u32ScriptZ_clone(long orig);
- // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_new(uint32_t a, struct LDKCVec_u8Z b);
- public static native long C2Tuple_u32ScriptZ_new(int a, byte[] b);
- // void C2Tuple_u32ScriptZ_free(struct LDKC2Tuple_u32ScriptZ _res);
- public static native void C2Tuple_u32ScriptZ_free(long _res);
- // void CVec_C2Tuple_u32ScriptZZ_free(struct LDKCVec_C2Tuple_u32ScriptZZ _res);
- public static native void CVec_C2Tuple_u32ScriptZZ_free(long[] _res);
- // uint64_t C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR arg);
- public static native long C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(long arg);
- // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR orig);
- public static native long C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(long orig);
- // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32ScriptZZ b);
- public static native long C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(byte[] a, long[] b);
- // void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ _res);
- public static native void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(long _res);
- // void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ _res);
- public static native void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(long[] _res);
- // void CVec_EventZ_free(struct LDKCVec_EventZ _res);
- public static native void CVec_EventZ_free(long[] _res);
- // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
- public static native void CVec_TransactionZ_free(byte[][] _res);
- // uint64_t C2Tuple_u32TxOutZ_clone_ptr(LDKC2Tuple_u32TxOutZ *NONNULL_PTR arg);
- public static native long C2Tuple_u32TxOutZ_clone_ptr(long arg);
- // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
- public static native long C2Tuple_u32TxOutZ_clone(long orig);
- // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
- public static native long C2Tuple_u32TxOutZ_new(int a, long b);
- // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
- public static native void C2Tuple_u32TxOutZ_free(long _res);
- // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
- public static native void CVec_C2Tuple_u32TxOutZZ_free(long[] _res);
- // uint64_t C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR arg);
- public static native long C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(long arg);
- // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig);
- public static native long C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(long orig);
- // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
- public static native long C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(byte[] a, long[] b);
- // void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ _res);
- public static native void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(long _res);
- // void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ _res);
- public static native void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(long[] _res);
- // void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res);
- public static native void CVec_BalanceZ_free(long[] _res);
- // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelMonitorZ o);
- public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(long o);
- // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(long e);
- // bool CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(long o);
- // void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ _res);
- public static native void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(long _res);
- // uint64_t CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(long orig);
- // uint64_t C2Tuple_PublicKeyTypeZ_clone_ptr(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR arg);
- public static native long C2Tuple_PublicKeyTypeZ_clone_ptr(long arg);
- // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_clone(const struct LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR orig);
- public static native long C2Tuple_PublicKeyTypeZ_clone(long orig);
- // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_new(struct LDKPublicKey a, struct LDKType b);
- public static native long C2Tuple_PublicKeyTypeZ_new(byte[] a, long b);
- // void C2Tuple_PublicKeyTypeZ_free(struct LDKC2Tuple_PublicKeyTypeZ _res);
- public static native void C2Tuple_PublicKeyTypeZ_free(long _res);
- // void CVec_C2Tuple_PublicKeyTypeZZ_free(struct LDKCVec_C2Tuple_PublicKeyTypeZZ _res);
- public static native void CVec_C2Tuple_PublicKeyTypeZZ_free(long[] _res);
- // struct LDKCOption_CustomOnionMessageContentsZ COption_CustomOnionMessageContentsZ_some(struct LDKCustomOnionMessageContents o);
- public static native long COption_CustomOnionMessageContentsZ_some(long o);
- // struct LDKCOption_CustomOnionMessageContentsZ COption_CustomOnionMessageContentsZ_none(void);
- public static native long COption_CustomOnionMessageContentsZ_none();
- // void COption_CustomOnionMessageContentsZ_free(struct LDKCOption_CustomOnionMessageContentsZ _res);
- public static native void COption_CustomOnionMessageContentsZ_free(long _res);
- // uint64_t COption_CustomOnionMessageContentsZ_clone_ptr(LDKCOption_CustomOnionMessageContentsZ *NONNULL_PTR arg);
- public static native long COption_CustomOnionMessageContentsZ_clone_ptr(long arg);
- // struct LDKCOption_CustomOnionMessageContentsZ COption_CustomOnionMessageContentsZ_clone(const struct LDKCOption_CustomOnionMessageContentsZ *NONNULL_PTR orig);
- public static native long COption_CustomOnionMessageContentsZ_clone(long orig);
- // struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_ok(struct LDKCOption_CustomOnionMessageContentsZ o);
- public static native long CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_ok(long o);
- // struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_err(long e);
- // bool CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_is_ok(const struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_is_ok(long o);
- // void CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_free(struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ _res);
- public static native void CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_free(long _res);
- // uint64_t CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone_ptr(LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone(const struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone(long orig);
- // struct LDKCOption_NetAddressZ COption_NetAddressZ_some(struct LDKNetAddress o);
- public static native long COption_NetAddressZ_some(long o);
- // struct LDKCOption_NetAddressZ COption_NetAddressZ_none(void);
- public static native long COption_NetAddressZ_none();
- // void COption_NetAddressZ_free(struct LDKCOption_NetAddressZ _res);
- public static native void COption_NetAddressZ_free(long _res);
- // uint64_t COption_NetAddressZ_clone_ptr(LDKCOption_NetAddressZ *NONNULL_PTR arg);
- public static native long COption_NetAddressZ_clone_ptr(long arg);
- // struct LDKCOption_NetAddressZ COption_NetAddressZ_clone(const struct LDKCOption_NetAddressZ *NONNULL_PTR orig);
- public static native long COption_NetAddressZ_clone(long orig);
- // uint64_t C2Tuple_PublicKeyCOption_NetAddressZZ_clone_ptr(LDKC2Tuple_PublicKeyCOption_NetAddressZZ *NONNULL_PTR arg);
- public static native long C2Tuple_PublicKeyCOption_NetAddressZZ_clone_ptr(long arg);
- // struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ C2Tuple_PublicKeyCOption_NetAddressZZ_clone(const struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ *NONNULL_PTR orig);
- public static native long C2Tuple_PublicKeyCOption_NetAddressZZ_clone(long orig);
- // struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ C2Tuple_PublicKeyCOption_NetAddressZZ_new(struct LDKPublicKey a, struct LDKCOption_NetAddressZ b);
- public static native long C2Tuple_PublicKeyCOption_NetAddressZZ_new(byte[] a, long b);
- // void C2Tuple_PublicKeyCOption_NetAddressZZ_free(struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ _res);
- public static native void C2Tuple_PublicKeyCOption_NetAddressZZ_free(long _res);
- // void CVec_C2Tuple_PublicKeyCOption_NetAddressZZZ_free(struct LDKCVec_C2Tuple_PublicKeyCOption_NetAddressZZZ _res);
- public static native void CVec_C2Tuple_PublicKeyCOption_NetAddressZZZ_free(long[] _res);
- // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
- public static native long CResult_CVec_u8ZPeerHandleErrorZ_ok(byte[] o);
- // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
- public static native long CResult_CVec_u8ZPeerHandleErrorZ_err(long e);
- // bool CResult_CVec_u8ZPeerHandleErrorZ_is_ok(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR o);
- public static native boolean CResult_CVec_u8ZPeerHandleErrorZ_is_ok(long o);
- // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
- public static native void CResult_CVec_u8ZPeerHandleErrorZ_free(long _res);
- // uint64_t CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR arg);
- public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(long arg);
- // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
- public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone(long orig);
- // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
- public static native long CResult_NonePeerHandleErrorZ_ok();
- // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
- public static native long CResult_NonePeerHandleErrorZ_err(long e);
- // bool CResult_NonePeerHandleErrorZ_is_ok(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR o);
- public static native boolean CResult_NonePeerHandleErrorZ_is_ok(long o);
- // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
- public static native void CResult_NonePeerHandleErrorZ_free(long _res);
- // uint64_t CResult_NonePeerHandleErrorZ_clone_ptr(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR arg);
- public static native long CResult_NonePeerHandleErrorZ_clone_ptr(long arg);
- // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
- public static native long CResult_NonePeerHandleErrorZ_clone(long orig);
- // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
- public static native long CResult_boolPeerHandleErrorZ_ok(boolean o);
- // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
- public static native long CResult_boolPeerHandleErrorZ_err(long e);
- // bool CResult_boolPeerHandleErrorZ_is_ok(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR o);
- public static native boolean CResult_boolPeerHandleErrorZ_is_ok(long o);
- // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
- public static native void CResult_boolPeerHandleErrorZ_free(long _res);
- // uint64_t CResult_boolPeerHandleErrorZ_clone_ptr(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR arg);
- public static native long CResult_boolPeerHandleErrorZ_clone_ptr(long arg);
- // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
- public static native long CResult_boolPeerHandleErrorZ_clone(long orig);
- // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_ok(struct LDKTxOut o);
- public static native long CResult_TxOutUtxoLookupErrorZ_ok(long o);
- // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_err(enum LDKUtxoLookupError e);
- public static native long CResult_TxOutUtxoLookupErrorZ_err(UtxoLookupError e);
- // bool CResult_TxOutUtxoLookupErrorZ_is_ok(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR o);
- public static native boolean CResult_TxOutUtxoLookupErrorZ_is_ok(long o);
- // void CResult_TxOutUtxoLookupErrorZ_free(struct LDKCResult_TxOutUtxoLookupErrorZ _res);
- public static native void CResult_TxOutUtxoLookupErrorZ_free(long _res);
- // uint64_t CResult_TxOutUtxoLookupErrorZ_clone_ptr(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR arg);
- public static native long CResult_TxOutUtxoLookupErrorZ_clone_ptr(long arg);
- // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_clone(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR orig);
- public static native long CResult_TxOutUtxoLookupErrorZ_clone(long orig);
- // struct LDKCResult_NoneSendErrorZ CResult_NoneSendErrorZ_ok(void);
- public static native long CResult_NoneSendErrorZ_ok();
- // struct LDKCResult_NoneSendErrorZ CResult_NoneSendErrorZ_err(struct LDKSendError e);
- public static native long CResult_NoneSendErrorZ_err(long e);
- // bool CResult_NoneSendErrorZ_is_ok(const struct LDKCResult_NoneSendErrorZ *NONNULL_PTR o);
- public static native boolean CResult_NoneSendErrorZ_is_ok(long o);
- // void CResult_NoneSendErrorZ_free(struct LDKCResult_NoneSendErrorZ _res);
- public static native void CResult_NoneSendErrorZ_free(long _res);
- // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_ok(enum LDKSiPrefix o);
- public static native long CResult_SiPrefixParseErrorZ_ok(SiPrefix o);
- // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_err(struct LDKParseError e);
- public static native long CResult_SiPrefixParseErrorZ_err(long e);
- // bool CResult_SiPrefixParseErrorZ_is_ok(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR o);
- public static native boolean CResult_SiPrefixParseErrorZ_is_ok(long o);
- // void CResult_SiPrefixParseErrorZ_free(struct LDKCResult_SiPrefixParseErrorZ _res);
- public static native void CResult_SiPrefixParseErrorZ_free(long _res);
- // uint64_t CResult_SiPrefixParseErrorZ_clone_ptr(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR arg);
- public static native long CResult_SiPrefixParseErrorZ_clone_ptr(long arg);
- // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_clone(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR orig);
- public static native long CResult_SiPrefixParseErrorZ_clone(long orig);
- // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_ok(struct LDKInvoice o);
- public static native long CResult_InvoiceParseOrSemanticErrorZ_ok(long o);
- // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_err(struct LDKParseOrSemanticError e);
- public static native long CResult_InvoiceParseOrSemanticErrorZ_err(long e);
- // bool CResult_InvoiceParseOrSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR o);
- public static native boolean CResult_InvoiceParseOrSemanticErrorZ_is_ok(long o);
- // void CResult_InvoiceParseOrSemanticErrorZ_free(struct LDKCResult_InvoiceParseOrSemanticErrorZ _res);
- public static native void CResult_InvoiceParseOrSemanticErrorZ_free(long _res);
- // uint64_t CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR arg);
- public static native long CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(long arg);
- // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_clone(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR orig);
- public static native long CResult_InvoiceParseOrSemanticErrorZ_clone(long orig);
- // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_ok(struct LDKSignedRawInvoice o);
- public static native long CResult_SignedRawInvoiceParseErrorZ_ok(long o);
- // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_err(struct LDKParseError e);
- public static native long CResult_SignedRawInvoiceParseErrorZ_err(long e);
- // bool CResult_SignedRawInvoiceParseErrorZ_is_ok(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR o);
- public static native boolean CResult_SignedRawInvoiceParseErrorZ_is_ok(long o);
- // void CResult_SignedRawInvoiceParseErrorZ_free(struct LDKCResult_SignedRawInvoiceParseErrorZ _res);
- public static native void CResult_SignedRawInvoiceParseErrorZ_free(long _res);
- // uint64_t CResult_SignedRawInvoiceParseErrorZ_clone_ptr(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR arg);
- public static native long CResult_SignedRawInvoiceParseErrorZ_clone_ptr(long arg);
- // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_clone(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR orig);
- public static native long CResult_SignedRawInvoiceParseErrorZ_clone(long orig);
- // uint64_t C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR arg);
- public static native long C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(long arg);
- // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR orig);
- public static native long C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(long orig);
- // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(struct LDKRawInvoice a, struct LDKThirtyTwoBytes b, struct LDKInvoiceSignature c);
- public static native long C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(long a, byte[] b, long c);
- // void C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ _res);
- public static native void C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(long _res);
- // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_ok(struct LDKPayeePubKey o);
- public static native long CResult_PayeePubKeyErrorZ_ok(long o);
- // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_err(enum LDKSecp256k1Error e);
- public static native long CResult_PayeePubKeyErrorZ_err(Secp256k1Error e);
- // bool CResult_PayeePubKeyErrorZ_is_ok(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR o);
- public static native boolean CResult_PayeePubKeyErrorZ_is_ok(long o);
- // void CResult_PayeePubKeyErrorZ_free(struct LDKCResult_PayeePubKeyErrorZ _res);
- public static native void CResult_PayeePubKeyErrorZ_free(long _res);
- // uint64_t CResult_PayeePubKeyErrorZ_clone_ptr(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR arg);
- public static native long CResult_PayeePubKeyErrorZ_clone_ptr(long arg);
- // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_clone(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR orig);
- public static native long CResult_PayeePubKeyErrorZ_clone(long orig);
- // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res);
- public static native void CVec_PrivateRouteZ_free(long[] _res);
- // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o);
- public static native long CResult_PositiveTimestampCreationErrorZ_ok(long o);
- // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e);
- public static native long CResult_PositiveTimestampCreationErrorZ_err(CreationError e);
- // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o);
- public static native boolean CResult_PositiveTimestampCreationErrorZ_is_ok(long o);
- // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res);
- public static native void CResult_PositiveTimestampCreationErrorZ_free(long _res);
- // uint64_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg);
- public static native long CResult_PositiveTimestampCreationErrorZ_clone_ptr(long arg);
- // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig);
- public static native long CResult_PositiveTimestampCreationErrorZ_clone(long orig);
- // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_ok(void);
- public static native long CResult_NoneSemanticErrorZ_ok();
- // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_err(enum LDKSemanticError e);
- public static native long CResult_NoneSemanticErrorZ_err(SemanticError e);
- // bool CResult_NoneSemanticErrorZ_is_ok(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR o);
- public static native boolean CResult_NoneSemanticErrorZ_is_ok(long o);
- // void CResult_NoneSemanticErrorZ_free(struct LDKCResult_NoneSemanticErrorZ _res);
- public static native void CResult_NoneSemanticErrorZ_free(long _res);
- // uint64_t CResult_NoneSemanticErrorZ_clone_ptr(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR arg);
- public static native long CResult_NoneSemanticErrorZ_clone_ptr(long arg);
- // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_clone(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR orig);
- public static native long CResult_NoneSemanticErrorZ_clone(long orig);
- // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_ok(struct LDKInvoice o);
- public static native long CResult_InvoiceSemanticErrorZ_ok(long o);
- // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_err(enum LDKSemanticError e);
- public static native long CResult_InvoiceSemanticErrorZ_err(SemanticError e);
- // bool CResult_InvoiceSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR o);
- public static native boolean CResult_InvoiceSemanticErrorZ_is_ok(long o);
- // void CResult_InvoiceSemanticErrorZ_free(struct LDKCResult_InvoiceSemanticErrorZ _res);
- public static native void CResult_InvoiceSemanticErrorZ_free(long _res);
- // uint64_t CResult_InvoiceSemanticErrorZ_clone_ptr(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR arg);
- public static native long CResult_InvoiceSemanticErrorZ_clone_ptr(long arg);
- // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_clone(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR orig);
- public static native long CResult_InvoiceSemanticErrorZ_clone(long orig);
- // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o);
- public static native long CResult_DescriptionCreationErrorZ_ok(long o);
- // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e);
- public static native long CResult_DescriptionCreationErrorZ_err(CreationError e);
- // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o);
- public static native boolean CResult_DescriptionCreationErrorZ_is_ok(long o);
- // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res);
- public static native void CResult_DescriptionCreationErrorZ_free(long _res);
- // uint64_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg);
- public static native long CResult_DescriptionCreationErrorZ_clone_ptr(long arg);
- // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig);
- public static native long CResult_DescriptionCreationErrorZ_clone(long orig);
- // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o);
- public static native long CResult_PrivateRouteCreationErrorZ_ok(long o);
- // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e);
- public static native long CResult_PrivateRouteCreationErrorZ_err(CreationError e);
- // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o);
- public static native boolean CResult_PrivateRouteCreationErrorZ_is_ok(long o);
- // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res);
- public static native void CResult_PrivateRouteCreationErrorZ_free(long _res);
- // uint64_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg);
- public static native long CResult_PrivateRouteCreationErrorZ_clone_ptr(long arg);
- // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig);
- public static native long CResult_PrivateRouteCreationErrorZ_clone(long orig);
- // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_ok(uint32_t o);
- public static native long CResult_u32GraphSyncErrorZ_ok(int o);
- // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_err(struct LDKGraphSyncError e);
- public static native long CResult_u32GraphSyncErrorZ_err(long e);
- // bool CResult_u32GraphSyncErrorZ_is_ok(const struct LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR o);
- public static native boolean CResult_u32GraphSyncErrorZ_is_ok(long o);
- // void CResult_u32GraphSyncErrorZ_free(struct LDKCResult_u32GraphSyncErrorZ _res);
- public static native void CResult_u32GraphSyncErrorZ_free(long _res);
- // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_ok(struct LDKNetAddress o);
- public static native long CResult_NetAddressDecodeErrorZ_ok(long o);
- // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_NetAddressDecodeErrorZ_err(long e);
- // bool CResult_NetAddressDecodeErrorZ_is_ok(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_NetAddressDecodeErrorZ_is_ok(long o);
- // void CResult_NetAddressDecodeErrorZ_free(struct LDKCResult_NetAddressDecodeErrorZ _res);
- public static native void CResult_NetAddressDecodeErrorZ_free(long _res);
- // uint64_t CResult_NetAddressDecodeErrorZ_clone_ptr(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_NetAddressDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_clone(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_NetAddressDecodeErrorZ_clone(long orig);
- // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
- public static native void CVec_UpdateAddHTLCZ_free(long[] _res);
- // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
- public static native void CVec_UpdateFulfillHTLCZ_free(long[] _res);
- // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
- public static native void CVec_UpdateFailHTLCZ_free(long[] _res);
- // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
- public static native void CVec_UpdateFailMalformedHTLCZ_free(long[] _res);
- // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
- public static native long CResult_AcceptChannelDecodeErrorZ_ok(long o);
- // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_AcceptChannelDecodeErrorZ_err(long e);
- // bool CResult_AcceptChannelDecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_AcceptChannelDecodeErrorZ_is_ok(long o);
- // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
- public static native void CResult_AcceptChannelDecodeErrorZ_free(long _res);
- // uint64_t CResult_AcceptChannelDecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_AcceptChannelDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_AcceptChannelDecodeErrorZ_clone(long orig);
- // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
- public static native long CResult_AnnouncementSignaturesDecodeErrorZ_ok(long o);
- // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_AnnouncementSignaturesDecodeErrorZ_err(long e);
- // bool CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(long o);
- // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
- public static native void CResult_AnnouncementSignaturesDecodeErrorZ_free(long _res);
- // uint64_t CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
- public static native long CResult_ChannelReestablishDecodeErrorZ_ok(long o);
- // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ChannelReestablishDecodeErrorZ_err(long e);
- // bool CResult_ChannelReestablishDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ChannelReestablishDecodeErrorZ_is_ok(long o);
- // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
- public static native void CResult_ChannelReestablishDecodeErrorZ_free(long _res);
- // uint64_t CResult_ChannelReestablishDecodeErrorZ_clone_ptr(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ChannelReestablishDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ChannelReestablishDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
- public static native long CResult_ClosingSignedDecodeErrorZ_ok(long o);
- // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ClosingSignedDecodeErrorZ_err(long e);
- // bool CResult_ClosingSignedDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ClosingSignedDecodeErrorZ_is_ok(long o);
- // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
- public static native void CResult_ClosingSignedDecodeErrorZ_free(long _res);
- // uint64_t CResult_ClosingSignedDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ClosingSignedDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ClosingSignedDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(struct LDKClosingSignedFeeRange o);
- public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(long o);
- // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_err(long e);
- // bool CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(long o);
- // void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ _res);
- public static native void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(long _res);
- // uint64_t CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(long orig);
- // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
- public static native long CResult_CommitmentSignedDecodeErrorZ_ok(long o);
- // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_CommitmentSignedDecodeErrorZ_err(long e);
- // bool CResult_CommitmentSignedDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_CommitmentSignedDecodeErrorZ_is_ok(long o);
- // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
- public static native void CResult_CommitmentSignedDecodeErrorZ_free(long _res);
- // uint64_t CResult_CommitmentSignedDecodeErrorZ_clone_ptr(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_CommitmentSignedDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_CommitmentSignedDecodeErrorZ_clone(long orig);
- // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
- public static native long CResult_FundingCreatedDecodeErrorZ_ok(long o);
- // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_FundingCreatedDecodeErrorZ_err(long e);
- // bool CResult_FundingCreatedDecodeErrorZ_is_ok(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_FundingCreatedDecodeErrorZ_is_ok(long o);
- // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
- public static native void CResult_FundingCreatedDecodeErrorZ_free(long _res);
- // uint64_t CResult_FundingCreatedDecodeErrorZ_clone_ptr(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_FundingCreatedDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_FundingCreatedDecodeErrorZ_clone(long orig);
- // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
- public static native long CResult_FundingSignedDecodeErrorZ_ok(long o);
- // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_FundingSignedDecodeErrorZ_err(long e);
- // bool CResult_FundingSignedDecodeErrorZ_is_ok(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_FundingSignedDecodeErrorZ_is_ok(long o);
- // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
- public static native void CResult_FundingSignedDecodeErrorZ_free(long _res);
- // uint64_t CResult_FundingSignedDecodeErrorZ_clone_ptr(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_FundingSignedDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_FundingSignedDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_ok(struct LDKChannelReady o);
- public static native long CResult_ChannelReadyDecodeErrorZ_ok(long o);
- // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ChannelReadyDecodeErrorZ_err(long e);
- // bool CResult_ChannelReadyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ChannelReadyDecodeErrorZ_is_ok(long o);
- // void CResult_ChannelReadyDecodeErrorZ_free(struct LDKCResult_ChannelReadyDecodeErrorZ _res);
- public static native void CResult_ChannelReadyDecodeErrorZ_free(long _res);
- // uint64_t CResult_ChannelReadyDecodeErrorZ_clone_ptr(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ChannelReadyDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_clone(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ChannelReadyDecodeErrorZ_clone(long orig);
- // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
- public static native long CResult_InitDecodeErrorZ_ok(long o);
- // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_InitDecodeErrorZ_err(long e);
- // bool CResult_InitDecodeErrorZ_is_ok(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_InitDecodeErrorZ_is_ok(long o);
- // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
- public static native void CResult_InitDecodeErrorZ_free(long _res);
- // uint64_t CResult_InitDecodeErrorZ_clone_ptr(LDKCResult_InitDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_InitDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_InitDecodeErrorZ_clone(long orig);
- // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
- public static native long CResult_OpenChannelDecodeErrorZ_ok(long o);
- // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_OpenChannelDecodeErrorZ_err(long e);
- // bool CResult_OpenChannelDecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_OpenChannelDecodeErrorZ_is_ok(long o);
- // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
- public static native void CResult_OpenChannelDecodeErrorZ_free(long _res);
- // uint64_t CResult_OpenChannelDecodeErrorZ_clone_ptr(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_OpenChannelDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_OpenChannelDecodeErrorZ_clone(long orig);
- // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
- public static native long CResult_RevokeAndACKDecodeErrorZ_ok(long o);
- // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_RevokeAndACKDecodeErrorZ_err(long e);
- // bool CResult_RevokeAndACKDecodeErrorZ_is_ok(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_RevokeAndACKDecodeErrorZ_is_ok(long o);
- // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
- public static native void CResult_RevokeAndACKDecodeErrorZ_free(long _res);
- // uint64_t CResult_RevokeAndACKDecodeErrorZ_clone_ptr(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_RevokeAndACKDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_RevokeAndACKDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
- public static native long CResult_ShutdownDecodeErrorZ_ok(long o);
- // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ShutdownDecodeErrorZ_err(long e);
- // bool CResult_ShutdownDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ShutdownDecodeErrorZ_is_ok(long o);
- // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
- public static native void CResult_ShutdownDecodeErrorZ_free(long _res);
- // uint64_t CResult_ShutdownDecodeErrorZ_clone_ptr(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ShutdownDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ShutdownDecodeErrorZ_clone(long orig);
- // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
- public static native long CResult_UpdateFailHTLCDecodeErrorZ_ok(long o);
- // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_UpdateFailHTLCDecodeErrorZ_err(long e);
- // bool CResult_UpdateFailHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_UpdateFailHTLCDecodeErrorZ_is_ok(long o);
- // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
- public static native void CResult_UpdateFailHTLCDecodeErrorZ_free(long _res);
- // uint64_t CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone(long orig);
- // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
- public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(long o);
- // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(long e);
- // bool CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(long o);
- // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
- public static native void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(long _res);
- // uint64_t CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(long orig);
- // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
- public static native long CResult_UpdateFeeDecodeErrorZ_ok(long o);
- // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_UpdateFeeDecodeErrorZ_err(long e);
- // bool CResult_UpdateFeeDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_UpdateFeeDecodeErrorZ_is_ok(long o);
- // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
- public static native void CResult_UpdateFeeDecodeErrorZ_free(long _res);
- // uint64_t CResult_UpdateFeeDecodeErrorZ_clone_ptr(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_UpdateFeeDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_UpdateFeeDecodeErrorZ_clone(long orig);
- // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
- public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_ok(long o);
- // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_err(long e);
- // bool CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(long o);
- // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
- public static native void CResult_UpdateFulfillHTLCDecodeErrorZ_free(long _res);
- // uint64_t CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone(long orig);
- // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
- public static native long CResult_UpdateAddHTLCDecodeErrorZ_ok(long o);
- // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_UpdateAddHTLCDecodeErrorZ_err(long e);
- // bool CResult_UpdateAddHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_UpdateAddHTLCDecodeErrorZ_is_ok(long o);
- // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
- public static native void CResult_UpdateAddHTLCDecodeErrorZ_free(long _res);
- // uint64_t CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone(long orig);
- // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_ok(struct LDKOnionMessage o);
- public static native long CResult_OnionMessageDecodeErrorZ_ok(long o);
- // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_OnionMessageDecodeErrorZ_err(long e);
- // bool CResult_OnionMessageDecodeErrorZ_is_ok(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_OnionMessageDecodeErrorZ_is_ok(long o);
- // void CResult_OnionMessageDecodeErrorZ_free(struct LDKCResult_OnionMessageDecodeErrorZ _res);
- public static native void CResult_OnionMessageDecodeErrorZ_free(long _res);
- // uint64_t CResult_OnionMessageDecodeErrorZ_clone_ptr(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_OnionMessageDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_clone(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_OnionMessageDecodeErrorZ_clone(long orig);
- // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
- public static native long CResult_PingDecodeErrorZ_ok(long o);
- // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_PingDecodeErrorZ_err(long e);
- // bool CResult_PingDecodeErrorZ_is_ok(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_PingDecodeErrorZ_is_ok(long o);
- // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
- public static native void CResult_PingDecodeErrorZ_free(long _res);
- // uint64_t CResult_PingDecodeErrorZ_clone_ptr(LDKCResult_PingDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_PingDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_PingDecodeErrorZ_clone(long orig);
- // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
- public static native long CResult_PongDecodeErrorZ_ok(long o);
- // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_PongDecodeErrorZ_err(long e);
- // bool CResult_PongDecodeErrorZ_is_ok(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_PongDecodeErrorZ_is_ok(long o);
- // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
- public static native void CResult_PongDecodeErrorZ_free(long _res);
- // uint64_t CResult_PongDecodeErrorZ_clone_ptr(LDKCResult_PongDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_PongDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_PongDecodeErrorZ_clone(long orig);
- // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
- public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(long o);
- // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(long e);
- // bool CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(long o);
- // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
- public static native void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(long _res);
- // uint64_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
- public static native long CResult_ChannelAnnouncementDecodeErrorZ_ok(long o);
- // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ChannelAnnouncementDecodeErrorZ_err(long e);
- // bool CResult_ChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ChannelAnnouncementDecodeErrorZ_is_ok(long o);
- // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
- public static native void CResult_ChannelAnnouncementDecodeErrorZ_free(long _res);
- // uint64_t CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone(long orig);
- // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
- public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_ok(long o);
- // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_err(long e);
- // bool CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(long o);
- // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
- public static native void CResult_UnsignedChannelUpdateDecodeErrorZ_free(long _res);
- // uint64_t CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
- public static native long CResult_ChannelUpdateDecodeErrorZ_ok(long o);
- // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ChannelUpdateDecodeErrorZ_err(long e);
- // bool CResult_ChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ChannelUpdateDecodeErrorZ_is_ok(long o);
- // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
- public static native void CResult_ChannelUpdateDecodeErrorZ_free(long _res);
- // uint64_t CResult_ChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ChannelUpdateDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ChannelUpdateDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
- public static native long CResult_ErrorMessageDecodeErrorZ_ok(long o);
- // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ErrorMessageDecodeErrorZ_err(long e);
- // bool CResult_ErrorMessageDecodeErrorZ_is_ok(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ErrorMessageDecodeErrorZ_is_ok(long o);
- // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
- public static native void CResult_ErrorMessageDecodeErrorZ_free(long _res);
- // uint64_t CResult_ErrorMessageDecodeErrorZ_clone_ptr(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ErrorMessageDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ErrorMessageDecodeErrorZ_clone(long orig);
- // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_ok(struct LDKWarningMessage o);
- public static native long CResult_WarningMessageDecodeErrorZ_ok(long o);
- // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_WarningMessageDecodeErrorZ_err(long e);
- // bool CResult_WarningMessageDecodeErrorZ_is_ok(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_WarningMessageDecodeErrorZ_is_ok(long o);
- // void CResult_WarningMessageDecodeErrorZ_free(struct LDKCResult_WarningMessageDecodeErrorZ _res);
- public static native void CResult_WarningMessageDecodeErrorZ_free(long _res);
- // uint64_t CResult_WarningMessageDecodeErrorZ_clone_ptr(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_WarningMessageDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_clone(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_WarningMessageDecodeErrorZ_clone(long orig);
- // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
- public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(long o);
- // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(long e);
- // bool CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(long o);
- // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
- public static native void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(long _res);
- // uint64_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(long orig);
- // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
- public static native long CResult_NodeAnnouncementDecodeErrorZ_ok(long o);
- // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_NodeAnnouncementDecodeErrorZ_err(long e);
- // bool CResult_NodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_NodeAnnouncementDecodeErrorZ_is_ok(long o);
- // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
- public static native void CResult_NodeAnnouncementDecodeErrorZ_free(long _res);
- // uint64_t CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_NodeAnnouncementDecodeErrorZ_clone(long orig);
- // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
- public static native long CResult_QueryShortChannelIdsDecodeErrorZ_ok(long o);
- // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_QueryShortChannelIdsDecodeErrorZ_err(long e);
- // bool CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(long o);
- // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
- public static native void CResult_QueryShortChannelIdsDecodeErrorZ_free(long _res);
- // uint64_t CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
- public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(long o);
- // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(long e);
- // bool CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(long o);
- // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
- public static native void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(long _res);
- // uint64_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(long orig);
- // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
- public static native long CResult_QueryChannelRangeDecodeErrorZ_ok(long o);
- // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_QueryChannelRangeDecodeErrorZ_err(long e);
- // bool CResult_QueryChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_QueryChannelRangeDecodeErrorZ_is_ok(long o);
- // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
- public static native void CResult_QueryChannelRangeDecodeErrorZ_free(long _res);
- // uint64_t CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_QueryChannelRangeDecodeErrorZ_clone(long orig);
- // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
- public static native long CResult_ReplyChannelRangeDecodeErrorZ_ok(long o);
- // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_ReplyChannelRangeDecodeErrorZ_err(long e);
- // bool CResult_ReplyChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_ReplyChannelRangeDecodeErrorZ_is_ok(long o);
- // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
- public static native void CResult_ReplyChannelRangeDecodeErrorZ_free(long _res);
- // uint64_t CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone(long orig);
- // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
- public static native long CResult_GossipTimestampFilterDecodeErrorZ_ok(long o);
- // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
- public static native long CResult_GossipTimestampFilterDecodeErrorZ_err(long e);
- // bool CResult_GossipTimestampFilterDecodeErrorZ_is_ok(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR o);
- public static native boolean CResult_GossipTimestampFilterDecodeErrorZ_is_ok(long o);
- // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
- public static native void CResult_GossipTimestampFilterDecodeErrorZ_free(long _res);
- // uint64_t CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR arg);
- public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(long arg);
- // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
- public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone(long orig);
- // void CVec_PhantomRouteHintsZ_free(struct LDKCVec_PhantomRouteHintsZ _res);
- public static native void CVec_PhantomRouteHintsZ_free(long[] _res);
- // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_ok(struct LDKInvoice o);
- public static native long CResult_InvoiceSignOrCreationErrorZ_ok(long o);
- // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_err(struct LDKSignOrCreationError e);
- public static native long CResult_InvoiceSignOrCreationErrorZ_err(long e);
- // bool CResult_InvoiceSignOrCreationErrorZ_is_ok(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR o);
- public static native boolean CResult_InvoiceSignOrCreationErrorZ_is_ok(long o);
- // void CResult_InvoiceSignOrCreationErrorZ_free(struct LDKCResult_InvoiceSignOrCreationErrorZ _res);
- public static native void CResult_InvoiceSignOrCreationErrorZ_free(long _res);
- // uint64_t CResult_InvoiceSignOrCreationErrorZ_clone_ptr(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR arg);
- public static native long CResult_InvoiceSignOrCreationErrorZ_clone_ptr(long arg);
- // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_clone(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR orig);
- public static native long CResult_InvoiceSignOrCreationErrorZ_clone(long orig);
- // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o);
- public static native long COption_FilterZ_some(long o);
- // struct LDKCOption_FilterZ COption_FilterZ_none(void);
- public static native long COption_FilterZ_none();
- // void COption_FilterZ_free(struct LDKCOption_FilterZ _res);
- public static native void COption_FilterZ_free(long _res);
- // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o);
- public static native long CResult_LockedChannelMonitorNoneZ_ok(long o);
- // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void);
- public static native long CResult_LockedChannelMonitorNoneZ_err();
- // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o);
- public static native boolean CResult_LockedChannelMonitorNoneZ_is_ok(long o);
- // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res);
- public static native void CResult_LockedChannelMonitorNoneZ_free(long _res);
- // void CVec_OutPointZ_free(struct LDKCVec_OutPointZ _res);
- public static native void CVec_OutPointZ_free(long[] _res);
- // void CVec_MonitorUpdateIdZ_free(struct LDKCVec_MonitorUpdateIdZ _res);
- public static native void CVec_MonitorUpdateIdZ_free(long[] _res);
- // uint64_t C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR arg);
- public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(long arg);
- // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(const struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR orig);
- public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(long orig);
- // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorUpdateIdZ b);
- public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(long a, long[] b);
- // void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ _res);
- public static native void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(long _res);
- // void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ _res);
- public static native void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(long[] _res);
- // void PaymentPurpose_free(struct LDKPaymentPurpose this_ptr);
- public static native void PaymentPurpose_free(long this_ptr);
- // uint64_t PaymentPurpose_clone_ptr(LDKPaymentPurpose *NONNULL_PTR arg);
- public static native long PaymentPurpose_clone_ptr(long arg);
- // struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NONNULL_PTR orig);
- public static native long PaymentPurpose_clone(long orig);
- // struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_secret);
- public static native long PaymentPurpose_invoice_payment(byte[] payment_preimage, byte[] payment_secret);
- // struct LDKPaymentPurpose PaymentPurpose_spontaneous_payment(struct LDKThirtyTwoBytes a);
- public static native long PaymentPurpose_spontaneous_payment(byte[] a);
- // bool PaymentPurpose_eq(const struct LDKPaymentPurpose *NONNULL_PTR a, const struct LDKPaymentPurpose *NONNULL_PTR b);
- public static native boolean PaymentPurpose_eq(long a, long b);
- // struct LDKCVec_u8Z PaymentPurpose_write(const struct LDKPaymentPurpose *NONNULL_PTR obj);
- public static native byte[] PaymentPurpose_write(long obj);
- // struct LDKCResult_PaymentPurposeDecodeErrorZ PaymentPurpose_read(struct LDKu8slice ser);
- public static native long PaymentPurpose_read(byte[] ser);
- // void PathFailure_free(struct LDKPathFailure this_ptr);
- public static native void PathFailure_free(long this_ptr);
- // uint64_t PathFailure_clone_ptr(LDKPathFailure *NONNULL_PTR arg);
- public static native long PathFailure_clone_ptr(long arg);
- // struct LDKPathFailure PathFailure_clone(const struct LDKPathFailure *NONNULL_PTR orig);
- public static native long PathFailure_clone(long orig);
- // struct LDKPathFailure PathFailure_initial_send(struct LDKAPIError err);
- public static native long PathFailure_initial_send(long err);
- // struct LDKPathFailure PathFailure_on_path(struct LDKCOption_NetworkUpdateZ network_update);
- public static native long PathFailure_on_path(long network_update);
- // bool PathFailure_eq(const struct LDKPathFailure *NONNULL_PTR a, const struct LDKPathFailure *NONNULL_PTR b);
- public static native boolean PathFailure_eq(long a, long b);
- // struct LDKCVec_u8Z PathFailure_write(const struct LDKPathFailure *NONNULL_PTR obj);
- public static native byte[] PathFailure_write(long obj);
- // struct LDKCResult_COption_PathFailureZDecodeErrorZ PathFailure_read(struct LDKu8slice ser);
- public static native long PathFailure_read(byte[] ser);
- // void ClosureReason_free(struct LDKClosureReason this_ptr);
- public static native void ClosureReason_free(long this_ptr);
- // uint64_t ClosureReason_clone_ptr(LDKClosureReason *NONNULL_PTR arg);
- public static native long ClosureReason_clone_ptr(long arg);
- // struct LDKClosureReason ClosureReason_clone(const struct LDKClosureReason *NONNULL_PTR orig);
- public static native long ClosureReason_clone(long orig);
- // struct LDKClosureReason ClosureReason_counterparty_force_closed(struct LDKStr peer_msg);
- public static native long ClosureReason_counterparty_force_closed(String peer_msg);
- // struct LDKClosureReason ClosureReason_holder_force_closed(void);
- public static native long ClosureReason_holder_force_closed();
- // struct LDKClosureReason ClosureReason_cooperative_closure(void);
- public static native long ClosureReason_cooperative_closure();
- // struct LDKClosureReason ClosureReason_commitment_tx_confirmed(void);
- public static native long ClosureReason_commitment_tx_confirmed();
- // struct LDKClosureReason ClosureReason_funding_timed_out(void);
- public static native long ClosureReason_funding_timed_out();
- // struct LDKClosureReason ClosureReason_processing_error(struct LDKStr err);
- public static native long ClosureReason_processing_error(String err);
- // struct LDKClosureReason ClosureReason_disconnected_peer(void);
- public static native long ClosureReason_disconnected_peer();
- // struct LDKClosureReason ClosureReason_outdated_channel_manager(void);
- public static native long ClosureReason_outdated_channel_manager();
- // bool ClosureReason_eq(const struct LDKClosureReason *NONNULL_PTR a, const struct LDKClosureReason *NONNULL_PTR b);
- public static native boolean ClosureReason_eq(long a, long b);
- // struct LDKCVec_u8Z ClosureReason_write(const struct LDKClosureReason *NONNULL_PTR obj);
- public static native byte[] ClosureReason_write(long obj);
- // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(struct LDKu8slice ser);
- public static native long ClosureReason_read(byte[] ser);
- // void HTLCDestination_free(struct LDKHTLCDestination this_ptr);
- public static native void HTLCDestination_free(long this_ptr);
- // uint64_t HTLCDestination_clone_ptr(LDKHTLCDestination *NONNULL_PTR arg);
- public static native long HTLCDestination_clone_ptr(long arg);
- // struct LDKHTLCDestination HTLCDestination_clone(const struct LDKHTLCDestination *NONNULL_PTR orig);
- public static native long HTLCDestination_clone(long orig);
- // struct LDKHTLCDestination HTLCDestination_next_hop_channel(struct LDKPublicKey node_id, struct LDKThirtyTwoBytes channel_id);
- public static native long HTLCDestination_next_hop_channel(byte[] node_id, byte[] channel_id);
- // struct LDKHTLCDestination HTLCDestination_unknown_next_hop(uint64_t requested_forward_scid);
- public static native long HTLCDestination_unknown_next_hop(long requested_forward_scid);
- // struct LDKHTLCDestination HTLCDestination_invalid_forward(uint64_t requested_forward_scid);
- public static native long HTLCDestination_invalid_forward(long requested_forward_scid);
- // struct LDKHTLCDestination HTLCDestination_failed_payment(struct LDKThirtyTwoBytes payment_hash);
- public static native long HTLCDestination_failed_payment(byte[] payment_hash);
- // bool HTLCDestination_eq(const struct LDKHTLCDestination *NONNULL_PTR a, const struct LDKHTLCDestination *NONNULL_PTR b);
- public static native boolean HTLCDestination_eq(long a, long b);
- // struct LDKCVec_u8Z HTLCDestination_write(const struct LDKHTLCDestination *NONNULL_PTR obj);
- public static native byte[] HTLCDestination_write(long obj);
- // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ HTLCDestination_read(struct LDKu8slice ser);
- public static native long HTLCDestination_read(byte[] ser);
- // void Event_free(struct LDKEvent this_ptr);
- public static native void Event_free(long this_ptr);
- // uint64_t Event_clone_ptr(LDKEvent *NONNULL_PTR arg);
- public static native long Event_clone_ptr(long arg);
- // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
- public static native long Event_clone(long orig);
- // struct LDKEvent Event_funding_generation_ready(struct LDKThirtyTwoBytes temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t channel_value_satoshis, struct LDKCVec_u8Z output_script, struct LDKU128 user_channel_id);
- public static native long Event_funding_generation_ready(byte[] temporary_channel_id, byte[] counterparty_node_id, long channel_value_satoshis, byte[] output_script, byte[] user_channel_id);
- // struct LDKEvent Event_payment_claimable(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose, struct LDKThirtyTwoBytes via_channel_id, struct LDKCOption_u128Z via_user_channel_id);
- public static native long Event_payment_claimable(byte[] receiver_node_id, byte[] payment_hash, long amount_msat, long purpose, byte[] via_channel_id, long via_user_channel_id);
- // struct LDKEvent Event_payment_claimed(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose);
- public static native long Event_payment_claimed(byte[] receiver_node_id, byte[] payment_hash, long amount_msat, long purpose);
- // struct LDKEvent Event_payment_sent(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat);
- public static native long Event_payment_sent(byte[] payment_id, byte[] payment_preimage, byte[] payment_hash, long fee_paid_msat);
- // struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash);
- public static native long Event_payment_failed(byte[] payment_id, byte[] payment_hash);
- // struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCVec_RouteHopZ path);
- public static native long Event_payment_path_successful(byte[] payment_id, byte[] payment_hash, long[] path);
- // struct LDKEvent Event_payment_path_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, bool payment_failed_permanently, struct LDKPathFailure failure, struct LDKCVec_RouteHopZ path, struct LDKCOption_u64Z short_channel_id, struct LDKRouteParameters retry);
- public static native long Event_payment_path_failed(byte[] payment_id, byte[] payment_hash, boolean payment_failed_permanently, long failure, long[] path, long short_channel_id, long retry);
- // struct LDKEvent Event_probe_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCVec_RouteHopZ path);
- public static native long Event_probe_successful(byte[] payment_id, byte[] payment_hash, long[] path);
- // struct LDKEvent Event_probe_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCVec_RouteHopZ path, struct LDKCOption_u64Z short_channel_id);
- public static native long Event_probe_failed(byte[] payment_id, byte[] payment_hash, long[] path, long short_channel_id);
- // struct LDKEvent Event_pending_htlcs_forwardable(uint64_t time_forwardable);
- public static native long Event_pending_htlcs_forwardable(long time_forwardable);
- // struct LDKEvent Event_htlcintercepted(struct LDKThirtyTwoBytes intercept_id, uint64_t requested_next_hop_scid, struct LDKThirtyTwoBytes payment_hash, uint64_t inbound_amount_msat, uint64_t expected_outbound_amount_msat);
- public static native long Event_htlcintercepted(byte[] intercept_id, long requested_next_hop_scid, byte[] payment_hash, long inbound_amount_msat, long expected_outbound_amount_msat);
- // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs);
- public static native long Event_spendable_outputs(long[] outputs);
- // struct LDKEvent Event_payment_forwarded(struct LDKThirtyTwoBytes prev_channel_id, struct LDKThirtyTwoBytes next_channel_id, struct LDKCOption_u64Z fee_earned_msat, bool claim_from_onchain_tx);
- public static native long Event_payment_forwarded(byte[] prev_channel_id, byte[] next_channel_id, long fee_earned_msat, boolean claim_from_onchain_tx);
- // struct LDKEvent Event_channel_ready(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKChannelTypeFeatures channel_type);
- public static native long Event_channel_ready(byte[] channel_id, byte[] user_channel_id, byte[] counterparty_node_id, long channel_type);
- // struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKClosureReason reason);
- public static native long Event_channel_closed(byte[] channel_id, byte[] user_channel_id, long reason);
- // struct LDKEvent Event_discard_funding(struct LDKThirtyTwoBytes channel_id, struct LDKTransaction transaction);
- public static native long Event_discard_funding(byte[] channel_id, byte[] transaction);
- // struct LDKEvent Event_open_channel_request(struct LDKThirtyTwoBytes temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t funding_satoshis, uint64_t push_msat, struct LDKChannelTypeFeatures channel_type);
- public static native long Event_open_channel_request(byte[] temporary_channel_id, byte[] counterparty_node_id, long funding_satoshis, long push_msat, long channel_type);
- // struct LDKEvent Event_htlchandling_failed(struct LDKThirtyTwoBytes prev_channel_id, struct LDKHTLCDestination failed_next_destination);
- public static native long Event_htlchandling_failed(byte[] prev_channel_id, long failed_next_destination);
- // bool Event_eq(const struct LDKEvent *NONNULL_PTR a, const struct LDKEvent *NONNULL_PTR b);
- public static native boolean Event_eq(long a, long b);
- // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
- public static native byte[] Event_write(long obj);
- // struct LDKCResult_COption_EventZDecodeErrorZ Event_read(struct LDKu8slice ser);
- public static native long Event_read(byte[] ser);
- // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
- public static native void MessageSendEvent_free(long this_ptr);
- // uint64_t MessageSendEvent_clone_ptr(LDKMessageSendEvent *NONNULL_PTR arg);
- public static native long MessageSendEvent_clone_ptr(long arg);
- // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
- public static native long MessageSendEvent_clone(long orig);
- // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel(struct LDKPublicKey node_id, struct LDKAcceptChannel msg);
- public static native long MessageSendEvent_send_accept_channel(byte[] node_id, long msg);
- // struct LDKMessageSendEvent MessageSendEvent_send_open_channel(struct LDKPublicKey node_id, struct LDKOpenChannel msg);
- public static native long MessageSendEvent_send_open_channel(byte[] node_id, long msg);
- // struct LDKMessageSendEvent MessageSendEvent_send_funding_created(struct LDKPublicKey node_id, struct LDKFundingCreated msg);
- public static native long MessageSendEvent_send_funding_created(byte[] node_id, long msg);
- // struct LDKMessageSendEvent MessageSendEvent_send_funding_signed(struct LDKPublicKey node_id, struct LDKFundingSigned msg);
- public static native long MessageSendEvent_send_funding_signed(byte[] node_id, long msg);
- // struct LDKMessageSendEvent MessageSendEvent_send_channel_ready(struct LDKPublicKey node_id, struct LDKChannelReady msg);
- public static native long MessageSendEvent_send_channel_ready(byte[] node_id, long msg);
- // struct LDKMessageSendEvent MessageSendEvent_send_announcement_signatures(struct LDKPublicKey node_id, struct LDKAnnouncementSignatures msg);
- public static native long MessageSendEvent_send_announcement_signatures(byte[] node_id, long msg);
- // struct LDKMessageSendEvent MessageSendEvent_update_htlcs(struct LDKPublicKey node_id, struct LDKCommitmentUpdate updates);
- public static native long MessageSendEvent_update_htlcs(byte[] node_id, long updates);
- // struct LDKMessageSendEvent MessageSendEvent_send_revoke_and_ack(struct LDKPublicKey node_id, struct LDKRevokeAndACK msg);
- public static native long MessageSendEvent_send_revoke_and_ack(byte[] node_id, long msg);
- // struct LDKMessageSendEvent MessageSendEvent_send_closing_signed(struct LDKPublicKey node_id, struct LDKClosingSigned msg);
- public static native long MessageSendEvent_send_closing_signed(byte[] node_id, long msg);
- // struct LDKMessageSendEvent MessageSendEvent_send_shutdown(struct LDKPublicKey node_id, struct LDKShutdown msg);
- public static native long MessageSendEvent_send_shutdown(byte[] node_id, long msg);
- // struct LDKMessageSendEvent MessageSendEvent_send_channel_reestablish(struct LDKPublicKey node_id, struct LDKChannelReestablish msg);
- public static native long MessageSendEvent_send_channel_reestablish(byte[] node_id, long msg);
- // struct LDKMessageSendEvent MessageSendEvent_send_channel_announcement(struct LDKPublicKey node_id, struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
- public static native long MessageSendEvent_send_channel_announcement(byte[] node_id, long msg, long update_msg);
- // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_announcement(struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
- public static native long MessageSendEvent_broadcast_channel_announcement(long msg, long update_msg);
- // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_update(struct LDKChannelUpdate msg);
- public static native long MessageSendEvent_broadcast_channel_update(long msg);
- // struct LDKMessageSendEvent MessageSendEvent_broadcast_node_announcement(struct LDKNodeAnnouncement msg);
- public static native long MessageSendEvent_broadcast_node_announcement(long msg);
- // struct LDKMessageSendEvent MessageSendEvent_send_channel_update(struct LDKPublicKey node_id, struct LDKChannelUpdate msg);
- public static native long MessageSendEvent_send_channel_update(byte[] node_id, long msg);
- // struct LDKMessageSendEvent MessageSendEvent_handle_error(struct LDKPublicKey node_id, struct LDKErrorAction action);
- public static native long MessageSendEvent_handle_error(byte[] node_id, long action);
- // struct LDKMessageSendEvent MessageSendEvent_send_channel_range_query(struct LDKPublicKey node_id, struct LDKQueryChannelRange msg);
- public static native long MessageSendEvent_send_channel_range_query(byte[] node_id, long msg);
- // struct LDKMessageSendEvent MessageSendEvent_send_short_ids_query(struct LDKPublicKey node_id, struct LDKQueryShortChannelIds msg);
- public static native long MessageSendEvent_send_short_ids_query(byte[] node_id, long msg);
- // struct LDKMessageSendEvent MessageSendEvent_send_reply_channel_range(struct LDKPublicKey node_id, struct LDKReplyChannelRange msg);
- public static native long MessageSendEvent_send_reply_channel_range(byte[] node_id, long msg);
- // struct LDKMessageSendEvent MessageSendEvent_send_gossip_timestamp_filter(struct LDKPublicKey node_id, struct LDKGossipTimestampFilter msg);
- public static native long MessageSendEvent_send_gossip_timestamp_filter(byte[] node_id, long msg);
- // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
- public static native void MessageSendEventsProvider_free(long this_ptr);
- // void OnionMessageProvider_free(struct LDKOnionMessageProvider this_ptr);
- public static native void OnionMessageProvider_free(long this_ptr);
- // void EventsProvider_free(struct LDKEventsProvider this_ptr);
- public static native void EventsProvider_free(long this_ptr);
- // void EventHandler_free(struct LDKEventHandler this_ptr);
- public static native void EventHandler_free(long this_ptr);
- // void APIError_free(struct LDKAPIError this_ptr);
- public static native void APIError_free(long this_ptr);
- // uint64_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg);
- public static native long APIError_clone_ptr(long arg);
- // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
- public static native long APIError_clone(long orig);
- // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err);
- public static native long APIError_apimisuse_error(String err);
- // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate);
- public static native long APIError_fee_rate_too_high(String err, int feerate);
- // struct LDKAPIError APIError_invalid_route(struct LDKStr err);
- public static native long APIError_invalid_route(String err);
- // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err);
- public static native long APIError_channel_unavailable(String err);
- // struct LDKAPIError APIError_monitor_update_in_progress(void);
- public static native long APIError_monitor_update_in_progress();
- // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script);
- public static native long APIError_incompatible_shutdown_script(long script);
- // bool APIError_eq(const struct LDKAPIError *NONNULL_PTR a, const struct LDKAPIError *NONNULL_PTR b);
- public static native boolean APIError_eq(long a, long b);
- // struct LDKCVec_u8Z APIError_write(const struct LDKAPIError *NONNULL_PTR obj);
- public static native byte[] APIError_write(long obj);
- // struct LDKCResult_COption_APIErrorZDecodeErrorZ APIError_read(struct LDKu8slice ser);
- public static native long APIError_read(byte[] ser);
- // void BigSize_free(struct LDKBigSize this_obj);
- public static native void BigSize_free(long this_obj);
- // uint64_t BigSize_get_a(const struct LDKBigSize *NONNULL_PTR this_ptr);
- public static native long BigSize_get_a(long this_ptr);
- // void BigSize_set_a(struct LDKBigSize *NONNULL_PTR this_ptr, uint64_t val);
- public static native void BigSize_set_a(long this_ptr, long val);
- // MUST_USE_RES struct LDKBigSize BigSize_new(uint64_t a_arg);
- public static native long BigSize_new(long a_arg);
- // void Hostname_free(struct LDKHostname this_obj);
- public static native void Hostname_free(long this_obj);
- // uint64_t Hostname_clone_ptr(LDKHostname *NONNULL_PTR arg);
- public static native long Hostname_clone_ptr(long arg);
- // struct LDKHostname Hostname_clone(const struct LDKHostname *NONNULL_PTR orig);
- public static native long Hostname_clone(long orig);
- // bool Hostname_eq(const struct LDKHostname *NONNULL_PTR a, const struct LDKHostname *NONNULL_PTR b);
- public static native boolean Hostname_eq(long a, long b);
- // MUST_USE_RES uint8_t Hostname_len(const struct LDKHostname *NONNULL_PTR this_arg);
- public static native byte Hostname_len(long this_arg);
- // struct LDKCResult_StringErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]);
- public static native long sign(byte[] msg, byte[] sk);
- // struct LDKCResult_PublicKeyErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig);
- public static native long recover_pk(byte[] msg, String sig);
- // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk);
- public static native boolean verify(byte[] msg, String sig, byte[] pk);
- // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z data_without_signature);
- public static native byte[] construct_invoice_preimage(byte[] hrp_bytes, byte[] data_without_signature);
- // void Persister_free(struct LDKPersister this_ptr);
- public static native void Persister_free(long this_ptr);
- // void PrintableString_free(struct LDKPrintableString this_obj);
- public static native void PrintableString_free(long this_obj);
- // struct LDKStr PrintableString_get_a(const struct LDKPrintableString *NONNULL_PTR this_ptr);
- public static native String PrintableString_get_a(long this_ptr);
- // void PrintableString_set_a(struct LDKPrintableString *NONNULL_PTR this_ptr, struct LDKStr val);
- public static native void PrintableString_set_a(long this_ptr, String val);
- // MUST_USE_RES struct LDKPrintableString PrintableString_new(struct LDKStr a_arg);
- public static native long PrintableString_new(String a_arg);
- // void FutureCallback_free(struct LDKFutureCallback this_ptr);
- public static native void FutureCallback_free(long this_ptr);
- // void Future_free(struct LDKFuture this_obj);
- public static native void Future_free(long this_obj);
- // void Future_register_callback_fn(const struct LDKFuture *NONNULL_PTR this_arg, struct LDKFutureCallback callback);
- public static native void Future_register_callback_fn(long this_arg, long callback);
- // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
- public static native Level Level_clone(long orig);
- // enum LDKLevel Level_gossip(void);
- public static native Level Level_gossip();
- // enum LDKLevel Level_trace(void);
- public static native Level Level_trace();
- // enum LDKLevel Level_debug(void);
- public static native Level Level_debug();
- // enum LDKLevel Level_info(void);
- public static native Level Level_info();
- // enum LDKLevel Level_warn(void);
- public static native Level Level_warn();
- // enum LDKLevel Level_error(void);
- public static native Level Level_error();
- // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b);
- public static native boolean Level_eq(long a, long b);
- // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o);
- public static native long Level_hash(long o);
- // MUST_USE_RES enum LDKLevel Level_max(void);
- public static native Level Level_max();
- // void Record_free(struct LDKRecord this_obj);
- public static native void Record_free(long this_obj);
- // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr);
- public static native Level Record_get_level(long this_ptr);
- // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val);
- public static native void Record_set_level(long this_ptr, Level val);
- // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr);
- public static native String Record_get_args(long this_ptr);
- // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
- public static native void Record_set_args(long this_ptr, String val);
- // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr);
- public static native String Record_get_module_path(long this_ptr);
- // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
- public static native void Record_set_module_path(long this_ptr, String val);
- // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr);
- public static native String Record_get_file(long this_ptr);
- // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
- public static native void Record_set_file(long this_ptr, String val);
- // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr);
- public static native int Record_get_line(long this_ptr);
- // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val);
- public static native void Record_set_line(long this_ptr, int val);
- // uint64_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg);
- public static native long Record_clone_ptr(long arg);
- // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig);
- public static native long Record_clone(long orig);
- // void Logger_free(struct LDKLogger this_ptr);
- public static native void Logger_free(long this_ptr);
- // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj);
- public static native void ChannelHandshakeConfig_free(long this_obj);
- // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
- public static native int ChannelHandshakeConfig_get_minimum_depth(long this_ptr);
- // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
- public static native void ChannelHandshakeConfig_set_minimum_depth(long this_ptr, int val);
- // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
- public static native short ChannelHandshakeConfig_get_our_to_self_delay(long this_ptr);
- // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
- public static native void ChannelHandshakeConfig_set_our_to_self_delay(long this_ptr, short val);
- // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
- public static native long ChannelHandshakeConfig_get_our_htlc_minimum_msat(long this_ptr);
- // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
- public static native void ChannelHandshakeConfig_set_our_htlc_minimum_msat(long this_ptr, long val);
- // uint8_t ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
- public static native byte ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(long this_ptr);
- // void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint8_t val);
- public static native void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(long this_ptr, byte val);
- // bool ChannelHandshakeConfig_get_negotiate_scid_privacy(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
- public static native boolean ChannelHandshakeConfig_get_negotiate_scid_privacy(long this_ptr);
- // void ChannelHandshakeConfig_set_negotiate_scid_privacy(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
- public static native void ChannelHandshakeConfig_set_negotiate_scid_privacy(long this_ptr, boolean val);
- // bool ChannelHandshakeConfig_get_announced_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
- public static native boolean ChannelHandshakeConfig_get_announced_channel(long this_ptr);
- // void ChannelHandshakeConfig_set_announced_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
- public static native void ChannelHandshakeConfig_set_announced_channel(long this_ptr, boolean val);
- // bool ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
- public static native boolean ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(long this_ptr);
- // void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
- public static native void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(long this_ptr, boolean val);
- // uint32_t ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
- public static native int ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(long this_ptr);
- // void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
- public static native void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(long this_ptr, int val);
- // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_new(uint32_t minimum_depth_arg, uint16_t our_to_self_delay_arg, uint64_t our_htlc_minimum_msat_arg, uint8_t max_inbound_htlc_value_in_flight_percent_of_channel_arg, bool negotiate_scid_privacy_arg, bool announced_channel_arg, bool commit_upfront_shutdown_pubkey_arg, uint32_t their_channel_reserve_proportional_millionths_arg);
- public static native long ChannelHandshakeConfig_new(int minimum_depth_arg, short our_to_self_delay_arg, long our_htlc_minimum_msat_arg, byte max_inbound_htlc_value_in_flight_percent_of_channel_arg, boolean negotiate_scid_privacy_arg, boolean announced_channel_arg, boolean commit_upfront_shutdown_pubkey_arg, int their_channel_reserve_proportional_millionths_arg);
- // uint64_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg);
- public static native long ChannelHandshakeConfig_clone_ptr(long arg);
- // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
- public static native long ChannelHandshakeConfig_clone(long orig);
- // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
- public static native long ChannelHandshakeConfig_default();
- // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj);
- public static native void ChannelHandshakeLimits_free(long this_obj);
- // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
- public static native long ChannelHandshakeLimits_get_min_funding_satoshis(long this_ptr);
- // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
- public static native void ChannelHandshakeLimits_set_min_funding_satoshis(long this_ptr, long val);
- // uint64_t ChannelHandshakeLimits_get_max_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
- public static native long ChannelHandshakeLimits_get_max_funding_satoshis(long this_ptr);
- // void ChannelHandshakeLimits_set_max_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
- public static native void ChannelHandshakeLimits_set_max_funding_satoshis(long this_ptr, long val);
- // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
- public static native long ChannelHandshakeLimits_get_max_htlc_minimum_msat(long this_ptr);
- // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
- public static native void ChannelHandshakeLimits_set_max_htlc_minimum_msat(long this_ptr, long val);
- // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
- public static native long ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(long this_ptr);
- // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
- public static native void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(long this_ptr, long val);
- // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
- public static native long ChannelHandshakeLimits_get_max_channel_reserve_satoshis(long this_ptr);
- // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
- public static native void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(long this_ptr, long val);
- // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
- public static native short ChannelHandshakeLimits_get_min_max_accepted_htlcs(long this_ptr);
- // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
- public static native void ChannelHandshakeLimits_set_min_max_accepted_htlcs(long this_ptr, short val);
- // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
- public static native int ChannelHandshakeLimits_get_max_minimum_depth(long this_ptr);
- // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
- public static native void ChannelHandshakeLimits_set_max_minimum_depth(long this_ptr, int val);
- // bool ChannelHandshakeLimits_get_trust_own_funding_0conf(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
- public static native boolean ChannelHandshakeLimits_get_trust_own_funding_0conf(long this_ptr);
- // void ChannelHandshakeLimits_set_trust_own_funding_0conf(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
- public static native void ChannelHandshakeLimits_set_trust_own_funding_0conf(long this_ptr, boolean val);
- // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
- public static native boolean ChannelHandshakeLimits_get_force_announced_channel_preference(long this_ptr);
- // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
- public static native void ChannelHandshakeLimits_set_force_announced_channel_preference(long this_ptr, boolean val);
- // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
- public static native short ChannelHandshakeLimits_get_their_to_self_delay(long this_ptr);
- // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
- public static native void ChannelHandshakeLimits_set_their_to_self_delay(long this_ptr, short val);
- // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_new(uint64_t min_funding_satoshis_arg, uint64_t max_funding_satoshis_arg, uint64_t max_htlc_minimum_msat_arg, uint64_t min_max_htlc_value_in_flight_msat_arg, uint64_t max_channel_reserve_satoshis_arg, uint16_t min_max_accepted_htlcs_arg, uint32_t max_minimum_depth_arg, bool trust_own_funding_0conf_arg, bool force_announced_channel_preference_arg, uint16_t their_to_self_delay_arg);
- public static native long ChannelHandshakeLimits_new(long min_funding_satoshis_arg, long max_funding_satoshis_arg, long max_htlc_minimum_msat_arg, long min_max_htlc_value_in_flight_msat_arg, long max_channel_reserve_satoshis_arg, short min_max_accepted_htlcs_arg, int max_minimum_depth_arg, boolean trust_own_funding_0conf_arg, boolean force_announced_channel_preference_arg, short their_to_self_delay_arg);
- // uint64_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg);
- public static native long ChannelHandshakeLimits_clone_ptr(long arg);
- // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
- public static native long ChannelHandshakeLimits_clone(long orig);
- // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
- public static native long ChannelHandshakeLimits_default();
- // void ChannelConfig_free(struct LDKChannelConfig this_obj);
- public static native void ChannelConfig_free(long this_obj);
- // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
- public static native int ChannelConfig_get_forwarding_fee_proportional_millionths(long this_ptr);
- // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
- public static native void ChannelConfig_set_forwarding_fee_proportional_millionths(long this_ptr, int val);
- // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
- public static native int ChannelConfig_get_forwarding_fee_base_msat(long this_ptr);
- // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
- public static native void ChannelConfig_set_forwarding_fee_base_msat(long this_ptr, int val);
- // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
- public static native short ChannelConfig_get_cltv_expiry_delta(long this_ptr);
- // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val);
- public static native void ChannelConfig_set_cltv_expiry_delta(long this_ptr, short val);
- // uint64_t ChannelConfig_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
- public static native long ChannelConfig_get_max_dust_htlc_exposure_msat(long this_ptr);
- // void ChannelConfig_set_max_dust_htlc_exposure_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
- public static native void ChannelConfig_set_max_dust_htlc_exposure_msat(long this_ptr, long val);
- // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
- public static native long ChannelConfig_get_force_close_avoidance_max_fee_satoshis(long this_ptr);
- // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
- public static native void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(long this_ptr, long val);
- // MUST_USE_RES struct LDKChannelConfig ChannelConfig_new(uint32_t forwarding_fee_proportional_millionths_arg, uint32_t forwarding_fee_base_msat_arg, uint16_t cltv_expiry_delta_arg, uint64_t max_dust_htlc_exposure_msat_arg, uint64_t force_close_avoidance_max_fee_satoshis_arg);
- public static native long ChannelConfig_new(int forwarding_fee_proportional_millionths_arg, int forwarding_fee_base_msat_arg, short cltv_expiry_delta_arg, long max_dust_htlc_exposure_msat_arg, long force_close_avoidance_max_fee_satoshis_arg);
- // uint64_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg);
- public static native long ChannelConfig_clone_ptr(long arg);
- // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
- public static native long ChannelConfig_clone(long orig);
- // bool ChannelConfig_eq(const struct LDKChannelConfig *NONNULL_PTR a, const struct LDKChannelConfig *NONNULL_PTR b);
- public static native boolean ChannelConfig_eq(long a, long b);
- // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
- public static native long ChannelConfig_default();
- // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
- public static native byte[] ChannelConfig_write(long obj);
- // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser);
- public static native long ChannelConfig_read(byte[] ser);
- // void UserConfig_free(struct LDKUserConfig this_obj);
- public static native void UserConfig_free(long this_obj);
- // struct LDKChannelHandshakeConfig UserConfig_get_channel_handshake_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
- public static native long UserConfig_get_channel_handshake_config(long this_ptr);
- // void UserConfig_set_channel_handshake_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
- public static native void UserConfig_set_channel_handshake_config(long this_ptr, long val);
- // struct LDKChannelHandshakeLimits UserConfig_get_channel_handshake_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
- public static native long UserConfig_get_channel_handshake_limits(long this_ptr);
- // void UserConfig_set_channel_handshake_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
- public static native void UserConfig_set_channel_handshake_limits(long this_ptr, long val);
- // struct LDKChannelConfig UserConfig_get_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
- public static native long UserConfig_get_channel_config(long this_ptr);
- // void UserConfig_set_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
- public static native void UserConfig_set_channel_config(long this_ptr, long val);
- // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
- public static native boolean UserConfig_get_accept_forwards_to_priv_channels(long this_ptr);
- // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
- public static native void UserConfig_set_accept_forwards_to_priv_channels(long this_ptr, boolean val);
- // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
- public static native boolean UserConfig_get_accept_inbound_channels(long this_ptr);
- // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
- public static native void UserConfig_set_accept_inbound_channels(long this_ptr, boolean val);
- // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
- public static native boolean UserConfig_get_manually_accept_inbound_channels(long this_ptr);
- // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
- public static native void UserConfig_set_manually_accept_inbound_channels(long this_ptr, boolean val);
- // bool UserConfig_get_accept_intercept_htlcs(const struct LDKUserConfig *NONNULL_PTR this_ptr);
- public static native boolean UserConfig_get_accept_intercept_htlcs(long this_ptr);
- // void UserConfig_set_accept_intercept_htlcs(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
- public static native void UserConfig_set_accept_intercept_htlcs(long this_ptr, boolean val);
- // MUST_USE_RES struct LDKUserConfig UserConfig_new(struct LDKChannelHandshakeConfig channel_handshake_config_arg, struct LDKChannelHandshakeLimits channel_handshake_limits_arg, struct LDKChannelConfig channel_config_arg, bool accept_forwards_to_priv_channels_arg, bool accept_inbound_channels_arg, bool manually_accept_inbound_channels_arg, bool accept_intercept_htlcs_arg);
- public static native long UserConfig_new(long channel_handshake_config_arg, long channel_handshake_limits_arg, long channel_config_arg, boolean accept_forwards_to_priv_channels_arg, boolean accept_inbound_channels_arg, boolean manually_accept_inbound_channels_arg, boolean accept_intercept_htlcs_arg);
- // uint64_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg);
- public static native long UserConfig_clone_ptr(long arg);
- // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
- public static native long UserConfig_clone(long orig);
- // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
- public static native long UserConfig_default();
- // void BestBlock_free(struct LDKBestBlock this_obj);
- public static native void BestBlock_free(long this_obj);
- // uint64_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg);
- public static native long BestBlock_clone_ptr(long arg);
- // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig);
- public static native long BestBlock_clone(long orig);
- // bool BestBlock_eq(const struct LDKBestBlock *NONNULL_PTR a, const struct LDKBestBlock *NONNULL_PTR b);
- public static native boolean BestBlock_eq(long a, long b);
- // MUST_USE_RES struct LDKBestBlock BestBlock_from_network(enum LDKNetwork network);
- public static native long BestBlock_from_network(Network network);
- // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash, uint32_t height);
- public static native long BestBlock_new(byte[] block_hash, int height);
- // MUST_USE_RES struct LDKThirtyTwoBytes BestBlock_block_hash(const struct LDKBestBlock *NONNULL_PTR this_arg);
- public static native byte[] BestBlock_block_hash(long this_arg);
- // MUST_USE_RES uint32_t BestBlock_height(const struct LDKBestBlock *NONNULL_PTR this_arg);
- public static native int BestBlock_height(long this_arg);
- // void Listen_free(struct LDKListen this_ptr);
- public static native void Listen_free(long this_ptr);
- // void Confirm_free(struct LDKConfirm this_ptr);
- public static native void Confirm_free(long this_ptr);
- // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR orig);
- public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(long orig);
- // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed(void);
- public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed();
- // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress(void);
- public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress();
- // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_permanent_failure(void);
- public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_permanent_failure();
- // bool ChannelMonitorUpdateStatus_eq(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR a, const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR b);
- public static native boolean ChannelMonitorUpdateStatus_eq(long a, long b);
- // void Watch_free(struct LDKWatch this_ptr);
- public static native void Watch_free(long this_ptr);
- // void Filter_free(struct LDKFilter this_ptr);
- public static native void Filter_free(long this_ptr);
- // void WatchedOutput_free(struct LDKWatchedOutput this_obj);
- public static native void WatchedOutput_free(long this_obj);
- // struct LDKThirtyTwoBytes WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
- public static native byte[] WatchedOutput_get_block_hash(long this_ptr);
- // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
- public static native void WatchedOutput_set_block_hash(long this_ptr, byte[] val);
- // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
- public static native long WatchedOutput_get_outpoint(long this_ptr);
- // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
- public static native void WatchedOutput_set_outpoint(long this_ptr, long val);
- // struct LDKu8slice WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
- public static native byte[] WatchedOutput_get_script_pubkey(long this_ptr);
- // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
- public static native void WatchedOutput_set_script_pubkey(long this_ptr, byte[] val);
- // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKThirtyTwoBytes block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg);
- public static native long WatchedOutput_new(byte[] block_hash_arg, long outpoint_arg, byte[] script_pubkey_arg);
- // uint64_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg);
- public static native long WatchedOutput_clone_ptr(long arg);
- // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig);
- public static native long WatchedOutput_clone(long orig);
- // bool WatchedOutput_eq(const struct LDKWatchedOutput *NONNULL_PTR a, const struct LDKWatchedOutput *NONNULL_PTR b);
- public static native boolean WatchedOutput_eq(long a, long b);
- // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o);
- public static native long WatchedOutput_hash(long o);
- // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
- public static native void BroadcasterInterface_free(long this_ptr);
- // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
- public static native ConfirmationTarget ConfirmationTarget_clone(long orig);
- // enum LDKConfirmationTarget ConfirmationTarget_background(void);
- public static native ConfirmationTarget ConfirmationTarget_background();
- // enum LDKConfirmationTarget ConfirmationTarget_normal(void);
- public static native ConfirmationTarget ConfirmationTarget_normal();
- // enum LDKConfirmationTarget ConfirmationTarget_high_priority(void);
- public static native ConfirmationTarget ConfirmationTarget_high_priority();
- // uint64_t ConfirmationTarget_hash(const enum LDKConfirmationTarget *NONNULL_PTR o);
- public static native long ConfirmationTarget_hash(long o);
- // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b);
- public static native boolean ConfirmationTarget_eq(long a, long b);
- // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
- public static native void FeeEstimator_free(long this_ptr);
- // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj);
- public static native void MonitorUpdateId_free(long this_obj);
- // uint64_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg);
- public static native long MonitorUpdateId_clone_ptr(long arg);
- // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig);
- public static native long MonitorUpdateId_clone(long orig);
- // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o);
- public static native long MonitorUpdateId_hash(long o);
- // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b);
- public static native boolean MonitorUpdateId_eq(long a, long b);
- // void Persist_free(struct LDKPersist this_ptr);
- public static native void Persist_free(long this_ptr);
- // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj);
- public static native void LockedChannelMonitor_free(long this_obj);
- // void ChainMonitor_free(struct LDKChainMonitor this_obj);
- public static native void ChainMonitor_free(long this_obj);
- // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
- public static native long ChainMonitor_new(long chain_source, long broadcaster, long logger, long feeest, long persister);
- // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels);
- public static native long[] ChainMonitor_get_claimable_balances(long this_arg, long[] ignored_channels);
- // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo);
- public static native long ChainMonitor_get_monitor(long this_arg, long funding_txo);
- // MUST_USE_RES struct LDKCVec_OutPointZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg);
- public static native long[] ChainMonitor_list_monitors(long this_arg);
- // MUST_USE_RES struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ ChainMonitor_list_pending_monitor_updates(const struct LDKChainMonitor *NONNULL_PTR this_arg);
- public static native long[] ChainMonitor_list_pending_monitor_updates(long this_arg);
- // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChainMonitor_channel_monitor_updated(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKMonitorUpdateId completed_update_id);
- public static native long ChainMonitor_channel_monitor_updated(long this_arg, long funding_txo, long completed_update_id);
- // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg);
- public static native long ChainMonitor_as_Listen(long this_arg);
- // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg);
- public static native long ChainMonitor_as_Confirm(long this_arg);
- // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
- public static native long ChainMonitor_as_Watch(long this_arg);
- // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
- public static native long ChainMonitor_as_EventsProvider(long this_arg);
- // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj);
- public static native void ChannelMonitorUpdate_free(long this_obj);
- // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
- public static native long ChannelMonitorUpdate_get_update_id(long this_ptr);
- // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
- public static native void ChannelMonitorUpdate_set_update_id(long this_ptr, long val);
- // uint64_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg);
- public static native long ChannelMonitorUpdate_clone_ptr(long arg);
- // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
- public static native long ChannelMonitorUpdate_clone(long orig);
- // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
- public static native byte[] ChannelMonitorUpdate_write(long obj);
- // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
- public static native long ChannelMonitorUpdate_read(byte[] ser);
- // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
- public static native void MonitorEvent_free(long this_ptr);
- // uint64_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg);
- public static native long MonitorEvent_clone_ptr(long arg);
- // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
- public static native long MonitorEvent_clone(long orig);
- // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a);
- public static native long MonitorEvent_htlcevent(long a);
- // struct LDKMonitorEvent MonitorEvent_commitment_tx_confirmed(struct LDKOutPoint a);
- public static native long MonitorEvent_commitment_tx_confirmed(long a);
- // struct LDKMonitorEvent MonitorEvent_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id);
- public static native long MonitorEvent_completed(long funding_txo, long monitor_update_id);
- // struct LDKMonitorEvent MonitorEvent_update_failed(struct LDKOutPoint a);
- public static native long MonitorEvent_update_failed(long a);
- // bool MonitorEvent_eq(const struct LDKMonitorEvent *NONNULL_PTR a, const struct LDKMonitorEvent *NONNULL_PTR b);
- public static native boolean MonitorEvent_eq(long a, long b);
- // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj);
- public static native byte[] MonitorEvent_write(long obj);
- // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser);
- public static native long MonitorEvent_read(byte[] ser);
- // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj);
- public static native void HTLCUpdate_free(long this_obj);
- // uint64_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg);
- public static native long HTLCUpdate_clone_ptr(long arg);
- // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
- public static native long HTLCUpdate_clone(long orig);
- // bool HTLCUpdate_eq(const struct LDKHTLCUpdate *NONNULL_PTR a, const struct LDKHTLCUpdate *NONNULL_PTR b);
- public static native boolean HTLCUpdate_eq(long a, long b);
- // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
- public static native byte[] HTLCUpdate_write(long obj);
- // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser);
- public static native long HTLCUpdate_read(byte[] ser);
- // void Balance_free(struct LDKBalance this_ptr);
- public static native void Balance_free(long this_ptr);
- // uint64_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg);
- public static native long Balance_clone_ptr(long arg);
- // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig);
- public static native long Balance_clone(long orig);
- // struct LDKBalance Balance_claimable_on_channel_close(uint64_t claimable_amount_satoshis);
- public static native long Balance_claimable_on_channel_close(long claimable_amount_satoshis);
- // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t claimable_amount_satoshis, uint32_t confirmation_height);
- public static native long Balance_claimable_awaiting_confirmations(long claimable_amount_satoshis, int confirmation_height);
- // struct LDKBalance Balance_contentious_claimable(uint64_t claimable_amount_satoshis, uint32_t timeout_height);
- public static native long Balance_contentious_claimable(long claimable_amount_satoshis, int timeout_height);
- // struct LDKBalance Balance_maybe_timeout_claimable_htlc(uint64_t claimable_amount_satoshis, uint32_t claimable_height);
- public static native long Balance_maybe_timeout_claimable_htlc(long claimable_amount_satoshis, int claimable_height);
- // struct LDKBalance Balance_maybe_preimage_claimable_htlc(uint64_t claimable_amount_satoshis, uint32_t expiry_height);
- public static native long Balance_maybe_preimage_claimable_htlc(long claimable_amount_satoshis, int expiry_height);
- // struct LDKBalance Balance_counterparty_revoked_output_claimable(uint64_t claimable_amount_satoshis);
- public static native long Balance_counterparty_revoked_output_claimable(long claimable_amount_satoshis);
- // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b);
- public static native boolean Balance_eq(long a, long b);
- // void ChannelMonitor_free(struct LDKChannelMonitor this_obj);
- public static native void ChannelMonitor_free(long this_obj);
- // uint64_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg);
- public static native long ChannelMonitor_clone_ptr(long arg);
- // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig);
- public static native long ChannelMonitor_clone(long orig);
- // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
- public static native byte[] ChannelMonitor_write(long obj);
- // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelMonitor_update_monitor(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR updates, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger);
- public static native long ChannelMonitor_update_monitor(long this_arg, long updates, long broadcaster, long fee_estimator, long logger);
- // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
- public static native long ChannelMonitor_get_latest_update_id(long this_arg);
- // MUST_USE_RES struct LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
- public static native long ChannelMonitor_get_funding_txo(long this_arg);
- // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
- public static native long[] ChannelMonitor_get_outputs_to_watch(long this_arg);
- // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter);
- public static native void ChannelMonitor_load_outputs_to_watch(long this_arg, long filter);
- // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
- public static native long[] ChannelMonitor_get_and_clear_pending_monitor_events(long this_arg);
- // MUST_USE_RES struct LDKCVec_EventZ ChannelMonitor_get_and_clear_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
- public static native long[] ChannelMonitor_get_and_clear_pending_events(long this_arg);
- // MUST_USE_RES struct LDKPublicKey ChannelMonitor_get_counterparty_node_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
- public static native byte[] ChannelMonitor_get_counterparty_node_id(long this_arg);
- // MUST_USE_RES struct LDKCVec_TransactionZ ChannelMonitor_get_latest_holder_commitment_txn(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKLogger *NONNULL_PTR logger);
- public static native byte[][] ChannelMonitor_get_latest_holder_commitment_txn(long this_arg, long logger);
- // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_block_connected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
- public static native long[] ChannelMonitor_block_connected(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
- // void ChannelMonitor_block_disconnected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
- public static native void ChannelMonitor_block_disconnected(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
- // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_transactions_confirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
- public static native long[] ChannelMonitor_transactions_confirmed(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
- // void ChannelMonitor_transaction_unconfirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
- public static native void ChannelMonitor_transaction_unconfirmed(long this_arg, byte[] txid, long broadcaster, long fee_estimator, long logger);
- // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_best_block_updated(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
- public static native long[] ChannelMonitor_best_block_updated(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
- // MUST_USE_RES struct LDKCVec_C2Tuple_TxidBlockHashZZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
- public static native long[] ChannelMonitor_get_relevant_txids(long this_arg);
- // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
- public static native long ChannelMonitor_current_best_block(long this_arg);
- // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
- public static native long[] ChannelMonitor_get_claimable_balances(long this_arg);
- // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ C2Tuple_BlockHashChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKEntropySource *NONNULL_PTR arg_a, const struct LDKSignerProvider *NONNULL_PTR arg_b);
- public static native long C2Tuple_BlockHashChannelMonitorZ_read(byte[] ser, long arg_a, long arg_b);
- // void OutPoint_free(struct LDKOutPoint this_obj);
- public static native void OutPoint_free(long this_obj);
- // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
- public static native byte[] OutPoint_get_txid(long this_ptr);
- // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
- public static native void OutPoint_set_txid(long this_ptr, byte[] val);
- // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
- public static native short OutPoint_get_index(long this_ptr);
- // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
- public static native void OutPoint_set_index(long this_ptr, short val);
- // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
- public static native long OutPoint_new(byte[] txid_arg, short index_arg);
- // uint64_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg);
- public static native long OutPoint_clone_ptr(long arg);
- // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
- public static native long OutPoint_clone(long orig);
- // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b);
- public static native boolean OutPoint_eq(long a, long b);
- // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o);
- public static native long OutPoint_hash(long o);
- // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg);
- public static native byte[] OutPoint_to_channel_id(long this_arg);
- // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
- public static native byte[] OutPoint_write(long obj);
- // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser);
- public static native long OutPoint_read(byte[] ser);
- // void DelayedPaymentOutputDescriptor_free(struct LDKDelayedPaymentOutputDescriptor this_obj);
- public static native void DelayedPaymentOutputDescriptor_free(long this_obj);
- // struct LDKOutPoint DelayedPaymentOutputDescriptor_get_outpoint(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
- public static native long DelayedPaymentOutputDescriptor_get_outpoint(long this_ptr);
- // void DelayedPaymentOutputDescriptor_set_outpoint(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
- public static native void DelayedPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
- // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_per_commitment_point(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
- public static native byte[] DelayedPaymentOutputDescriptor_get_per_commitment_point(long this_ptr);
- // void DelayedPaymentOutputDescriptor_set_per_commitment_point(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
- public static native void DelayedPaymentOutputDescriptor_set_per_commitment_point(long this_ptr, byte[] val);
- // uint16_t DelayedPaymentOutputDescriptor_get_to_self_delay(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
- public static native short DelayedPaymentOutputDescriptor_get_to_self_delay(long this_ptr);
- // void DelayedPaymentOutputDescriptor_set_to_self_delay(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint16_t val);
- public static native void DelayedPaymentOutputDescriptor_set_to_self_delay(long this_ptr, short val);
- // struct LDKTxOut DelayedPaymentOutputDescriptor_get_output(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
- public static native long DelayedPaymentOutputDescriptor_get_output(long this_ptr);
- // void DelayedPaymentOutputDescriptor_set_output(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
- public static native void DelayedPaymentOutputDescriptor_set_output(long this_ptr, long val);
- // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_revocation_pubkey(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
- public static native byte[] DelayedPaymentOutputDescriptor_get_revocation_pubkey(long this_ptr);
- // void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
- public static native void DelayedPaymentOutputDescriptor_set_revocation_pubkey(long this_ptr, byte[] val);
- // const uint8_t (*DelayedPaymentOutputDescriptor_get_channel_keys_id(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
- public static native byte[] DelayedPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
- // void DelayedPaymentOutputDescriptor_set_channel_keys_id(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
- public static native void DelayedPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
- // uint64_t DelayedPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
- public static native long DelayedPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
- // void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
- public static native void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
- // MUST_USE_RES struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKPublicKey per_commitment_point_arg, uint16_t to_self_delay_arg, struct LDKTxOut output_arg, struct LDKPublicKey revocation_pubkey_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg);
- public static native long DelayedPaymentOutputDescriptor_new(long outpoint_arg, byte[] per_commitment_point_arg, short to_self_delay_arg, long output_arg, byte[] revocation_pubkey_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg);
- // uint64_t DelayedPaymentOutputDescriptor_clone_ptr(LDKDelayedPaymentOutputDescriptor *NONNULL_PTR arg);
- public static native long DelayedPaymentOutputDescriptor_clone_ptr(long arg);
- // struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig);
- public static native long DelayedPaymentOutputDescriptor_clone(long orig);
- // bool DelayedPaymentOutputDescriptor_eq(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR b);
- public static native boolean DelayedPaymentOutputDescriptor_eq(long a, long b);
- // struct LDKCVec_u8Z DelayedPaymentOutputDescriptor_write(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR obj);
- public static native byte[] DelayedPaymentOutputDescriptor_write(long obj);
- // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ DelayedPaymentOutputDescriptor_read(struct LDKu8slice ser);
- public static native long DelayedPaymentOutputDescriptor_read(byte[] ser);
- // void StaticPaymentOutputDescriptor_free(struct LDKStaticPaymentOutputDescriptor this_obj);
- public static native void StaticPaymentOutputDescriptor_free(long this_obj);
- // struct LDKOutPoint StaticPaymentOutputDescriptor_get_outpoint(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
- public static native long StaticPaymentOutputDescriptor_get_outpoint(long this_ptr);
- // void StaticPaymentOutputDescriptor_set_outpoint(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
- public static native void StaticPaymentOutputDescriptor_set_outpoint(long this_ptr, long val);
- // struct LDKTxOut StaticPaymentOutputDescriptor_get_output(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
- public static native long StaticPaymentOutputDescriptor_get_output(long this_ptr);
- // void StaticPaymentOutputDescriptor_set_output(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
- public static native void StaticPaymentOutputDescriptor_set_output(long this_ptr, long val);
- // const uint8_t (*StaticPaymentOutputDescriptor_get_channel_keys_id(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
- public static native byte[] StaticPaymentOutputDescriptor_get_channel_keys_id(long this_ptr);
- // void StaticPaymentOutputDescriptor_set_channel_keys_id(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
- public static native void StaticPaymentOutputDescriptor_set_channel_keys_id(long this_ptr, byte[] val);
- // uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
- public static native long StaticPaymentOutputDescriptor_get_channel_value_satoshis(long this_ptr);
- // void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
- public static native void StaticPaymentOutputDescriptor_set_channel_value_satoshis(long this_ptr, long val);
- // MUST_USE_RES struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut output_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg);
- public static native long StaticPaymentOutputDescriptor_new(long outpoint_arg, long output_arg, byte[] channel_keys_id_arg, long channel_value_satoshis_arg);
- // uint64_t StaticPaymentOutputDescriptor_clone_ptr(LDKStaticPaymentOutputDescriptor *NONNULL_PTR arg);
- public static native long StaticPaymentOutputDescriptor_clone_ptr(long arg);
- // struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig);
- public static native long StaticPaymentOutputDescriptor_clone(long orig);
- // bool StaticPaymentOutputDescriptor_eq(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR b);
- public static native boolean StaticPaymentOutputDescriptor_eq(long a, long b);
- // struct LDKCVec_u8Z StaticPaymentOutputDescriptor_write(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR obj);
- public static native byte[] StaticPaymentOutputDescriptor_write(long obj);
- // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ StaticPaymentOutputDescriptor_read(struct LDKu8slice ser);
- public static native long StaticPaymentOutputDescriptor_read(byte[] ser);
- // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr);
- public static native void SpendableOutputDescriptor_free(long this_ptr);
- // uint64_t SpendableOutputDescriptor_clone_ptr(LDKSpendableOutputDescriptor *NONNULL_PTR arg);
- public static native long SpendableOutputDescriptor_clone_ptr(long arg);
- // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig);
- public static native long SpendableOutputDescriptor_clone(long orig);
- // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_output(struct LDKOutPoint outpoint, struct LDKTxOut output);
- public static native long SpendableOutputDescriptor_static_output(long outpoint, long output);
- // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_delayed_payment_output(struct LDKDelayedPaymentOutputDescriptor a);
- public static native long SpendableOutputDescriptor_delayed_payment_output(long a);
- // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_payment_output(struct LDKStaticPaymentOutputDescriptor a);
- public static native long SpendableOutputDescriptor_static_payment_output(long a);
- // bool SpendableOutputDescriptor_eq(const struct LDKSpendableOutputDescriptor *NONNULL_PTR a, const struct LDKSpendableOutputDescriptor *NONNULL_PTR b);
- public static native boolean SpendableOutputDescriptor_eq(long a, long b);
- // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj);
- public static native byte[] SpendableOutputDescriptor_write(long obj);
- // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser);
- public static native long SpendableOutputDescriptor_read(byte[] ser);
- // void ChannelSigner_free(struct LDKChannelSigner this_ptr);
- public static native void ChannelSigner_free(long this_ptr);
- // void EcdsaChannelSigner_free(struct LDKEcdsaChannelSigner this_ptr);
- public static native void EcdsaChannelSigner_free(long this_ptr);
- // uint64_t WriteableEcdsaChannelSigner_clone_ptr(LDKWriteableEcdsaChannelSigner *NONNULL_PTR arg);
- public static native long WriteableEcdsaChannelSigner_clone_ptr(long arg);
- // struct LDKWriteableEcdsaChannelSigner WriteableEcdsaChannelSigner_clone(const struct LDKWriteableEcdsaChannelSigner *NONNULL_PTR orig);
- public static native long WriteableEcdsaChannelSigner_clone(long orig);
- // void WriteableEcdsaChannelSigner_free(struct LDKWriteableEcdsaChannelSigner this_ptr);
- public static native void WriteableEcdsaChannelSigner_free(long this_ptr);
- // enum LDKRecipient Recipient_clone(const enum LDKRecipient *NONNULL_PTR orig);
- public static native Recipient Recipient_clone(long orig);
- // enum LDKRecipient Recipient_node(void);
- public static native Recipient Recipient_node();
- // enum LDKRecipient Recipient_phantom_node(void);
- public static native Recipient Recipient_phantom_node();
- // void EntropySource_free(struct LDKEntropySource this_ptr);
- public static native void EntropySource_free(long this_ptr);
- // void NodeSigner_free(struct LDKNodeSigner this_ptr);
- public static native void NodeSigner_free(long this_ptr);
- // void SignerProvider_free(struct LDKSignerProvider this_ptr);
- public static native void SignerProvider_free(long this_ptr);
- // void InMemorySigner_free(struct LDKInMemorySigner this_obj);
- public static native void InMemorySigner_free(long this_obj);
- // const uint8_t (*InMemorySigner_get_funding_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
- public static native byte[] InMemorySigner_get_funding_key(long this_ptr);
- // void InMemorySigner_set_funding_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
- public static native void InMemorySigner_set_funding_key(long this_ptr, byte[] val);
- // const uint8_t (*InMemorySigner_get_revocation_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
- public static native byte[] InMemorySigner_get_revocation_base_key(long this_ptr);
- // void InMemorySigner_set_revocation_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
- public static native void InMemorySigner_set_revocation_base_key(long this_ptr, byte[] val);
- // const uint8_t (*InMemorySigner_get_payment_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
- public static native byte[] InMemorySigner_get_payment_key(long this_ptr);
- // void InMemorySigner_set_payment_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
- public static native void InMemorySigner_set_payment_key(long this_ptr, byte[] val);
- // const uint8_t (*InMemorySigner_get_delayed_payment_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
- public static native byte[] InMemorySigner_get_delayed_payment_base_key(long this_ptr);
- // void InMemorySigner_set_delayed_payment_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
- public static native void InMemorySigner_set_delayed_payment_base_key(long this_ptr, byte[] val);
- // const uint8_t (*InMemorySigner_get_htlc_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
- public static native byte[] InMemorySigner_get_htlc_base_key(long this_ptr);
- // void InMemorySigner_set_htlc_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
- public static native void InMemorySigner_set_htlc_base_key(long this_ptr, byte[] val);
- // const uint8_t (*InMemorySigner_get_commitment_seed(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
- public static native byte[] InMemorySigner_get_commitment_seed(long this_ptr);
- // void InMemorySigner_set_commitment_seed(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
- public static native void InMemorySigner_set_commitment_seed(long this_ptr, byte[] val);
- // uint64_t InMemorySigner_clone_ptr(LDKInMemorySigner *NONNULL_PTR arg);
- public static native long InMemorySigner_clone_ptr(long arg);
- // struct LDKInMemorySigner InMemorySigner_clone(const struct LDKInMemorySigner *NONNULL_PTR orig);
- public static native long InMemorySigner_clone(long orig);
- // MUST_USE_RES struct LDKInMemorySigner InMemorySigner_new(struct LDKSecretKey funding_key, struct LDKSecretKey revocation_base_key, struct LDKSecretKey payment_key, struct LDKSecretKey delayed_payment_base_key, struct LDKSecretKey htlc_base_key, struct LDKThirtyTwoBytes commitment_seed, uint64_t channel_value_satoshis, struct LDKThirtyTwoBytes channel_keys_id);
- public static native long InMemorySigner_new(byte[] funding_key, byte[] revocation_base_key, byte[] payment_key, byte[] delayed_payment_base_key, byte[] htlc_base_key, byte[] commitment_seed, long channel_value_satoshis, byte[] channel_keys_id);
- // MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
- public static native long InMemorySigner_counterparty_pubkeys(long this_arg);
- // MUST_USE_RES uint16_t InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
- public static native short InMemorySigner_counterparty_selected_contest_delay(long this_arg);
- // MUST_USE_RES uint16_t InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
- public static native short InMemorySigner_holder_selected_contest_delay(long this_arg);
- // MUST_USE_RES bool InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
- public static native boolean InMemorySigner_is_outbound(long this_arg);
- // MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
- public static native long InMemorySigner_funding_outpoint(long this_arg);
- // MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
- public static native long InMemorySigner_get_channel_parameters(long this_arg);
- // MUST_USE_RES bool InMemorySigner_opt_anchors(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
- public static native boolean InMemorySigner_opt_anchors(long this_arg);
- // MUST_USE_RES struct LDKCResult_CVec_CVec_u8ZZNoneZ InMemorySigner_sign_counterparty_payment_input(const struct LDKInMemorySigner *NONNULL_PTR this_arg, struct LDKTransaction spend_tx, uintptr_t input_idx, const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR descriptor);
- public static native long InMemorySigner_sign_counterparty_payment_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
- // MUST_USE_RES struct LDKCResult_CVec_CVec_u8ZZNoneZ InMemorySigner_sign_dynamic_p2wsh_input(const struct LDKInMemorySigner *NONNULL_PTR this_arg, struct LDKTransaction spend_tx, uintptr_t input_idx, const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR descriptor);
- public static native long InMemorySigner_sign_dynamic_p2wsh_input(long this_arg, byte[] spend_tx, long input_idx, long descriptor);
- // struct LDKChannelSigner InMemorySigner_as_ChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
- public static native long InMemorySigner_as_ChannelSigner(long this_arg);
- // struct LDKEcdsaChannelSigner InMemorySigner_as_EcdsaChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
- public static native long InMemorySigner_as_EcdsaChannelSigner(long this_arg);
- // struct LDKWriteableEcdsaChannelSigner InMemorySigner_as_WriteableEcdsaChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
- public static native long InMemorySigner_as_WriteableEcdsaChannelSigner(long this_arg);
- // struct LDKCVec_u8Z InMemorySigner_write(const struct LDKInMemorySigner *NONNULL_PTR obj);
- public static native byte[] InMemorySigner_write(long obj);
- // struct LDKCResult_InMemorySignerDecodeErrorZ InMemorySigner_read(struct LDKu8slice ser);
- public static native long InMemorySigner_read(byte[] ser);
- // void KeysManager_free(struct LDKKeysManager this_obj);
- public static native void KeysManager_free(long this_obj);
- // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos);
- public static native long KeysManager_new(byte[] seed, long starting_time_secs, int starting_time_nanos);
- // MUST_USE_RES struct LDKSecretKey KeysManager_get_node_secret_key(const struct LDKKeysManager *NONNULL_PTR this_arg);
- public static native byte[] KeysManager_get_node_secret_key(long this_arg);
- // MUST_USE_RES struct LDKInMemorySigner KeysManager_derive_channel_keys(const struct LDKKeysManager *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, const uint8_t (*params)[32]);
- public static native long KeysManager_derive_channel_keys(long this_arg, long channel_value_satoshis, byte[] params);
- // MUST_USE_RES struct LDKCResult_TransactionNoneZ KeysManager_spend_spendable_outputs(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight);
- public static native long KeysManager_spend_spendable_outputs(long this_arg, long[] descriptors, long[] outputs, byte[] change_destination_script, int feerate_sat_per_1000_weight);
- // struct LDKEntropySource KeysManager_as_EntropySource(const struct LDKKeysManager *NONNULL_PTR this_arg);
- public static native long KeysManager_as_EntropySource(long this_arg);
- // struct LDKNodeSigner KeysManager_as_NodeSigner(const struct LDKKeysManager *NONNULL_PTR this_arg);
- public static native long KeysManager_as_NodeSigner(long this_arg);
- // struct LDKSignerProvider KeysManager_as_SignerProvider(const struct LDKKeysManager *NONNULL_PTR this_arg);
- public static native long KeysManager_as_SignerProvider(long this_arg);
- // void PhantomKeysManager_free(struct LDKPhantomKeysManager this_obj);
- public static native void PhantomKeysManager_free(long this_obj);
- // struct LDKEntropySource PhantomKeysManager_as_EntropySource(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
- public static native long PhantomKeysManager_as_EntropySource(long this_arg);
- // struct LDKNodeSigner PhantomKeysManager_as_NodeSigner(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
- public static native long PhantomKeysManager_as_NodeSigner(long this_arg);
- // struct LDKSignerProvider PhantomKeysManager_as_SignerProvider(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
- public static native long PhantomKeysManager_as_SignerProvider(long this_arg);
- // MUST_USE_RES struct LDKPhantomKeysManager PhantomKeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos, const uint8_t (*cross_node_seed)[32]);
- public static native long PhantomKeysManager_new(byte[] seed, long starting_time_secs, int starting_time_nanos, byte[] cross_node_seed);
- // MUST_USE_RES struct LDKCResult_TransactionNoneZ PhantomKeysManager_spend_spendable_outputs(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight);
- public static native long PhantomKeysManager_spend_spendable_outputs(long this_arg, long[] descriptors, long[] outputs, byte[] change_destination_script, int feerate_sat_per_1000_weight);
- // MUST_USE_RES struct LDKInMemorySigner PhantomKeysManager_derive_channel_keys(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, const uint8_t (*params)[32]);
- public static native long PhantomKeysManager_derive_channel_keys(long this_arg, long channel_value_satoshis, byte[] params);
- // MUST_USE_RES struct LDKSecretKey PhantomKeysManager_get_node_secret_key(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
- public static native byte[] PhantomKeysManager_get_node_secret_key(long this_arg);
- // MUST_USE_RES struct LDKSecretKey PhantomKeysManager_get_phantom_node_secret_key(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
- public static native byte[] PhantomKeysManager_get_phantom_node_secret_key(long this_arg);
- // enum LDKFailureCode FailureCode_clone(const enum LDKFailureCode *NONNULL_PTR orig);
- public static native FailureCode FailureCode_clone(long orig);
- // enum LDKFailureCode FailureCode_temporary_node_failure(void);
- public static native FailureCode FailureCode_temporary_node_failure();
- // enum LDKFailureCode FailureCode_required_node_feature_missing(void);
- public static native FailureCode FailureCode_required_node_feature_missing();
- // enum LDKFailureCode FailureCode_incorrect_or_unknown_payment_details(void);
- public static native FailureCode FailureCode_incorrect_or_unknown_payment_details();
+ static { LDKBolt11ParseError.init(); }
+ public static native LDKBolt11ParseError LDKBolt11ParseError_ref_from_ptr(long ptr);
+ // enum LDKSiPrefix CResult_SiPrefixBolt11ParseErrorZ_get_ok(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR owner);
+ public static native SiPrefix CResult_SiPrefixBolt11ParseErrorZ_get_ok(long owner);
+ // struct LDKBolt11ParseError CResult_SiPrefixBolt11ParseErrorZ_get_err(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR owner);
+ public static native long CResult_SiPrefixBolt11ParseErrorZ_get_err(long owner);
+ public static class LDKParseOrSemanticError {
+ private LDKParseOrSemanticError() {}
+ public final static class ParseError extends LDKParseOrSemanticError {
+ public long parse_error;
+ ParseError(long parse_error) { this.parse_error = parse_error; }
+ }
+ public final static class SemanticError extends LDKParseOrSemanticError {
+ public org.ldk.enums.Bolt11SemanticError semantic_error;
+ SemanticError(org.ldk.enums.Bolt11SemanticError semantic_error) { this.semantic_error = semantic_error; }
+ }
+ static native void init();
+ }
+ static { LDKParseOrSemanticError.init(); }
+ public static native LDKParseOrSemanticError LDKParseOrSemanticError_ref_from_ptr(long ptr);
+ // struct LDKBolt11Invoice CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_ok(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
+ public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_ok(long owner);
+ // struct LDKParseOrSemanticError CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_err(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
+ public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_get_err(long owner);
+ // struct LDKSignedRawBolt11Invoice CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_ok(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR owner);
+ public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_ok(long owner);
+ // struct LDKBolt11ParseError CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_err(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR owner);
+ public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_get_err(long owner);
+ // struct LDKRawBolt11Invoice C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_a(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner);
+ public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_a(long owner);
+ // struct LDKThirtyTwoBytes C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_b(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner);
+ public static native byte[] C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_b(long owner);
+ // struct LDKBolt11InvoiceSignature C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_c(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR owner);
+ public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_get_c(long owner);
+ // struct LDKPayeePubKey CResult_PayeePubKeySecp256k1ErrorZ_get_ok(LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR owner);
+ public static native long CResult_PayeePubKeySecp256k1ErrorZ_get_ok(long owner);
+ // enum LDKSecp256k1Error CResult_PayeePubKeySecp256k1ErrorZ_get_err(LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR owner);
+ public static native Secp256k1Error CResult_PayeePubKeySecp256k1ErrorZ_get_err(long owner);
+ // struct LDKPositiveTimestamp CResult_PositiveTimestampCreationErrorZ_get_ok(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
+ public static native long CResult_PositiveTimestampCreationErrorZ_get_ok(long owner);
+ // enum LDKCreationError CResult_PositiveTimestampCreationErrorZ_get_err(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
+ public static native CreationError CResult_PositiveTimestampCreationErrorZ_get_err(long owner);
+ // void CResult_NoneBolt11SemanticErrorZ_get_ok(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR owner);
+ public static native void CResult_NoneBolt11SemanticErrorZ_get_ok(long owner);
+ // enum LDKBolt11SemanticError CResult_NoneBolt11SemanticErrorZ_get_err(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR owner);
+ public static native Bolt11SemanticError CResult_NoneBolt11SemanticErrorZ_get_err(long owner);
+ // struct LDKBolt11Invoice CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_ok(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR owner);
+ public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_ok(long owner);
+ // enum LDKBolt11SemanticError CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_err(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR owner);
+ public static native Bolt11SemanticError CResult_Bolt11InvoiceBolt11SemanticErrorZ_get_err(long owner);
+ // struct LDKDescription CResult_DescriptionCreationErrorZ_get_ok(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
+ public static native long CResult_DescriptionCreationErrorZ_get_ok(long owner);
+ // enum LDKCreationError CResult_DescriptionCreationErrorZ_get_err(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
+ public static native CreationError CResult_DescriptionCreationErrorZ_get_err(long owner);
+ // struct LDKPrivateRoute CResult_PrivateRouteCreationErrorZ_get_ok(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
+ public static native long CResult_PrivateRouteCreationErrorZ_get_ok(long owner);
+ // enum LDKCreationError CResult_PrivateRouteCreationErrorZ_get_err(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
+ public static native CreationError CResult_PrivateRouteCreationErrorZ_get_err(long owner);
+ // struct LDKOutPoint CResult_OutPointDecodeErrorZ_get_ok(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_OutPointDecodeErrorZ_get_ok(long owner);
+ // struct LDKDecodeError CResult_OutPointDecodeErrorZ_get_err(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_OutPointDecodeErrorZ_get_err(long owner);
+ // struct LDKBigSize CResult_BigSizeDecodeErrorZ_get_ok(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_BigSizeDecodeErrorZ_get_ok(long owner);
+ // struct LDKDecodeError CResult_BigSizeDecodeErrorZ_get_err(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_BigSizeDecodeErrorZ_get_err(long owner);
+ // struct LDKHostname CResult_HostnameDecodeErrorZ_get_ok(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_HostnameDecodeErrorZ_get_ok(long owner);
+ // struct LDKDecodeError CResult_HostnameDecodeErrorZ_get_err(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_HostnameDecodeErrorZ_get_err(long owner);
+ // struct LDKTransactionU16LenLimited CResult_TransactionU16LenLimitedNoneZ_get_ok(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR owner);
+ public static native long CResult_TransactionU16LenLimitedNoneZ_get_ok(long owner);
+ // void CResult_TransactionU16LenLimitedNoneZ_get_err(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR owner);
+ public static native void CResult_TransactionU16LenLimitedNoneZ_get_err(long owner);
+ // struct LDKTransactionU16LenLimited CResult_TransactionU16LenLimitedDecodeErrorZ_get_ok(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_get_ok(long owner);
+ // struct LDKDecodeError CResult_TransactionU16LenLimitedDecodeErrorZ_get_err(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_get_err(long owner);
+ // struct LDKUntrustedString CResult_UntrustedStringDecodeErrorZ_get_ok(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_UntrustedStringDecodeErrorZ_get_ok(long owner);
+ // struct LDKDecodeError CResult_UntrustedStringDecodeErrorZ_get_err(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_UntrustedStringDecodeErrorZ_get_err(long owner);
+ // struct LDKReceiveTlvs CResult_ReceiveTlvsDecodeErrorZ_get_ok(LDKCResult_ReceiveTlvsDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_ReceiveTlvsDecodeErrorZ_get_ok(long owner);
+ // struct LDKDecodeError CResult_ReceiveTlvsDecodeErrorZ_get_err(LDKCResult_ReceiveTlvsDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_ReceiveTlvsDecodeErrorZ_get_err(long owner);
+ // struct LDKPaymentRelay CResult_PaymentRelayDecodeErrorZ_get_ok(LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_PaymentRelayDecodeErrorZ_get_ok(long owner);
+ // struct LDKDecodeError CResult_PaymentRelayDecodeErrorZ_get_err(LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_PaymentRelayDecodeErrorZ_get_err(long owner);
+ // struct LDKPaymentConstraints CResult_PaymentConstraintsDecodeErrorZ_get_ok(LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_PaymentConstraintsDecodeErrorZ_get_ok(long owner);
+ // struct LDKDecodeError CResult_PaymentConstraintsDecodeErrorZ_get_err(LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_PaymentConstraintsDecodeErrorZ_get_err(long owner);
+ public static class LDKPaymentError {
+ private LDKPaymentError() {}
+ public final static class Invoice extends LDKPaymentError {
+ public java.lang.String invoice;
+ Invoice(java.lang.String invoice) { this.invoice = invoice; }
+ }
+ public final static class Sending extends LDKPaymentError {
+ public org.ldk.enums.RetryableSendFailure sending;
+ Sending(org.ldk.enums.RetryableSendFailure sending) { this.sending = sending; }
+ }
+ static native void init();
+ }
+ static { LDKPaymentError.init(); }
+ public static native LDKPaymentError LDKPaymentError_ref_from_ptr(long ptr);
+ // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesPaymentErrorZ_get_ok(LDKCResult_ThirtyTwoBytesPaymentErrorZ *NONNULL_PTR owner);
+ public static native byte[] CResult_ThirtyTwoBytesPaymentErrorZ_get_ok(long owner);
+ // struct LDKPaymentError CResult_ThirtyTwoBytesPaymentErrorZ_get_err(LDKCResult_ThirtyTwoBytesPaymentErrorZ *NONNULL_PTR owner);
+ public static native long CResult_ThirtyTwoBytesPaymentErrorZ_get_err(long owner);
+ // void CResult_NonePaymentErrorZ_get_ok(LDKCResult_NonePaymentErrorZ *NONNULL_PTR owner);
+ public static native void CResult_NonePaymentErrorZ_get_ok(long owner);
+ // struct LDKPaymentError CResult_NonePaymentErrorZ_get_err(LDKCResult_NonePaymentErrorZ *NONNULL_PTR owner);
+ public static native long CResult_NonePaymentErrorZ_get_err(long owner);
+ public static class LDKProbingError {
+ private LDKProbingError() {}
+ public final static class Invoice extends LDKProbingError {
+ public java.lang.String invoice;
+ Invoice(java.lang.String invoice) { this.invoice = invoice; }
+ }
+ public final static class Sending extends LDKProbingError {
+ public long sending;
+ Sending(long sending) { this.sending = sending; }
+ }
+ static native void init();
+ }
+ static { LDKProbingError.init(); }
+ public static native LDKProbingError LDKProbingError_ref_from_ptr(long ptr);
+ // struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_get_ok(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ *NONNULL_PTR owner);
+ public static native long[] CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_get_ok(long owner);
+ // struct LDKProbingError CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_get_err(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ *NONNULL_PTR owner);
+ public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_get_err(long owner);
+ // struct LDKStr CResult_StrSecp256k1ErrorZ_get_ok(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR owner);
+ public static native String CResult_StrSecp256k1ErrorZ_get_ok(long owner);
+ // enum LDKSecp256k1Error CResult_StrSecp256k1ErrorZ_get_err(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR owner);
+ public static native Secp256k1Error CResult_StrSecp256k1ErrorZ_get_err(long owner);
+ // struct LDKOnionMessagePath CResult_OnionMessagePathNoneZ_get_ok(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR owner);
+ public static native long CResult_OnionMessagePathNoneZ_get_ok(long owner);
+ // void CResult_OnionMessagePathNoneZ_get_err(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR owner);
+ public static native void CResult_OnionMessagePathNoneZ_get_err(long owner);
+ // struct LDKPublicKey C2Tuple_PublicKeyOnionMessageZ_get_a(LDKC2Tuple_PublicKeyOnionMessageZ *NONNULL_PTR owner);
+ public static native byte[] C2Tuple_PublicKeyOnionMessageZ_get_a(long owner);
+ // struct LDKOnionMessage C2Tuple_PublicKeyOnionMessageZ_get_b(LDKC2Tuple_PublicKeyOnionMessageZ *NONNULL_PTR owner);
+ public static native long C2Tuple_PublicKeyOnionMessageZ_get_b(long owner);
+ public static class LDKSendError {
+ private LDKSendError() {}
+ public final static class Secp256k1 extends LDKSendError {
+ public org.ldk.enums.Secp256k1Error secp256k1;
+ Secp256k1(org.ldk.enums.Secp256k1Error secp256k1) { this.secp256k1 = secp256k1; }
+ }
+ public final static class TooBigPacket extends LDKSendError {
+ TooBigPacket() { }
+ }
+ public final static class TooFewBlindedHops extends LDKSendError {
+ TooFewBlindedHops() { }
+ }
+ public final static class InvalidFirstHop extends LDKSendError {
+ InvalidFirstHop() { }
+ }
+ public final static class InvalidMessage extends LDKSendError {
+ InvalidMessage() { }
+ }
+ public final static class BufferFull extends LDKSendError {
+ BufferFull() { }
+ }
+ public final static class GetNodeIdFailed extends LDKSendError {
+ GetNodeIdFailed() { }
+ }
+ public final static class BlindedPathAdvanceFailed extends LDKSendError {
+ BlindedPathAdvanceFailed() { }
+ }
+ static native void init();
+ }
+ static { LDKSendError.init(); }
+ public static native LDKSendError LDKSendError_ref_from_ptr(long ptr);
+ // struct LDKC2Tuple_PublicKeyOnionMessageZ CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_get_ok(LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ *NONNULL_PTR owner);
+ public static native long CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_get_ok(long owner);
+ // struct LDKSendError CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_get_err(LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ *NONNULL_PTR owner);
+ public static native long CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_get_err(long owner);
+ public static class LDKParsedOnionMessageContents {
+ private LDKParsedOnionMessageContents() {}
+ public final static class Offers extends LDKParsedOnionMessageContents {
+ public long offers;
+ Offers(long offers) { this.offers = offers; }
+ }
+ public final static class Custom extends LDKParsedOnionMessageContents {
+ public long custom;
+ Custom(long custom) { this.custom = custom; }
+ }
+ static native void init();
+ }
+ static { LDKParsedOnionMessageContents.init(); }
+ public static native LDKParsedOnionMessageContents LDKParsedOnionMessageContents_ref_from_ptr(long ptr);
+ public static class LDKPeeledOnion {
+ private LDKPeeledOnion() {}
+ public final static class Forward extends LDKPeeledOnion {
+ public byte[] _0;
+ public long _1;
+ Forward(byte[] _0, long _1) { this._0 = _0; this._1 = _1; }
+ }
+ public final static class Receive extends LDKPeeledOnion {
+ public long _0;
+ public byte[] _1;
+ public long _2;
+ Receive(long _0, byte[] _1, long _2) { this._0 = _0; this._1 = _1; this._2 = _2; }
+ }
+ static native void init();
+ }
+ static { LDKPeeledOnion.init(); }
+ public static native LDKPeeledOnion LDKPeeledOnion_ref_from_ptr(long ptr);
+ // struct LDKPeeledOnion CResult_PeeledOnionNoneZ_get_ok(LDKCResult_PeeledOnionNoneZ *NONNULL_PTR owner);
+ public static native long CResult_PeeledOnionNoneZ_get_ok(long owner);
+ // void CResult_PeeledOnionNoneZ_get_err(LDKCResult_PeeledOnionNoneZ *NONNULL_PTR owner);
+ public static native void CResult_PeeledOnionNoneZ_get_err(long owner);
+ // void CResult_NoneSendErrorZ_get_ok(LDKCResult_NoneSendErrorZ *NONNULL_PTR owner);
+ public static native void CResult_NoneSendErrorZ_get_ok(long owner);
+ // struct LDKSendError CResult_NoneSendErrorZ_get_err(LDKCResult_NoneSendErrorZ *NONNULL_PTR owner);
+ public static native long CResult_NoneSendErrorZ_get_err(long owner);
+ // struct LDKBlindedPath CResult_BlindedPathNoneZ_get_ok(LDKCResult_BlindedPathNoneZ *NONNULL_PTR owner);
+ public static native long CResult_BlindedPathNoneZ_get_ok(long owner);
+ // void CResult_BlindedPathNoneZ_get_err(LDKCResult_BlindedPathNoneZ *NONNULL_PTR owner);
+ public static native void CResult_BlindedPathNoneZ_get_err(long owner);
+ // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_ok(LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR owner);
+ public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_ok(long owner);
+ // void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_err(LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR owner);
+ public static native void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_get_err(long owner);
+ // struct LDKBlindedPath CResult_BlindedPathDecodeErrorZ_get_ok(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_BlindedPathDecodeErrorZ_get_ok(long owner);
+ // struct LDKDecodeError CResult_BlindedPathDecodeErrorZ_get_err(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_BlindedPathDecodeErrorZ_get_err(long owner);
+ // struct LDKBlindedHop CResult_BlindedHopDecodeErrorZ_get_ok(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_BlindedHopDecodeErrorZ_get_ok(long owner);
+ // struct LDKDecodeError CResult_BlindedHopDecodeErrorZ_get_err(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_BlindedHopDecodeErrorZ_get_err(long owner);
+ // struct LDKInvoiceError CResult_InvoiceErrorDecodeErrorZ_get_ok(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_InvoiceErrorDecodeErrorZ_get_ok(long owner);
+ // struct LDKDecodeError CResult_InvoiceErrorDecodeErrorZ_get_err(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR owner);
+ public static native long CResult_InvoiceErrorDecodeErrorZ_get_err(long owner);
+ public interface LDKFilter {
+ void register_tx(byte[] txid, byte[] script_pubkey);
+ void register_output(long output);
+ }
+ public static native long LDKFilter_new(LDKFilter impl);
+ // void Filter_register_tx LDKFilter *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
+ public static native void Filter_register_tx(long this_arg, byte[] txid, byte[] script_pubkey);
+ // void Filter_register_output LDKFilter *NONNULL_PTR this_arg, struct LDKWatchedOutput output
+ public static native void Filter_register_output(long this_arg, long output);
+ public static class LDKCOption_FilterZ {
+ private LDKCOption_FilterZ() {}
+ public final static class Some extends LDKCOption_FilterZ {
+ public long some;
+ Some(long some) { this.some = some; }
+ }
+ public final static class None extends LDKCOption_FilterZ {
+ None() { }
+ }
+ static native void init();
+ }
+ static { LDKCOption_FilterZ.init(); }
+ public static native LDKCOption_FilterZ LDKCOption_FilterZ_ref_from_ptr(long ptr);
+ // struct LDKLockedChannelMonitor CResult_LockedChannelMonitorNoneZ_get_ok(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
+ public static native long CResult_LockedChannelMonitorNoneZ_get_ok(long owner);
+ // void CResult_LockedChannelMonitorNoneZ_get_err(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
+ public static native void CResult_LockedChannelMonitorNoneZ_get_err(long owner);
+ // struct LDKOutPoint C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner);
+ public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(long owner);
+ // struct LDKCVec_MonitorUpdateIdZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner);
+ public static native long[] C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(long owner);
+ public interface LDKKVStore {
+ long read(String primary_namespace, String secondary_namespace, String key);
+ long write(String primary_namespace, String secondary_namespace, String key, byte[] buf);
+ long remove(String primary_namespace, String secondary_namespace, String key, boolean lazy);
+ long list(String primary_namespace, String secondary_namespace);
+ }
+ public static native long LDKKVStore_new(LDKKVStore impl);
+ // LDKCResult_CVec_u8ZIOErrorZ KVStore_read LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key
+ public static native long KVStore_read(long this_arg, String primary_namespace, String secondary_namespace, String key);
+ // LDKCResult_NoneIOErrorZ KVStore_write LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key, struct LDKu8slice buf
+ public static native long KVStore_write(long this_arg, String primary_namespace, String secondary_namespace, String key, byte[] buf);
+ // LDKCResult_NoneIOErrorZ KVStore_remove LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace, struct LDKStr key, bool lazy
+ public static native long KVStore_remove(long this_arg, String primary_namespace, String secondary_namespace, String key, boolean lazy);
+ // LDKCResult_CVec_StrZIOErrorZ KVStore_list LDKKVStore *NONNULL_PTR this_arg, struct LDKStr primary_namespace, struct LDKStr secondary_namespace
+ public static native long KVStore_list(long this_arg, String primary_namespace, String secondary_namespace);
+ public interface LDKPersister {
+ long persist_manager(long channel_manager);
+ long persist_graph(long network_graph);
+ long persist_scorer(long scorer);
+ }
+ public static native long LDKPersister_new(LDKPersister impl);
+ // LDKCResult_NoneIOErrorZ Persister_persist_manager LDKPersister *NONNULL_PTR this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager
+ public static native long Persister_persist_manager(long this_arg, long channel_manager);
+ // LDKCResult_NoneIOErrorZ Persister_persist_graph LDKPersister *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR network_graph
+ public static native long Persister_persist_graph(long this_arg, long network_graph);
+ // LDKCResult_NoneIOErrorZ Persister_persist_scorer LDKPersister *NONNULL_PTR this_arg, const struct LDKWriteableScore *NONNULL_PTR scorer
+ public static native long Persister_persist_scorer(long this_arg, long scorer);
+ public interface LDKPersist {
+ ChannelMonitorUpdateStatus persist_new_channel(long channel_id, long data, long update_id);
+ ChannelMonitorUpdateStatus update_persisted_channel(long channel_id, long update, long data, long update_id);
+ }
+ public static native long LDKPersist_new(LDKPersist impl);
+ // LDKChannelMonitorUpdateStatus Persist_persist_new_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_id, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id
+ public static native ChannelMonitorUpdateStatus Persist_persist_new_channel(long this_arg, long channel_id, long data, long update_id);
+ // LDKChannelMonitorUpdateStatus Persist_update_persisted_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_id, struct LDKChannelMonitorUpdate update, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id
+ public static native ChannelMonitorUpdateStatus Persist_update_persisted_channel(long this_arg, long channel_id, long update, long data, long update_id);
+ public interface LDKFutureCallback {
+ void call();
+ }
+ public static native long LDKFutureCallback_new(LDKFutureCallback impl);
+ // void FutureCallback_call LDKFutureCallback *NONNULL_PTR this_arg
+ public static native void FutureCallback_call(long this_arg);
+ public interface LDKListen {
+ void filtered_block_connected(byte[] header, long[] txdata, int height);
+ void block_connected(byte[] block, int height);
+ void block_disconnected(byte[] header, int height);
+ }
+ public static native long LDKListen_new(LDKListen impl);
+ // void Listen_filtered_block_connected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
+ public static native void Listen_filtered_block_connected(long this_arg, byte[] header, long[] txdata, int height);
+ // void Listen_block_connected LDKListen *NONNULL_PTR this_arg, struct LDKu8slice block, uint32_t height
+ public static native void Listen_block_connected(long this_arg, byte[] block, int height);
+ // void Listen_block_disconnected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
+ public static native void Listen_block_disconnected(long this_arg, byte[] header, int height);
+ public interface LDKConfirm {
+ void transactions_confirmed(byte[] header, long[] txdata, int height);
+ void transaction_unconfirmed(byte[] txid);
+ void best_block_updated(byte[] header, int height);
+ long[] get_relevant_txids();
+ }
+ public static native long LDKConfirm_new(LDKConfirm impl);
+ // void Confirm_transactions_confirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
+ public static native void Confirm_transactions_confirmed(long this_arg, byte[] header, long[] txdata, int height);
+ // void Confirm_transaction_unconfirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*txid)[32]
+ public static native void Confirm_transaction_unconfirmed(long this_arg, byte[] txid);
+ // void Confirm_best_block_updated LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
+ public static native void Confirm_best_block_updated(long this_arg, byte[] header, int height);
+ // LDKCVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ Confirm_get_relevant_txids LDKConfirm *NONNULL_PTR this_arg
+ public static native long[] Confirm_get_relevant_txids(long this_arg);
+ public interface LDKEventHandler {
+ void handle_event(long event);
+ }
+ public static native long LDKEventHandler_new(LDKEventHandler impl);
+ // void EventHandler_handle_event LDKEventHandler *NONNULL_PTR this_arg, struct LDKEvent event
+ public static native void EventHandler_handle_event(long this_arg, long event);
+ public interface LDKEventsProvider {
+ void process_pending_events(long handler);
+ }
+ public static native long LDKEventsProvider_new(LDKEventsProvider impl);
+ // void EventsProvider_process_pending_events LDKEventsProvider *NONNULL_PTR this_arg, struct LDKEventHandler handler
+ public static native void EventsProvider_process_pending_events(long this_arg, long handler);
+ public static class LDKFailureCode {
+ private LDKFailureCode() {}
+ public final static class TemporaryNodeFailure extends LDKFailureCode {
+ TemporaryNodeFailure() { }
+ }
+ public final static class RequiredNodeFeatureMissing extends LDKFailureCode {
+ RequiredNodeFeatureMissing() { }
+ }
+ public final static class IncorrectOrUnknownPaymentDetails extends LDKFailureCode {
+ IncorrectOrUnknownPaymentDetails() { }
+ }
+ public final static class InvalidOnionPayload extends LDKFailureCode {
+ public long invalid_onion_payload;
+ InvalidOnionPayload(long invalid_onion_payload) { this.invalid_onion_payload = invalid_onion_payload; }
+ }
+ static native void init();
+ }
+ static { LDKFailureCode.init(); }
+ public static native LDKFailureCode LDKFailureCode_ref_from_ptr(long ptr);
+ public interface LDKMessageSendEventsProvider {
+ long[] get_and_clear_pending_msg_events();
+ }
+ public static native long LDKMessageSendEventsProvider_new(LDKMessageSendEventsProvider impl);
+ // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider *NONNULL_PTR this_arg
+ public static native long[] MessageSendEventsProvider_get_and_clear_pending_msg_events(long this_arg);
+ public interface LDKChannelMessageHandler {
+ void handle_open_channel(byte[] their_node_id, long msg);
+ void handle_open_channel_v2(byte[] their_node_id, long msg);
+ void handle_accept_channel(byte[] their_node_id, long msg);
+ void handle_accept_channel_v2(byte[] their_node_id, long msg);
+ void handle_funding_created(byte[] their_node_id, long msg);
+ void handle_funding_signed(byte[] their_node_id, long msg);
+ void handle_channel_ready(byte[] their_node_id, long msg);
+ void handle_shutdown(byte[] their_node_id, long msg);
+ void handle_closing_signed(byte[] their_node_id, long msg);
+ void handle_tx_add_input(byte[] their_node_id, long msg);
+ void handle_tx_add_output(byte[] their_node_id, long msg);
+ void handle_tx_remove_input(byte[] their_node_id, long msg);
+ void handle_tx_remove_output(byte[] their_node_id, long msg);
+ void handle_tx_complete(byte[] their_node_id, long msg);
+ void handle_tx_signatures(byte[] their_node_id, long msg);
+ void handle_tx_init_rbf(byte[] their_node_id, long msg);
+ void handle_tx_ack_rbf(byte[] their_node_id, long msg);
+ void handle_tx_abort(byte[] their_node_id, long msg);
+ void handle_update_add_htlc(byte[] their_node_id, long msg);
+ void handle_update_fulfill_htlc(byte[] their_node_id, long msg);
+ void handle_update_fail_htlc(byte[] their_node_id, long msg);
+ void handle_update_fail_malformed_htlc(byte[] their_node_id, long msg);
+ void handle_commitment_signed(byte[] their_node_id, long msg);
+ void handle_revoke_and_ack(byte[] their_node_id, long msg);
+ void handle_update_fee(byte[] their_node_id, long msg);
+ void handle_announcement_signatures(byte[] their_node_id, long msg);
+ void peer_disconnected(byte[] their_node_id);
+ long peer_connected(byte[] their_node_id, long msg, boolean inbound);
+ void handle_channel_reestablish(byte[] their_node_id, long msg);
+ void handle_channel_update(byte[] their_node_id, long msg);
+ void handle_error(byte[] their_node_id, long msg);
+ long provided_node_features();
+ long provided_init_features(byte[] their_node_id);
+ long get_chain_hashes();
+ }
+ public static native long LDKChannelMessageHandler_new(LDKChannelMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
+ public static native long LDKChannelMessageHandler_get_MessageSendEventsProvider(long arg);
+ // void ChannelMessageHandler_handle_open_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKOpenChannel *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_open_channel(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_open_channel_v2 LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKOpenChannelV2 *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_open_channel_v2(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_accept_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAcceptChannel *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_accept_channel(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_accept_channel_v2 LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAcceptChannelV2 *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_accept_channel_v2(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_funding_created(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_funding_signed(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_channel_ready LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReady *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_channel_ready(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_shutdown LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKShutdown *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_shutdown(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_closing_signed(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_tx_add_input LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAddInput *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_tx_add_input(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_tx_add_output LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAddOutput *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_tx_add_output(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_tx_remove_input LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxRemoveInput *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_tx_remove_input(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_tx_remove_output LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxRemoveOutput *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_tx_remove_output(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_tx_complete LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxComplete *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_tx_complete(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_tx_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxSignatures *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_tx_signatures(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_tx_init_rbf LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxInitRbf *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_tx_init_rbf(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_tx_ack_rbf LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAckRbf *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_tx_ack_rbf(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_tx_abort LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAbort *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_tx_abort(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_update_add_htlc(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_update_fulfill_htlc(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_update_fail_htlc(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_update_fail_malformed_htlc(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_commitment_signed(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_revoke_and_ack(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_update_fee(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_announcement_signatures(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
+ public static native void ChannelMessageHandler_peer_disconnected(long this_arg, byte[] their_node_id);
+ // LDKCResult_NoneNoneZ ChannelMessageHandler_peer_connected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg, bool inbound
+ public static native long ChannelMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long msg, boolean inbound);
+ // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_channel_reestablish(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_channel_update LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelUpdate *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_channel_update(long this_arg, byte[] their_node_id, long msg);
+ // void ChannelMessageHandler_handle_error LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg
+ public static native void ChannelMessageHandler_handle_error(long this_arg, byte[] their_node_id, long msg);
+ // LDKNodeFeatures ChannelMessageHandler_provided_node_features LDKChannelMessageHandler *NONNULL_PTR this_arg
+ public static native long ChannelMessageHandler_provided_node_features(long this_arg);
+ // LDKInitFeatures ChannelMessageHandler_provided_init_features LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
+ public static native long ChannelMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
+ // LDKCOption_CVec_ThirtyTwoBytesZZ ChannelMessageHandler_get_chain_hashes LDKChannelMessageHandler *NONNULL_PTR this_arg
+ public static native long ChannelMessageHandler_get_chain_hashes(long this_arg);
+ public interface LDKOffersMessageHandler {
+ long handle_message(long message);
+ long[] release_pending_messages();
+ }
+ public static native long LDKOffersMessageHandler_new(LDKOffersMessageHandler impl);
+ // LDKCOption_OffersMessageZ OffersMessageHandler_handle_message LDKOffersMessageHandler *NONNULL_PTR this_arg, struct LDKOffersMessage message
+ public static native long OffersMessageHandler_handle_message(long this_arg, long message);
+ // LDKCVec_C3Tuple_OffersMessageDestinationBlindedPathZZ OffersMessageHandler_release_pending_messages LDKOffersMessageHandler *NONNULL_PTR this_arg
+ public static native long[] OffersMessageHandler_release_pending_messages(long this_arg);
+ public interface LDKRoutingMessageHandler {
+ long handle_node_announcement(long msg);
+ long handle_channel_announcement(long msg);
+ long handle_channel_update(long msg);
+ long get_next_channel_announcement(long starting_point);
+ long get_next_node_announcement(long starting_point);
+ long peer_connected(byte[] their_node_id, long init, boolean inbound);
+ long handle_reply_channel_range(byte[] their_node_id, long msg);
+ long handle_reply_short_channel_ids_end(byte[] their_node_id, long msg);
+ long handle_query_channel_range(byte[] their_node_id, long msg);
+ long handle_query_short_channel_ids(byte[] their_node_id, long msg);
+ boolean processing_queue_high();
+ long provided_node_features();
+ long provided_init_features(byte[] their_node_id);
+ }
+ public static native long LDKRoutingMessageHandler_new(LDKRoutingMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
+ public static native long LDKRoutingMessageHandler_get_MessageSendEventsProvider(long arg);
+ // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg
+ public static native long RoutingMessageHandler_handle_node_announcement(long this_arg, long msg);
+ // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg
+ public static native long RoutingMessageHandler_handle_channel_announcement(long this_arg, long msg);
+ // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg
+ public static native long RoutingMessageHandler_handle_channel_update(long this_arg, long msg);
+ // LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, uint64_t starting_point
+ public static native long RoutingMessageHandler_get_next_channel_announcement(long this_arg, long starting_point);
+ // LDKNodeAnnouncement RoutingMessageHandler_get_next_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKNodeId starting_point
+ public static native long RoutingMessageHandler_get_next_node_announcement(long this_arg, long starting_point);
+ // LDKCResult_NoneNoneZ RoutingMessageHandler_peer_connected LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init, bool inbound
+ public static native long RoutingMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long init, boolean inbound);
+ // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg
+ public static native long RoutingMessageHandler_handle_reply_channel_range(long this_arg, byte[] their_node_id, long msg);
+ // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg
+ public static native long RoutingMessageHandler_handle_reply_short_channel_ids_end(long this_arg, byte[] their_node_id, long msg);
+ // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg
+ public static native long RoutingMessageHandler_handle_query_channel_range(long this_arg, byte[] their_node_id, long msg);
+ // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg
+ public static native long RoutingMessageHandler_handle_query_short_channel_ids(long this_arg, byte[] their_node_id, long msg);
+ // bool RoutingMessageHandler_processing_queue_high LDKRoutingMessageHandler *NONNULL_PTR this_arg
+ public static native boolean RoutingMessageHandler_processing_queue_high(long this_arg);
+ // LDKNodeFeatures RoutingMessageHandler_provided_node_features LDKRoutingMessageHandler *NONNULL_PTR this_arg
+ public static native long RoutingMessageHandler_provided_node_features(long this_arg);
+ // LDKInitFeatures RoutingMessageHandler_provided_init_features LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
+ public static native long RoutingMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
+ public interface LDKOnionMessageHandler {
+ void handle_onion_message(byte[] peer_node_id, long msg);
+ long next_onion_message_for_peer(byte[] peer_node_id);
+ long peer_connected(byte[] their_node_id, long init, boolean inbound);
+ void peer_disconnected(byte[] their_node_id);
+ long provided_node_features();
+ long provided_init_features(byte[] their_node_id);
+ }
+ public static native long LDKOnionMessageHandler_new(LDKOnionMessageHandler impl);
+ // void OnionMessageHandler_handle_onion_message LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id, const struct LDKOnionMessage *NONNULL_PTR msg
+ public static native void OnionMessageHandler_handle_onion_message(long this_arg, byte[] peer_node_id, long msg);
+ // LDKOnionMessage OnionMessageHandler_next_onion_message_for_peer LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id
+ public static native long OnionMessageHandler_next_onion_message_for_peer(long this_arg, byte[] peer_node_id);
+ // LDKCResult_NoneNoneZ OnionMessageHandler_peer_connected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init, bool inbound
+ public static native long OnionMessageHandler_peer_connected(long this_arg, byte[] their_node_id, long init, boolean inbound);
+ // void OnionMessageHandler_peer_disconnected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
+ public static native void OnionMessageHandler_peer_disconnected(long this_arg, byte[] their_node_id);
+ // LDKNodeFeatures OnionMessageHandler_provided_node_features LDKOnionMessageHandler *NONNULL_PTR this_arg
+ public static native long OnionMessageHandler_provided_node_features(long this_arg);
+ // LDKInitFeatures OnionMessageHandler_provided_init_features LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
+ public static native long OnionMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
+ public interface LDKCustomMessageReader {
+ long read(short message_type, byte[] buffer);
+ }
+ public static native long LDKCustomMessageReader_new(LDKCustomMessageReader impl);
+ // LDKCResult_COption_TypeZDecodeErrorZ CustomMessageReader_read LDKCustomMessageReader *NONNULL_PTR this_arg, uint16_t message_type, struct LDKu8slice buffer
+ public static native long CustomMessageReader_read(long this_arg, short message_type, byte[] buffer);
+ public interface LDKCustomMessageHandler {
+ long handle_custom_message(long msg, byte[] sender_node_id);
+ long[] get_and_clear_pending_msg();
+ long provided_node_features();
+ long provided_init_features(byte[] their_node_id);
+ }
+ public static native long LDKCustomMessageHandler_new(LDKCustomMessageHandler impl, LDKCustomMessageReader CustomMessageReader);
+ public static native long LDKCustomMessageHandler_get_CustomMessageReader(long arg);
+ // LDKCResult_NoneLightningErrorZ CustomMessageHandler_handle_custom_message LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKType msg, struct LDKPublicKey sender_node_id
+ public static native long CustomMessageHandler_handle_custom_message(long this_arg, long msg, byte[] sender_node_id);
+ // LDKCVec_C2Tuple_PublicKeyTypeZZ CustomMessageHandler_get_and_clear_pending_msg LDKCustomMessageHandler *NONNULL_PTR this_arg
+ public static native long[] CustomMessageHandler_get_and_clear_pending_msg(long this_arg);
+ // LDKNodeFeatures CustomMessageHandler_provided_node_features LDKCustomMessageHandler *NONNULL_PTR this_arg
+ public static native long CustomMessageHandler_provided_node_features(long this_arg);
+ // LDKInitFeatures CustomMessageHandler_provided_init_features LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
+ public static native long CustomMessageHandler_provided_init_features(long this_arg, byte[] their_node_id);
+ public interface LDKCustomOnionMessageHandler {
+ long handle_custom_message(long msg);
+ long read_custom_message(long message_type, byte[] buffer);
+ long[] release_pending_custom_messages();
+ }
+ public static native long LDKCustomOnionMessageHandler_new(LDKCustomOnionMessageHandler impl);
+ // LDKCOption_OnionMessageContentsZ CustomOnionMessageHandler_handle_custom_message LDKCustomOnionMessageHandler *NONNULL_PTR this_arg, struct LDKOnionMessageContents msg
+ public static native long CustomOnionMessageHandler_handle_custom_message(long this_arg, long msg);
+ // LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CustomOnionMessageHandler_read_custom_message LDKCustomOnionMessageHandler *NONNULL_PTR this_arg, uint64_t message_type, struct LDKu8slice buffer
+ public static native long CustomOnionMessageHandler_read_custom_message(long this_arg, long message_type, byte[] buffer);
+ // LDKCVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ CustomOnionMessageHandler_release_pending_custom_messages LDKCustomOnionMessageHandler *NONNULL_PTR this_arg
+ public static native long[] CustomOnionMessageHandler_release_pending_custom_messages(long this_arg);
+ public interface LDKSocketDescriptor {
+ long send_data(byte[] data, boolean resume_read);
+ void disconnect_socket();
+ boolean eq(long other_arg);
+ long hash();
+ }
+ public static native long LDKSocketDescriptor_new(LDKSocketDescriptor impl);
+ // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor *NONNULL_PTR this_arg, struct LDKu8slice data, bool resume_read
+ public static native long SocketDescriptor_send_data(long this_arg, byte[] data, boolean resume_read);
+ // void SocketDescriptor_disconnect_socket LDKSocketDescriptor *NONNULL_PTR this_arg
+ public static native void SocketDescriptor_disconnect_socket(long this_arg);
+ // uint64_t SocketDescriptor_hash LDKSocketDescriptor *NONNULL_PTR this_arg
+ public static native long SocketDescriptor_hash(long this_arg);
+ public static class LDKEffectiveCapacity {
+ private LDKEffectiveCapacity() {}
+ public final static class ExactLiquidity extends LDKEffectiveCapacity {
+ public long liquidity_msat;
+ ExactLiquidity(long liquidity_msat) { this.liquidity_msat = liquidity_msat; }
+ }
+ public final static class AdvertisedMaxHTLC extends LDKEffectiveCapacity {
+ public long amount_msat;
+ AdvertisedMaxHTLC(long amount_msat) { this.amount_msat = amount_msat; }
+ }
+ public final static class Total extends LDKEffectiveCapacity {
+ public long capacity_msat;
+ public long htlc_maximum_msat;
+ Total(long capacity_msat, long htlc_maximum_msat) { this.capacity_msat = capacity_msat; this.htlc_maximum_msat = htlc_maximum_msat; }
+ }
+ public final static class Infinite extends LDKEffectiveCapacity {
+ Infinite() { }
+ }
+ public final static class HintMaxHTLC extends LDKEffectiveCapacity {
+ public long amount_msat;
+ HintMaxHTLC(long amount_msat) { this.amount_msat = amount_msat; }
+ }
+ public final static class Unknown extends LDKEffectiveCapacity {
+ Unknown() { }
+ }
+ static native void init();
+ }
+ static { LDKEffectiveCapacity.init(); }
+ public static native LDKEffectiveCapacity LDKEffectiveCapacity_ref_from_ptr(long ptr);
+ public static class LDKPayee {
+ private LDKPayee() {}
+ public final static class Blinded extends LDKPayee {
+ public long[] route_hints;
+ public long features;
+ Blinded(long[] route_hints, long features) { this.route_hints = route_hints; this.features = features; }
+ }
+ public final static class Clear extends LDKPayee {
+ public byte[] node_id;
+ public long[] route_hints;
+ public long features;
+ public int final_cltv_expiry_delta;
+ Clear(byte[] node_id, long[] route_hints, long features, int final_cltv_expiry_delta) { this.node_id = node_id; this.route_hints = route_hints; this.features = features; this.final_cltv_expiry_delta = final_cltv_expiry_delta; }
+ }
+ static native void init();
+ }
+ static { LDKPayee.init(); }
+ public static native LDKPayee LDKPayee_ref_from_ptr(long ptr);
+ public interface LDKScore {
+ byte[] write();
+ }
+ public static native long LDKScore_new(LDKScore impl, LDKScoreLookUp ScoreLookUp, LDKScoreUpdate ScoreUpdate);
+ public static native long LDKScore_get_ScoreLookUp(long arg);
+ public static native long LDKScore_get_ScoreUpdate(long arg);
+ // LDKCVec_u8Z Score_write LDKScore *NONNULL_PTR this_arg
+ public static native byte[] Score_write(long this_arg);
+ public interface LDKMessageRouter {
+ long find_path(byte[] sender, byte[][] peers, long destination);
+ }
+ public static native long LDKMessageRouter_new(LDKMessageRouter impl);
+ // LDKCResult_OnionMessagePathNoneZ MessageRouter_find_path LDKMessageRouter *NONNULL_PTR this_arg, struct LDKPublicKey sender, struct LDKCVec_PublicKeyZ peers, struct LDKDestination destination
+ public static native long MessageRouter_find_path(long this_arg, byte[] sender, byte[][] peers, long destination);
+ public interface LDKCoinSelectionSource {
+ long select_confirmed_utxos(byte[] claim_id, long[] must_spend, long[] must_pay_to, int target_feerate_sat_per_1000_weight);
+ long sign_tx(byte[] tx);
+ }
+ public static native long LDKCoinSelectionSource_new(LDKCoinSelectionSource impl);
+ // LDKCResult_CoinSelectionNoneZ CoinSelectionSource_select_confirmed_utxos LDKCoinSelectionSource *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes claim_id, struct LDKCVec_InputZ must_spend, struct LDKCVec_TxOutZ must_pay_to, uint32_t target_feerate_sat_per_1000_weight
+ public static native long CoinSelectionSource_select_confirmed_utxos(long this_arg, byte[] claim_id, long[] must_spend, long[] must_pay_to, int target_feerate_sat_per_1000_weight);
+ // LDKCResult_TransactionNoneZ CoinSelectionSource_sign_tx LDKCoinSelectionSource *NONNULL_PTR this_arg, struct LDKTransaction tx
+ public static native long CoinSelectionSource_sign_tx(long this_arg, byte[] tx);
+ public interface LDKWalletSource {
+ long list_confirmed_utxos();
+ long get_change_script();
+ long sign_tx(byte[] tx);
+ }
+ public static native long LDKWalletSource_new(LDKWalletSource impl);
+ // LDKCResult_CVec_UtxoZNoneZ WalletSource_list_confirmed_utxos LDKWalletSource *NONNULL_PTR this_arg
+ public static native long WalletSource_list_confirmed_utxos(long this_arg);
+ // LDKCResult_CVec_u8ZNoneZ WalletSource_get_change_script LDKWalletSource *NONNULL_PTR this_arg
+ public static native long WalletSource_get_change_script(long this_arg);
+ // LDKCResult_TransactionNoneZ WalletSource_sign_tx LDKWalletSource *NONNULL_PTR this_arg, struct LDKTransaction tx
+ public static native long WalletSource_sign_tx(long this_arg, byte[] tx);
+ public static class LDKGossipSync {
+ private LDKGossipSync() {}
+ public final static class P2P extends LDKGossipSync {
+ public long p2p;
+ P2P(long p2p) { this.p2p = p2p; }
+ }
+ public final static class Rapid extends LDKGossipSync {
+ public long rapid;
+ Rapid(long rapid) { this.rapid = rapid; }
+ }
+ public final static class None extends LDKGossipSync {
+ None() { }
+ }
+ static native void init();
+ }
+ static { LDKGossipSync.init(); }
+ public static native LDKGossipSync LDKGossipSync_ref_from_ptr(long ptr);
+ public static class LDKFallback {
+ private LDKFallback() {}
+ public final static class SegWitProgram extends LDKFallback {
+ public byte version;
+ public byte[] program;
+ SegWitProgram(byte version, byte[] program) { this.version = version; this.program = program; }
+ }
+ public final static class PubKeyHash extends LDKFallback {
+ public byte[] pub_key_hash;
+ PubKeyHash(byte[] pub_key_hash) { this.pub_key_hash = pub_key_hash; }
+ }
+ public final static class ScriptHash extends LDKFallback {
+ public byte[] script_hash;
+ ScriptHash(byte[] script_hash) { this.script_hash = script_hash; }
+ }
+ static native void init();
+ }
+ static { LDKFallback.init(); }
+ public static native LDKFallback LDKFallback_ref_from_ptr(long ptr);
+ // struct LDKStr _ldk_get_compiled_version(void);
+ public static native String _ldk_get_compiled_version();
+ // struct LDKStr _ldk_c_bindings_get_compiled_version(void);
+ public static native String _ldk_c_bindings_get_compiled_version();
+ // struct LDKSixteenBytes U128_le_bytes(struct LDKU128 val);
+ public static native byte[] U128_le_bytes(byte[] val);
+ // struct LDKU128 U128_new(struct LDKSixteenBytes le_bytes);
+ public static native byte[] U128_new(byte[] le_bytes);
+ // struct LDKBigEndianScalar BigEndianScalar_new(struct LDKThirtyTwoBytes big_endian_bytes);
+ public static native long BigEndianScalar_new(byte[] big_endian_bytes);
+ // uint64_t Bech32Error_clone_ptr(LDKBech32Error *NONNULL_PTR arg);
+ public static native long Bech32Error_clone_ptr(long arg);
+ // struct LDKBech32Error Bech32Error_clone(const struct LDKBech32Error *NONNULL_PTR orig);
+ public static native long Bech32Error_clone(long orig);
+ // void Bech32Error_free(struct LDKBech32Error o);
+ public static native void Bech32Error_free(long o);
+ // void Transaction_free(struct LDKTransaction _res);
+ public static native void Transaction_free(byte[] _res);
+ // void Witness_free(struct LDKWitness _res);
+ public static native void Witness_free(byte[] _res);
+ // void TxIn_free(struct LDKTxIn _res);
+ public static native void TxIn_free(long _res);
+ // struct LDKTxIn TxIn_new(struct LDKWitness witness, struct LDKCVec_u8Z script_sig, uint32_t sequence, struct LDKThirtyTwoBytes previous_txid, uint32_t previous_vout);
+ public static native long TxIn_new(byte[] witness, byte[] script_sig, int sequence, byte[] previous_txid, int previous_vout);
+ // struct LDKTxOut TxOut_new(struct LDKCVec_u8Z script_pubkey, uint64_t value);
+ public static native long TxOut_new(byte[] script_pubkey, long value);
+ // void TxOut_free(struct LDKTxOut _res);
+ public static native void TxOut_free(long _res);
+ // uint64_t TxOut_clone_ptr(LDKTxOut *NONNULL_PTR arg);
+ public static native long TxOut_clone_ptr(long arg);
+ // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
+ public static native long TxOut_clone(long orig);
+ // void Str_free(struct LDKStr _res);
+ public static native void Str_free(String _res);
+ // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o);
+ public static native long COption_u64Z_some(long o);
+ // struct LDKCOption_u64Z COption_u64Z_none(void);
+ public static native long COption_u64Z_none();
+ // void COption_u64Z_free(struct LDKCOption_u64Z _res);
+ public static native void COption_u64Z_free(long _res);
+ // uint64_t COption_u64Z_clone_ptr(LDKCOption_u64Z *NONNULL_PTR arg);
+ public static native long COption_u64Z_clone_ptr(long arg);
+ // struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig);
+ public static native long COption_u64Z_clone(long orig);
+ // void CVec_BlindedPathZ_free(struct LDKCVec_BlindedPathZ _res);
+ public static native void CVec_BlindedPathZ_free(long[] _res);
+ // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_ok(struct LDKRefund o);
+ public static native long CResult_RefundBolt12ParseErrorZ_ok(long o);
+ // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_err(struct LDKBolt12ParseError e);
+ public static native long CResult_RefundBolt12ParseErrorZ_err(long e);
+ // bool CResult_RefundBolt12ParseErrorZ_is_ok(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_RefundBolt12ParseErrorZ_is_ok(long o);
+ // void CResult_RefundBolt12ParseErrorZ_free(struct LDKCResult_RefundBolt12ParseErrorZ _res);
+ public static native void CResult_RefundBolt12ParseErrorZ_free(long _res);
+ // uint64_t CResult_RefundBolt12ParseErrorZ_clone_ptr(LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR arg);
+ public static native long CResult_RefundBolt12ParseErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_RefundBolt12ParseErrorZ CResult_RefundBolt12ParseErrorZ_clone(const struct LDKCResult_RefundBolt12ParseErrorZ *NONNULL_PTR orig);
+ public static native long CResult_RefundBolt12ParseErrorZ_clone(long orig);
+ // struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_ok(struct LDKRetry o);
+ public static native long CResult_RetryDecodeErrorZ_ok(long o);
+ // struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_RetryDecodeErrorZ_err(long e);
+ // bool CResult_RetryDecodeErrorZ_is_ok(const struct LDKCResult_RetryDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_RetryDecodeErrorZ_is_ok(long o);
+ // void CResult_RetryDecodeErrorZ_free(struct LDKCResult_RetryDecodeErrorZ _res);
+ public static native void CResult_RetryDecodeErrorZ_free(long _res);
+ // uint64_t CResult_RetryDecodeErrorZ_clone_ptr(LDKCResult_RetryDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_RetryDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_RetryDecodeErrorZ CResult_RetryDecodeErrorZ_clone(const struct LDKCResult_RetryDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_RetryDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
+ public static native long CResult_NoneAPIErrorZ_ok();
+ // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
+ public static native long CResult_NoneAPIErrorZ_err(long e);
+ // bool CResult_NoneAPIErrorZ_is_ok(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_NoneAPIErrorZ_is_ok(long o);
+ // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
+ public static native void CResult_NoneAPIErrorZ_free(long _res);
+ // uint64_t CResult_NoneAPIErrorZ_clone_ptr(LDKCResult_NoneAPIErrorZ *NONNULL_PTR arg);
+ public static native long CResult_NoneAPIErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NoneAPIErrorZ_clone(long orig);
+ // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res);
+ public static native void CVec_CResult_NoneAPIErrorZZ_free(long[] _res);
+ // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res);
+ public static native void CVec_APIErrorZ_free(long[] _res);
+ // struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_some(struct LDKThirtyTwoBytes o);
+ public static native long COption_ThirtyTwoBytesZ_some(byte[] o);
+ // struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_none(void);
+ public static native long COption_ThirtyTwoBytesZ_none();
+ // void COption_ThirtyTwoBytesZ_free(struct LDKCOption_ThirtyTwoBytesZ _res);
+ public static native void COption_ThirtyTwoBytesZ_free(long _res);
+ // uint64_t COption_ThirtyTwoBytesZ_clone_ptr(LDKCOption_ThirtyTwoBytesZ *NONNULL_PTR arg);
+ public static native long COption_ThirtyTwoBytesZ_clone_ptr(long arg);
+ // struct LDKCOption_ThirtyTwoBytesZ COption_ThirtyTwoBytesZ_clone(const struct LDKCOption_ThirtyTwoBytesZ *NONNULL_PTR orig);
+ public static native long COption_ThirtyTwoBytesZ_clone(long orig);
+ // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
+ public static native void CVec_u8Z_free(byte[] _res);
+ // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_some(struct LDKCVec_u8Z o);
+ public static native long COption_CVec_u8ZZ_some(byte[] o);
+ // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_none(void);
+ public static native long COption_CVec_u8ZZ_none();
+ // void COption_CVec_u8ZZ_free(struct LDKCOption_CVec_u8ZZ _res);
+ public static native void COption_CVec_u8ZZ_free(long _res);
+ // uint64_t COption_CVec_u8ZZ_clone_ptr(LDKCOption_CVec_u8ZZ *NONNULL_PTR arg);
+ public static native long COption_CVec_u8ZZ_clone_ptr(long arg);
+ // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_clone(const struct LDKCOption_CVec_u8ZZ *NONNULL_PTR orig);
+ public static native long COption_CVec_u8ZZ_clone(long orig);
+ // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_ok(struct LDKRecipientOnionFields o);
+ public static native long CResult_RecipientOnionFieldsDecodeErrorZ_ok(long o);
+ // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_RecipientOnionFieldsDecodeErrorZ_err(long e);
+ // bool CResult_RecipientOnionFieldsDecodeErrorZ_is_ok(const struct LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_RecipientOnionFieldsDecodeErrorZ_is_ok(long o);
+ // void CResult_RecipientOnionFieldsDecodeErrorZ_free(struct LDKCResult_RecipientOnionFieldsDecodeErrorZ _res);
+ public static native void CResult_RecipientOnionFieldsDecodeErrorZ_free(long _res);
+ // uint64_t CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_clone(const struct LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_RecipientOnionFieldsDecodeErrorZ_clone(long orig);
+ // uint64_t C2Tuple_u64CVec_u8ZZ_clone_ptr(LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR arg);
+ public static native long C2Tuple_u64CVec_u8ZZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_u64CVec_u8ZZ C2Tuple_u64CVec_u8ZZ_clone(const struct LDKC2Tuple_u64CVec_u8ZZ *NONNULL_PTR orig);
+ public static native long C2Tuple_u64CVec_u8ZZ_clone(long orig);
+ // struct LDKC2Tuple_u64CVec_u8ZZ C2Tuple_u64CVec_u8ZZ_new(uint64_t a, struct LDKCVec_u8Z b);
+ public static native long C2Tuple_u64CVec_u8ZZ_new(long a, byte[] b);
+ // void C2Tuple_u64CVec_u8ZZ_free(struct LDKC2Tuple_u64CVec_u8ZZ _res);
+ public static native void C2Tuple_u64CVec_u8ZZ_free(long _res);
+ // void CVec_C2Tuple_u64CVec_u8ZZZ_free(struct LDKCVec_C2Tuple_u64CVec_u8ZZZ _res);
+ public static native void CVec_C2Tuple_u64CVec_u8ZZZ_free(long[] _res);
+ // struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_ok(struct LDKRecipientOnionFields o);
+ public static native long CResult_RecipientOnionFieldsNoneZ_ok(long o);
+ // struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_err(void);
+ public static native long CResult_RecipientOnionFieldsNoneZ_err();
+ // bool CResult_RecipientOnionFieldsNoneZ_is_ok(const struct LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_RecipientOnionFieldsNoneZ_is_ok(long o);
+ // void CResult_RecipientOnionFieldsNoneZ_free(struct LDKCResult_RecipientOnionFieldsNoneZ _res);
+ public static native void CResult_RecipientOnionFieldsNoneZ_free(long _res);
+ // uint64_t CResult_RecipientOnionFieldsNoneZ_clone_ptr(LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR arg);
+ public static native long CResult_RecipientOnionFieldsNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_RecipientOnionFieldsNoneZ CResult_RecipientOnionFieldsNoneZ_clone(const struct LDKCResult_RecipientOnionFieldsNoneZ *NONNULL_PTR orig);
+ public static native long CResult_RecipientOnionFieldsNoneZ_clone(long orig);
+ // void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res);
+ public static native void CVec_ThirtyTwoBytesZ_free(byte[][] _res);
+ // struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_some(struct LDKCVec_ThirtyTwoBytesZ o);
+ public static native long COption_CVec_ThirtyTwoBytesZZ_some(byte[][] o);
+ // struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_none(void);
+ public static native long COption_CVec_ThirtyTwoBytesZZ_none();
+ // void COption_CVec_ThirtyTwoBytesZZ_free(struct LDKCOption_CVec_ThirtyTwoBytesZZ _res);
+ public static native void COption_CVec_ThirtyTwoBytesZZ_free(long _res);
+ // uint64_t COption_CVec_ThirtyTwoBytesZZ_clone_ptr(LDKCOption_CVec_ThirtyTwoBytesZZ *NONNULL_PTR arg);
+ public static native long COption_CVec_ThirtyTwoBytesZZ_clone_ptr(long arg);
+ // struct LDKCOption_CVec_ThirtyTwoBytesZZ COption_CVec_ThirtyTwoBytesZZ_clone(const struct LDKCOption_CVec_ThirtyTwoBytesZZ *NONNULL_PTR orig);
+ public static native long COption_CVec_ThirtyTwoBytesZZ_clone(long orig);
+ // struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_ok(struct LDKThirtyTwoBytes o);
+ public static native long CResult_ThirtyTwoBytesNoneZ_ok(byte[] o);
+ // struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_err(void);
+ public static native long CResult_ThirtyTwoBytesNoneZ_err();
+ // bool CResult_ThirtyTwoBytesNoneZ_is_ok(const struct LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_ThirtyTwoBytesNoneZ_is_ok(long o);
+ // void CResult_ThirtyTwoBytesNoneZ_free(struct LDKCResult_ThirtyTwoBytesNoneZ _res);
+ public static native void CResult_ThirtyTwoBytesNoneZ_free(long _res);
+ // uint64_t CResult_ThirtyTwoBytesNoneZ_clone_ptr(LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR arg);
+ public static native long CResult_ThirtyTwoBytesNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_clone(const struct LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR orig);
+ public static native long CResult_ThirtyTwoBytesNoneZ_clone(long orig);
+ // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_ok(struct LDKBlindedPayInfo o);
+ public static native long CResult_BlindedPayInfoDecodeErrorZ_ok(long o);
+ // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_BlindedPayInfoDecodeErrorZ_err(long e);
+ // bool CResult_BlindedPayInfoDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_BlindedPayInfoDecodeErrorZ_is_ok(long o);
+ // void CResult_BlindedPayInfoDecodeErrorZ_free(struct LDKCResult_BlindedPayInfoDecodeErrorZ _res);
+ public static native void CResult_BlindedPayInfoDecodeErrorZ_free(long _res);
+ // uint64_t CResult_BlindedPayInfoDecodeErrorZ_clone_ptr(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_BlindedPayInfoDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_clone(const struct LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_BlindedPayInfoDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKDelayedPaymentOutputDescriptor o);
+ public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(long o);
+ // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(long e);
+ // bool CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(long o);
+ // void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ _res);
+ public static native void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(long _res);
+ // uint64_t CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKStaticPaymentOutputDescriptor o);
+ public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(long o);
+ // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(long e);
+ // bool CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(long o);
+ // void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ _res);
+ public static native void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(long _res);
+ // uint64_t CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
+ public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_ok(long o);
+ // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_err(long e);
+ // bool CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(long o);
+ // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
+ public static native void CResult_SpendableOutputDescriptorDecodeErrorZ_free(long _res);
+ // uint64_t CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_SpendableOutputDescriptorDecodeErrorZ_clone(long orig);
+ // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
+ public static native void CVec_SpendableOutputDescriptorZ_free(long[] _res);
+ // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
+ public static native void CVec_TxOutZ_free(long[] _res);
+ // struct LDKCOption_u32Z COption_u32Z_some(uint32_t o);
+ public static native long COption_u32Z_some(int o);
+ // struct LDKCOption_u32Z COption_u32Z_none(void);
+ public static native long COption_u32Z_none();
+ // void COption_u32Z_free(struct LDKCOption_u32Z _res);
+ public static native void COption_u32Z_free(long _res);
+ // uint64_t COption_u32Z_clone_ptr(LDKCOption_u32Z *NONNULL_PTR arg);
+ public static native long COption_u32Z_clone_ptr(long arg);
+ // struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig);
+ public static native long COption_u32Z_clone(long orig);
+ // uint64_t C2Tuple_CVec_u8ZusizeZ_clone_ptr(LDKC2Tuple_CVec_u8ZusizeZ *NONNULL_PTR arg);
+ public static native long C2Tuple_CVec_u8ZusizeZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_CVec_u8ZusizeZ C2Tuple_CVec_u8ZusizeZ_clone(const struct LDKC2Tuple_CVec_u8ZusizeZ *NONNULL_PTR orig);
+ public static native long C2Tuple_CVec_u8ZusizeZ_clone(long orig);
+ // struct LDKC2Tuple_CVec_u8ZusizeZ C2Tuple_CVec_u8ZusizeZ_new(struct LDKCVec_u8Z a, uintptr_t b);
+ public static native long C2Tuple_CVec_u8ZusizeZ_new(byte[] a, long b);
+ // void C2Tuple_CVec_u8ZusizeZ_free(struct LDKC2Tuple_CVec_u8ZusizeZ _res);
+ public static native void C2Tuple_CVec_u8ZusizeZ_free(long _res);
+ // struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ CResult_C2Tuple_CVec_u8ZusizeZNoneZ_ok(struct LDKC2Tuple_CVec_u8ZusizeZ o);
+ public static native long CResult_C2Tuple_CVec_u8ZusizeZNoneZ_ok(long o);
+ // struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ CResult_C2Tuple_CVec_u8ZusizeZNoneZ_err(void);
+ public static native long CResult_C2Tuple_CVec_u8ZusizeZNoneZ_err();
+ // bool CResult_C2Tuple_CVec_u8ZusizeZNoneZ_is_ok(const struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_C2Tuple_CVec_u8ZusizeZNoneZ_is_ok(long o);
+ // void CResult_C2Tuple_CVec_u8ZusizeZNoneZ_free(struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ _res);
+ public static native void CResult_C2Tuple_CVec_u8ZusizeZNoneZ_free(long _res);
+ // uint64_t CResult_C2Tuple_CVec_u8ZusizeZNoneZ_clone_ptr(LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ *NONNULL_PTR arg);
+ public static native long CResult_C2Tuple_CVec_u8ZusizeZNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ CResult_C2Tuple_CVec_u8ZusizeZNoneZ_clone(const struct LDKCResult_C2Tuple_CVec_u8ZusizeZNoneZ *NONNULL_PTR orig);
+ public static native long CResult_C2Tuple_CVec_u8ZusizeZNoneZ_clone(long orig);
+ // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_ok(struct LDKChannelDerivationParameters o);
+ public static native long CResult_ChannelDerivationParametersDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelDerivationParametersDecodeErrorZ_err(long e);
+ // bool CResult_ChannelDerivationParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ChannelDerivationParametersDecodeErrorZ_is_ok(long o);
+ // void CResult_ChannelDerivationParametersDecodeErrorZ_free(struct LDKCResult_ChannelDerivationParametersDecodeErrorZ _res);
+ public static native void CResult_ChannelDerivationParametersDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ChannelDerivationParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ChannelDerivationParametersDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ChannelDerivationParametersDecodeErrorZ CResult_ChannelDerivationParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelDerivationParametersDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelDerivationParametersDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_ok(struct LDKHTLCDescriptor o);
+ public static native long CResult_HTLCDescriptorDecodeErrorZ_ok(long o);
+ // struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_HTLCDescriptorDecodeErrorZ_err(long e);
+ // bool CResult_HTLCDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_HTLCDescriptorDecodeErrorZ_is_ok(long o);
+ // void CResult_HTLCDescriptorDecodeErrorZ_free(struct LDKCResult_HTLCDescriptorDecodeErrorZ _res);
+ public static native void CResult_HTLCDescriptorDecodeErrorZ_free(long _res);
+ // uint64_t CResult_HTLCDescriptorDecodeErrorZ_clone_ptr(LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_HTLCDescriptorDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_HTLCDescriptorDecodeErrorZ CResult_HTLCDescriptorDecodeErrorZ_clone(const struct LDKCResult_HTLCDescriptorDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_HTLCDescriptorDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_ok(void);
+ public static native long CResult_NoneNoneZ_ok();
+ // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_err(void);
+ public static native long CResult_NoneNoneZ_err();
+ // bool CResult_NoneNoneZ_is_ok(const struct LDKCResult_NoneNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_NoneNoneZ_is_ok(long o);
+ // void CResult_NoneNoneZ_free(struct LDKCResult_NoneNoneZ _res);
+ public static native void CResult_NoneNoneZ_free(long _res);
+ // uint64_t CResult_NoneNoneZ_clone_ptr(LDKCResult_NoneNoneZ *NONNULL_PTR arg);
+ public static native long CResult_NoneNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_NoneNoneZ *NONNULL_PTR orig);
+ public static native long CResult_NoneNoneZ_clone(long orig);
+ // void CVec_ECDSASignatureZ_free(struct LDKCVec_ECDSASignatureZ _res);
+ public static native void CVec_ECDSASignatureZ_free(byte[][] _res);
+ // uint64_t C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone_ptr(LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR arg);
+ public static native long C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone(const struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR orig);
+ public static native long C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_clone(long orig);
+ // struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_new(struct LDKECDSASignature a, struct LDKCVec_ECDSASignatureZ b);
+ public static native long C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_new(byte[] a, byte[][] b);
+ // void C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_free(struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ _res);
+ public static native void C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_free(long _res);
+ // struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_ok(struct LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ o);
+ public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_ok(long o);
+ // struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_err(void);
+ public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_err();
+ // bool CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_is_ok(long o);
+ // void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_free(struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ _res);
+ public static native void CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_free(long _res);
+ // uint64_t CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone_ptr(LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR arg);
+ public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ *NONNULL_PTR orig);
+ public static native long CResult_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ_clone(long orig);
+ // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_ok(struct LDKECDSASignature o);
+ public static native long CResult_ECDSASignatureNoneZ_ok(byte[] o);
+ // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_err(void);
+ public static native long CResult_ECDSASignatureNoneZ_err();
+ // bool CResult_ECDSASignatureNoneZ_is_ok(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_ECDSASignatureNoneZ_is_ok(long o);
+ // void CResult_ECDSASignatureNoneZ_free(struct LDKCResult_ECDSASignatureNoneZ _res);
+ public static native void CResult_ECDSASignatureNoneZ_free(long _res);
+ // uint64_t CResult_ECDSASignatureNoneZ_clone_ptr(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR arg);
+ public static native long CResult_ECDSASignatureNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_clone(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR orig);
+ public static native long CResult_ECDSASignatureNoneZ_clone(long orig);
+ // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_ok(struct LDKPublicKey o);
+ public static native long CResult_PublicKeyNoneZ_ok(byte[] o);
+ // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_err(void);
+ public static native long CResult_PublicKeyNoneZ_err();
+ // bool CResult_PublicKeyNoneZ_is_ok(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_PublicKeyNoneZ_is_ok(long o);
+ // void CResult_PublicKeyNoneZ_free(struct LDKCResult_PublicKeyNoneZ _res);
+ public static native void CResult_PublicKeyNoneZ_free(long _res);
+ // uint64_t CResult_PublicKeyNoneZ_clone_ptr(LDKCResult_PublicKeyNoneZ *NONNULL_PTR arg);
+ public static native long CResult_PublicKeyNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_clone(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR orig);
+ public static native long CResult_PublicKeyNoneZ_clone(long orig);
+ // struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_some(struct LDKBigEndianScalar o);
+ public static native long COption_BigEndianScalarZ_some(long o);
+ // struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_none(void);
+ public static native long COption_BigEndianScalarZ_none();
+ // void COption_BigEndianScalarZ_free(struct LDKCOption_BigEndianScalarZ _res);
+ public static native void COption_BigEndianScalarZ_free(long _res);
+ // uint64_t COption_BigEndianScalarZ_clone_ptr(LDKCOption_BigEndianScalarZ *NONNULL_PTR arg);
+ public static native long COption_BigEndianScalarZ_clone_ptr(long arg);
+ // struct LDKCOption_BigEndianScalarZ COption_BigEndianScalarZ_clone(const struct LDKCOption_BigEndianScalarZ *NONNULL_PTR orig);
+ public static native long COption_BigEndianScalarZ_clone(long orig);
+ // void CVec_U5Z_free(struct LDKCVec_U5Z _res);
+ public static native void CVec_U5Z_free(byte[] _res);
+ // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o);
+ public static native long CResult_RecoverableSignatureNoneZ_ok(byte[] o);
+ // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void);
+ public static native long CResult_RecoverableSignatureNoneZ_err();
+ // bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_RecoverableSignatureNoneZ_is_ok(long o);
+ // void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res);
+ public static native void CResult_RecoverableSignatureNoneZ_free(long _res);
+ // uint64_t CResult_RecoverableSignatureNoneZ_clone_ptr(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR arg);
+ public static native long CResult_RecoverableSignatureNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig);
+ public static native long CResult_RecoverableSignatureNoneZ_clone(long orig);
+ // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_ok(struct LDKSchnorrSignature o);
+ public static native long CResult_SchnorrSignatureNoneZ_ok(byte[] o);
+ // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_err(void);
+ public static native long CResult_SchnorrSignatureNoneZ_err();
+ // bool CResult_SchnorrSignatureNoneZ_is_ok(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_SchnorrSignatureNoneZ_is_ok(long o);
+ // void CResult_SchnorrSignatureNoneZ_free(struct LDKCResult_SchnorrSignatureNoneZ _res);
+ public static native void CResult_SchnorrSignatureNoneZ_free(long _res);
+ // uint64_t CResult_SchnorrSignatureNoneZ_clone_ptr(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR arg);
+ public static native long CResult_SchnorrSignatureNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_clone(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR orig);
+ public static native long CResult_SchnorrSignatureNoneZ_clone(long orig);
+ // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(struct LDKWriteableEcdsaChannelSigner o);
+ public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(long o);
+ // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(long e);
+ // bool CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(long o);
+ // void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ _res);
+ public static native void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(long _res);
+ // uint64_t CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_ok(struct LDKCVec_u8Z o);
+ public static native long CResult_CVec_u8ZNoneZ_ok(byte[] o);
+ // struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_err(void);
+ public static native long CResult_CVec_u8ZNoneZ_err();
+ // bool CResult_CVec_u8ZNoneZ_is_ok(const struct LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_CVec_u8ZNoneZ_is_ok(long o);
+ // void CResult_CVec_u8ZNoneZ_free(struct LDKCResult_CVec_u8ZNoneZ _res);
+ public static native void CResult_CVec_u8ZNoneZ_free(long _res);
+ // uint64_t CResult_CVec_u8ZNoneZ_clone_ptr(LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR arg);
+ public static native long CResult_CVec_u8ZNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_CVec_u8ZNoneZ CResult_CVec_u8ZNoneZ_clone(const struct LDKCResult_CVec_u8ZNoneZ *NONNULL_PTR orig);
+ public static native long CResult_CVec_u8ZNoneZ_clone(long orig);
+ // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_ok(struct LDKShutdownScript o);
+ public static native long CResult_ShutdownScriptNoneZ_ok(long o);
+ // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_err(void);
+ public static native long CResult_ShutdownScriptNoneZ_err();
+ // bool CResult_ShutdownScriptNoneZ_is_ok(const struct LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_ShutdownScriptNoneZ_is_ok(long o);
+ // void CResult_ShutdownScriptNoneZ_free(struct LDKCResult_ShutdownScriptNoneZ _res);
+ public static native void CResult_ShutdownScriptNoneZ_free(long _res);
+ // uint64_t CResult_ShutdownScriptNoneZ_clone_ptr(LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR arg);
+ public static native long CResult_ShutdownScriptNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_ShutdownScriptNoneZ CResult_ShutdownScriptNoneZ_clone(const struct LDKCResult_ShutdownScriptNoneZ *NONNULL_PTR orig);
+ public static native long CResult_ShutdownScriptNoneZ_clone(long orig);
+ // struct LDKCOption_u16Z COption_u16Z_some(uint16_t o);
+ public static native long COption_u16Z_some(short o);
+ // struct LDKCOption_u16Z COption_u16Z_none(void);
+ public static native long COption_u16Z_none();
+ // void COption_u16Z_free(struct LDKCOption_u16Z _res);
+ public static native void COption_u16Z_free(long _res);
+ // uint64_t COption_u16Z_clone_ptr(LDKCOption_u16Z *NONNULL_PTR arg);
+ public static native long COption_u16Z_clone_ptr(long arg);
+ // struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig);
+ public static native long COption_u16Z_clone(long orig);
+ // struct LDKCOption_boolZ COption_boolZ_some(bool o);
+ public static native long COption_boolZ_some(boolean o);
+ // struct LDKCOption_boolZ COption_boolZ_none(void);
+ public static native long COption_boolZ_none();
+ // void COption_boolZ_free(struct LDKCOption_boolZ _res);
+ public static native void COption_boolZ_free(long _res);
+ // uint64_t COption_boolZ_clone_ptr(LDKCOption_boolZ *NONNULL_PTR arg);
+ public static native long COption_boolZ_clone_ptr(long arg);
+ // struct LDKCOption_boolZ COption_boolZ_clone(const struct LDKCOption_boolZ *NONNULL_PTR orig);
+ public static native long COption_boolZ_clone(long orig);
+ // void CVec_CVec_u8ZZ_free(struct LDKCVec_CVec_u8ZZ _res);
+ public static native void CVec_CVec_u8ZZ_free(byte[][] _res);
+ // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_ok(struct LDKCVec_CVec_u8ZZ o);
+ public static native long CResult_CVec_CVec_u8ZZNoneZ_ok(byte[][] o);
+ // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_err(void);
+ public static native long CResult_CVec_CVec_u8ZZNoneZ_err();
+ // bool CResult_CVec_CVec_u8ZZNoneZ_is_ok(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_CVec_CVec_u8ZZNoneZ_is_ok(long o);
+ // void CResult_CVec_CVec_u8ZZNoneZ_free(struct LDKCResult_CVec_CVec_u8ZZNoneZ _res);
+ public static native void CResult_CVec_CVec_u8ZZNoneZ_free(long _res);
+ // uint64_t CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR arg);
+ public static native long CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_clone(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR orig);
+ public static native long CResult_CVec_CVec_u8ZZNoneZ_clone(long orig);
+ // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
+ public static native long CResult_InMemorySignerDecodeErrorZ_ok(long o);
+ // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_InMemorySignerDecodeErrorZ_err(long e);
+ // bool CResult_InMemorySignerDecodeErrorZ_is_ok(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_InMemorySignerDecodeErrorZ_is_ok(long o);
+ // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
+ public static native void CResult_InMemorySignerDecodeErrorZ_free(long _res);
+ // uint64_t CResult_InMemorySignerDecodeErrorZ_clone_ptr(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_InMemorySignerDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_InMemorySignerDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
+ public static native long CResult_TransactionNoneZ_ok(byte[] o);
+ // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
+ public static native long CResult_TransactionNoneZ_err();
+ // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_TransactionNoneZ_is_ok(long o);
+ // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
+ public static native void CResult_TransactionNoneZ_free(long _res);
+ // uint64_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg);
+ public static native long CResult_TransactionNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig);
+ public static native long CResult_TransactionNoneZ_clone(long orig);
+ // struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_some(struct LDKWriteableScore o);
+ public static native long COption_WriteableScoreZ_some(long o);
+ // struct LDKCOption_WriteableScoreZ COption_WriteableScoreZ_none(void);
+ public static native long COption_WriteableScoreZ_none();
+ // void COption_WriteableScoreZ_free(struct LDKCOption_WriteableScoreZ _res);
+ public static native void COption_WriteableScoreZ_free(long _res);
+ // struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_ok(void);
+ public static native long CResult_NoneIOErrorZ_ok();
+ // struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_err(enum LDKIOError e);
+ public static native long CResult_NoneIOErrorZ_err(IOError e);
+ // bool CResult_NoneIOErrorZ_is_ok(const struct LDKCResult_NoneIOErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_NoneIOErrorZ_is_ok(long o);
+ // void CResult_NoneIOErrorZ_free(struct LDKCResult_NoneIOErrorZ _res);
+ public static native void CResult_NoneIOErrorZ_free(long _res);
+ // uint64_t CResult_NoneIOErrorZ_clone_ptr(LDKCResult_NoneIOErrorZ *NONNULL_PTR arg);
+ public static native long CResult_NoneIOErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_NoneIOErrorZ CResult_NoneIOErrorZ_clone(const struct LDKCResult_NoneIOErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NoneIOErrorZ_clone(long orig);
+ // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
+ public static native void CVec_ChannelDetailsZ_free(long[] _res);
+ // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
+ public static native long CResult_RouteLightningErrorZ_ok(long o);
+ // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
+ public static native long CResult_RouteLightningErrorZ_err(long e);
+ // bool CResult_RouteLightningErrorZ_is_ok(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_RouteLightningErrorZ_is_ok(long o);
+ // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
+ public static native void CResult_RouteLightningErrorZ_free(long _res);
+ // uint64_t CResult_RouteLightningErrorZ_clone_ptr(LDKCResult_RouteLightningErrorZ *NONNULL_PTR arg);
+ public static native long CResult_RouteLightningErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
+ public static native long CResult_RouteLightningErrorZ_clone(long orig);
+ // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_ok(struct LDKInFlightHtlcs o);
+ public static native long CResult_InFlightHtlcsDecodeErrorZ_ok(long o);
+ // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_InFlightHtlcsDecodeErrorZ_err(long e);
+ // bool CResult_InFlightHtlcsDecodeErrorZ_is_ok(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_InFlightHtlcsDecodeErrorZ_is_ok(long o);
+ // void CResult_InFlightHtlcsDecodeErrorZ_free(struct LDKCResult_InFlightHtlcsDecodeErrorZ _res);
+ public static native void CResult_InFlightHtlcsDecodeErrorZ_free(long _res);
+ // uint64_t CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_clone(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_InFlightHtlcsDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_ok(struct LDKRouteHop o);
+ public static native long CResult_RouteHopDecodeErrorZ_ok(long o);
+ // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_RouteHopDecodeErrorZ_err(long e);
+ // bool CResult_RouteHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_RouteHopDecodeErrorZ_is_ok(long o);
+ // void CResult_RouteHopDecodeErrorZ_free(struct LDKCResult_RouteHopDecodeErrorZ _res);
+ public static native void CResult_RouteHopDecodeErrorZ_free(long _res);
+ // uint64_t CResult_RouteHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_RouteHopDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_clone(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_RouteHopDecodeErrorZ_clone(long orig);
+ // void CVec_BlindedHopZ_free(struct LDKCVec_BlindedHopZ _res);
+ public static native void CVec_BlindedHopZ_free(long[] _res);
+ // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_ok(struct LDKBlindedTail o);
+ public static native long CResult_BlindedTailDecodeErrorZ_ok(long o);
+ // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_BlindedTailDecodeErrorZ_err(long e);
+ // bool CResult_BlindedTailDecodeErrorZ_is_ok(const struct LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_BlindedTailDecodeErrorZ_is_ok(long o);
+ // void CResult_BlindedTailDecodeErrorZ_free(struct LDKCResult_BlindedTailDecodeErrorZ _res);
+ public static native void CResult_BlindedTailDecodeErrorZ_free(long _res);
+ // uint64_t CResult_BlindedTailDecodeErrorZ_clone_ptr(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_BlindedTailDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_clone(const struct LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_BlindedTailDecodeErrorZ_clone(long orig);
+ // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
+ public static native void CVec_RouteHopZ_free(long[] _res);
+ // void CVec_PathZ_free(struct LDKCVec_PathZ _res);
+ public static native void CVec_PathZ_free(long[] _res);
+ // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
+ public static native long CResult_RouteDecodeErrorZ_ok(long o);
+ // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_RouteDecodeErrorZ_err(long e);
+ // bool CResult_RouteDecodeErrorZ_is_ok(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_RouteDecodeErrorZ_is_ok(long o);
+ // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
+ public static native void CResult_RouteDecodeErrorZ_free(long _res);
+ // uint64_t CResult_RouteDecodeErrorZ_clone_ptr(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_RouteDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_RouteDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_ok(struct LDKRouteParameters o);
+ public static native long CResult_RouteParametersDecodeErrorZ_ok(long o);
+ // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_RouteParametersDecodeErrorZ_err(long e);
+ // bool CResult_RouteParametersDecodeErrorZ_is_ok(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_RouteParametersDecodeErrorZ_is_ok(long o);
+ // void CResult_RouteParametersDecodeErrorZ_free(struct LDKCResult_RouteParametersDecodeErrorZ _res);
+ public static native void CResult_RouteParametersDecodeErrorZ_free(long _res);
+ // uint64_t CResult_RouteParametersDecodeErrorZ_clone_ptr(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_RouteParametersDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_clone(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_RouteParametersDecodeErrorZ_clone(long orig);
+ // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
+ public static native void CVec_u64Z_free(long[] _res);
+ // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_ok(struct LDKPaymentParameters o);
+ public static native long CResult_PaymentParametersDecodeErrorZ_ok(long o);
+ // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_PaymentParametersDecodeErrorZ_err(long e);
+ // bool CResult_PaymentParametersDecodeErrorZ_is_ok(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_PaymentParametersDecodeErrorZ_is_ok(long o);
+ // void CResult_PaymentParametersDecodeErrorZ_free(struct LDKCResult_PaymentParametersDecodeErrorZ _res);
+ public static native void CResult_PaymentParametersDecodeErrorZ_free(long _res);
+ // uint64_t CResult_PaymentParametersDecodeErrorZ_clone_ptr(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_PaymentParametersDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_clone(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_PaymentParametersDecodeErrorZ_clone(long orig);
+ // uint64_t C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR arg);
+ public static native long C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ C2Tuple_BlindedPayInfoBlindedPathZ_clone(const struct LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR orig);
+ public static native long C2Tuple_BlindedPayInfoBlindedPathZ_clone(long orig);
+ // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ C2Tuple_BlindedPayInfoBlindedPathZ_new(struct LDKBlindedPayInfo a, struct LDKBlindedPath b);
+ public static native long C2Tuple_BlindedPayInfoBlindedPathZ_new(long a, long b);
+ // void C2Tuple_BlindedPayInfoBlindedPathZ_free(struct LDKC2Tuple_BlindedPayInfoBlindedPathZ _res);
+ public static native void C2Tuple_BlindedPayInfoBlindedPathZ_free(long _res);
+ // void CVec_C2Tuple_BlindedPayInfoBlindedPathZZ_free(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ _res);
+ public static native void CVec_C2Tuple_BlindedPayInfoBlindedPathZZ_free(long[] _res);
+ // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
+ public static native void CVec_RouteHintZ_free(long[] _res);
+ // void CVec_RouteHintHopZ_free(struct LDKCVec_RouteHintHopZ _res);
+ public static native void CVec_RouteHintHopZ_free(long[] _res);
+ // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_ok(struct LDKRouteHint o);
+ public static native long CResult_RouteHintDecodeErrorZ_ok(long o);
+ // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_RouteHintDecodeErrorZ_err(long e);
+ // bool CResult_RouteHintDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_RouteHintDecodeErrorZ_is_ok(long o);
+ // void CResult_RouteHintDecodeErrorZ_free(struct LDKCResult_RouteHintDecodeErrorZ _res);
+ public static native void CResult_RouteHintDecodeErrorZ_free(long _res);
+ // uint64_t CResult_RouteHintDecodeErrorZ_clone_ptr(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_RouteHintDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_clone(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_RouteHintDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_ok(struct LDKRouteHintHop o);
+ public static native long CResult_RouteHintHopDecodeErrorZ_ok(long o);
+ // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_RouteHintHopDecodeErrorZ_err(long e);
+ // bool CResult_RouteHintHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_RouteHintHopDecodeErrorZ_is_ok(long o);
+ // void CResult_RouteHintHopDecodeErrorZ_free(struct LDKCResult_RouteHintHopDecodeErrorZ _res);
+ public static native void CResult_RouteHintHopDecodeErrorZ_free(long _res);
+ // uint64_t CResult_RouteHintHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_RouteHintHopDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_clone(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_RouteHintHopDecodeErrorZ_clone(long orig);
+ // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
+ public static native void CVec_PublicKeyZ_free(byte[][] _res);
+ // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_ok(struct LDKFixedPenaltyScorer o);
+ public static native long CResult_FixedPenaltyScorerDecodeErrorZ_ok(long o);
+ // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_FixedPenaltyScorerDecodeErrorZ_err(long e);
+ // bool CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(long o);
+ // void CResult_FixedPenaltyScorerDecodeErrorZ_free(struct LDKCResult_FixedPenaltyScorerDecodeErrorZ _res);
+ public static native void CResult_FixedPenaltyScorerDecodeErrorZ_free(long _res);
+ // uint64_t CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_clone(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_FixedPenaltyScorerDecodeErrorZ_clone(long orig);
+ // void CVec_NodeIdZ_free(struct LDKCVec_NodeIdZ _res);
+ public static native void CVec_NodeIdZ_free(long[] _res);
+ // uint64_t C2Tuple_u64u64Z_clone_ptr(LDKC2Tuple_u64u64Z *NONNULL_PTR arg);
+ public static native long C2Tuple_u64u64Z_clone_ptr(long arg);
+ // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_clone(const struct LDKC2Tuple_u64u64Z *NONNULL_PTR orig);
+ public static native long C2Tuple_u64u64Z_clone(long orig);
+ // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_new(uint64_t a, uint64_t b);
+ public static native long C2Tuple_u64u64Z_new(long a, long b);
+ // void C2Tuple_u64u64Z_free(struct LDKC2Tuple_u64u64Z _res);
+ public static native void C2Tuple_u64u64Z_free(long _res);
+ // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_some(struct LDKC2Tuple_u64u64Z o);
+ public static native long COption_C2Tuple_u64u64ZZ_some(long o);
+ // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_none(void);
+ public static native long COption_C2Tuple_u64u64ZZ_none();
+ // void COption_C2Tuple_u64u64ZZ_free(struct LDKCOption_C2Tuple_u64u64ZZ _res);
+ public static native void COption_C2Tuple_u64u64ZZ_free(long _res);
+ // uint64_t COption_C2Tuple_u64u64ZZ_clone_ptr(LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR arg);
+ public static native long COption_C2Tuple_u64u64ZZ_clone_ptr(long arg);
+ // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_clone(const struct LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR orig);
+ public static native long COption_C2Tuple_u64u64ZZ_clone(long orig);
+ // struct LDKC2Tuple_Z C2Tuple_Z_new(struct LDKThirtyTwoU16s a, struct LDKThirtyTwoU16s b);
+ public static native long C2Tuple_Z_new(short[] a, short[] b);
+ // void C2Tuple_Z_free(struct LDKC2Tuple_Z _res);
+ public static native void C2Tuple_Z_free(long _res);
+ // struct LDKC2Tuple__u1632_u1632Z C2Tuple__u1632_u1632Z_new(struct LDKThirtyTwoU16s a, struct LDKThirtyTwoU16s b);
+ public static native long C2Tuple__u1632_u1632Z_new(short[] a, short[] b);
+ // void C2Tuple__u1632_u1632Z_free(struct LDKC2Tuple__u1632_u1632Z _res);
+ public static native void C2Tuple__u1632_u1632Z_free(long _res);
+ // struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_some(struct LDKC2Tuple__u1632_u1632Z o);
+ public static native long COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_some(long o);
+ // struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_none(void);
+ public static native long COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_none();
+ // void COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_free(struct LDKCOption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ _res);
+ public static native void COption_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ_free(long _res);
+ // struct LDKCOption_f64Z COption_f64Z_some(double o);
+ public static native long COption_f64Z_some(double o);
+ // struct LDKCOption_f64Z COption_f64Z_none(void);
+ public static native long COption_f64Z_none();
+ // void COption_f64Z_free(struct LDKCOption_f64Z _res);
+ public static native void COption_f64Z_free(long _res);
+ // uint64_t COption_f64Z_clone_ptr(LDKCOption_f64Z *NONNULL_PTR arg);
+ public static native long COption_f64Z_clone_ptr(long arg);
+ // struct LDKCOption_f64Z COption_f64Z_clone(const struct LDKCOption_f64Z *NONNULL_PTR orig);
+ public static native long COption_f64Z_clone(long orig);
+ // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_ok(struct LDKProbabilisticScorer o);
+ public static native long CResult_ProbabilisticScorerDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ProbabilisticScorerDecodeErrorZ_err(long e);
+ // bool CResult_ProbabilisticScorerDecodeErrorZ_is_ok(const struct LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ProbabilisticScorerDecodeErrorZ_is_ok(long o);
+ // void CResult_ProbabilisticScorerDecodeErrorZ_free(struct LDKCResult_ProbabilisticScorerDecodeErrorZ _res);
+ public static native void CResult_ProbabilisticScorerDecodeErrorZ_free(long _res);
+ // uint64_t C2Tuple_usizeTransactionZ_clone_ptr(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR arg);
+ public static native long C2Tuple_usizeTransactionZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_clone(const struct LDKC2Tuple_usizeTransactionZ *NONNULL_PTR orig);
+ public static native long C2Tuple_usizeTransactionZ_clone(long orig);
+ // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
+ public static native long C2Tuple_usizeTransactionZ_new(long a, byte[] b);
+ // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
+ public static native void C2Tuple_usizeTransactionZ_free(long _res);
+ // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
+ public static native void CVec_C2Tuple_usizeTransactionZZ_free(long[] _res);
+ // uint64_t C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ *NONNULL_PTR arg);
+ public static native long C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ *NONNULL_PTR orig);
+ public static native long C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_clone(long orig);
+ // struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_new(struct LDKThirtyTwoBytes a, struct LDKCOption_ThirtyTwoBytesZ b);
+ public static native long C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_new(byte[] a, long b);
+ // void C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ _res);
+ public static native void C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ_free(long _res);
+ // void CVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ _res);
+ public static native void CVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ_free(long[] _res);
+ // struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_ok(enum LDKChannelMonitorUpdateStatus o);
+ public static native long CResult_ChannelMonitorUpdateStatusNoneZ_ok(ChannelMonitorUpdateStatus o);
+ // struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_err(void);
+ public static native long CResult_ChannelMonitorUpdateStatusNoneZ_err();
+ // bool CResult_ChannelMonitorUpdateStatusNoneZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_ChannelMonitorUpdateStatusNoneZ_is_ok(long o);
+ // void CResult_ChannelMonitorUpdateStatusNoneZ_free(struct LDKCResult_ChannelMonitorUpdateStatusNoneZ _res);
+ public static native void CResult_ChannelMonitorUpdateStatusNoneZ_free(long _res);
+ // uint64_t CResult_ChannelMonitorUpdateStatusNoneZ_clone_ptr(LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR arg);
+ public static native long CResult_ChannelMonitorUpdateStatusNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_ChannelMonitorUpdateStatusNoneZ CResult_ChannelMonitorUpdateStatusNoneZ_clone(const struct LDKCResult_ChannelMonitorUpdateStatusNoneZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelMonitorUpdateStatusNoneZ_clone(long orig);
+ // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
+ public static native void CVec_MonitorEventZ_free(long[] _res);
+ // uint64_t C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR arg);
+ public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(long arg);
+ // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(const struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR orig);
+ public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(long orig);
+ // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorEventZ b, struct LDKPublicKey c);
+ public static native long C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(long a, long[] b, byte[] c);
+ // void C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ _res);
+ public static native void C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(long _res);
+ // void CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(struct LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ _res);
+ public static native void CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(long[] _res);
+ // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
+ public static native long CResult_InitFeaturesDecodeErrorZ_ok(long o);
+ // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_InitFeaturesDecodeErrorZ_err(long e);
+ // bool CResult_InitFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_InitFeaturesDecodeErrorZ_is_ok(long o);
+ // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
+ public static native void CResult_InitFeaturesDecodeErrorZ_free(long _res);
+ // uint64_t CResult_InitFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_InitFeaturesDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_clone(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_InitFeaturesDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
+ public static native long CResult_ChannelFeaturesDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelFeaturesDecodeErrorZ_err(long e);
+ // bool CResult_ChannelFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ChannelFeaturesDecodeErrorZ_is_ok(long o);
+ // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
+ public static native void CResult_ChannelFeaturesDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelFeaturesDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
+ public static native long CResult_NodeFeaturesDecodeErrorZ_ok(long o);
+ // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_NodeFeaturesDecodeErrorZ_err(long e);
+ // bool CResult_NodeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_NodeFeaturesDecodeErrorZ_is_ok(long o);
+ // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
+ public static native void CResult_NodeFeaturesDecodeErrorZ_free(long _res);
+ // uint64_t CResult_NodeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_NodeFeaturesDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_clone(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NodeFeaturesDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_ok(struct LDKBolt11InvoiceFeatures o);
+ public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_ok(long o);
+ // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_err(long e);
+ // bool CResult_Bolt11InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_Bolt11InvoiceFeaturesDecodeErrorZ_is_ok(long o);
+ // void CResult_Bolt11InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ _res);
+ public static native void CResult_Bolt11InvoiceFeaturesDecodeErrorZ_free(long _res);
+ // uint64_t CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_Bolt11InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_Bolt11InvoiceFeaturesDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_ok(struct LDKBolt12InvoiceFeatures o);
+ public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_ok(long o);
+ // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_err(long e);
+ // bool CResult_Bolt12InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_Bolt12InvoiceFeaturesDecodeErrorZ_is_ok(long o);
+ // void CResult_Bolt12InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ _res);
+ public static native void CResult_Bolt12InvoiceFeaturesDecodeErrorZ_free(long _res);
+ // uint64_t CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_Bolt12InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_Bolt12InvoiceFeaturesDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_ok(struct LDKBlindedHopFeatures o);
+ public static native long CResult_BlindedHopFeaturesDecodeErrorZ_ok(long o);
+ // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_BlindedHopFeaturesDecodeErrorZ_err(long e);
+ // bool CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(long o);
+ // void CResult_BlindedHopFeaturesDecodeErrorZ_free(struct LDKCResult_BlindedHopFeaturesDecodeErrorZ _res);
+ public static native void CResult_BlindedHopFeaturesDecodeErrorZ_free(long _res);
+ // uint64_t CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_clone(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_BlindedHopFeaturesDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_ok(struct LDKChannelTypeFeatures o);
+ public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_err(long e);
+ // bool CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(long o);
+ // void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ _res);
+ public static native void CResult_ChannelTypeFeaturesDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelTypeFeaturesDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_ok(struct LDKOffer o);
+ public static native long CResult_OfferBolt12ParseErrorZ_ok(long o);
+ // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_err(struct LDKBolt12ParseError e);
+ public static native long CResult_OfferBolt12ParseErrorZ_err(long e);
+ // bool CResult_OfferBolt12ParseErrorZ_is_ok(const struct LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_OfferBolt12ParseErrorZ_is_ok(long o);
+ // void CResult_OfferBolt12ParseErrorZ_free(struct LDKCResult_OfferBolt12ParseErrorZ _res);
+ public static native void CResult_OfferBolt12ParseErrorZ_free(long _res);
+ // uint64_t CResult_OfferBolt12ParseErrorZ_clone_ptr(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR arg);
+ public static native long CResult_OfferBolt12ParseErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_clone(const struct LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR orig);
+ public static native long CResult_OfferBolt12ParseErrorZ_clone(long orig);
+ // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_ok(struct LDKPublicKey o);
+ public static native long CResult_PublicKeySecp256k1ErrorZ_ok(byte[] o);
+ // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e);
+ public static native long CResult_PublicKeySecp256k1ErrorZ_err(Secp256k1Error e);
+ // bool CResult_PublicKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_PublicKeySecp256k1ErrorZ_is_ok(long o);
+ // void CResult_PublicKeySecp256k1ErrorZ_free(struct LDKCResult_PublicKeySecp256k1ErrorZ _res);
+ public static native void CResult_PublicKeySecp256k1ErrorZ_free(long _res);
+ // uint64_t CResult_PublicKeySecp256k1ErrorZ_clone_ptr(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR arg);
+ public static native long CResult_PublicKeySecp256k1ErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_clone(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR orig);
+ public static native long CResult_PublicKeySecp256k1ErrorZ_clone(long orig);
+ // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o);
+ public static native long CResult_NodeIdDecodeErrorZ_ok(long o);
+ // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_NodeIdDecodeErrorZ_err(long e);
+ // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_NodeIdDecodeErrorZ_is_ok(long o);
+ // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res);
+ public static native void CResult_NodeIdDecodeErrorZ_free(long _res);
+ // uint64_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_NodeIdDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NodeIdDecodeErrorZ_clone(long orig);
+ // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_some(struct LDKNetworkUpdate o);
+ public static native long COption_NetworkUpdateZ_some(long o);
+ // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_none(void);
+ public static native long COption_NetworkUpdateZ_none();
+ // void COption_NetworkUpdateZ_free(struct LDKCOption_NetworkUpdateZ _res);
+ public static native void COption_NetworkUpdateZ_free(long _res);
+ // uint64_t COption_NetworkUpdateZ_clone_ptr(LDKCOption_NetworkUpdateZ *NONNULL_PTR arg);
+ public static native long COption_NetworkUpdateZ_clone_ptr(long arg);
+ // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_clone(const struct LDKCOption_NetworkUpdateZ *NONNULL_PTR orig);
+ public static native long COption_NetworkUpdateZ_clone(long orig);
+ // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_ok(struct LDKCOption_NetworkUpdateZ o);
+ public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_ok(long o);
+ // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_err(long e);
+ // bool CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(long o);
+ // void CResult_COption_NetworkUpdateZDecodeErrorZ_free(struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ _res);
+ public static native void CResult_COption_NetworkUpdateZDecodeErrorZ_free(long _res);
+ // uint64_t CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_clone(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_COption_NetworkUpdateZDecodeErrorZ_clone(long orig);
+ // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_some(struct LDKUtxoLookup o);
+ public static native long COption_UtxoLookupZ_some(long o);
+ // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_none(void);
+ public static native long COption_UtxoLookupZ_none();
+ // void COption_UtxoLookupZ_free(struct LDKCOption_UtxoLookupZ _res);
+ public static native void COption_UtxoLookupZ_free(long _res);
+ // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
+ public static native long CResult_NoneLightningErrorZ_ok();
+ // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
+ public static native long CResult_NoneLightningErrorZ_err(long e);
+ // bool CResult_NoneLightningErrorZ_is_ok(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_NoneLightningErrorZ_is_ok(long o);
+ // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
+ public static native void CResult_NoneLightningErrorZ_free(long _res);
+ // uint64_t CResult_NoneLightningErrorZ_clone_ptr(LDKCResult_NoneLightningErrorZ *NONNULL_PTR arg);
+ public static native long CResult_NoneLightningErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NoneLightningErrorZ_clone(long orig);
+ // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
+ public static native long CResult_boolLightningErrorZ_ok(boolean o);
+ // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
+ public static native long CResult_boolLightningErrorZ_err(long e);
+ // bool CResult_boolLightningErrorZ_is_ok(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_boolLightningErrorZ_is_ok(long o);
+ // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
+ public static native void CResult_boolLightningErrorZ_free(long _res);
+ // uint64_t CResult_boolLightningErrorZ_clone_ptr(LDKCResult_boolLightningErrorZ *NONNULL_PTR arg);
+ public static native long CResult_boolLightningErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
+ public static native long CResult_boolLightningErrorZ_clone(long orig);
+ // uint64_t C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR arg);
+ public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(long arg);
+ // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
+ public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(long orig);
+ // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
+ public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(long a, long b, long c);
+ // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
+ public static native void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(long _res);
+ // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ o);
+ public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(long o);
+ // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none(void);
+ public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none();
+ // void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
+ public static native void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(long _res);
+ // uint64_t COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR arg);
+ public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(long arg);
+ // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(const struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR orig);
+ public static native long COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(long orig);
+ // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
+ public static native void CVec_MessageSendEventZ_free(long[] _res);
+ // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_ok(struct LDKChannelUpdateInfo o);
+ public static native long CResult_ChannelUpdateInfoDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelUpdateInfoDecodeErrorZ_err(long e);
+ // bool CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(long o);
+ // void CResult_ChannelUpdateInfoDecodeErrorZ_free(struct LDKCResult_ChannelUpdateInfoDecodeErrorZ _res);
+ public static native void CResult_ChannelUpdateInfoDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelUpdateInfoDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
+ public static native long CResult_ChannelInfoDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelInfoDecodeErrorZ_err(long e);
+ // bool CResult_ChannelInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ChannelInfoDecodeErrorZ_is_ok(long o);
+ // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
+ public static native void CResult_ChannelInfoDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ChannelInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ChannelInfoDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelInfoDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
+ public static native long CResult_RoutingFeesDecodeErrorZ_ok(long o);
+ // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_RoutingFeesDecodeErrorZ_err(long e);
+ // bool CResult_RoutingFeesDecodeErrorZ_is_ok(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_RoutingFeesDecodeErrorZ_is_ok(long o);
+ // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
+ public static native void CResult_RoutingFeesDecodeErrorZ_free(long _res);
+ // uint64_t CResult_RoutingFeesDecodeErrorZ_clone_ptr(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_RoutingFeesDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_RoutingFeesDecodeErrorZ_clone(long orig);
+ // void CVec_SocketAddressZ_free(struct LDKCVec_SocketAddressZ _res);
+ public static native void CVec_SocketAddressZ_free(long[] _res);
+ // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
+ public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_ok(long o);
+ // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_err(long e);
+ // bool CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(long o);
+ // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
+ public static native void CResult_NodeAnnouncementInfoDecodeErrorZ_free(long _res);
+ // uint64_t CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_ok(struct LDKNodeAlias o);
+ public static native long CResult_NodeAliasDecodeErrorZ_ok(long o);
+ // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_NodeAliasDecodeErrorZ_err(long e);
+ // bool CResult_NodeAliasDecodeErrorZ_is_ok(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_NodeAliasDecodeErrorZ_is_ok(long o);
+ // void CResult_NodeAliasDecodeErrorZ_free(struct LDKCResult_NodeAliasDecodeErrorZ _res);
+ public static native void CResult_NodeAliasDecodeErrorZ_free(long _res);
+ // uint64_t CResult_NodeAliasDecodeErrorZ_clone_ptr(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_NodeAliasDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_clone(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NodeAliasDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
+ public static native long CResult_NodeInfoDecodeErrorZ_ok(long o);
+ // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_NodeInfoDecodeErrorZ_err(long e);
+ // bool CResult_NodeInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_NodeInfoDecodeErrorZ_is_ok(long o);
+ // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
+ public static native void CResult_NodeInfoDecodeErrorZ_free(long _res);
+ // uint64_t CResult_NodeInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_NodeInfoDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NodeInfoDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
+ public static native long CResult_NetworkGraphDecodeErrorZ_ok(long o);
+ // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_NetworkGraphDecodeErrorZ_err(long e);
+ // bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_NetworkGraphDecodeErrorZ_is_ok(long o);
+ // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
+ public static native void CResult_NetworkGraphDecodeErrorZ_free(long _res);
+ // struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_some(struct LDKCVec_SocketAddressZ o);
+ public static native long COption_CVec_SocketAddressZZ_some(long[] o);
+ // struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_none(void);
+ public static native long COption_CVec_SocketAddressZZ_none();
+ // void COption_CVec_SocketAddressZZ_free(struct LDKCOption_CVec_SocketAddressZZ _res);
+ public static native void COption_CVec_SocketAddressZZ_free(long _res);
+ // uint64_t COption_CVec_SocketAddressZZ_clone_ptr(LDKCOption_CVec_SocketAddressZZ *NONNULL_PTR arg);
+ public static native long COption_CVec_SocketAddressZZ_clone_ptr(long arg);
+ // struct LDKCOption_CVec_SocketAddressZZ COption_CVec_SocketAddressZZ_clone(const struct LDKCOption_CVec_SocketAddressZZ *NONNULL_PTR orig);
+ public static native long COption_CVec_SocketAddressZZ_clone(long orig);
+ // void CVec_HTLCOutputInCommitmentZ_free(struct LDKCVec_HTLCOutputInCommitmentZ _res);
+ public static native void CVec_HTLCOutputInCommitmentZ_free(long[] _res);
+ // void CVec_HTLCDescriptorZ_free(struct LDKCVec_HTLCDescriptorZ _res);
+ public static native void CVec_HTLCDescriptorZ_free(long[] _res);
+ // void CVec_UtxoZ_free(struct LDKCVec_UtxoZ _res);
+ public static native void CVec_UtxoZ_free(long[] _res);
+ // struct LDKCOption_TxOutZ COption_TxOutZ_some(struct LDKTxOut o);
+ public static native long COption_TxOutZ_some(long o);
+ // struct LDKCOption_TxOutZ COption_TxOutZ_none(void);
+ public static native long COption_TxOutZ_none();
+ // void COption_TxOutZ_free(struct LDKCOption_TxOutZ _res);
+ public static native void COption_TxOutZ_free(long _res);
+ // uint64_t COption_TxOutZ_clone_ptr(LDKCOption_TxOutZ *NONNULL_PTR arg);
+ public static native long COption_TxOutZ_clone_ptr(long arg);
+ // struct LDKCOption_TxOutZ COption_TxOutZ_clone(const struct LDKCOption_TxOutZ *NONNULL_PTR orig);
+ public static native long COption_TxOutZ_clone(long orig);
+ // void CVec_InputZ_free(struct LDKCVec_InputZ _res);
+ public static native void CVec_InputZ_free(long[] _res);
+ // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_ok(struct LDKCoinSelection o);
+ public static native long CResult_CoinSelectionNoneZ_ok(long o);
+ // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_err(void);
+ public static native long CResult_CoinSelectionNoneZ_err();
+ // bool CResult_CoinSelectionNoneZ_is_ok(const struct LDKCResult_CoinSelectionNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_CoinSelectionNoneZ_is_ok(long o);
+ // void CResult_CoinSelectionNoneZ_free(struct LDKCResult_CoinSelectionNoneZ _res);
+ public static native void CResult_CoinSelectionNoneZ_free(long _res);
+ // uint64_t CResult_CoinSelectionNoneZ_clone_ptr(LDKCResult_CoinSelectionNoneZ *NONNULL_PTR arg);
+ public static native long CResult_CoinSelectionNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_CoinSelectionNoneZ CResult_CoinSelectionNoneZ_clone(const struct LDKCResult_CoinSelectionNoneZ *NONNULL_PTR orig);
+ public static native long CResult_CoinSelectionNoneZ_clone(long orig);
+ // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_ok(struct LDKCVec_UtxoZ o);
+ public static native long CResult_CVec_UtxoZNoneZ_ok(long[] o);
+ // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_err(void);
+ public static native long CResult_CVec_UtxoZNoneZ_err();
+ // bool CResult_CVec_UtxoZNoneZ_is_ok(const struct LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_CVec_UtxoZNoneZ_is_ok(long o);
+ // void CResult_CVec_UtxoZNoneZ_free(struct LDKCResult_CVec_UtxoZNoneZ _res);
+ public static native void CResult_CVec_UtxoZNoneZ_free(long _res);
+ // uint64_t CResult_CVec_UtxoZNoneZ_clone_ptr(LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR arg);
+ public static native long CResult_CVec_UtxoZNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_CVec_UtxoZNoneZ CResult_CVec_UtxoZNoneZ_clone(const struct LDKCResult_CVec_UtxoZNoneZ *NONNULL_PTR orig);
+ public static native long CResult_CVec_UtxoZNoneZ_clone(long orig);
+ // uint64_t C2Tuple_u64u16Z_clone_ptr(LDKC2Tuple_u64u16Z *NONNULL_PTR arg);
+ public static native long C2Tuple_u64u16Z_clone_ptr(long arg);
+ // struct LDKC2Tuple_u64u16Z C2Tuple_u64u16Z_clone(const struct LDKC2Tuple_u64u16Z *NONNULL_PTR orig);
+ public static native long C2Tuple_u64u16Z_clone(long orig);
+ // struct LDKC2Tuple_u64u16Z C2Tuple_u64u16Z_new(uint64_t a, uint16_t b);
+ public static native long C2Tuple_u64u16Z_new(long a, short b);
+ // void C2Tuple_u64u16Z_free(struct LDKC2Tuple_u64u16Z _res);
+ public static native void C2Tuple_u64u16Z_free(long _res);
+ // struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_some(struct LDKC2Tuple_u64u16Z o);
+ public static native long COption_C2Tuple_u64u16ZZ_some(long o);
+ // struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_none(void);
+ public static native long COption_C2Tuple_u64u16ZZ_none();
+ // void COption_C2Tuple_u64u16ZZ_free(struct LDKCOption_C2Tuple_u64u16ZZ _res);
+ public static native void COption_C2Tuple_u64u16ZZ_free(long _res);
+ // uint64_t COption_C2Tuple_u64u16ZZ_clone_ptr(LDKCOption_C2Tuple_u64u16ZZ *NONNULL_PTR arg);
+ public static native long COption_C2Tuple_u64u16ZZ_clone_ptr(long arg);
+ // struct LDKCOption_C2Tuple_u64u16ZZ COption_C2Tuple_u64u16ZZ_clone(const struct LDKCOption_C2Tuple_u64u16ZZ *NONNULL_PTR orig);
+ public static native long COption_C2Tuple_u64u16ZZ_clone(long orig);
+ // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_some(enum LDKChannelShutdownState o);
+ public static native long COption_ChannelShutdownStateZ_some(ChannelShutdownState o);
+ // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_none(void);
+ public static native long COption_ChannelShutdownStateZ_none();
+ // void COption_ChannelShutdownStateZ_free(struct LDKCOption_ChannelShutdownStateZ _res);
+ public static native void COption_ChannelShutdownStateZ_free(long _res);
+ // uint64_t COption_ChannelShutdownStateZ_clone_ptr(LDKCOption_ChannelShutdownStateZ *NONNULL_PTR arg);
+ public static native long COption_ChannelShutdownStateZ_clone_ptr(long arg);
+ // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_clone(const struct LDKCOption_ChannelShutdownStateZ *NONNULL_PTR orig);
+ public static native long COption_ChannelShutdownStateZ_clone(long orig);
+ // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
+ public static native long CResult_ThirtyTwoBytesAPIErrorZ_ok(byte[] o);
+ // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_err(struct LDKAPIError e);
+ public static native long CResult_ThirtyTwoBytesAPIErrorZ_err(long e);
+ // bool CResult_ThirtyTwoBytesAPIErrorZ_is_ok(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ThirtyTwoBytesAPIErrorZ_is_ok(long o);
+ // void CResult_ThirtyTwoBytesAPIErrorZ_free(struct LDKCResult_ThirtyTwoBytesAPIErrorZ _res);
+ public static native void CResult_ThirtyTwoBytesAPIErrorZ_free(long _res);
+ // uint64_t CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_clone(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ThirtyTwoBytesAPIErrorZ_clone(long orig);
+ // void CVec_RecentPaymentDetailsZ_free(struct LDKCVec_RecentPaymentDetailsZ _res);
+ public static native void CVec_RecentPaymentDetailsZ_free(long[] _res);
+ // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
+ public static native long CResult_NonePaymentSendFailureZ_ok();
+ // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
+ public static native long CResult_NonePaymentSendFailureZ_err(long e);
+ // bool CResult_NonePaymentSendFailureZ_is_ok(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR o);
+ public static native boolean CResult_NonePaymentSendFailureZ_is_ok(long o);
+ // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
+ public static native void CResult_NonePaymentSendFailureZ_free(long _res);
+ // uint64_t CResult_NonePaymentSendFailureZ_clone_ptr(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR arg);
+ public static native long CResult_NonePaymentSendFailureZ_clone_ptr(long arg);
+ // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig);
+ public static native long CResult_NonePaymentSendFailureZ_clone(long orig);
+ // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_ok(void);
+ public static native long CResult_NoneRetryableSendFailureZ_ok();
+ // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_err(enum LDKRetryableSendFailure e);
+ public static native long CResult_NoneRetryableSendFailureZ_err(RetryableSendFailure e);
+ // bool CResult_NoneRetryableSendFailureZ_is_ok(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR o);
+ public static native boolean CResult_NoneRetryableSendFailureZ_is_ok(long o);
+ // void CResult_NoneRetryableSendFailureZ_free(struct LDKCResult_NoneRetryableSendFailureZ _res);
+ public static native void CResult_NoneRetryableSendFailureZ_free(long _res);
+ // uint64_t CResult_NoneRetryableSendFailureZ_clone_ptr(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR arg);
+ public static native long CResult_NoneRetryableSendFailureZ_clone_ptr(long arg);
+ // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_clone(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR orig);
+ public static native long CResult_NoneRetryableSendFailureZ_clone(long orig);
+ // struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o);
+ public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_ok(byte[] o);
+ // struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
+ public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_err(long e);
+ // bool CResult_ThirtyTwoBytesPaymentSendFailureZ_is_ok(const struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR o);
+ public static native boolean CResult_ThirtyTwoBytesPaymentSendFailureZ_is_ok(long o);
+ // void CResult_ThirtyTwoBytesPaymentSendFailureZ_free(struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ _res);
+ public static native void CResult_ThirtyTwoBytesPaymentSendFailureZ_free(long _res);
+ // uint64_t CResult_ThirtyTwoBytesPaymentSendFailureZ_clone_ptr(LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR arg);
+ public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_clone_ptr(long arg);
+ // struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ CResult_ThirtyTwoBytesPaymentSendFailureZ_clone(const struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ *NONNULL_PTR orig);
+ public static native long CResult_ThirtyTwoBytesPaymentSendFailureZ_clone(long orig);
+ // struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_ok(struct LDKThirtyTwoBytes o);
+ public static native long CResult_ThirtyTwoBytesRetryableSendFailureZ_ok(byte[] o);
+ // struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_err(enum LDKRetryableSendFailure e);
+ public static native long CResult_ThirtyTwoBytesRetryableSendFailureZ_err(RetryableSendFailure e);
+ // bool CResult_ThirtyTwoBytesRetryableSendFailureZ_is_ok(const struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR o);
+ public static native boolean CResult_ThirtyTwoBytesRetryableSendFailureZ_is_ok(long o);
+ // void CResult_ThirtyTwoBytesRetryableSendFailureZ_free(struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ _res);
+ public static native void CResult_ThirtyTwoBytesRetryableSendFailureZ_free(long _res);
+ // uint64_t CResult_ThirtyTwoBytesRetryableSendFailureZ_clone_ptr(LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR arg);
+ public static native long CResult_ThirtyTwoBytesRetryableSendFailureZ_clone_ptr(long arg);
+ // struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ CResult_ThirtyTwoBytesRetryableSendFailureZ_clone(const struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ *NONNULL_PTR orig);
+ public static native long CResult_ThirtyTwoBytesRetryableSendFailureZ_clone(long orig);
+ // uint64_t C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR arg);
+ public static native long C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ *NONNULL_PTR orig);
+ public static native long C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_clone(long orig);
+ // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
+ public static native long C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_new(byte[] a, byte[] b);
+ // void C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_free(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ _res);
+ public static native void C2Tuple_ThirtyTwoBytesThirtyTwoBytesZ_free(long _res);
+ // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_ok(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ o);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_ok(long o);
+ // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_err(long e);
+ // bool CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR o);
+ public static native boolean CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_is_ok(long o);
+ // void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ _res);
+ public static native void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_free(long _res);
+ // uint64_t CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR arg);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone_ptr(long arg);
+ // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ *NONNULL_PTR orig);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ_clone(long orig);
+ // void CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ _res);
+ public static native void CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ_free(long[] _res);
+ // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ o);
+ public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_ok(long[] o);
+ // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_err(struct LDKProbeSendFailure e);
+ public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_err(long e);
+ // bool CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR o);
+ public static native boolean CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_is_ok(long o);
+ // void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ _res);
+ public static native void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_free(long _res);
+ // uint64_t CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone_ptr(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR arg);
+ public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone_ptr(long arg);
+ // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ *NONNULL_PTR orig);
+ public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone(long orig);
+ // uint64_t C2Tuple_ThirtyTwoBytesPublicKeyZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR arg);
+ public static native long C2Tuple_ThirtyTwoBytesPublicKeyZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ C2Tuple_ThirtyTwoBytesPublicKeyZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR orig);
+ public static native long C2Tuple_ThirtyTwoBytesPublicKeyZ_clone(long orig);
+ // struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ C2Tuple_ThirtyTwoBytesPublicKeyZ_new(struct LDKThirtyTwoBytes a, struct LDKPublicKey b);
+ public static native long C2Tuple_ThirtyTwoBytesPublicKeyZ_new(byte[] a, byte[] b);
+ // void C2Tuple_ThirtyTwoBytesPublicKeyZ_free(struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ _res);
+ public static native void C2Tuple_ThirtyTwoBytesPublicKeyZ_free(long _res);
+ // void CVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ _res);
+ public static native void CVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ_free(long[] _res);
+ // struct LDKCOption_StrZ COption_StrZ_some(struct LDKStr o);
+ public static native long COption_StrZ_some(String o);
+ // struct LDKCOption_StrZ COption_StrZ_none(void);
+ public static native long COption_StrZ_none();
+ // void COption_StrZ_free(struct LDKCOption_StrZ _res);
+ public static native void COption_StrZ_free(long _res);
+ // uint64_t COption_StrZ_clone_ptr(LDKCOption_StrZ *NONNULL_PTR arg);
+ public static native long COption_StrZ_clone_ptr(long arg);
+ // struct LDKCOption_StrZ COption_StrZ_clone(const struct LDKCOption_StrZ *NONNULL_PTR orig);
+ public static native long COption_StrZ_clone(long orig);
+ // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_ok(void);
+ public static native long CResult_NoneBolt12SemanticErrorZ_ok();
+ // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e);
+ public static native long CResult_NoneBolt12SemanticErrorZ_err(Bolt12SemanticError e);
+ // bool CResult_NoneBolt12SemanticErrorZ_is_ok(const struct LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_NoneBolt12SemanticErrorZ_is_ok(long o);
+ // void CResult_NoneBolt12SemanticErrorZ_free(struct LDKCResult_NoneBolt12SemanticErrorZ _res);
+ public static native void CResult_NoneBolt12SemanticErrorZ_free(long _res);
+ // uint64_t CResult_NoneBolt12SemanticErrorZ_clone_ptr(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR arg);
+ public static native long CResult_NoneBolt12SemanticErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_clone(const struct LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NoneBolt12SemanticErrorZ_clone(long orig);
+ // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_ok(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ o);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_ok(long o);
+ // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_err(void);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_err();
+ // bool CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_is_ok(long o);
+ // void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ _res);
+ public static native void CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_free(long _res);
+ // uint64_t CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR arg);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR orig);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone(long orig);
+ // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_some(struct LDKOffersMessage o);
+ public static native long COption_OffersMessageZ_some(long o);
+ // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_none(void);
+ public static native long COption_OffersMessageZ_none();
+ // void COption_OffersMessageZ_free(struct LDKCOption_OffersMessageZ _res);
+ public static native void COption_OffersMessageZ_free(long _res);
+ // uint64_t COption_OffersMessageZ_clone_ptr(LDKCOption_OffersMessageZ *NONNULL_PTR arg);
+ public static native long COption_OffersMessageZ_clone_ptr(long arg);
+ // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_clone(const struct LDKCOption_OffersMessageZ *NONNULL_PTR orig);
+ public static native long COption_OffersMessageZ_clone(long orig);
+ // uint64_t C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR arg);
+ public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(long arg);
+ // struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ C3Tuple_OffersMessageDestinationBlindedPathZ_clone(const struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR orig);
+ public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_clone(long orig);
+ // struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ C3Tuple_OffersMessageDestinationBlindedPathZ_new(struct LDKOffersMessage a, struct LDKDestination b, struct LDKBlindedPath c);
+ public static native long C3Tuple_OffersMessageDestinationBlindedPathZ_new(long a, long b, long c);
+ // void C3Tuple_OffersMessageDestinationBlindedPathZ_free(struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ _res);
+ public static native void C3Tuple_OffersMessageDestinationBlindedPathZ_free(long _res);
+ // void CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free(struct LDKCVec_C3Tuple_OffersMessageDestinationBlindedPathZZ _res);
+ public static native void CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free(long[] _res);
+ // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o);
+ public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(long o);
+ // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_err(long e);
+ // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(long o);
+ // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res);
+ public static native void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(long _res);
+ // uint64_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o);
+ public static native long CResult_ChannelCounterpartyDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelCounterpartyDecodeErrorZ_err(long e);
+ // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ChannelCounterpartyDecodeErrorZ_is_ok(long o);
+ // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res);
+ public static native void CResult_ChannelCounterpartyDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelCounterpartyDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o);
+ public static native long CResult_ChannelDetailsDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelDetailsDecodeErrorZ_err(long e);
+ // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ChannelDetailsDecodeErrorZ_is_ok(long o);
+ // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res);
+ public static native void CResult_ChannelDetailsDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ChannelDetailsDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelDetailsDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_ok(struct LDKPhantomRouteHints o);
+ public static native long CResult_PhantomRouteHintsDecodeErrorZ_ok(long o);
+ // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_PhantomRouteHintsDecodeErrorZ_err(long e);
+ // bool CResult_PhantomRouteHintsDecodeErrorZ_is_ok(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_PhantomRouteHintsDecodeErrorZ_is_ok(long o);
+ // void CResult_PhantomRouteHintsDecodeErrorZ_free(struct LDKCResult_PhantomRouteHintsDecodeErrorZ _res);
+ public static native void CResult_PhantomRouteHintsDecodeErrorZ_free(long _res);
+ // uint64_t CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_clone(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_PhantomRouteHintsDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_ok(enum LDKChannelShutdownState o);
+ public static native long CResult_ChannelShutdownStateDecodeErrorZ_ok(ChannelShutdownState o);
+ // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelShutdownStateDecodeErrorZ_err(long e);
+ // bool CResult_ChannelShutdownStateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ChannelShutdownStateDecodeErrorZ_is_ok(long o);
+ // void CResult_ChannelShutdownStateDecodeErrorZ_free(struct LDKCResult_ChannelShutdownStateDecodeErrorZ _res);
+ public static native void CResult_ChannelShutdownStateDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_clone(const struct LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelShutdownStateDecodeErrorZ_clone(long orig);
+ // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
+ public static native void CVec_ChannelMonitorZ_free(long[] _res);
+ // struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ C2Tuple_ThirtyTwoBytesChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
+ public static native long C2Tuple_ThirtyTwoBytesChannelManagerZ_new(byte[] a, long b);
+ // void C2Tuple_ThirtyTwoBytesChannelManagerZ_free(struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ _res);
+ public static native void C2Tuple_ThirtyTwoBytesChannelManagerZ_free(long _res);
+ // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelManagerZ o);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_ok(long o);
+ // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_err(long e);
+ // bool CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_is_ok(long o);
+ // void CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ _res);
+ public static native void CResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ_free(long _res);
+ // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_ok(struct LDKMaxDustHTLCExposure o);
+ public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_ok(long o);
+ // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_err(long e);
+ // bool CResult_MaxDustHTLCExposureDecodeErrorZ_is_ok(const struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_MaxDustHTLCExposureDecodeErrorZ_is_ok(long o);
+ // void CResult_MaxDustHTLCExposureDecodeErrorZ_free(struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ _res);
+ public static native void CResult_MaxDustHTLCExposureDecodeErrorZ_free(long _res);
+ // uint64_t CResult_MaxDustHTLCExposureDecodeErrorZ_clone_ptr(LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ CResult_MaxDustHTLCExposureDecodeErrorZ_clone(const struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_MaxDustHTLCExposureDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
+ public static native long CResult_ChannelConfigDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelConfigDecodeErrorZ_err(long e);
+ // bool CResult_ChannelConfigDecodeErrorZ_is_ok(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ChannelConfigDecodeErrorZ_is_ok(long o);
+ // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
+ public static native void CResult_ChannelConfigDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ChannelConfigDecodeErrorZ_clone_ptr(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ChannelConfigDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelConfigDecodeErrorZ_clone(long orig);
+ // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_some(struct LDKMaxDustHTLCExposure o);
+ public static native long COption_MaxDustHTLCExposureZ_some(long o);
+ // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_none(void);
+ public static native long COption_MaxDustHTLCExposureZ_none();
+ // void COption_MaxDustHTLCExposureZ_free(struct LDKCOption_MaxDustHTLCExposureZ _res);
+ public static native void COption_MaxDustHTLCExposureZ_free(long _res);
+ // uint64_t COption_MaxDustHTLCExposureZ_clone_ptr(LDKCOption_MaxDustHTLCExposureZ *NONNULL_PTR arg);
+ public static native long COption_MaxDustHTLCExposureZ_clone_ptr(long arg);
+ // struct LDKCOption_MaxDustHTLCExposureZ COption_MaxDustHTLCExposureZ_clone(const struct LDKCOption_MaxDustHTLCExposureZ *NONNULL_PTR orig);
+ public static native long COption_MaxDustHTLCExposureZ_clone(long orig);
+ // struct LDKCOption_APIErrorZ COption_APIErrorZ_some(struct LDKAPIError o);
+ public static native long COption_APIErrorZ_some(long o);
+ // struct LDKCOption_APIErrorZ COption_APIErrorZ_none(void);
+ public static native long COption_APIErrorZ_none();
+ // void COption_APIErrorZ_free(struct LDKCOption_APIErrorZ _res);
+ public static native void COption_APIErrorZ_free(long _res);
+ // uint64_t COption_APIErrorZ_clone_ptr(LDKCOption_APIErrorZ *NONNULL_PTR arg);
+ public static native long COption_APIErrorZ_clone_ptr(long arg);
+ // struct LDKCOption_APIErrorZ COption_APIErrorZ_clone(const struct LDKCOption_APIErrorZ *NONNULL_PTR orig);
+ public static native long COption_APIErrorZ_clone(long orig);
+ // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_ok(struct LDKCOption_APIErrorZ o);
+ public static native long CResult_COption_APIErrorZDecodeErrorZ_ok(long o);
+ // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_COption_APIErrorZDecodeErrorZ_err(long e);
+ // bool CResult_COption_APIErrorZDecodeErrorZ_is_ok(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_COption_APIErrorZDecodeErrorZ_is_ok(long o);
+ // void CResult_COption_APIErrorZDecodeErrorZ_free(struct LDKCResult_COption_APIErrorZDecodeErrorZ _res);
+ public static native void CResult_COption_APIErrorZDecodeErrorZ_free(long _res);
+ // uint64_t CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_clone(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_COption_APIErrorZDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
+ public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_err(long e);
+ // bool CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(long o);
+ // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
+ public static native void CResult_ChannelMonitorUpdateDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone(long orig);
+ // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_some(struct LDKMonitorEvent o);
+ public static native long COption_MonitorEventZ_some(long o);
+ // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_none(void);
+ public static native long COption_MonitorEventZ_none();
+ // void COption_MonitorEventZ_free(struct LDKCOption_MonitorEventZ _res);
+ public static native void COption_MonitorEventZ_free(long _res);
+ // uint64_t COption_MonitorEventZ_clone_ptr(LDKCOption_MonitorEventZ *NONNULL_PTR arg);
+ public static native long COption_MonitorEventZ_clone_ptr(long arg);
+ // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_clone(const struct LDKCOption_MonitorEventZ *NONNULL_PTR orig);
+ public static native long COption_MonitorEventZ_clone(long orig);
+ // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_ok(struct LDKCOption_MonitorEventZ o);
+ public static native long CResult_COption_MonitorEventZDecodeErrorZ_ok(long o);
+ // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_COption_MonitorEventZDecodeErrorZ_err(long e);
+ // bool CResult_COption_MonitorEventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_COption_MonitorEventZDecodeErrorZ_is_ok(long o);
+ // void CResult_COption_MonitorEventZDecodeErrorZ_free(struct LDKCResult_COption_MonitorEventZDecodeErrorZ _res);
+ public static native void CResult_COption_MonitorEventZDecodeErrorZ_free(long _res);
+ // uint64_t CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_clone(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_COption_MonitorEventZDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
+ public static native long CResult_HTLCUpdateDecodeErrorZ_ok(long o);
+ // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_HTLCUpdateDecodeErrorZ_err(long e);
+ // bool CResult_HTLCUpdateDecodeErrorZ_is_ok(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_HTLCUpdateDecodeErrorZ_is_ok(long o);
+ // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
+ public static native void CResult_HTLCUpdateDecodeErrorZ_free(long _res);
+ // uint64_t CResult_HTLCUpdateDecodeErrorZ_clone_ptr(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_HTLCUpdateDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_HTLCUpdateDecodeErrorZ_clone(long orig);
+ // uint64_t C2Tuple_OutPointCVec_u8ZZ_clone_ptr(LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR arg);
+ public static native long C2Tuple_OutPointCVec_u8ZZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_OutPointCVec_u8ZZ C2Tuple_OutPointCVec_u8ZZ_clone(const struct LDKC2Tuple_OutPointCVec_u8ZZ *NONNULL_PTR orig);
+ public static native long C2Tuple_OutPointCVec_u8ZZ_clone(long orig);
+ // struct LDKC2Tuple_OutPointCVec_u8ZZ C2Tuple_OutPointCVec_u8ZZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
+ public static native long C2Tuple_OutPointCVec_u8ZZ_new(long a, byte[] b);
+ // void C2Tuple_OutPointCVec_u8ZZ_free(struct LDKC2Tuple_OutPointCVec_u8ZZ _res);
+ public static native void C2Tuple_OutPointCVec_u8ZZ_free(long _res);
+ // uint64_t C2Tuple_u32CVec_u8ZZ_clone_ptr(LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR arg);
+ public static native long C2Tuple_u32CVec_u8ZZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_u32CVec_u8ZZ C2Tuple_u32CVec_u8ZZ_clone(const struct LDKC2Tuple_u32CVec_u8ZZ *NONNULL_PTR orig);
+ public static native long C2Tuple_u32CVec_u8ZZ_clone(long orig);
+ // struct LDKC2Tuple_u32CVec_u8ZZ C2Tuple_u32CVec_u8ZZ_new(uint32_t a, struct LDKCVec_u8Z b);
+ public static native long C2Tuple_u32CVec_u8ZZ_new(int a, byte[] b);
+ // void C2Tuple_u32CVec_u8ZZ_free(struct LDKC2Tuple_u32CVec_u8ZZ _res);
+ public static native void C2Tuple_u32CVec_u8ZZ_free(long _res);
+ // void CVec_C2Tuple_u32CVec_u8ZZZ_free(struct LDKCVec_C2Tuple_u32CVec_u8ZZZ _res);
+ public static native void CVec_C2Tuple_u32CVec_u8ZZZ_free(long[] _res);
+ // uint64_t C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR arg);
+ public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ *NONNULL_PTR orig);
+ public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_clone(long orig);
+ // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32CVec_u8ZZZ b);
+ public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_new(byte[] a, long[] b);
+ // void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ _res);
+ public static native void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ_free(long _res);
+ // void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ _res);
+ public static native void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ_free(long[] _res);
+ // void CVec_CommitmentTransactionZ_free(struct LDKCVec_CommitmentTransactionZ _res);
+ public static native void CVec_CommitmentTransactionZ_free(long[] _res);
+ // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
+ public static native void CVec_TransactionZ_free(byte[][] _res);
+ // uint64_t C2Tuple_u32TxOutZ_clone_ptr(LDKC2Tuple_u32TxOutZ *NONNULL_PTR arg);
+ public static native long C2Tuple_u32TxOutZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
+ public static native long C2Tuple_u32TxOutZ_clone(long orig);
+ // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
+ public static native long C2Tuple_u32TxOutZ_new(int a, long b);
+ // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
+ public static native void C2Tuple_u32TxOutZ_free(long _res);
+ // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
+ public static native void CVec_C2Tuple_u32TxOutZZ_free(long[] _res);
+ // uint64_t C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR arg);
+ public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig);
+ public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_clone(long orig);
+ // struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
+ public static native long C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_new(byte[] a, long[] b);
+ // void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ _res);
+ public static native void C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ_free(long _res);
+ // void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ _res);
+ public static native void CVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ_free(long[] _res);
+ // void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res);
+ public static native void CVec_BalanceZ_free(long[] _res);
+ // uint64_t C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR arg);
+ public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ *NONNULL_PTR orig);
+ public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_clone(long orig);
+ // struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
+ public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_new(byte[] a, long b);
+ // void C2Tuple_ThirtyTwoBytesChannelMonitorZ_free(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ _res);
+ public static native void C2Tuple_ThirtyTwoBytesChannelMonitorZ_free(long _res);
+ // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ o);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_ok(long o);
+ // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_err(long e);
+ // bool CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_is_ok(long o);
+ // void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ _res);
+ public static native void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_free(long _res);
+ // uint64_t CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ_clone(long orig);
+ // uint64_t C2Tuple_PublicKeyTypeZ_clone_ptr(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR arg);
+ public static native long C2Tuple_PublicKeyTypeZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_clone(const struct LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR orig);
+ public static native long C2Tuple_PublicKeyTypeZ_clone(long orig);
+ // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_new(struct LDKPublicKey a, struct LDKType b);
+ public static native long C2Tuple_PublicKeyTypeZ_new(byte[] a, long b);
+ // void C2Tuple_PublicKeyTypeZ_free(struct LDKC2Tuple_PublicKeyTypeZ _res);
+ public static native void C2Tuple_PublicKeyTypeZ_free(long _res);
+ // void CVec_C2Tuple_PublicKeyTypeZZ_free(struct LDKCVec_C2Tuple_PublicKeyTypeZZ _res);
+ public static native void CVec_C2Tuple_PublicKeyTypeZZ_free(long[] _res);
+ // struct LDKCOption_OnionMessageContentsZ COption_OnionMessageContentsZ_some(struct LDKOnionMessageContents o);
+ public static native long COption_OnionMessageContentsZ_some(long o);
+ // struct LDKCOption_OnionMessageContentsZ COption_OnionMessageContentsZ_none(void);
+ public static native long COption_OnionMessageContentsZ_none();
+ // void COption_OnionMessageContentsZ_free(struct LDKCOption_OnionMessageContentsZ _res);
+ public static native void COption_OnionMessageContentsZ_free(long _res);
+ // uint64_t COption_OnionMessageContentsZ_clone_ptr(LDKCOption_OnionMessageContentsZ *NONNULL_PTR arg);
+ public static native long COption_OnionMessageContentsZ_clone_ptr(long arg);
+ // struct LDKCOption_OnionMessageContentsZ COption_OnionMessageContentsZ_clone(const struct LDKCOption_OnionMessageContentsZ *NONNULL_PTR orig);
+ public static native long COption_OnionMessageContentsZ_clone(long orig);
+ // struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CResult_COption_OnionMessageContentsZDecodeErrorZ_ok(struct LDKCOption_OnionMessageContentsZ o);
+ public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_ok(long o);
+ // struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CResult_COption_OnionMessageContentsZDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_err(long e);
+ // bool CResult_COption_OnionMessageContentsZDecodeErrorZ_is_ok(const struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_COption_OnionMessageContentsZDecodeErrorZ_is_ok(long o);
+ // void CResult_COption_OnionMessageContentsZDecodeErrorZ_free(struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ _res);
+ public static native void CResult_COption_OnionMessageContentsZDecodeErrorZ_free(long _res);
+ // uint64_t CResult_COption_OnionMessageContentsZDecodeErrorZ_clone_ptr(LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ CResult_COption_OnionMessageContentsZDecodeErrorZ_clone(const struct LDKCResult_COption_OnionMessageContentsZDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_COption_OnionMessageContentsZDecodeErrorZ_clone(long orig);
+ // uint64_t C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone_ptr(LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR arg);
+ public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone_ptr(long arg);
+ // struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone(const struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ *NONNULL_PTR orig);
+ public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone(long orig);
+ // struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ C3Tuple_OnionMessageContentsDestinationBlindedPathZ_new(struct LDKOnionMessageContents a, struct LDKDestination b, struct LDKBlindedPath c);
+ public static native long C3Tuple_OnionMessageContentsDestinationBlindedPathZ_new(long a, long b, long c);
+ // void C3Tuple_OnionMessageContentsDestinationBlindedPathZ_free(struct LDKC3Tuple_OnionMessageContentsDestinationBlindedPathZ _res);
+ public static native void C3Tuple_OnionMessageContentsDestinationBlindedPathZ_free(long _res);
+ // void CVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ_free(struct LDKCVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ _res);
+ public static native void CVec_C3Tuple_OnionMessageContentsDestinationBlindedPathZZ_free(long[] _res);
+ // struct LDKCOption_TypeZ COption_TypeZ_some(struct LDKType o);
+ public static native long COption_TypeZ_some(long o);
+ // struct LDKCOption_TypeZ COption_TypeZ_none(void);
+ public static native long COption_TypeZ_none();
+ // void COption_TypeZ_free(struct LDKCOption_TypeZ _res);
+ public static native void COption_TypeZ_free(long _res);
+ // uint64_t COption_TypeZ_clone_ptr(LDKCOption_TypeZ *NONNULL_PTR arg);
+ public static native long COption_TypeZ_clone_ptr(long arg);
+ // struct LDKCOption_TypeZ COption_TypeZ_clone(const struct LDKCOption_TypeZ *NONNULL_PTR orig);
+ public static native long COption_TypeZ_clone(long orig);
+ // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_ok(struct LDKCOption_TypeZ o);
+ public static native long CResult_COption_TypeZDecodeErrorZ_ok(long o);
+ // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_COption_TypeZDecodeErrorZ_err(long e);
+ // bool CResult_COption_TypeZDecodeErrorZ_is_ok(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_COption_TypeZDecodeErrorZ_is_ok(long o);
+ // void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecodeErrorZ _res);
+ public static native void CResult_COption_TypeZDecodeErrorZ_free(long _res);
+ // uint64_t CResult_COption_TypeZDecodeErrorZ_clone_ptr(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_COption_TypeZDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_COption_TypeZDecodeErrorZ_clone(long orig);
+ // struct LDKCOption_SocketAddressZ COption_SocketAddressZ_some(struct LDKSocketAddress o);
+ public static native long COption_SocketAddressZ_some(long o);
+ // struct LDKCOption_SocketAddressZ COption_SocketAddressZ_none(void);
+ public static native long COption_SocketAddressZ_none();
+ // void COption_SocketAddressZ_free(struct LDKCOption_SocketAddressZ _res);
+ public static native void COption_SocketAddressZ_free(long _res);
+ // uint64_t COption_SocketAddressZ_clone_ptr(LDKCOption_SocketAddressZ *NONNULL_PTR arg);
+ public static native long COption_SocketAddressZ_clone_ptr(long arg);
+ // struct LDKCOption_SocketAddressZ COption_SocketAddressZ_clone(const struct LDKCOption_SocketAddressZ *NONNULL_PTR orig);
+ public static native long COption_SocketAddressZ_clone(long orig);
+ // uint64_t C2Tuple_PublicKeyCOption_SocketAddressZZ_clone_ptr(LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR arg);
+ public static native long C2Tuple_PublicKeyCOption_SocketAddressZZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ C2Tuple_PublicKeyCOption_SocketAddressZZ_clone(const struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR orig);
+ public static native long C2Tuple_PublicKeyCOption_SocketAddressZZ_clone(long orig);
+ // struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ C2Tuple_PublicKeyCOption_SocketAddressZZ_new(struct LDKPublicKey a, struct LDKCOption_SocketAddressZ b);
+ public static native long C2Tuple_PublicKeyCOption_SocketAddressZZ_new(byte[] a, long b);
+ // void C2Tuple_PublicKeyCOption_SocketAddressZZ_free(struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ _res);
+ public static native void C2Tuple_PublicKeyCOption_SocketAddressZZ_free(long _res);
+ // void CVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ_free(struct LDKCVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ _res);
+ public static native void CVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ_free(long[] _res);
+ // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
+ public static native long CResult_CVec_u8ZPeerHandleErrorZ_ok(byte[] o);
+ // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
+ public static native long CResult_CVec_u8ZPeerHandleErrorZ_err(long e);
+ // bool CResult_CVec_u8ZPeerHandleErrorZ_is_ok(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_CVec_u8ZPeerHandleErrorZ_is_ok(long o);
+ // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
+ public static native void CResult_CVec_u8ZPeerHandleErrorZ_free(long _res);
+ // uint64_t CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR arg);
+ public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
+ public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone(long orig);
+ // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
+ public static native long CResult_NonePeerHandleErrorZ_ok();
+ // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
+ public static native long CResult_NonePeerHandleErrorZ_err(long e);
+ // bool CResult_NonePeerHandleErrorZ_is_ok(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_NonePeerHandleErrorZ_is_ok(long o);
+ // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
+ public static native void CResult_NonePeerHandleErrorZ_free(long _res);
+ // uint64_t CResult_NonePeerHandleErrorZ_clone_ptr(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR arg);
+ public static native long CResult_NonePeerHandleErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NonePeerHandleErrorZ_clone(long orig);
+ // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
+ public static native long CResult_boolPeerHandleErrorZ_ok(boolean o);
+ // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
+ public static native long CResult_boolPeerHandleErrorZ_err(long e);
+ // bool CResult_boolPeerHandleErrorZ_is_ok(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_boolPeerHandleErrorZ_is_ok(long o);
+ // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
+ public static native void CResult_boolPeerHandleErrorZ_free(long _res);
+ // uint64_t CResult_boolPeerHandleErrorZ_clone_ptr(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR arg);
+ public static native long CResult_boolPeerHandleErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
+ public static native long CResult_boolPeerHandleErrorZ_clone(long orig);
+ // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_ok(uint32_t o);
+ public static native long CResult_u32GraphSyncErrorZ_ok(int o);
+ // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_err(struct LDKGraphSyncError e);
+ public static native long CResult_u32GraphSyncErrorZ_err(long e);
+ // bool CResult_u32GraphSyncErrorZ_is_ok(const struct LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_u32GraphSyncErrorZ_is_ok(long o);
+ // void CResult_u32GraphSyncErrorZ_free(struct LDKCResult_u32GraphSyncErrorZ _res);
+ public static native void CResult_u32GraphSyncErrorZ_free(long _res);
+ // struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_ok(struct LDKCVec_u8Z o);
+ public static native long CResult_CVec_u8ZIOErrorZ_ok(byte[] o);
+ // struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_err(enum LDKIOError e);
+ public static native long CResult_CVec_u8ZIOErrorZ_err(IOError e);
+ // bool CResult_CVec_u8ZIOErrorZ_is_ok(const struct LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_CVec_u8ZIOErrorZ_is_ok(long o);
+ // void CResult_CVec_u8ZIOErrorZ_free(struct LDKCResult_CVec_u8ZIOErrorZ _res);
+ public static native void CResult_CVec_u8ZIOErrorZ_free(long _res);
+ // uint64_t CResult_CVec_u8ZIOErrorZ_clone_ptr(LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR arg);
+ public static native long CResult_CVec_u8ZIOErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_CVec_u8ZIOErrorZ CResult_CVec_u8ZIOErrorZ_clone(const struct LDKCResult_CVec_u8ZIOErrorZ *NONNULL_PTR orig);
+ public static native long CResult_CVec_u8ZIOErrorZ_clone(long orig);
+ // void CVec_StrZ_free(struct LDKCVec_StrZ _res);
+ public static native void CVec_StrZ_free(String[] _res);
+ // struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_ok(struct LDKCVec_StrZ o);
+ public static native long CResult_CVec_StrZIOErrorZ_ok(String[] o);
+ // struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_err(enum LDKIOError e);
+ public static native long CResult_CVec_StrZIOErrorZ_err(IOError e);
+ // bool CResult_CVec_StrZIOErrorZ_is_ok(const struct LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_CVec_StrZIOErrorZ_is_ok(long o);
+ // void CResult_CVec_StrZIOErrorZ_free(struct LDKCResult_CVec_StrZIOErrorZ _res);
+ public static native void CResult_CVec_StrZIOErrorZ_free(long _res);
+ // uint64_t CResult_CVec_StrZIOErrorZ_clone_ptr(LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR arg);
+ public static native long CResult_CVec_StrZIOErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_CVec_StrZIOErrorZ CResult_CVec_StrZIOErrorZ_clone(const struct LDKCResult_CVec_StrZIOErrorZ *NONNULL_PTR orig);
+ public static native long CResult_CVec_StrZIOErrorZ_clone(long orig);
+ // void CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ _res);
+ public static native void CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ_free(long[] _res);
+ // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZ o);
+ public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_ok(long[] o);
+ // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_err(enum LDKIOError e);
+ public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_err(IOError e);
+ // bool CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_is_ok(long o);
+ // void CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ _res);
+ public static native void CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_free(long _res);
+ // uint64_t CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone_ptr(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR arg);
+ public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ *NONNULL_PTR orig);
+ public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ_clone(long orig);
+ // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_ok(struct LDKC2Tuple_ThirtyTwoBytesChannelMonitorZ o);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_ok(long o);
+ // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_err(enum LDKIOError e);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_err(IOError e);
+ // bool CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_is_ok(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_is_ok(long o);
+ // void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_free(struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ _res);
+ public static native void CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_free(long _res);
+ // uint64_t CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone_ptr(LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR arg);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone(const struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ *NONNULL_PTR orig);
+ public static native long CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone(long orig);
+ // struct LDKCOption_SecretKeyZ COption_SecretKeyZ_some(struct LDKSecretKey o);
+ public static native long COption_SecretKeyZ_some(byte[] o);
+ // struct LDKCOption_SecretKeyZ COption_SecretKeyZ_none(void);
+ public static native long COption_SecretKeyZ_none();
+ // void COption_SecretKeyZ_free(struct LDKCOption_SecretKeyZ _res);
+ public static native void COption_SecretKeyZ_free(long _res);
+ // uint64_t COption_SecretKeyZ_clone_ptr(LDKCOption_SecretKeyZ *NONNULL_PTR arg);
+ public static native long COption_SecretKeyZ_clone_ptr(long arg);
+ // struct LDKCOption_SecretKeyZ COption_SecretKeyZ_clone(const struct LDKCOption_SecretKeyZ *NONNULL_PTR orig);
+ public static native long COption_SecretKeyZ_clone(long orig);
+ // struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_ok(struct LDKVerifiedInvoiceRequest o);
+ public static native long CResult_VerifiedInvoiceRequestNoneZ_ok(long o);
+ // struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_err(void);
+ public static native long CResult_VerifiedInvoiceRequestNoneZ_err();
+ // bool CResult_VerifiedInvoiceRequestNoneZ_is_ok(const struct LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_VerifiedInvoiceRequestNoneZ_is_ok(long o);
+ // void CResult_VerifiedInvoiceRequestNoneZ_free(struct LDKCResult_VerifiedInvoiceRequestNoneZ _res);
+ public static native void CResult_VerifiedInvoiceRequestNoneZ_free(long _res);
+ // uint64_t CResult_VerifiedInvoiceRequestNoneZ_clone_ptr(LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR arg);
+ public static native long CResult_VerifiedInvoiceRequestNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_clone(const struct LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR orig);
+ public static native long CResult_VerifiedInvoiceRequestNoneZ_clone(long orig);
+ // enum LDKCOption_NoneZ COption_NoneZ_some(void);
+ public static native COption_NoneZ COption_NoneZ_some();
+ // enum LDKCOption_NoneZ COption_NoneZ_none(void);
+ public static native COption_NoneZ COption_NoneZ_none();
+ // void COption_NoneZ_free(enum LDKCOption_NoneZ _res);
+ public static native void COption_NoneZ_free(COption_NoneZ _res);
+ // void CVec_WitnessZ_free(struct LDKCVec_WitnessZ _res);
+ public static native void CVec_WitnessZ_free(byte[][] _res);
+ // struct LDKCOption_i64Z COption_i64Z_some(int64_t o);
+ public static native long COption_i64Z_some(long o);
+ // struct LDKCOption_i64Z COption_i64Z_none(void);
+ public static native long COption_i64Z_none();
+ // void COption_i64Z_free(struct LDKCOption_i64Z _res);
+ public static native void COption_i64Z_free(long _res);
+ // uint64_t COption_i64Z_clone_ptr(LDKCOption_i64Z *NONNULL_PTR arg);
+ public static native long COption_i64Z_clone_ptr(long arg);
+ // struct LDKCOption_i64Z COption_i64Z_clone(const struct LDKCOption_i64Z *NONNULL_PTR orig);
+ public static native long COption_i64Z_clone(long orig);
+ // struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_ok(struct LDKSocketAddress o);
+ public static native long CResult_SocketAddressDecodeErrorZ_ok(long o);
+ // struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_SocketAddressDecodeErrorZ_err(long e);
+ // bool CResult_SocketAddressDecodeErrorZ_is_ok(const struct LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_SocketAddressDecodeErrorZ_is_ok(long o);
+ // void CResult_SocketAddressDecodeErrorZ_free(struct LDKCResult_SocketAddressDecodeErrorZ _res);
+ public static native void CResult_SocketAddressDecodeErrorZ_free(long _res);
+ // uint64_t CResult_SocketAddressDecodeErrorZ_clone_ptr(LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_SocketAddressDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_SocketAddressDecodeErrorZ CResult_SocketAddressDecodeErrorZ_clone(const struct LDKCResult_SocketAddressDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_SocketAddressDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_ok(struct LDKSocketAddress o);
+ public static native long CResult_SocketAddressSocketAddressParseErrorZ_ok(long o);
+ // struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_err(enum LDKSocketAddressParseError e);
+ public static native long CResult_SocketAddressSocketAddressParseErrorZ_err(SocketAddressParseError e);
+ // bool CResult_SocketAddressSocketAddressParseErrorZ_is_ok(const struct LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_SocketAddressSocketAddressParseErrorZ_is_ok(long o);
+ // void CResult_SocketAddressSocketAddressParseErrorZ_free(struct LDKCResult_SocketAddressSocketAddressParseErrorZ _res);
+ public static native void CResult_SocketAddressSocketAddressParseErrorZ_free(long _res);
+ // uint64_t CResult_SocketAddressSocketAddressParseErrorZ_clone_ptr(LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR arg);
+ public static native long CResult_SocketAddressSocketAddressParseErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_SocketAddressSocketAddressParseErrorZ CResult_SocketAddressSocketAddressParseErrorZ_clone(const struct LDKCResult_SocketAddressSocketAddressParseErrorZ *NONNULL_PTR orig);
+ public static native long CResult_SocketAddressSocketAddressParseErrorZ_clone(long orig);
+ // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
+ public static native void CVec_UpdateAddHTLCZ_free(long[] _res);
+ // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
+ public static native void CVec_UpdateFulfillHTLCZ_free(long[] _res);
+ // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
+ public static native void CVec_UpdateFailHTLCZ_free(long[] _res);
+ // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
+ public static native void CVec_UpdateFailMalformedHTLCZ_free(long[] _res);
+ // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
+ public static native long CResult_AcceptChannelDecodeErrorZ_ok(long o);
+ // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_AcceptChannelDecodeErrorZ_err(long e);
+ // bool CResult_AcceptChannelDecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_AcceptChannelDecodeErrorZ_is_ok(long o);
+ // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
+ public static native void CResult_AcceptChannelDecodeErrorZ_free(long _res);
+ // uint64_t CResult_AcceptChannelDecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_AcceptChannelDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_AcceptChannelDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_ok(struct LDKAcceptChannelV2 o);
+ public static native long CResult_AcceptChannelV2DecodeErrorZ_ok(long o);
+ // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_AcceptChannelV2DecodeErrorZ_err(long e);
+ // bool CResult_AcceptChannelV2DecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_AcceptChannelV2DecodeErrorZ_is_ok(long o);
+ // void CResult_AcceptChannelV2DecodeErrorZ_free(struct LDKCResult_AcceptChannelV2DecodeErrorZ _res);
+ public static native void CResult_AcceptChannelV2DecodeErrorZ_free(long _res);
+ // uint64_t CResult_AcceptChannelV2DecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_AcceptChannelV2DecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_AcceptChannelV2DecodeErrorZ CResult_AcceptChannelV2DecodeErrorZ_clone(const struct LDKCResult_AcceptChannelV2DecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_AcceptChannelV2DecodeErrorZ_clone(long orig);
+ // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_ok(struct LDKTxAddInput o);
+ public static native long CResult_TxAddInputDecodeErrorZ_ok(long o);
+ // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_TxAddInputDecodeErrorZ_err(long e);
+ // bool CResult_TxAddInputDecodeErrorZ_is_ok(const struct LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_TxAddInputDecodeErrorZ_is_ok(long o);
+ // void CResult_TxAddInputDecodeErrorZ_free(struct LDKCResult_TxAddInputDecodeErrorZ _res);
+ public static native void CResult_TxAddInputDecodeErrorZ_free(long _res);
+ // uint64_t CResult_TxAddInputDecodeErrorZ_clone_ptr(LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_TxAddInputDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_TxAddInputDecodeErrorZ CResult_TxAddInputDecodeErrorZ_clone(const struct LDKCResult_TxAddInputDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_TxAddInputDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_ok(struct LDKTxAddOutput o);
+ public static native long CResult_TxAddOutputDecodeErrorZ_ok(long o);
+ // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_TxAddOutputDecodeErrorZ_err(long e);
+ // bool CResult_TxAddOutputDecodeErrorZ_is_ok(const struct LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_TxAddOutputDecodeErrorZ_is_ok(long o);
+ // void CResult_TxAddOutputDecodeErrorZ_free(struct LDKCResult_TxAddOutputDecodeErrorZ _res);
+ public static native void CResult_TxAddOutputDecodeErrorZ_free(long _res);
+ // uint64_t CResult_TxAddOutputDecodeErrorZ_clone_ptr(LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_TxAddOutputDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_TxAddOutputDecodeErrorZ CResult_TxAddOutputDecodeErrorZ_clone(const struct LDKCResult_TxAddOutputDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_TxAddOutputDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_ok(struct LDKTxRemoveInput o);
+ public static native long CResult_TxRemoveInputDecodeErrorZ_ok(long o);
+ // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_TxRemoveInputDecodeErrorZ_err(long e);
+ // bool CResult_TxRemoveInputDecodeErrorZ_is_ok(const struct LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_TxRemoveInputDecodeErrorZ_is_ok(long o);
+ // void CResult_TxRemoveInputDecodeErrorZ_free(struct LDKCResult_TxRemoveInputDecodeErrorZ _res);
+ public static native void CResult_TxRemoveInputDecodeErrorZ_free(long _res);
+ // uint64_t CResult_TxRemoveInputDecodeErrorZ_clone_ptr(LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_TxRemoveInputDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_TxRemoveInputDecodeErrorZ CResult_TxRemoveInputDecodeErrorZ_clone(const struct LDKCResult_TxRemoveInputDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_TxRemoveInputDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_ok(struct LDKTxRemoveOutput o);
+ public static native long CResult_TxRemoveOutputDecodeErrorZ_ok(long o);
+ // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_TxRemoveOutputDecodeErrorZ_err(long e);
+ // bool CResult_TxRemoveOutputDecodeErrorZ_is_ok(const struct LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_TxRemoveOutputDecodeErrorZ_is_ok(long o);
+ // void CResult_TxRemoveOutputDecodeErrorZ_free(struct LDKCResult_TxRemoveOutputDecodeErrorZ _res);
+ public static native void CResult_TxRemoveOutputDecodeErrorZ_free(long _res);
+ // uint64_t CResult_TxRemoveOutputDecodeErrorZ_clone_ptr(LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_TxRemoveOutputDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_TxRemoveOutputDecodeErrorZ CResult_TxRemoveOutputDecodeErrorZ_clone(const struct LDKCResult_TxRemoveOutputDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_TxRemoveOutputDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_ok(struct LDKTxComplete o);
+ public static native long CResult_TxCompleteDecodeErrorZ_ok(long o);
+ // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_TxCompleteDecodeErrorZ_err(long e);
+ // bool CResult_TxCompleteDecodeErrorZ_is_ok(const struct LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_TxCompleteDecodeErrorZ_is_ok(long o);
+ // void CResult_TxCompleteDecodeErrorZ_free(struct LDKCResult_TxCompleteDecodeErrorZ _res);
+ public static native void CResult_TxCompleteDecodeErrorZ_free(long _res);
+ // uint64_t CResult_TxCompleteDecodeErrorZ_clone_ptr(LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_TxCompleteDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_TxCompleteDecodeErrorZ CResult_TxCompleteDecodeErrorZ_clone(const struct LDKCResult_TxCompleteDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_TxCompleteDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_ok(struct LDKTxSignatures o);
+ public static native long CResult_TxSignaturesDecodeErrorZ_ok(long o);
+ // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_TxSignaturesDecodeErrorZ_err(long e);
+ // bool CResult_TxSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_TxSignaturesDecodeErrorZ_is_ok(long o);
+ // void CResult_TxSignaturesDecodeErrorZ_free(struct LDKCResult_TxSignaturesDecodeErrorZ _res);
+ public static native void CResult_TxSignaturesDecodeErrorZ_free(long _res);
+ // uint64_t CResult_TxSignaturesDecodeErrorZ_clone_ptr(LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_TxSignaturesDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_TxSignaturesDecodeErrorZ CResult_TxSignaturesDecodeErrorZ_clone(const struct LDKCResult_TxSignaturesDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_TxSignaturesDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_ok(struct LDKTxInitRbf o);
+ public static native long CResult_TxInitRbfDecodeErrorZ_ok(long o);
+ // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_TxInitRbfDecodeErrorZ_err(long e);
+ // bool CResult_TxInitRbfDecodeErrorZ_is_ok(const struct LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_TxInitRbfDecodeErrorZ_is_ok(long o);
+ // void CResult_TxInitRbfDecodeErrorZ_free(struct LDKCResult_TxInitRbfDecodeErrorZ _res);
+ public static native void CResult_TxInitRbfDecodeErrorZ_free(long _res);
+ // uint64_t CResult_TxInitRbfDecodeErrorZ_clone_ptr(LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_TxInitRbfDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_TxInitRbfDecodeErrorZ CResult_TxInitRbfDecodeErrorZ_clone(const struct LDKCResult_TxInitRbfDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_TxInitRbfDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_ok(struct LDKTxAckRbf o);
+ public static native long CResult_TxAckRbfDecodeErrorZ_ok(long o);
+ // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_TxAckRbfDecodeErrorZ_err(long e);
+ // bool CResult_TxAckRbfDecodeErrorZ_is_ok(const struct LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_TxAckRbfDecodeErrorZ_is_ok(long o);
+ // void CResult_TxAckRbfDecodeErrorZ_free(struct LDKCResult_TxAckRbfDecodeErrorZ _res);
+ public static native void CResult_TxAckRbfDecodeErrorZ_free(long _res);
+ // uint64_t CResult_TxAckRbfDecodeErrorZ_clone_ptr(LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_TxAckRbfDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_TxAckRbfDecodeErrorZ CResult_TxAckRbfDecodeErrorZ_clone(const struct LDKCResult_TxAckRbfDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_TxAckRbfDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_ok(struct LDKTxAbort o);
+ public static native long CResult_TxAbortDecodeErrorZ_ok(long o);
+ // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_TxAbortDecodeErrorZ_err(long e);
+ // bool CResult_TxAbortDecodeErrorZ_is_ok(const struct LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_TxAbortDecodeErrorZ_is_ok(long o);
+ // void CResult_TxAbortDecodeErrorZ_free(struct LDKCResult_TxAbortDecodeErrorZ _res);
+ public static native void CResult_TxAbortDecodeErrorZ_free(long _res);
+ // uint64_t CResult_TxAbortDecodeErrorZ_clone_ptr(LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_TxAbortDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_TxAbortDecodeErrorZ CResult_TxAbortDecodeErrorZ_clone(const struct LDKCResult_TxAbortDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_TxAbortDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
+ public static native long CResult_AnnouncementSignaturesDecodeErrorZ_ok(long o);
+ // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_AnnouncementSignaturesDecodeErrorZ_err(long e);
+ // bool CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(long o);
+ // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
+ public static native void CResult_AnnouncementSignaturesDecodeErrorZ_free(long _res);
+ // uint64_t CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
+ public static native long CResult_ChannelReestablishDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelReestablishDecodeErrorZ_err(long e);
+ // bool CResult_ChannelReestablishDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ChannelReestablishDecodeErrorZ_is_ok(long o);
+ // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
+ public static native void CResult_ChannelReestablishDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ChannelReestablishDecodeErrorZ_clone_ptr(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ChannelReestablishDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelReestablishDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
+ public static native long CResult_ClosingSignedDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ClosingSignedDecodeErrorZ_err(long e);
+ // bool CResult_ClosingSignedDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ClosingSignedDecodeErrorZ_is_ok(long o);
+ // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
+ public static native void CResult_ClosingSignedDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ClosingSignedDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ClosingSignedDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ClosingSignedDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(struct LDKClosingSignedFeeRange o);
+ public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_err(long e);
+ // bool CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(long o);
+ // void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ _res);
+ public static native void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
+ public static native long CResult_CommitmentSignedDecodeErrorZ_ok(long o);
+ // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_CommitmentSignedDecodeErrorZ_err(long e);
+ // bool CResult_CommitmentSignedDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_CommitmentSignedDecodeErrorZ_is_ok(long o);
+ // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
+ public static native void CResult_CommitmentSignedDecodeErrorZ_free(long _res);
+ // uint64_t CResult_CommitmentSignedDecodeErrorZ_clone_ptr(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_CommitmentSignedDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_CommitmentSignedDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
+ public static native long CResult_FundingCreatedDecodeErrorZ_ok(long o);
+ // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_FundingCreatedDecodeErrorZ_err(long e);
+ // bool CResult_FundingCreatedDecodeErrorZ_is_ok(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_FundingCreatedDecodeErrorZ_is_ok(long o);
+ // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
+ public static native void CResult_FundingCreatedDecodeErrorZ_free(long _res);
+ // uint64_t CResult_FundingCreatedDecodeErrorZ_clone_ptr(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_FundingCreatedDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_FundingCreatedDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
+ public static native long CResult_FundingSignedDecodeErrorZ_ok(long o);
+ // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_FundingSignedDecodeErrorZ_err(long e);
+ // bool CResult_FundingSignedDecodeErrorZ_is_ok(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_FundingSignedDecodeErrorZ_is_ok(long o);
+ // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
+ public static native void CResult_FundingSignedDecodeErrorZ_free(long _res);
+ // uint64_t CResult_FundingSignedDecodeErrorZ_clone_ptr(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_FundingSignedDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_FundingSignedDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_ok(struct LDKChannelReady o);
+ public static native long CResult_ChannelReadyDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelReadyDecodeErrorZ_err(long e);
+ // bool CResult_ChannelReadyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ChannelReadyDecodeErrorZ_is_ok(long o);
+ // void CResult_ChannelReadyDecodeErrorZ_free(struct LDKCResult_ChannelReadyDecodeErrorZ _res);
+ public static native void CResult_ChannelReadyDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ChannelReadyDecodeErrorZ_clone_ptr(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ChannelReadyDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_clone(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelReadyDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
+ public static native long CResult_InitDecodeErrorZ_ok(long o);
+ // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_InitDecodeErrorZ_err(long e);
+ // bool CResult_InitDecodeErrorZ_is_ok(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_InitDecodeErrorZ_is_ok(long o);
+ // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
+ public static native void CResult_InitDecodeErrorZ_free(long _res);
+ // uint64_t CResult_InitDecodeErrorZ_clone_ptr(LDKCResult_InitDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_InitDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_InitDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
+ public static native long CResult_OpenChannelDecodeErrorZ_ok(long o);
+ // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_OpenChannelDecodeErrorZ_err(long e);
+ // bool CResult_OpenChannelDecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_OpenChannelDecodeErrorZ_is_ok(long o);
+ // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
+ public static native void CResult_OpenChannelDecodeErrorZ_free(long _res);
+ // uint64_t CResult_OpenChannelDecodeErrorZ_clone_ptr(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_OpenChannelDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_OpenChannelDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_ok(struct LDKOpenChannelV2 o);
+ public static native long CResult_OpenChannelV2DecodeErrorZ_ok(long o);
+ // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_OpenChannelV2DecodeErrorZ_err(long e);
+ // bool CResult_OpenChannelV2DecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_OpenChannelV2DecodeErrorZ_is_ok(long o);
+ // void CResult_OpenChannelV2DecodeErrorZ_free(struct LDKCResult_OpenChannelV2DecodeErrorZ _res);
+ public static native void CResult_OpenChannelV2DecodeErrorZ_free(long _res);
+ // uint64_t CResult_OpenChannelV2DecodeErrorZ_clone_ptr(LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_OpenChannelV2DecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_OpenChannelV2DecodeErrorZ CResult_OpenChannelV2DecodeErrorZ_clone(const struct LDKCResult_OpenChannelV2DecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_OpenChannelV2DecodeErrorZ_clone(long orig);
+ // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
+ public static native long CResult_RevokeAndACKDecodeErrorZ_ok(long o);
+ // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_RevokeAndACKDecodeErrorZ_err(long e);
+ // bool CResult_RevokeAndACKDecodeErrorZ_is_ok(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_RevokeAndACKDecodeErrorZ_is_ok(long o);
+ // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
+ public static native void CResult_RevokeAndACKDecodeErrorZ_free(long _res);
+ // uint64_t CResult_RevokeAndACKDecodeErrorZ_clone_ptr(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_RevokeAndACKDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_RevokeAndACKDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
+ public static native long CResult_ShutdownDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ShutdownDecodeErrorZ_err(long e);
+ // bool CResult_ShutdownDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ShutdownDecodeErrorZ_is_ok(long o);
+ // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
+ public static native void CResult_ShutdownDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ShutdownDecodeErrorZ_clone_ptr(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ShutdownDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ShutdownDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
+ public static native long CResult_UpdateFailHTLCDecodeErrorZ_ok(long o);
+ // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_UpdateFailHTLCDecodeErrorZ_err(long e);
+ // bool CResult_UpdateFailHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_UpdateFailHTLCDecodeErrorZ_is_ok(long o);
+ // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
+ public static native void CResult_UpdateFailHTLCDecodeErrorZ_free(long _res);
+ // uint64_t CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
+ public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(long o);
+ // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(long e);
+ // bool CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(long o);
+ // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
+ public static native void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(long _res);
+ // uint64_t CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
+ public static native long CResult_UpdateFeeDecodeErrorZ_ok(long o);
+ // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_UpdateFeeDecodeErrorZ_err(long e);
+ // bool CResult_UpdateFeeDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_UpdateFeeDecodeErrorZ_is_ok(long o);
+ // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
+ public static native void CResult_UpdateFeeDecodeErrorZ_free(long _res);
+ // uint64_t CResult_UpdateFeeDecodeErrorZ_clone_ptr(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_UpdateFeeDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_UpdateFeeDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
+ public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_ok(long o);
+ // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_err(long e);
+ // bool CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(long o);
+ // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
+ public static native void CResult_UpdateFulfillHTLCDecodeErrorZ_free(long _res);
+ // uint64_t CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
+ public static native long CResult_UpdateAddHTLCDecodeErrorZ_ok(long o);
+ // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_UpdateAddHTLCDecodeErrorZ_err(long e);
+ // bool CResult_UpdateAddHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_UpdateAddHTLCDecodeErrorZ_is_ok(long o);
+ // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
+ public static native void CResult_UpdateAddHTLCDecodeErrorZ_free(long _res);
+ // uint64_t CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_ok(struct LDKOnionMessage o);
+ public static native long CResult_OnionMessageDecodeErrorZ_ok(long o);
+ // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_OnionMessageDecodeErrorZ_err(long e);
+ // bool CResult_OnionMessageDecodeErrorZ_is_ok(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_OnionMessageDecodeErrorZ_is_ok(long o);
+ // void CResult_OnionMessageDecodeErrorZ_free(struct LDKCResult_OnionMessageDecodeErrorZ _res);
+ public static native void CResult_OnionMessageDecodeErrorZ_free(long _res);
+ // uint64_t CResult_OnionMessageDecodeErrorZ_clone_ptr(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_OnionMessageDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_clone(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_OnionMessageDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
+ public static native long CResult_PingDecodeErrorZ_ok(long o);
+ // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_PingDecodeErrorZ_err(long e);
+ // bool CResult_PingDecodeErrorZ_is_ok(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_PingDecodeErrorZ_is_ok(long o);
+ // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
+ public static native void CResult_PingDecodeErrorZ_free(long _res);
+ // uint64_t CResult_PingDecodeErrorZ_clone_ptr(LDKCResult_PingDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_PingDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_PingDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
+ public static native long CResult_PongDecodeErrorZ_ok(long o);
+ // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_PongDecodeErrorZ_err(long e);
+ // bool CResult_PongDecodeErrorZ_is_ok(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_PongDecodeErrorZ_is_ok(long o);
+ // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
+ public static native void CResult_PongDecodeErrorZ_free(long _res);
+ // uint64_t CResult_PongDecodeErrorZ_clone_ptr(LDKCResult_PongDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_PongDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_PongDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
+ public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(long o);
+ // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(long e);
+ // bool CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(long o);
+ // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
+ public static native void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(long _res);
+ // uint64_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
+ public static native long CResult_ChannelAnnouncementDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelAnnouncementDecodeErrorZ_err(long e);
+ // bool CResult_ChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ChannelAnnouncementDecodeErrorZ_is_ok(long o);
+ // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
+ public static native void CResult_ChannelAnnouncementDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
+ public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_ok(long o);
+ // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_err(long e);
+ // bool CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(long o);
+ // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
+ public static native void CResult_UnsignedChannelUpdateDecodeErrorZ_free(long _res);
+ // uint64_t CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
+ public static native long CResult_ChannelUpdateDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelUpdateDecodeErrorZ_err(long e);
+ // bool CResult_ChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ChannelUpdateDecodeErrorZ_is_ok(long o);
+ // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
+ public static native void CResult_ChannelUpdateDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ChannelUpdateDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelUpdateDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
+ public static native long CResult_ErrorMessageDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ErrorMessageDecodeErrorZ_err(long e);
+ // bool CResult_ErrorMessageDecodeErrorZ_is_ok(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ErrorMessageDecodeErrorZ_is_ok(long o);
+ // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
+ public static native void CResult_ErrorMessageDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ErrorMessageDecodeErrorZ_clone_ptr(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ErrorMessageDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ErrorMessageDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_ok(struct LDKWarningMessage o);
+ public static native long CResult_WarningMessageDecodeErrorZ_ok(long o);
+ // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_WarningMessageDecodeErrorZ_err(long e);
+ // bool CResult_WarningMessageDecodeErrorZ_is_ok(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_WarningMessageDecodeErrorZ_is_ok(long o);
+ // void CResult_WarningMessageDecodeErrorZ_free(struct LDKCResult_WarningMessageDecodeErrorZ _res);
+ public static native void CResult_WarningMessageDecodeErrorZ_free(long _res);
+ // uint64_t CResult_WarningMessageDecodeErrorZ_clone_ptr(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_WarningMessageDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_clone(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_WarningMessageDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
+ public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(long o);
+ // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(long e);
+ // bool CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(long o);
+ // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
+ public static native void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(long _res);
+ // uint64_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
+ public static native long CResult_NodeAnnouncementDecodeErrorZ_ok(long o);
+ // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_NodeAnnouncementDecodeErrorZ_err(long e);
+ // bool CResult_NodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_NodeAnnouncementDecodeErrorZ_is_ok(long o);
+ // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
+ public static native void CResult_NodeAnnouncementDecodeErrorZ_free(long _res);
+ // uint64_t CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NodeAnnouncementDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
+ public static native long CResult_QueryShortChannelIdsDecodeErrorZ_ok(long o);
+ // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_QueryShortChannelIdsDecodeErrorZ_err(long e);
+ // bool CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(long o);
+ // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
+ public static native void CResult_QueryShortChannelIdsDecodeErrorZ_free(long _res);
+ // uint64_t CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
+ public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(long e);
+ // bool CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(long o);
+ // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
+ public static native void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
+ public static native long CResult_QueryChannelRangeDecodeErrorZ_ok(long o);
+ // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_QueryChannelRangeDecodeErrorZ_err(long e);
+ // bool CResult_QueryChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_QueryChannelRangeDecodeErrorZ_is_ok(long o);
+ // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
+ public static native void CResult_QueryChannelRangeDecodeErrorZ_free(long _res);
+ // uint64_t CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_QueryChannelRangeDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
+ public static native long CResult_ReplyChannelRangeDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ReplyChannelRangeDecodeErrorZ_err(long e);
+ // bool CResult_ReplyChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ReplyChannelRangeDecodeErrorZ_is_ok(long o);
+ // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
+ public static native void CResult_ReplyChannelRangeDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
+ public static native long CResult_GossipTimestampFilterDecodeErrorZ_ok(long o);
+ // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_GossipTimestampFilterDecodeErrorZ_err(long e);
+ // bool CResult_GossipTimestampFilterDecodeErrorZ_is_ok(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_GossipTimestampFilterDecodeErrorZ_is_ok(long o);
+ // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
+ public static native void CResult_GossipTimestampFilterDecodeErrorZ_free(long _res);
+ // uint64_t CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone(long orig);
+ // void CVec_PhantomRouteHintsZ_free(struct LDKCVec_PhantomRouteHintsZ _res);
+ public static native void CVec_PhantomRouteHintsZ_free(long[] _res);
+ // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_ok(struct LDKBolt11Invoice o);
+ public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_ok(long o);
+ // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_err(struct LDKSignOrCreationError e);
+ public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_err(long e);
+ // bool CResult_Bolt11InvoiceSignOrCreationErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_Bolt11InvoiceSignOrCreationErrorZ_is_ok(long o);
+ // void CResult_Bolt11InvoiceSignOrCreationErrorZ_free(struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ _res);
+ public static native void CResult_Bolt11InvoiceSignOrCreationErrorZ_free(long _res);
+ // uint64_t CResult_Bolt11InvoiceSignOrCreationErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR arg);
+ public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ CResult_Bolt11InvoiceSignOrCreationErrorZ_clone(const struct LDKCResult_Bolt11InvoiceSignOrCreationErrorZ *NONNULL_PTR orig);
+ public static native long CResult_Bolt11InvoiceSignOrCreationErrorZ_clone(long orig);
+ // void CVec_FutureZ_free(struct LDKCVec_FutureZ _res);
+ public static native void CVec_FutureZ_free(long[] _res);
+ // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_ok(struct LDKOffersMessage o);
+ public static native long CResult_OffersMessageDecodeErrorZ_ok(long o);
+ // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_OffersMessageDecodeErrorZ_err(long e);
+ // bool CResult_OffersMessageDecodeErrorZ_is_ok(const struct LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_OffersMessageDecodeErrorZ_is_ok(long o);
+ // void CResult_OffersMessageDecodeErrorZ_free(struct LDKCResult_OffersMessageDecodeErrorZ _res);
+ public static native void CResult_OffersMessageDecodeErrorZ_free(long _res);
+ // uint64_t CResult_OffersMessageDecodeErrorZ_clone_ptr(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_OffersMessageDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_clone(const struct LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_OffersMessageDecodeErrorZ_clone(long orig);
+ // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_some(enum LDKHTLCClaim o);
+ public static native long COption_HTLCClaimZ_some(HTLCClaim o);
+ // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_none(void);
+ public static native long COption_HTLCClaimZ_none();
+ // void COption_HTLCClaimZ_free(struct LDKCOption_HTLCClaimZ _res);
+ public static native void COption_HTLCClaimZ_free(long _res);
+ // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o);
+ public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(long o);
+ // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(long e);
+ // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(long o);
+ // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res);
+ public static native void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(long _res);
+ // uint64_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o);
+ public static native long CResult_TxCreationKeysDecodeErrorZ_ok(long o);
+ // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_TxCreationKeysDecodeErrorZ_err(long e);
+ // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_TxCreationKeysDecodeErrorZ_is_ok(long o);
+ // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
+ public static native void CResult_TxCreationKeysDecodeErrorZ_free(long _res);
+ // uint64_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_TxCreationKeysDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_TxCreationKeysDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o);
+ public static native long CResult_ChannelPublicKeysDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelPublicKeysDecodeErrorZ_err(long e);
+ // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ChannelPublicKeysDecodeErrorZ_is_ok(long o);
+ // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
+ public static native void CResult_ChannelPublicKeysDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o);
+ public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(long o);
+ // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_err(long e);
+ // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(long o);
+ // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
+ public static native void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(long _res);
+ // uint64_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o);
+ public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(long o);
+ // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(long e);
+ // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(long o);
+ // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
+ public static native void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(long _res);
+ // uint64_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o);
+ public static native long CResult_ChannelTransactionParametersDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelTransactionParametersDecodeErrorZ_err(long e);
+ // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(long o);
+ // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
+ public static native void CResult_ChannelTransactionParametersDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelTransactionParametersDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o);
+ public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_ok(long o);
+ // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_err(long e);
+ // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(long o);
+ // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
+ public static native void CResult_HolderCommitmentTransactionDecodeErrorZ_free(long _res);
+ // uint64_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_HolderCommitmentTransactionDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o);
+ public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(long o);
+ // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_err(long e);
+ // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(long o);
+ // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
+ public static native void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(long _res);
+ // uint64_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o);
+ public static native long CResult_TrustedClosingTransactionNoneZ_ok(long o);
+ // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void);
+ public static native long CResult_TrustedClosingTransactionNoneZ_err();
+ // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_TrustedClosingTransactionNoneZ_is_ok(long o);
+ // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res);
+ public static native void CResult_TrustedClosingTransactionNoneZ_free(long _res);
+ // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o);
+ public static native long CResult_CommitmentTransactionDecodeErrorZ_ok(long o);
+ // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_CommitmentTransactionDecodeErrorZ_err(long e);
+ // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_CommitmentTransactionDecodeErrorZ_is_ok(long o);
+ // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
+ public static native void CResult_CommitmentTransactionDecodeErrorZ_free(long _res);
+ // uint64_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_CommitmentTransactionDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
+ public static native long CResult_TrustedCommitmentTransactionNoneZ_ok(long o);
+ // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
+ public static native long CResult_TrustedCommitmentTransactionNoneZ_err();
+ // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_TrustedCommitmentTransactionNoneZ_is_ok(long o);
+ // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
+ public static native void CResult_TrustedCommitmentTransactionNoneZ_free(long _res);
+ // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_ok(struct LDKCVec_ECDSASignatureZ o);
+ public static native long CResult_CVec_ECDSASignatureZNoneZ_ok(byte[][] o);
+ // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_err(void);
+ public static native long CResult_CVec_ECDSASignatureZNoneZ_err();
+ // bool CResult_CVec_ECDSASignatureZNoneZ_is_ok(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_CVec_ECDSASignatureZNoneZ_is_ok(long o);
+ // void CResult_CVec_ECDSASignatureZNoneZ_free(struct LDKCResult_CVec_ECDSASignatureZNoneZ _res);
+ public static native void CResult_CVec_ECDSASignatureZNoneZ_free(long _res);
+ // uint64_t CResult_CVec_ECDSASignatureZNoneZ_clone_ptr(LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR arg);
+ public static native long CResult_CVec_ECDSASignatureZNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_clone(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR orig);
+ public static native long CResult_CVec_ECDSASignatureZNoneZ_clone(long orig);
+ // struct LDKCOption_usizeZ COption_usizeZ_some(uintptr_t o);
+ public static native long COption_usizeZ_some(long o);
+ // struct LDKCOption_usizeZ COption_usizeZ_none(void);
+ public static native long COption_usizeZ_none();
+ // void COption_usizeZ_free(struct LDKCOption_usizeZ _res);
+ public static native void COption_usizeZ_free(long _res);
+ // uint64_t COption_usizeZ_clone_ptr(LDKCOption_usizeZ *NONNULL_PTR arg);
+ public static native long COption_usizeZ_clone_ptr(long arg);
+ // struct LDKCOption_usizeZ COption_usizeZ_clone(const struct LDKCOption_usizeZ *NONNULL_PTR orig);
+ public static native long COption_usizeZ_clone(long orig);
+ // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o);
+ public static native long CResult_ShutdownScriptDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ShutdownScriptDecodeErrorZ_err(long e);
+ // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ShutdownScriptDecodeErrorZ_is_ok(long o);
+ // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res);
+ public static native void CResult_ShutdownScriptDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ShutdownScriptDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ShutdownScriptDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o);
+ public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_ok(long o);
+ // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e);
+ public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_err(long e);
+ // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o);
+ public static native boolean CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(long o);
+ // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res);
+ public static native void CResult_ShutdownScriptInvalidShutdownScriptZ_free(long _res);
+ // uint64_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg);
+ public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(long arg);
+ // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig);
+ public static native long CResult_ShutdownScriptInvalidShutdownScriptZ_clone(long orig);
+ // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_ok(struct LDKPaymentPurpose o);
+ public static native long CResult_PaymentPurposeDecodeErrorZ_ok(long o);
+ // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_PaymentPurposeDecodeErrorZ_err(long e);
+ // bool CResult_PaymentPurposeDecodeErrorZ_is_ok(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_PaymentPurposeDecodeErrorZ_is_ok(long o);
+ // void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDecodeErrorZ _res);
+ public static native void CResult_PaymentPurposeDecodeErrorZ_free(long _res);
+ // uint64_t CResult_PaymentPurposeDecodeErrorZ_clone_ptr(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_PaymentPurposeDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_PaymentPurposeDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_ok(struct LDKClaimedHTLC o);
+ public static native long CResult_ClaimedHTLCDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ClaimedHTLCDecodeErrorZ_err(long e);
+ // bool CResult_ClaimedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ClaimedHTLCDecodeErrorZ_is_ok(long o);
+ // void CResult_ClaimedHTLCDecodeErrorZ_free(struct LDKCResult_ClaimedHTLCDecodeErrorZ _res);
+ public static native void CResult_ClaimedHTLCDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ClaimedHTLCDecodeErrorZ_clone_ptr(LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ClaimedHTLCDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_clone(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ClaimedHTLCDecodeErrorZ_clone(long orig);
+ // struct LDKCOption_PathFailureZ COption_PathFailureZ_some(struct LDKPathFailure o);
+ public static native long COption_PathFailureZ_some(long o);
+ // struct LDKCOption_PathFailureZ COption_PathFailureZ_none(void);
+ public static native long COption_PathFailureZ_none();
+ // void COption_PathFailureZ_free(struct LDKCOption_PathFailureZ _res);
+ public static native void COption_PathFailureZ_free(long _res);
+ // uint64_t COption_PathFailureZ_clone_ptr(LDKCOption_PathFailureZ *NONNULL_PTR arg);
+ public static native long COption_PathFailureZ_clone_ptr(long arg);
+ // struct LDKCOption_PathFailureZ COption_PathFailureZ_clone(const struct LDKCOption_PathFailureZ *NONNULL_PTR orig);
+ public static native long COption_PathFailureZ_clone(long orig);
+ // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_ok(struct LDKCOption_PathFailureZ o);
+ public static native long CResult_COption_PathFailureZDecodeErrorZ_ok(long o);
+ // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_COption_PathFailureZDecodeErrorZ_err(long e);
+ // bool CResult_COption_PathFailureZDecodeErrorZ_is_ok(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_COption_PathFailureZDecodeErrorZ_is_ok(long o);
+ // void CResult_COption_PathFailureZDecodeErrorZ_free(struct LDKCResult_COption_PathFailureZDecodeErrorZ _res);
+ public static native void CResult_COption_PathFailureZDecodeErrorZ_free(long _res);
+ // uint64_t CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_clone(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_COption_PathFailureZDecodeErrorZ_clone(long orig);
+ // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o);
+ public static native long COption_ClosureReasonZ_some(long o);
+ // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void);
+ public static native long COption_ClosureReasonZ_none();
+ // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res);
+ public static native void COption_ClosureReasonZ_free(long _res);
+ // uint64_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg);
+ public static native long COption_ClosureReasonZ_clone_ptr(long arg);
+ // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig);
+ public static native long COption_ClosureReasonZ_clone(long orig);
+ // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o);
+ public static native long CResult_COption_ClosureReasonZDecodeErrorZ_ok(long o);
+ // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_COption_ClosureReasonZDecodeErrorZ_err(long e);
+ // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(long o);
+ // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res);
+ public static native void CResult_COption_ClosureReasonZDecodeErrorZ_free(long _res);
+ // uint64_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_COption_ClosureReasonZDecodeErrorZ_clone(long orig);
+ // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_some(struct LDKHTLCDestination o);
+ public static native long COption_HTLCDestinationZ_some(long o);
+ // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_none(void);
+ public static native long COption_HTLCDestinationZ_none();
+ // void COption_HTLCDestinationZ_free(struct LDKCOption_HTLCDestinationZ _res);
+ public static native void COption_HTLCDestinationZ_free(long _res);
+ // uint64_t COption_HTLCDestinationZ_clone_ptr(LDKCOption_HTLCDestinationZ *NONNULL_PTR arg);
+ public static native long COption_HTLCDestinationZ_clone_ptr(long arg);
+ // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_clone(const struct LDKCOption_HTLCDestinationZ *NONNULL_PTR orig);
+ public static native long COption_HTLCDestinationZ_clone(long orig);
+ // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_ok(struct LDKCOption_HTLCDestinationZ o);
+ public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_ok(long o);
+ // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_err(long e);
+ // bool CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(long o);
+ // void CResult_COption_HTLCDestinationZDecodeErrorZ_free(struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ _res);
+ public static native void CResult_COption_HTLCDestinationZDecodeErrorZ_free(long _res);
+ // uint64_t CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_clone(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_COption_HTLCDestinationZDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_ok(enum LDKPaymentFailureReason o);
+ public static native long CResult_PaymentFailureReasonDecodeErrorZ_ok(PaymentFailureReason o);
+ // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_PaymentFailureReasonDecodeErrorZ_err(long e);
+ // bool CResult_PaymentFailureReasonDecodeErrorZ_is_ok(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_PaymentFailureReasonDecodeErrorZ_is_ok(long o);
+ // void CResult_PaymentFailureReasonDecodeErrorZ_free(struct LDKCResult_PaymentFailureReasonDecodeErrorZ _res);
+ public static native void CResult_PaymentFailureReasonDecodeErrorZ_free(long _res);
+ // uint64_t CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_clone(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_PaymentFailureReasonDecodeErrorZ_clone(long orig);
+ // struct LDKCOption_U128Z COption_U128Z_some(struct LDKU128 o);
+ public static native long COption_U128Z_some(byte[] o);
+ // struct LDKCOption_U128Z COption_U128Z_none(void);
+ public static native long COption_U128Z_none();
+ // void COption_U128Z_free(struct LDKCOption_U128Z _res);
+ public static native void COption_U128Z_free(long _res);
+ // uint64_t COption_U128Z_clone_ptr(LDKCOption_U128Z *NONNULL_PTR arg);
+ public static native long COption_U128Z_clone_ptr(long arg);
+ // struct LDKCOption_U128Z COption_U128Z_clone(const struct LDKCOption_U128Z *NONNULL_PTR orig);
+ public static native long COption_U128Z_clone(long orig);
+ // void CVec_ClaimedHTLCZ_free(struct LDKCVec_ClaimedHTLCZ _res);
+ public static native void CVec_ClaimedHTLCZ_free(long[] _res);
+ // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_some(enum LDKPaymentFailureReason o);
+ public static native long COption_PaymentFailureReasonZ_some(PaymentFailureReason o);
+ // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_none(void);
+ public static native long COption_PaymentFailureReasonZ_none();
+ // void COption_PaymentFailureReasonZ_free(struct LDKCOption_PaymentFailureReasonZ _res);
+ public static native void COption_PaymentFailureReasonZ_free(long _res);
+ // uint64_t COption_PaymentFailureReasonZ_clone_ptr(LDKCOption_PaymentFailureReasonZ *NONNULL_PTR arg);
+ public static native long COption_PaymentFailureReasonZ_clone_ptr(long arg);
+ // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_clone(const struct LDKCOption_PaymentFailureReasonZ *NONNULL_PTR orig);
+ public static native long COption_PaymentFailureReasonZ_clone(long orig);
+ // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o);
+ public static native long COption_EventZ_some(long o);
+ // struct LDKCOption_EventZ COption_EventZ_none(void);
+ public static native long COption_EventZ_none();
+ // void COption_EventZ_free(struct LDKCOption_EventZ _res);
+ public static native void COption_EventZ_free(long _res);
+ // uint64_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg);
+ public static native long COption_EventZ_clone_ptr(long arg);
+ // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig);
+ public static native long COption_EventZ_clone(long orig);
+ // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o);
+ public static native long CResult_COption_EventZDecodeErrorZ_ok(long o);
+ // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_COption_EventZDecodeErrorZ_err(long e);
+ // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_COption_EventZDecodeErrorZ_is_ok(long o);
+ // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res);
+ public static native void CResult_COption_EventZDecodeErrorZ_free(long _res);
+ // uint64_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_COption_EventZDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_COption_EventZDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_ok(enum LDKSiPrefix o);
+ public static native long CResult_SiPrefixBolt11ParseErrorZ_ok(SiPrefix o);
+ // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_err(struct LDKBolt11ParseError e);
+ public static native long CResult_SiPrefixBolt11ParseErrorZ_err(long e);
+ // bool CResult_SiPrefixBolt11ParseErrorZ_is_ok(const struct LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_SiPrefixBolt11ParseErrorZ_is_ok(long o);
+ // void CResult_SiPrefixBolt11ParseErrorZ_free(struct LDKCResult_SiPrefixBolt11ParseErrorZ _res);
+ public static native void CResult_SiPrefixBolt11ParseErrorZ_free(long _res);
+ // uint64_t CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR arg);
+ public static native long CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_clone(const struct LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR orig);
+ public static native long CResult_SiPrefixBolt11ParseErrorZ_clone(long orig);
+ // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(struct LDKBolt11Invoice o);
+ public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(long o);
+ // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(struct LDKParseOrSemanticError e);
+ public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(long e);
+ // bool CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(long o);
+ // void CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ _res);
+ public static native void CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(long _res);
+ // uint64_t CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR arg);
+ public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR orig);
+ public static native long CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(long orig);
+ // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(struct LDKSignedRawBolt11Invoice o);
+ public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(long o);
+ // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(struct LDKBolt11ParseError e);
+ public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(long e);
+ // bool CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(const struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(long o);
+ // void CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ _res);
+ public static native void CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(long _res);
+ // uint64_t CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR arg);
+ public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(const struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR orig);
+ public static native long CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(long orig);
+ // uint64_t C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR arg);
+ public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(long arg);
+ // struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR orig);
+ public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(long orig);
+ // struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(struct LDKRawBolt11Invoice a, struct LDKThirtyTwoBytes b, struct LDKBolt11InvoiceSignature c);
+ public static native long C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(long a, byte[] b, long c);
+ // void C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ _res);
+ public static native void C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(long _res);
+ // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_ok(struct LDKPayeePubKey o);
+ public static native long CResult_PayeePubKeySecp256k1ErrorZ_ok(long o);
+ // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e);
+ public static native long CResult_PayeePubKeySecp256k1ErrorZ_err(Secp256k1Error e);
+ // bool CResult_PayeePubKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_PayeePubKeySecp256k1ErrorZ_is_ok(long o);
+ // void CResult_PayeePubKeySecp256k1ErrorZ_free(struct LDKCResult_PayeePubKeySecp256k1ErrorZ _res);
+ public static native void CResult_PayeePubKeySecp256k1ErrorZ_free(long _res);
+ // uint64_t CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr(LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR arg);
+ public static native long CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_clone(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR orig);
+ public static native long CResult_PayeePubKeySecp256k1ErrorZ_clone(long orig);
+ // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res);
+ public static native void CVec_PrivateRouteZ_free(long[] _res);
+ // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o);
+ public static native long CResult_PositiveTimestampCreationErrorZ_ok(long o);
+ // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e);
+ public static native long CResult_PositiveTimestampCreationErrorZ_err(CreationError e);
+ // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_PositiveTimestampCreationErrorZ_is_ok(long o);
+ // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res);
+ public static native void CResult_PositiveTimestampCreationErrorZ_free(long _res);
+ // uint64_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg);
+ public static native long CResult_PositiveTimestampCreationErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig);
+ public static native long CResult_PositiveTimestampCreationErrorZ_clone(long orig);
+ // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_ok(void);
+ public static native long CResult_NoneBolt11SemanticErrorZ_ok();
+ // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_err(enum LDKBolt11SemanticError e);
+ public static native long CResult_NoneBolt11SemanticErrorZ_err(Bolt11SemanticError e);
+ // bool CResult_NoneBolt11SemanticErrorZ_is_ok(const struct LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_NoneBolt11SemanticErrorZ_is_ok(long o);
+ // void CResult_NoneBolt11SemanticErrorZ_free(struct LDKCResult_NoneBolt11SemanticErrorZ _res);
+ public static native void CResult_NoneBolt11SemanticErrorZ_free(long _res);
+ // uint64_t CResult_NoneBolt11SemanticErrorZ_clone_ptr(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR arg);
+ public static native long CResult_NoneBolt11SemanticErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_clone(const struct LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NoneBolt11SemanticErrorZ_clone(long orig);
+ // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(struct LDKBolt11Invoice o);
+ public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(long o);
+ // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(enum LDKBolt11SemanticError e);
+ public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(Bolt11SemanticError e);
+ // bool CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(long o);
+ // void CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ _res);
+ public static native void CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(long _res);
+ // uint64_t CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR arg);
+ public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR orig);
+ public static native long CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(long orig);
+ // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o);
+ public static native long CResult_DescriptionCreationErrorZ_ok(long o);
+ // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e);
+ public static native long CResult_DescriptionCreationErrorZ_err(CreationError e);
+ // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_DescriptionCreationErrorZ_is_ok(long o);
+ // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res);
+ public static native void CResult_DescriptionCreationErrorZ_free(long _res);
+ // uint64_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg);
+ public static native long CResult_DescriptionCreationErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig);
+ public static native long CResult_DescriptionCreationErrorZ_clone(long orig);
+ // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o);
+ public static native long CResult_PrivateRouteCreationErrorZ_ok(long o);
+ // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e);
+ public static native long CResult_PrivateRouteCreationErrorZ_err(CreationError e);
+ // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_PrivateRouteCreationErrorZ_is_ok(long o);
+ // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res);
+ public static native void CResult_PrivateRouteCreationErrorZ_free(long _res);
+ // uint64_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg);
+ public static native long CResult_PrivateRouteCreationErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig);
+ public static native long CResult_PrivateRouteCreationErrorZ_clone(long orig);
+ // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
+ public static native long CResult_OutPointDecodeErrorZ_ok(long o);
+ // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_OutPointDecodeErrorZ_err(long e);
+ // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_OutPointDecodeErrorZ_is_ok(long o);
+ // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
+ public static native void CResult_OutPointDecodeErrorZ_free(long _res);
+ // uint64_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_OutPointDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_OutPointDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_ok(struct LDKBigSize o);
+ public static native long CResult_BigSizeDecodeErrorZ_ok(long o);
+ // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_BigSizeDecodeErrorZ_err(long e);
+ // bool CResult_BigSizeDecodeErrorZ_is_ok(const struct LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_BigSizeDecodeErrorZ_is_ok(long o);
+ // void CResult_BigSizeDecodeErrorZ_free(struct LDKCResult_BigSizeDecodeErrorZ _res);
+ public static native void CResult_BigSizeDecodeErrorZ_free(long _res);
+ // uint64_t CResult_BigSizeDecodeErrorZ_clone_ptr(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_BigSizeDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_clone(const struct LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_BigSizeDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_ok(struct LDKHostname o);
+ public static native long CResult_HostnameDecodeErrorZ_ok(long o);
+ // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_HostnameDecodeErrorZ_err(long e);
+ // bool CResult_HostnameDecodeErrorZ_is_ok(const struct LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_HostnameDecodeErrorZ_is_ok(long o);
+ // void CResult_HostnameDecodeErrorZ_free(struct LDKCResult_HostnameDecodeErrorZ _res);
+ public static native void CResult_HostnameDecodeErrorZ_free(long _res);
+ // uint64_t CResult_HostnameDecodeErrorZ_clone_ptr(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_HostnameDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_clone(const struct LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_HostnameDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_ok(struct LDKTransactionU16LenLimited o);
+ public static native long CResult_TransactionU16LenLimitedNoneZ_ok(long o);
+ // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_err(void);
+ public static native long CResult_TransactionU16LenLimitedNoneZ_err();
+ // bool CResult_TransactionU16LenLimitedNoneZ_is_ok(const struct LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_TransactionU16LenLimitedNoneZ_is_ok(long o);
+ // void CResult_TransactionU16LenLimitedNoneZ_free(struct LDKCResult_TransactionU16LenLimitedNoneZ _res);
+ public static native void CResult_TransactionU16LenLimitedNoneZ_free(long _res);
+ // uint64_t CResult_TransactionU16LenLimitedNoneZ_clone_ptr(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR arg);
+ public static native long CResult_TransactionU16LenLimitedNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_clone(const struct LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR orig);
+ public static native long CResult_TransactionU16LenLimitedNoneZ_clone(long orig);
+ // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_ok(struct LDKTransactionU16LenLimited o);
+ public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_ok(long o);
+ // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_err(long e);
+ // bool CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(const struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(long o);
+ // void CResult_TransactionU16LenLimitedDecodeErrorZ_free(struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ _res);
+ public static native void CResult_TransactionU16LenLimitedDecodeErrorZ_free(long _res);
+ // uint64_t CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_clone(const struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_TransactionU16LenLimitedDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_ok(struct LDKUntrustedString o);
+ public static native long CResult_UntrustedStringDecodeErrorZ_ok(long o);
+ // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_UntrustedStringDecodeErrorZ_err(long e);
+ // bool CResult_UntrustedStringDecodeErrorZ_is_ok(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_UntrustedStringDecodeErrorZ_is_ok(long o);
+ // void CResult_UntrustedStringDecodeErrorZ_free(struct LDKCResult_UntrustedStringDecodeErrorZ _res);
+ public static native void CResult_UntrustedStringDecodeErrorZ_free(long _res);
+ // uint64_t CResult_UntrustedStringDecodeErrorZ_clone_ptr(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_UntrustedStringDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_clone(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_UntrustedStringDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ReceiveTlvsDecodeErrorZ CResult_ReceiveTlvsDecodeErrorZ_ok(struct LDKReceiveTlvs o);
+ public static native long CResult_ReceiveTlvsDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ReceiveTlvsDecodeErrorZ CResult_ReceiveTlvsDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ReceiveTlvsDecodeErrorZ_err(long e);
+ // bool CResult_ReceiveTlvsDecodeErrorZ_is_ok(const struct LDKCResult_ReceiveTlvsDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ReceiveTlvsDecodeErrorZ_is_ok(long o);
+ // void CResult_ReceiveTlvsDecodeErrorZ_free(struct LDKCResult_ReceiveTlvsDecodeErrorZ _res);
+ public static native void CResult_ReceiveTlvsDecodeErrorZ_free(long _res);
+ // uint64_t CResult_ReceiveTlvsDecodeErrorZ_clone_ptr(LDKCResult_ReceiveTlvsDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ReceiveTlvsDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ReceiveTlvsDecodeErrorZ CResult_ReceiveTlvsDecodeErrorZ_clone(const struct LDKCResult_ReceiveTlvsDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ReceiveTlvsDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_ok(struct LDKPaymentRelay o);
+ public static native long CResult_PaymentRelayDecodeErrorZ_ok(long o);
+ // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_PaymentRelayDecodeErrorZ_err(long e);
+ // bool CResult_PaymentRelayDecodeErrorZ_is_ok(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_PaymentRelayDecodeErrorZ_is_ok(long o);
+ // void CResult_PaymentRelayDecodeErrorZ_free(struct LDKCResult_PaymentRelayDecodeErrorZ _res);
+ public static native void CResult_PaymentRelayDecodeErrorZ_free(long _res);
+ // uint64_t CResult_PaymentRelayDecodeErrorZ_clone_ptr(LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_PaymentRelayDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_clone(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_PaymentRelayDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_ok(struct LDKPaymentConstraints o);
+ public static native long CResult_PaymentConstraintsDecodeErrorZ_ok(long o);
+ // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_PaymentConstraintsDecodeErrorZ_err(long e);
+ // bool CResult_PaymentConstraintsDecodeErrorZ_is_ok(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_PaymentConstraintsDecodeErrorZ_is_ok(long o);
+ // void CResult_PaymentConstraintsDecodeErrorZ_free(struct LDKCResult_PaymentConstraintsDecodeErrorZ _res);
+ public static native void CResult_PaymentConstraintsDecodeErrorZ_free(long _res);
+ // uint64_t CResult_PaymentConstraintsDecodeErrorZ_clone_ptr(LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_PaymentConstraintsDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_clone(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_PaymentConstraintsDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ThirtyTwoBytesPaymentErrorZ CResult_ThirtyTwoBytesPaymentErrorZ_ok(struct LDKThirtyTwoBytes o);
+ public static native long CResult_ThirtyTwoBytesPaymentErrorZ_ok(byte[] o);
+ // struct LDKCResult_ThirtyTwoBytesPaymentErrorZ CResult_ThirtyTwoBytesPaymentErrorZ_err(struct LDKPaymentError e);
+ public static native long CResult_ThirtyTwoBytesPaymentErrorZ_err(long e);
+ // bool CResult_ThirtyTwoBytesPaymentErrorZ_is_ok(const struct LDKCResult_ThirtyTwoBytesPaymentErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_ThirtyTwoBytesPaymentErrorZ_is_ok(long o);
+ // void CResult_ThirtyTwoBytesPaymentErrorZ_free(struct LDKCResult_ThirtyTwoBytesPaymentErrorZ _res);
+ public static native void CResult_ThirtyTwoBytesPaymentErrorZ_free(long _res);
+ // uint64_t CResult_ThirtyTwoBytesPaymentErrorZ_clone_ptr(LDKCResult_ThirtyTwoBytesPaymentErrorZ *NONNULL_PTR arg);
+ public static native long CResult_ThirtyTwoBytesPaymentErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_ThirtyTwoBytesPaymentErrorZ CResult_ThirtyTwoBytesPaymentErrorZ_clone(const struct LDKCResult_ThirtyTwoBytesPaymentErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ThirtyTwoBytesPaymentErrorZ_clone(long orig);
+ // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_ok(void);
+ public static native long CResult_NonePaymentErrorZ_ok();
+ // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_err(struct LDKPaymentError e);
+ public static native long CResult_NonePaymentErrorZ_err(long e);
+ // bool CResult_NonePaymentErrorZ_is_ok(const struct LDKCResult_NonePaymentErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_NonePaymentErrorZ_is_ok(long o);
+ // void CResult_NonePaymentErrorZ_free(struct LDKCResult_NonePaymentErrorZ _res);
+ public static native void CResult_NonePaymentErrorZ_free(long _res);
+ // uint64_t CResult_NonePaymentErrorZ_clone_ptr(LDKCResult_NonePaymentErrorZ *NONNULL_PTR arg);
+ public static native long CResult_NonePaymentErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_clone(const struct LDKCResult_NonePaymentErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NonePaymentErrorZ_clone(long orig);
+ // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_ok(struct LDKCVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZ o);
+ public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_ok(long[] o);
+ // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_err(struct LDKProbingError e);
+ public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_err(long e);
+ // bool CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_is_ok(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_is_ok(long o);
+ // void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_free(struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ _res);
+ public static native void CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_free(long _res);
+ // uint64_t CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_clone_ptr(LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ *NONNULL_PTR arg);
+ public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_clone(const struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ *NONNULL_PTR orig);
+ public static native long CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbingErrorZ_clone(long orig);
+ // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_ok(struct LDKStr o);
+ public static native long CResult_StrSecp256k1ErrorZ_ok(String o);
+ // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_err(enum LDKSecp256k1Error e);
+ public static native long CResult_StrSecp256k1ErrorZ_err(Secp256k1Error e);
+ // bool CResult_StrSecp256k1ErrorZ_is_ok(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_StrSecp256k1ErrorZ_is_ok(long o);
+ // void CResult_StrSecp256k1ErrorZ_free(struct LDKCResult_StrSecp256k1ErrorZ _res);
+ public static native void CResult_StrSecp256k1ErrorZ_free(long _res);
+ // uint64_t CResult_StrSecp256k1ErrorZ_clone_ptr(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR arg);
+ public static native long CResult_StrSecp256k1ErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_clone(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR orig);
+ public static native long CResult_StrSecp256k1ErrorZ_clone(long orig);
+ // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_ok(struct LDKTxOut o);
+ public static native long CResult_TxOutUtxoLookupErrorZ_ok(long o);
+ // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_err(enum LDKUtxoLookupError e);
+ public static native long CResult_TxOutUtxoLookupErrorZ_err(UtxoLookupError e);
+ // bool CResult_TxOutUtxoLookupErrorZ_is_ok(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_TxOutUtxoLookupErrorZ_is_ok(long o);
+ // void CResult_TxOutUtxoLookupErrorZ_free(struct LDKCResult_TxOutUtxoLookupErrorZ _res);
+ public static native void CResult_TxOutUtxoLookupErrorZ_free(long _res);
+ // uint64_t CResult_TxOutUtxoLookupErrorZ_clone_ptr(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR arg);
+ public static native long CResult_TxOutUtxoLookupErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_clone(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR orig);
+ public static native long CResult_TxOutUtxoLookupErrorZ_clone(long orig);
+ // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_ok(struct LDKOnionMessagePath o);
+ public static native long CResult_OnionMessagePathNoneZ_ok(long o);
+ // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_err(void);
+ public static native long CResult_OnionMessagePathNoneZ_err();
+ // bool CResult_OnionMessagePathNoneZ_is_ok(const struct LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_OnionMessagePathNoneZ_is_ok(long o);
+ // void CResult_OnionMessagePathNoneZ_free(struct LDKCResult_OnionMessagePathNoneZ _res);
+ public static native void CResult_OnionMessagePathNoneZ_free(long _res);
+ // uint64_t CResult_OnionMessagePathNoneZ_clone_ptr(LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR arg);
+ public static native long CResult_OnionMessagePathNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_OnionMessagePathNoneZ CResult_OnionMessagePathNoneZ_clone(const struct LDKCResult_OnionMessagePathNoneZ *NONNULL_PTR orig);
+ public static native long CResult_OnionMessagePathNoneZ_clone(long orig);
+ // uint64_t C2Tuple_PublicKeyOnionMessageZ_clone_ptr(LDKC2Tuple_PublicKeyOnionMessageZ *NONNULL_PTR arg);
+ public static native long C2Tuple_PublicKeyOnionMessageZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_PublicKeyOnionMessageZ C2Tuple_PublicKeyOnionMessageZ_clone(const struct LDKC2Tuple_PublicKeyOnionMessageZ *NONNULL_PTR orig);
+ public static native long C2Tuple_PublicKeyOnionMessageZ_clone(long orig);
+ // struct LDKC2Tuple_PublicKeyOnionMessageZ C2Tuple_PublicKeyOnionMessageZ_new(struct LDKPublicKey a, struct LDKOnionMessage b);
+ public static native long C2Tuple_PublicKeyOnionMessageZ_new(byte[] a, long b);
+ // void C2Tuple_PublicKeyOnionMessageZ_free(struct LDKC2Tuple_PublicKeyOnionMessageZ _res);
+ public static native void C2Tuple_PublicKeyOnionMessageZ_free(long _res);
+ // struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_ok(struct LDKC2Tuple_PublicKeyOnionMessageZ o);
+ public static native long CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_ok(long o);
+ // struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_err(struct LDKSendError e);
+ public static native long CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_err(long e);
+ // bool CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_is_ok(const struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_is_ok(long o);
+ // void CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_free(struct LDKCResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ _res);
+ public static native void CResult_C2Tuple_PublicKeyOnionMessageZSendErrorZ_free(long _res);
+ // struct LDKCResult_PeeledOnionNoneZ CResult_PeeledOnionNoneZ_ok(struct LDKPeeledOnion o);
+ public static native long CResult_PeeledOnionNoneZ_ok(long o);
+ // struct LDKCResult_PeeledOnionNoneZ CResult_PeeledOnionNoneZ_err(void);
+ public static native long CResult_PeeledOnionNoneZ_err();
+ // bool CResult_PeeledOnionNoneZ_is_ok(const struct LDKCResult_PeeledOnionNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_PeeledOnionNoneZ_is_ok(long o);
+ // void CResult_PeeledOnionNoneZ_free(struct LDKCResult_PeeledOnionNoneZ _res);
+ public static native void CResult_PeeledOnionNoneZ_free(long _res);
+ // struct LDKCResult_NoneSendErrorZ CResult_NoneSendErrorZ_ok(void);
+ public static native long CResult_NoneSendErrorZ_ok();
+ // struct LDKCResult_NoneSendErrorZ CResult_NoneSendErrorZ_err(struct LDKSendError e);
+ public static native long CResult_NoneSendErrorZ_err(long e);
+ // bool CResult_NoneSendErrorZ_is_ok(const struct LDKCResult_NoneSendErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_NoneSendErrorZ_is_ok(long o);
+ // void CResult_NoneSendErrorZ_free(struct LDKCResult_NoneSendErrorZ _res);
+ public static native void CResult_NoneSendErrorZ_free(long _res);
+ // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_ok(struct LDKBlindedPath o);
+ public static native long CResult_BlindedPathNoneZ_ok(long o);
+ // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_err(void);
+ public static native long CResult_BlindedPathNoneZ_err();
+ // bool CResult_BlindedPathNoneZ_is_ok(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_BlindedPathNoneZ_is_ok(long o);
+ // void CResult_BlindedPathNoneZ_free(struct LDKCResult_BlindedPathNoneZ _res);
+ public static native void CResult_BlindedPathNoneZ_free(long _res);
+ // uint64_t CResult_BlindedPathNoneZ_clone_ptr(LDKCResult_BlindedPathNoneZ *NONNULL_PTR arg);
+ public static native long CResult_BlindedPathNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_clone(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR orig);
+ public static native long CResult_BlindedPathNoneZ_clone(long orig);
+ // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(struct LDKC2Tuple_BlindedPayInfoBlindedPathZ o);
+ public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(long o);
+ // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err(void);
+ public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err();
+ // bool CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(long o);
+ // void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ _res);
+ public static native void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(long _res);
+ // uint64_t CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr(LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR arg);
+ public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr(long arg);
+ // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR orig);
+ public static native long CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(long orig);
+ // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_ok(struct LDKBlindedPath o);
+ public static native long CResult_BlindedPathDecodeErrorZ_ok(long o);
+ // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_BlindedPathDecodeErrorZ_err(long e);
+ // bool CResult_BlindedPathDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_BlindedPathDecodeErrorZ_is_ok(long o);
+ // void CResult_BlindedPathDecodeErrorZ_free(struct LDKCResult_BlindedPathDecodeErrorZ _res);
+ public static native void CResult_BlindedPathDecodeErrorZ_free(long _res);
+ // uint64_t CResult_BlindedPathDecodeErrorZ_clone_ptr(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_BlindedPathDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_clone(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_BlindedPathDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_ok(struct LDKBlindedHop o);
+ public static native long CResult_BlindedHopDecodeErrorZ_ok(long o);
+ // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_BlindedHopDecodeErrorZ_err(long e);
+ // bool CResult_BlindedHopDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_BlindedHopDecodeErrorZ_is_ok(long o);
+ // void CResult_BlindedHopDecodeErrorZ_free(struct LDKCResult_BlindedHopDecodeErrorZ _res);
+ public static native void CResult_BlindedHopDecodeErrorZ_free(long _res);
+ // uint64_t CResult_BlindedHopDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_BlindedHopDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_clone(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_BlindedHopDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_ok(struct LDKInvoiceError o);
+ public static native long CResult_InvoiceErrorDecodeErrorZ_ok(long o);
+ // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_InvoiceErrorDecodeErrorZ_err(long e);
+ // bool CResult_InvoiceErrorDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR o);
+ public static native boolean CResult_InvoiceErrorDecodeErrorZ_is_ok(long o);
+ // void CResult_InvoiceErrorDecodeErrorZ_free(struct LDKCResult_InvoiceErrorDecodeErrorZ _res);
+ public static native void CResult_InvoiceErrorDecodeErrorZ_free(long _res);
+ // uint64_t CResult_InvoiceErrorDecodeErrorZ_clone_ptr(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR arg);
+ public static native long CResult_InvoiceErrorDecodeErrorZ_clone_ptr(long arg);
+ // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_clone(const struct LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_InvoiceErrorDecodeErrorZ_clone(long orig);
+ // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o);
+ public static native long COption_FilterZ_some(long o);
+ // struct LDKCOption_FilterZ COption_FilterZ_none(void);
+ public static native long COption_FilterZ_none();
+ // void COption_FilterZ_free(struct LDKCOption_FilterZ _res);
+ public static native void COption_FilterZ_free(long _res);
+ // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o);
+ public static native long CResult_LockedChannelMonitorNoneZ_ok(long o);
+ // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void);
+ public static native long CResult_LockedChannelMonitorNoneZ_err();
+ // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o);
+ public static native boolean CResult_LockedChannelMonitorNoneZ_is_ok(long o);
+ // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res);
+ public static native void CResult_LockedChannelMonitorNoneZ_free(long _res);
+ // void CVec_OutPointZ_free(struct LDKCVec_OutPointZ _res);
+ public static native void CVec_OutPointZ_free(long[] _res);
+ // void CVec_MonitorUpdateIdZ_free(struct LDKCVec_MonitorUpdateIdZ _res);
+ public static native void CVec_MonitorUpdateIdZ_free(long[] _res);
+ // uint64_t C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR arg);
+ public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(long arg);
+ // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(const struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR orig);
+ public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(long orig);
+ // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorUpdateIdZ b);
+ public static native long C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(long a, long[] b);
+ // void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ _res);
+ public static native void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(long _res);
+ // void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ _res);
+ public static native void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(long[] _res);
+ // void APIError_free(struct LDKAPIError this_ptr);
+ public static native void APIError_free(long this_ptr);
+ // uint64_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg);
+ public static native long APIError_clone_ptr(long arg);
+ // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
+ public static native long APIError_clone(long orig);
+ // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err);
+ public static native long APIError_apimisuse_error(String err);
+ // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate);
+ public static native long APIError_fee_rate_too_high(String err, int feerate);
+ // struct LDKAPIError APIError_invalid_route(struct LDKStr err);
+ public static native long APIError_invalid_route(String err);
+ // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err);
+ public static native long APIError_channel_unavailable(String err);
+ // struct LDKAPIError APIError_monitor_update_in_progress(void);
+ public static native long APIError_monitor_update_in_progress();
+ // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script);
+ public static native long APIError_incompatible_shutdown_script(long script);
+ // bool APIError_eq(const struct LDKAPIError *NONNULL_PTR a, const struct LDKAPIError *NONNULL_PTR b);
+ public static native boolean APIError_eq(long a, long b);
+ // struct LDKCVec_u8Z APIError_write(const struct LDKAPIError *NONNULL_PTR obj);
+ public static native byte[] APIError_write(long obj);
+ // struct LDKCResult_COption_APIErrorZDecodeErrorZ APIError_read(struct LDKu8slice ser);
+ public static native long APIError_read(byte[] ser);
+ // void BigSize_free(struct LDKBigSize this_obj);
+ public static native void BigSize_free(long this_obj);
+ // uint64_t BigSize_get_a(const struct LDKBigSize *NONNULL_PTR this_ptr);
+ public static native long BigSize_get_a(long this_ptr);
+ // void BigSize_set_a(struct LDKBigSize *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void BigSize_set_a(long this_ptr, long val);
+ // MUST_USE_RES struct LDKBigSize BigSize_new(uint64_t a_arg);
+ public static native long BigSize_new(long a_arg);
+ // uint64_t BigSize_clone_ptr(LDKBigSize *NONNULL_PTR arg);
+ public static native long BigSize_clone_ptr(long arg);
+ // struct LDKBigSize BigSize_clone(const struct LDKBigSize *NONNULL_PTR orig);
+ public static native long BigSize_clone(long orig);
+ // uint64_t BigSize_hash(const struct LDKBigSize *NONNULL_PTR o);
+ public static native long BigSize_hash(long o);
+ // bool BigSize_eq(const struct LDKBigSize *NONNULL_PTR a, const struct LDKBigSize *NONNULL_PTR b);
+ public static native boolean BigSize_eq(long a, long b);
+ // struct LDKCVec_u8Z BigSize_write(const struct LDKBigSize *NONNULL_PTR obj);
+ public static native byte[] BigSize_write(long obj);
+ // struct LDKCResult_BigSizeDecodeErrorZ BigSize_read(struct LDKu8slice ser);
+ public static native long BigSize_read(byte[] ser);
+ // void Hostname_free(struct LDKHostname this_obj);
+ public static native void Hostname_free(long this_obj);
+ // uint64_t Hostname_clone_ptr(LDKHostname *NONNULL_PTR arg);
+ public static native long Hostname_clone_ptr(long arg);
+ // struct LDKHostname Hostname_clone(const struct LDKHostname *NONNULL_PTR orig);
+ public static native long Hostname_clone(long orig);
+ // bool Hostname_eq(const struct LDKHostname *NONNULL_PTR a, const struct LDKHostname *NONNULL_PTR b);
+ public static native boolean Hostname_eq(long a, long b);
+ // MUST_USE_RES uint8_t Hostname_len(const struct LDKHostname *NONNULL_PTR this_arg);
+ public static native byte Hostname_len(long this_arg);
+ // struct LDKCVec_u8Z Hostname_write(const struct LDKHostname *NONNULL_PTR obj);
+ public static native byte[] Hostname_write(long obj);
+ // struct LDKCResult_HostnameDecodeErrorZ Hostname_read(struct LDKu8slice ser);
+ public static native long Hostname_read(byte[] ser);
+ // void TransactionU16LenLimited_free(struct LDKTransactionU16LenLimited this_obj);
+ public static native void TransactionU16LenLimited_free(long this_obj);
+ // uint64_t TransactionU16LenLimited_clone_ptr(LDKTransactionU16LenLimited *NONNULL_PTR arg);
+ public static native long TransactionU16LenLimited_clone_ptr(long arg);
+ // struct LDKTransactionU16LenLimited TransactionU16LenLimited_clone(const struct LDKTransactionU16LenLimited *NONNULL_PTR orig);
+ public static native long TransactionU16LenLimited_clone(long orig);
+ // bool TransactionU16LenLimited_eq(const struct LDKTransactionU16LenLimited *NONNULL_PTR a, const struct LDKTransactionU16LenLimited *NONNULL_PTR b);
+ public static native boolean TransactionU16LenLimited_eq(long a, long b);
+ // MUST_USE_RES struct LDKCResult_TransactionU16LenLimitedNoneZ TransactionU16LenLimited_new(struct LDKTransaction transaction);
+ public static native long TransactionU16LenLimited_new(byte[] transaction);
+ // MUST_USE_RES struct LDKTransaction TransactionU16LenLimited_into_transaction(struct LDKTransactionU16LenLimited this_arg);
+ public static native byte[] TransactionU16LenLimited_into_transaction(long this_arg);
+ // struct LDKCVec_u8Z TransactionU16LenLimited_write(const struct LDKTransactionU16LenLimited *NONNULL_PTR obj);
+ public static native byte[] TransactionU16LenLimited_write(long obj);
+ // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ TransactionU16LenLimited_read(struct LDKu8slice ser);
+ public static native long TransactionU16LenLimited_read(byte[] ser);
+ // struct LDKCResult_StrSecp256k1ErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]);
+ public static native long sign(byte[] msg, byte[] sk);
+ // struct LDKCResult_PublicKeySecp256k1ErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig);
+ public static native long recover_pk(byte[] msg, String sig);
+ // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk);
+ public static native boolean verify(byte[] msg, String sig, byte[] pk);
+ // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z data_without_signature);
+ public static native byte[] construct_invoice_preimage(byte[] hrp_bytes, byte[] data_without_signature);
+ // void KVStore_free(struct LDKKVStore this_ptr);
+ public static native void KVStore_free(long this_ptr);
+ // void Persister_free(struct LDKPersister this_ptr);
+ public static native void Persister_free(long this_ptr);
+ // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ read_channel_monitors(struct LDKKVStore kv_store, struct LDKEntropySource entropy_source, struct LDKSignerProvider signer_provider);
+ public static native long read_channel_monitors(long kv_store, long entropy_source, long signer_provider);
+ // void MonitorUpdatingPersister_free(struct LDKMonitorUpdatingPersister this_obj);
+ public static native void MonitorUpdatingPersister_free(long this_obj);
+ // MUST_USE_RES struct LDKMonitorUpdatingPersister MonitorUpdatingPersister_new(struct LDKKVStore kv_store, struct LDKLogger logger, uint64_t maximum_pending_updates, struct LDKEntropySource entropy_source, struct LDKSignerProvider signer_provider);
+ public static native long MonitorUpdatingPersister_new(long kv_store, long logger, long maximum_pending_updates, long entropy_source, long signer_provider);
+ // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ MonitorUpdatingPersister_read_all_channel_monitors_with_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator);
+ public static native long MonitorUpdatingPersister_read_all_channel_monitors_with_updates(long this_arg, long broadcaster, long fee_estimator);
+ // MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ MonitorUpdatingPersister_read_channel_monitor_with_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, struct LDKStr monitor_key);
+ public static native long MonitorUpdatingPersister_read_channel_monitor_with_updates(long this_arg, long broadcaster, long fee_estimator, String monitor_key);
+ // MUST_USE_RES struct LDKCResult_NoneIOErrorZ MonitorUpdatingPersister_cleanup_stale_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, bool lazy);
+ public static native long MonitorUpdatingPersister_cleanup_stale_updates(long this_arg, boolean lazy);
+ // struct LDKPersist MonitorUpdatingPersister_as_Persist(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg);
+ public static native long MonitorUpdatingPersister_as_Persist(long this_arg);
+ // void UntrustedString_free(struct LDKUntrustedString this_obj);
+ public static native void UntrustedString_free(long this_obj);
+ // struct LDKStr UntrustedString_get_a(const struct LDKUntrustedString *NONNULL_PTR this_ptr);
+ public static native String UntrustedString_get_a(long this_ptr);
+ // void UntrustedString_set_a(struct LDKUntrustedString *NONNULL_PTR this_ptr, struct LDKStr val);
+ public static native void UntrustedString_set_a(long this_ptr, String val);
+ // MUST_USE_RES struct LDKUntrustedString UntrustedString_new(struct LDKStr a_arg);
+ public static native long UntrustedString_new(String a_arg);
+ // uint64_t UntrustedString_clone_ptr(LDKUntrustedString *NONNULL_PTR arg);
+ public static native long UntrustedString_clone_ptr(long arg);
+ // struct LDKUntrustedString UntrustedString_clone(const struct LDKUntrustedString *NONNULL_PTR orig);
+ public static native long UntrustedString_clone(long orig);
+ // bool UntrustedString_eq(const struct LDKUntrustedString *NONNULL_PTR a, const struct LDKUntrustedString *NONNULL_PTR b);
+ public static native boolean UntrustedString_eq(long a, long b);
+ // struct LDKCVec_u8Z UntrustedString_write(const struct LDKUntrustedString *NONNULL_PTR obj);
+ public static native byte[] UntrustedString_write(long obj);
+ // struct LDKCResult_UntrustedStringDecodeErrorZ UntrustedString_read(struct LDKu8slice ser);
+ public static native long UntrustedString_read(byte[] ser);
+ // void PrintableString_free(struct LDKPrintableString this_obj);
+ public static native void PrintableString_free(long this_obj);
+ // struct LDKStr PrintableString_get_a(const struct LDKPrintableString *NONNULL_PTR this_ptr);
+ public static native String PrintableString_get_a(long this_ptr);
+ // void PrintableString_set_a(struct LDKPrintableString *NONNULL_PTR this_ptr, struct LDKStr val);
+ public static native void PrintableString_set_a(long this_ptr, String val);
+ // MUST_USE_RES struct LDKPrintableString PrintableString_new(struct LDKStr a_arg);
+ public static native long PrintableString_new(String a_arg);
+ // void FutureCallback_free(struct LDKFutureCallback this_ptr);
+ public static native void FutureCallback_free(long this_ptr);
+ // void Future_free(struct LDKFuture this_obj);
+ public static native void Future_free(long this_obj);
+ // uint64_t Future_clone_ptr(LDKFuture *NONNULL_PTR arg);
+ public static native long Future_clone_ptr(long arg);
+ // struct LDKFuture Future_clone(const struct LDKFuture *NONNULL_PTR orig);
+ public static native long Future_clone(long orig);
+ // void Future_register_callback_fn(const struct LDKFuture *NONNULL_PTR this_arg, struct LDKFutureCallback callback);
+ public static native void Future_register_callback_fn(long this_arg, long callback);
+ // void Future_wait(struct LDKFuture this_arg);
+ public static native void Future_wait(long this_arg);
+ // MUST_USE_RES bool Future_wait_timeout(struct LDKFuture this_arg, uint64_t max_wait);
+ public static native boolean Future_wait_timeout(long this_arg, long max_wait);
+ // void Sleeper_free(struct LDKSleeper this_obj);
+ public static native void Sleeper_free(long this_obj);
+ // MUST_USE_RES struct LDKSleeper Sleeper_from_single_future(struct LDKFuture future);
+ public static native long Sleeper_from_single_future(long future);
+ // MUST_USE_RES struct LDKSleeper Sleeper_from_two_futures(struct LDKFuture fut_a, struct LDKFuture fut_b);
+ public static native long Sleeper_from_two_futures(long fut_a, long fut_b);
+ // MUST_USE_RES struct LDKSleeper Sleeper_new(struct LDKCVec_FutureZ futures);
+ public static native long Sleeper_new(long[] futures);
+ // void Sleeper_wait(const struct LDKSleeper *NONNULL_PTR this_arg);
+ public static native void Sleeper_wait(long this_arg);
+ // MUST_USE_RES bool Sleeper_wait_timeout(const struct LDKSleeper *NONNULL_PTR this_arg, uint64_t max_wait);
+ public static native boolean Sleeper_wait_timeout(long this_arg, long max_wait);
+ // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
+ public static native Level Level_clone(long orig);
+ // enum LDKLevel Level_gossip(void);
+ public static native Level Level_gossip();
+ // enum LDKLevel Level_trace(void);
+ public static native Level Level_trace();
+ // enum LDKLevel Level_debug(void);
+ public static native Level Level_debug();
+ // enum LDKLevel Level_info(void);
+ public static native Level Level_info();
+ // enum LDKLevel Level_warn(void);
+ public static native Level Level_warn();
+ // enum LDKLevel Level_error(void);
+ public static native Level Level_error();
+ // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b);
+ public static native boolean Level_eq(long a, long b);
+ // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o);
+ public static native long Level_hash(long o);
+ // MUST_USE_RES enum LDKLevel Level_max(void);
+ public static native Level Level_max();
+ // void Record_free(struct LDKRecord this_obj);
+ public static native void Record_free(long this_obj);
+ // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr);
+ public static native Level Record_get_level(long this_ptr);
+ // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val);
+ public static native void Record_set_level(long this_ptr, Level val);
+ // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr);
+ public static native String Record_get_args(long this_ptr);
+ // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
+ public static native void Record_set_args(long this_ptr, String val);
+ // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr);
+ public static native String Record_get_module_path(long this_ptr);
+ // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
+ public static native void Record_set_module_path(long this_ptr, String val);
+ // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr);
+ public static native String Record_get_file(long this_ptr);
+ // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
+ public static native void Record_set_file(long this_ptr, String val);
+ // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr);
+ public static native int Record_get_line(long this_ptr);
+ // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val);
+ public static native void Record_set_line(long this_ptr, int val);
+ // uint64_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg);
+ public static native long Record_clone_ptr(long arg);
+ // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig);
+ public static native long Record_clone(long orig);
+ // void Logger_free(struct LDKLogger this_ptr);
+ public static native void Logger_free(long this_ptr);
+ // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj);
+ public static native void ChannelHandshakeConfig_free(long this_obj);
+ // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
+ public static native int ChannelHandshakeConfig_get_minimum_depth(long this_ptr);
+ // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
+ public static native void ChannelHandshakeConfig_set_minimum_depth(long this_ptr, int val);
+ // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
+ public static native short ChannelHandshakeConfig_get_our_to_self_delay(long this_ptr);
+ // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
+ public static native void ChannelHandshakeConfig_set_our_to_self_delay(long this_ptr, short val);
+ // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
+ public static native long ChannelHandshakeConfig_get_our_htlc_minimum_msat(long this_ptr);
+ // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ChannelHandshakeConfig_set_our_htlc_minimum_msat(long this_ptr, long val);
+ // uint8_t ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
+ public static native byte ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(long this_ptr);
+ // void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint8_t val);
+ public static native void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(long this_ptr, byte val);
+ // bool ChannelHandshakeConfig_get_negotiate_scid_privacy(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
+ public static native boolean ChannelHandshakeConfig_get_negotiate_scid_privacy(long this_ptr);
+ // void ChannelHandshakeConfig_set_negotiate_scid_privacy(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
+ public static native void ChannelHandshakeConfig_set_negotiate_scid_privacy(long this_ptr, boolean val);
+ // bool ChannelHandshakeConfig_get_announced_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
+ public static native boolean ChannelHandshakeConfig_get_announced_channel(long this_ptr);
+ // void ChannelHandshakeConfig_set_announced_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
+ public static native void ChannelHandshakeConfig_set_announced_channel(long this_ptr, boolean val);
+ // bool ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
+ public static native boolean ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(long this_ptr);
+ // void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
+ public static native void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(long this_ptr, boolean val);
+ // uint32_t ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
+ public static native int ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(long this_ptr);
+ // void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
+ public static native void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(long this_ptr, int val);
+ // bool ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
+ public static native boolean ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(long this_ptr);
+ // void ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
+ public static native void ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(long this_ptr, boolean val);
+ // uint16_t ChannelHandshakeConfig_get_our_max_accepted_htlcs(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
+ public static native short ChannelHandshakeConfig_get_our_max_accepted_htlcs(long this_ptr);
+ // void ChannelHandshakeConfig_set_our_max_accepted_htlcs(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
+ public static native void ChannelHandshakeConfig_set_our_max_accepted_htlcs(long this_ptr, short val);
+ // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_new(uint32_t minimum_depth_arg, uint16_t our_to_self_delay_arg, uint64_t our_htlc_minimum_msat_arg, uint8_t max_inbound_htlc_value_in_flight_percent_of_channel_arg, bool negotiate_scid_privacy_arg, bool announced_channel_arg, bool commit_upfront_shutdown_pubkey_arg, uint32_t their_channel_reserve_proportional_millionths_arg, bool negotiate_anchors_zero_fee_htlc_tx_arg, uint16_t our_max_accepted_htlcs_arg);
+ public static native long ChannelHandshakeConfig_new(int minimum_depth_arg, short our_to_self_delay_arg, long our_htlc_minimum_msat_arg, byte max_inbound_htlc_value_in_flight_percent_of_channel_arg, boolean negotiate_scid_privacy_arg, boolean announced_channel_arg, boolean commit_upfront_shutdown_pubkey_arg, int their_channel_reserve_proportional_millionths_arg, boolean negotiate_anchors_zero_fee_htlc_tx_arg, short our_max_accepted_htlcs_arg);
+ // uint64_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg);
+ public static native long ChannelHandshakeConfig_clone_ptr(long arg);
+ // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
+ public static native long ChannelHandshakeConfig_clone(long orig);
+ // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
+ public static native long ChannelHandshakeConfig_default();
+ // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj);
+ public static native void ChannelHandshakeLimits_free(long this_obj);
+ // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
+ public static native long ChannelHandshakeLimits_get_min_funding_satoshis(long this_ptr);
+ // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ChannelHandshakeLimits_set_min_funding_satoshis(long this_ptr, long val);
+ // uint64_t ChannelHandshakeLimits_get_max_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
+ public static native long ChannelHandshakeLimits_get_max_funding_satoshis(long this_ptr);
+ // void ChannelHandshakeLimits_set_max_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ChannelHandshakeLimits_set_max_funding_satoshis(long this_ptr, long val);
+ // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
+ public static native long ChannelHandshakeLimits_get_max_htlc_minimum_msat(long this_ptr);
+ // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ChannelHandshakeLimits_set_max_htlc_minimum_msat(long this_ptr, long val);
+ // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
+ public static native long ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(long this_ptr);
+ // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(long this_ptr, long val);
+ // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
+ public static native long ChannelHandshakeLimits_get_max_channel_reserve_satoshis(long this_ptr);
+ // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(long this_ptr, long val);
+ // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
+ public static native short ChannelHandshakeLimits_get_min_max_accepted_htlcs(long this_ptr);
+ // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
+ public static native void ChannelHandshakeLimits_set_min_max_accepted_htlcs(long this_ptr, short val);
+ // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
+ public static native int ChannelHandshakeLimits_get_max_minimum_depth(long this_ptr);
+ // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
+ public static native void ChannelHandshakeLimits_set_max_minimum_depth(long this_ptr, int val);
+ // bool ChannelHandshakeLimits_get_trust_own_funding_0conf(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
+ public static native boolean ChannelHandshakeLimits_get_trust_own_funding_0conf(long this_ptr);
+ // void ChannelHandshakeLimits_set_trust_own_funding_0conf(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
+ public static native void ChannelHandshakeLimits_set_trust_own_funding_0conf(long this_ptr, boolean val);
+ // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
+ public static native boolean ChannelHandshakeLimits_get_force_announced_channel_preference(long this_ptr);
+ // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
+ public static native void ChannelHandshakeLimits_set_force_announced_channel_preference(long this_ptr, boolean val);
+ // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
+ public static native short ChannelHandshakeLimits_get_their_to_self_delay(long this_ptr);
+ // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
+ public static native void ChannelHandshakeLimits_set_their_to_self_delay(long this_ptr, short val);
+ // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_new(uint64_t min_funding_satoshis_arg, uint64_t max_funding_satoshis_arg, uint64_t max_htlc_minimum_msat_arg, uint64_t min_max_htlc_value_in_flight_msat_arg, uint64_t max_channel_reserve_satoshis_arg, uint16_t min_max_accepted_htlcs_arg, uint32_t max_minimum_depth_arg, bool trust_own_funding_0conf_arg, bool force_announced_channel_preference_arg, uint16_t their_to_self_delay_arg);
+ public static native long ChannelHandshakeLimits_new(long min_funding_satoshis_arg, long max_funding_satoshis_arg, long max_htlc_minimum_msat_arg, long min_max_htlc_value_in_flight_msat_arg, long max_channel_reserve_satoshis_arg, short min_max_accepted_htlcs_arg, int max_minimum_depth_arg, boolean trust_own_funding_0conf_arg, boolean force_announced_channel_preference_arg, short their_to_self_delay_arg);
+ // uint64_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg);
+ public static native long ChannelHandshakeLimits_clone_ptr(long arg);
+ // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
+ public static native long ChannelHandshakeLimits_clone(long orig);
+ // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
+ public static native long ChannelHandshakeLimits_default();
+ // void MaxDustHTLCExposure_free(struct LDKMaxDustHTLCExposure this_ptr);
+ public static native void MaxDustHTLCExposure_free(long this_ptr);
+ // uint64_t MaxDustHTLCExposure_clone_ptr(LDKMaxDustHTLCExposure *NONNULL_PTR arg);
+ public static native long MaxDustHTLCExposure_clone_ptr(long arg);
+ // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_clone(const struct LDKMaxDustHTLCExposure *NONNULL_PTR orig);
+ public static native long MaxDustHTLCExposure_clone(long orig);
+ // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_fixed_limit_msat(uint64_t a);
+ public static native long MaxDustHTLCExposure_fixed_limit_msat(long a);
+ // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_fee_rate_multiplier(uint64_t a);
+ public static native long MaxDustHTLCExposure_fee_rate_multiplier(long a);
+ // bool MaxDustHTLCExposure_eq(const struct LDKMaxDustHTLCExposure *NONNULL_PTR a, const struct LDKMaxDustHTLCExposure *NONNULL_PTR b);
+ public static native boolean MaxDustHTLCExposure_eq(long a, long b);
+ // struct LDKCVec_u8Z MaxDustHTLCExposure_write(const struct LDKMaxDustHTLCExposure *NONNULL_PTR obj);
+ public static native byte[] MaxDustHTLCExposure_write(long obj);
+ // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ MaxDustHTLCExposure_read(struct LDKu8slice ser);
+ public static native long MaxDustHTLCExposure_read(byte[] ser);
+ // void ChannelConfig_free(struct LDKChannelConfig this_obj);
+ public static native void ChannelConfig_free(long this_obj);
+ // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
+ public static native int ChannelConfig_get_forwarding_fee_proportional_millionths(long this_ptr);
+ // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
+ public static native void ChannelConfig_set_forwarding_fee_proportional_millionths(long this_ptr, int val);
+ // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
+ public static native int ChannelConfig_get_forwarding_fee_base_msat(long this_ptr);
+ // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
+ public static native void ChannelConfig_set_forwarding_fee_base_msat(long this_ptr, int val);
+ // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
+ public static native short ChannelConfig_get_cltv_expiry_delta(long this_ptr);
+ // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val);
+ public static native void ChannelConfig_set_cltv_expiry_delta(long this_ptr, short val);
+ // struct LDKMaxDustHTLCExposure ChannelConfig_get_max_dust_htlc_exposure(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
+ public static native long ChannelConfig_get_max_dust_htlc_exposure(long this_ptr);
+ // void ChannelConfig_set_max_dust_htlc_exposure(struct LDKChannelConfig *NONNULL_PTR this_ptr, struct LDKMaxDustHTLCExposure val);
+ public static native void ChannelConfig_set_max_dust_htlc_exposure(long this_ptr, long val);
+ // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
+ public static native long ChannelConfig_get_force_close_avoidance_max_fee_satoshis(long this_ptr);
+ // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(long this_ptr, long val);
+ // bool ChannelConfig_get_accept_underpaying_htlcs(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
+ public static native boolean ChannelConfig_get_accept_underpaying_htlcs(long this_ptr);
+ // void ChannelConfig_set_accept_underpaying_htlcs(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val);
+ public static native void ChannelConfig_set_accept_underpaying_htlcs(long this_ptr, boolean val);
+ // MUST_USE_RES struct LDKChannelConfig ChannelConfig_new(uint32_t forwarding_fee_proportional_millionths_arg, uint32_t forwarding_fee_base_msat_arg, uint16_t cltv_expiry_delta_arg, struct LDKMaxDustHTLCExposure max_dust_htlc_exposure_arg, uint64_t force_close_avoidance_max_fee_satoshis_arg, bool accept_underpaying_htlcs_arg);
+ public static native long ChannelConfig_new(int forwarding_fee_proportional_millionths_arg, int forwarding_fee_base_msat_arg, short cltv_expiry_delta_arg, long max_dust_htlc_exposure_arg, long force_close_avoidance_max_fee_satoshis_arg, boolean accept_underpaying_htlcs_arg);
+ // uint64_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg);
+ public static native long ChannelConfig_clone_ptr(long arg);
+ // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
+ public static native long ChannelConfig_clone(long orig);
+ // bool ChannelConfig_eq(const struct LDKChannelConfig *NONNULL_PTR a, const struct LDKChannelConfig *NONNULL_PTR b);
+ public static native boolean ChannelConfig_eq(long a, long b);
+ // void ChannelConfig_apply(struct LDKChannelConfig *NONNULL_PTR this_arg, const struct LDKChannelConfigUpdate *NONNULL_PTR update);
+ public static native void ChannelConfig_apply(long this_arg, long update);
+ // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
+ public static native long ChannelConfig_default();
+ // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
+ public static native byte[] ChannelConfig_write(long obj);
+ // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser);
+ public static native long ChannelConfig_read(byte[] ser);
+ // void ChannelConfigUpdate_free(struct LDKChannelConfigUpdate this_obj);
+ public static native void ChannelConfigUpdate_free(long this_obj);
+ // struct LDKCOption_u32Z ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
+ public static native long ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(long this_ptr);
+ // void ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
+ public static native void ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(long this_ptr, long val);
+ // struct LDKCOption_u32Z ChannelConfigUpdate_get_forwarding_fee_base_msat(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
+ public static native long ChannelConfigUpdate_get_forwarding_fee_base_msat(long this_ptr);
+ // void ChannelConfigUpdate_set_forwarding_fee_base_msat(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
+ public static native void ChannelConfigUpdate_set_forwarding_fee_base_msat(long this_ptr, long val);
+ // struct LDKCOption_u16Z ChannelConfigUpdate_get_cltv_expiry_delta(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
+ public static native long ChannelConfigUpdate_get_cltv_expiry_delta(long this_ptr);
+ // void ChannelConfigUpdate_set_cltv_expiry_delta(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
+ public static native void ChannelConfigUpdate_set_cltv_expiry_delta(long this_ptr, long val);
+ // struct LDKCOption_MaxDustHTLCExposureZ ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
+ public static native long ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(long this_ptr);
+ // void ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_MaxDustHTLCExposureZ val);
+ public static native void ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(long this_ptr, long val);
+ // struct LDKCOption_u64Z ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr);
+ public static native long ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(long this_ptr);
+ // void ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
+ public static native void ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(long this_ptr, long val);
+ // MUST_USE_RES struct LDKChannelConfigUpdate ChannelConfigUpdate_new(struct LDKCOption_u32Z forwarding_fee_proportional_millionths_arg, struct LDKCOption_u32Z forwarding_fee_base_msat_arg, struct LDKCOption_u16Z cltv_expiry_delta_arg, struct LDKCOption_MaxDustHTLCExposureZ max_dust_htlc_exposure_msat_arg, struct LDKCOption_u64Z force_close_avoidance_max_fee_satoshis_arg);
+ public static native long ChannelConfigUpdate_new(long forwarding_fee_proportional_millionths_arg, long forwarding_fee_base_msat_arg, long cltv_expiry_delta_arg, long max_dust_htlc_exposure_msat_arg, long force_close_avoidance_max_fee_satoshis_arg);
+ // MUST_USE_RES struct LDKChannelConfigUpdate ChannelConfigUpdate_default(void);
+ public static native long ChannelConfigUpdate_default();
+ // void UserConfig_free(struct LDKUserConfig this_obj);
+ public static native void UserConfig_free(long this_obj);
+ // struct LDKChannelHandshakeConfig UserConfig_get_channel_handshake_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
+ public static native long UserConfig_get_channel_handshake_config(long this_ptr);
+ // void UserConfig_set_channel_handshake_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
+ public static native void UserConfig_set_channel_handshake_config(long this_ptr, long val);
+ // struct LDKChannelHandshakeLimits UserConfig_get_channel_handshake_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
+ public static native long UserConfig_get_channel_handshake_limits(long this_ptr);
+ // void UserConfig_set_channel_handshake_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
+ public static native void UserConfig_set_channel_handshake_limits(long this_ptr, long val);
+ // struct LDKChannelConfig UserConfig_get_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
+ public static native long UserConfig_get_channel_config(long this_ptr);
+ // void UserConfig_set_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
+ public static native void UserConfig_set_channel_config(long this_ptr, long val);
+ // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
+ public static native boolean UserConfig_get_accept_forwards_to_priv_channels(long this_ptr);
+ // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
+ public static native void UserConfig_set_accept_forwards_to_priv_channels(long this_ptr, boolean val);
+ // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
+ public static native boolean UserConfig_get_accept_inbound_channels(long this_ptr);
+ // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
+ public static native void UserConfig_set_accept_inbound_channels(long this_ptr, boolean val);
+ // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
+ public static native boolean UserConfig_get_manually_accept_inbound_channels(long this_ptr);
+ // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
+ public static native void UserConfig_set_manually_accept_inbound_channels(long this_ptr, boolean val);
+ // bool UserConfig_get_accept_intercept_htlcs(const struct LDKUserConfig *NONNULL_PTR this_ptr);
+ public static native boolean UserConfig_get_accept_intercept_htlcs(long this_ptr);
+ // void UserConfig_set_accept_intercept_htlcs(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
+ public static native void UserConfig_set_accept_intercept_htlcs(long this_ptr, boolean val);
+ // bool UserConfig_get_accept_mpp_keysend(const struct LDKUserConfig *NONNULL_PTR this_ptr);
+ public static native boolean UserConfig_get_accept_mpp_keysend(long this_ptr);
+ // void UserConfig_set_accept_mpp_keysend(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
+ public static native void UserConfig_set_accept_mpp_keysend(long this_ptr, boolean val);
+ // MUST_USE_RES struct LDKUserConfig UserConfig_new(struct LDKChannelHandshakeConfig channel_handshake_config_arg, struct LDKChannelHandshakeLimits channel_handshake_limits_arg, struct LDKChannelConfig channel_config_arg, bool accept_forwards_to_priv_channels_arg, bool accept_inbound_channels_arg, bool manually_accept_inbound_channels_arg, bool accept_intercept_htlcs_arg, bool accept_mpp_keysend_arg);
+ public static native long UserConfig_new(long channel_handshake_config_arg, long channel_handshake_limits_arg, long channel_config_arg, boolean accept_forwards_to_priv_channels_arg, boolean accept_inbound_channels_arg, boolean manually_accept_inbound_channels_arg, boolean accept_intercept_htlcs_arg, boolean accept_mpp_keysend_arg);
+ // uint64_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg);
+ public static native long UserConfig_clone_ptr(long arg);
+ // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
+ public static native long UserConfig_clone(long orig);
+ // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
+ public static native long UserConfig_default();
+ // void BestBlock_free(struct LDKBestBlock this_obj);
+ public static native void BestBlock_free(long this_obj);
+ // uint64_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg);
+ public static native long BestBlock_clone_ptr(long arg);
+ // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig);
+ public static native long BestBlock_clone(long orig);
+ // bool BestBlock_eq(const struct LDKBestBlock *NONNULL_PTR a, const struct LDKBestBlock *NONNULL_PTR b);
+ public static native boolean BestBlock_eq(long a, long b);
+ // MUST_USE_RES struct LDKBestBlock BestBlock_from_network(enum LDKNetwork network);
+ public static native long BestBlock_from_network(Network network);
+ // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash, uint32_t height);
+ public static native long BestBlock_new(byte[] block_hash, int height);
+ // MUST_USE_RES struct LDKThirtyTwoBytes BestBlock_block_hash(const struct LDKBestBlock *NONNULL_PTR this_arg);
+ public static native byte[] BestBlock_block_hash(long this_arg);
+ // MUST_USE_RES uint32_t BestBlock_height(const struct LDKBestBlock *NONNULL_PTR this_arg);
+ public static native int BestBlock_height(long this_arg);
+ // void Listen_free(struct LDKListen this_ptr);
+ public static native void Listen_free(long this_ptr);
+ // void Confirm_free(struct LDKConfirm this_ptr);
+ public static native void Confirm_free(long this_ptr);
+ // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR orig);
+ public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(long orig);
+ // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed(void);
+ public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed();
+ // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress(void);
+ public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress();
+ // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_unrecoverable_error(void);
+ public static native ChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_unrecoverable_error();
+ // bool ChannelMonitorUpdateStatus_eq(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR a, const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR b);
+ public static native boolean ChannelMonitorUpdateStatus_eq(long a, long b);
+ // void Watch_free(struct LDKWatch this_ptr);
+ public static native void Watch_free(long this_ptr);
+ // void Filter_free(struct LDKFilter this_ptr);
+ public static native void Filter_free(long this_ptr);
+ // void WatchedOutput_free(struct LDKWatchedOutput this_obj);
+ public static native void WatchedOutput_free(long this_obj);
+ // struct LDKCOption_ThirtyTwoBytesZ WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
+ public static native long WatchedOutput_get_block_hash(long this_ptr);
+ // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val);
+ public static native void WatchedOutput_set_block_hash(long this_ptr, long val);
+ // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
+ public static native long WatchedOutput_get_outpoint(long this_ptr);
+ // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
+ public static native void WatchedOutput_set_outpoint(long this_ptr, long val);
+ // struct LDKu8slice WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
+ public static native byte[] WatchedOutput_get_script_pubkey(long this_ptr);
+ // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
+ public static native void WatchedOutput_set_script_pubkey(long this_ptr, byte[] val);
+ // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKCOption_ThirtyTwoBytesZ block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg);
+ public static native long WatchedOutput_new(long block_hash_arg, long outpoint_arg, byte[] script_pubkey_arg);
+ // uint64_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg);
+ public static native long WatchedOutput_clone_ptr(long arg);
+ // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig);
+ public static native long WatchedOutput_clone(long orig);
+ // bool WatchedOutput_eq(const struct LDKWatchedOutput *NONNULL_PTR a, const struct LDKWatchedOutput *NONNULL_PTR b);
+ public static native boolean WatchedOutput_eq(long a, long b);
+ // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o);
+ public static native long WatchedOutput_hash(long o);
+ // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
+ public static native void BroadcasterInterface_free(long this_ptr);
+ // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
+ public static native ConfirmationTarget ConfirmationTarget_clone(long orig);
+ // enum LDKConfirmationTarget ConfirmationTarget_on_chain_sweep(void);
+ public static native ConfirmationTarget ConfirmationTarget_on_chain_sweep();
+ // enum LDKConfirmationTarget ConfirmationTarget_max_allowed_non_anchor_channel_remote_fee(void);
+ public static native ConfirmationTarget ConfirmationTarget_max_allowed_non_anchor_channel_remote_fee();
+ // enum LDKConfirmationTarget ConfirmationTarget_min_allowed_anchor_channel_remote_fee(void);
+ public static native ConfirmationTarget ConfirmationTarget_min_allowed_anchor_channel_remote_fee();
+ // enum LDKConfirmationTarget ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee(void);
+ public static native ConfirmationTarget ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee();
+ // enum LDKConfirmationTarget ConfirmationTarget_anchor_channel_fee(void);
+ public static native ConfirmationTarget ConfirmationTarget_anchor_channel_fee();
+ // enum LDKConfirmationTarget ConfirmationTarget_non_anchor_channel_fee(void);
+ public static native ConfirmationTarget ConfirmationTarget_non_anchor_channel_fee();
+ // enum LDKConfirmationTarget ConfirmationTarget_channel_close_minimum(void);
+ public static native ConfirmationTarget ConfirmationTarget_channel_close_minimum();
+ // uint64_t ConfirmationTarget_hash(const enum LDKConfirmationTarget *NONNULL_PTR o);
+ public static native long ConfirmationTarget_hash(long o);
+ // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b);
+ public static native boolean ConfirmationTarget_eq(long a, long b);
+ // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
+ public static native void FeeEstimator_free(long this_ptr);
+ // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj);
+ public static native void MonitorUpdateId_free(long this_obj);
+ // uint64_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg);
+ public static native long MonitorUpdateId_clone_ptr(long arg);
+ // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig);
+ public static native long MonitorUpdateId_clone(long orig);
+ // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o);
+ public static native long MonitorUpdateId_hash(long o);
+ // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b);
+ public static native boolean MonitorUpdateId_eq(long a, long b);
+ // void Persist_free(struct LDKPersist this_ptr);
+ public static native void Persist_free(long this_ptr);
+ // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj);
+ public static native void LockedChannelMonitor_free(long this_obj);
+ // void ChainMonitor_free(struct LDKChainMonitor this_obj);
+ public static native void ChainMonitor_free(long this_obj);
+ // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
+ public static native long ChainMonitor_new(long chain_source, long broadcaster, long logger, long feeest, long persister);
+ // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels);
+ public static native long[] ChainMonitor_get_claimable_balances(long this_arg, long[] ignored_channels);
+ // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo);
+ public static native long ChainMonitor_get_monitor(long this_arg, long funding_txo);
+ // MUST_USE_RES struct LDKCVec_OutPointZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg);
+ public static native long[] ChainMonitor_list_monitors(long this_arg);
+ // MUST_USE_RES struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ ChainMonitor_list_pending_monitor_updates(const struct LDKChainMonitor *NONNULL_PTR this_arg);
+ public static native long[] ChainMonitor_list_pending_monitor_updates(long this_arg);
+ // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChainMonitor_channel_monitor_updated(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKMonitorUpdateId completed_update_id);
+ public static native long ChainMonitor_channel_monitor_updated(long this_arg, long funding_txo, long completed_update_id);
+ // MUST_USE_RES struct LDKFuture ChainMonitor_get_update_future(const struct LDKChainMonitor *NONNULL_PTR this_arg);
+ public static native long ChainMonitor_get_update_future(long this_arg);
+ // void ChainMonitor_rebroadcast_pending_claims(const struct LDKChainMonitor *NONNULL_PTR this_arg);
+ public static native void ChainMonitor_rebroadcast_pending_claims(long this_arg);
+ // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg);
+ public static native long ChainMonitor_as_Listen(long this_arg);
+ // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg);
+ public static native long ChainMonitor_as_Confirm(long this_arg);
+ // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
+ public static native long ChainMonitor_as_Watch(long this_arg);
+ // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
+ public static native long ChainMonitor_as_EventsProvider(long this_arg);
+ // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj);
+ public static native void ChannelMonitorUpdate_free(long this_obj);
+ // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
+ public static native long ChannelMonitorUpdate_get_update_id(long this_ptr);
+ // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ChannelMonitorUpdate_set_update_id(long this_ptr, long val);
+ // uint64_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg);
+ public static native long ChannelMonitorUpdate_clone_ptr(long arg);
+ // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
+ public static native long ChannelMonitorUpdate_clone(long orig);
+ // bool ChannelMonitorUpdate_eq(const struct LDKChannelMonitorUpdate *NONNULL_PTR a, const struct LDKChannelMonitorUpdate *NONNULL_PTR b);
+ public static native boolean ChannelMonitorUpdate_eq(long a, long b);
+ // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
+ public static native byte[] ChannelMonitorUpdate_write(long obj);
+ // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
+ public static native long ChannelMonitorUpdate_read(byte[] ser);
+ // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
+ public static native void MonitorEvent_free(long this_ptr);
+ // uint64_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg);
+ public static native long MonitorEvent_clone_ptr(long arg);
+ // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
+ public static native long MonitorEvent_clone(long orig);
+ // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a);
+ public static native long MonitorEvent_htlcevent(long a);
+ // struct LDKMonitorEvent MonitorEvent_holder_force_closed(struct LDKOutPoint a);
+ public static native long MonitorEvent_holder_force_closed(long a);
+ // struct LDKMonitorEvent MonitorEvent_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id);
+ public static native long MonitorEvent_completed(long funding_txo, long monitor_update_id);
+ // bool MonitorEvent_eq(const struct LDKMonitorEvent *NONNULL_PTR a, const struct LDKMonitorEvent *NONNULL_PTR b);
+ public static native boolean MonitorEvent_eq(long a, long b);
+ // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj);
+ public static native byte[] MonitorEvent_write(long obj);
+ // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser);
+ public static native long MonitorEvent_read(byte[] ser);
+ // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj);
+ public static native void HTLCUpdate_free(long this_obj);
+ // uint64_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg);
+ public static native long HTLCUpdate_clone_ptr(long arg);
+ // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
+ public static native long HTLCUpdate_clone(long orig);
+ // bool HTLCUpdate_eq(const struct LDKHTLCUpdate *NONNULL_PTR a, const struct LDKHTLCUpdate *NONNULL_PTR b);
+ public static native boolean HTLCUpdate_eq(long a, long b);
+ // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
+ public static native byte[] HTLCUpdate_write(long obj);
+ // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser);
+ public static native long HTLCUpdate_read(byte[] ser);
+ // void Balance_free(struct LDKBalance this_ptr);
+ public static native void Balance_free(long this_ptr);
+ // uint64_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg);
+ public static native long Balance_clone_ptr(long arg);
+ // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig);
+ public static native long Balance_clone(long orig);
+ // struct LDKBalance Balance_claimable_on_channel_close(uint64_t amount_satoshis);
+ public static native long Balance_claimable_on_channel_close(long amount_satoshis);
+ // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t amount_satoshis, uint32_t confirmation_height);
+ public static native long Balance_claimable_awaiting_confirmations(long amount_satoshis, int confirmation_height);
+ // struct LDKBalance Balance_contentious_claimable(uint64_t amount_satoshis, uint32_t timeout_height, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_preimage);
+ public static native long Balance_contentious_claimable(long amount_satoshis, int timeout_height, byte[] payment_hash, byte[] payment_preimage);
+ // struct LDKBalance Balance_maybe_timeout_claimable_htlc(uint64_t amount_satoshis, uint32_t claimable_height, struct LDKThirtyTwoBytes payment_hash);
+ public static native long Balance_maybe_timeout_claimable_htlc(long amount_satoshis, int claimable_height, byte[] payment_hash);
+ // struct LDKBalance Balance_maybe_preimage_claimable_htlc(uint64_t amount_satoshis, uint32_t expiry_height, struct LDKThirtyTwoBytes payment_hash);
+ public static native long Balance_maybe_preimage_claimable_htlc(long amount_satoshis, int expiry_height, byte[] payment_hash);
+ // struct LDKBalance Balance_counterparty_revoked_output_claimable(uint64_t amount_satoshis);
+ public static native long Balance_counterparty_revoked_output_claimable(long amount_satoshis);
+ // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b);
+ public static native boolean Balance_eq(long a, long b);
+ // MUST_USE_RES uint64_t Balance_claimable_amount_satoshis(const struct LDKBalance *NONNULL_PTR this_arg);
+ public static native long Balance_claimable_amount_satoshis(long this_arg);
+ // void ChannelMonitor_free(struct LDKChannelMonitor this_obj);
+ public static native void ChannelMonitor_free(long this_obj);
+ // uint64_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg);
+ public static native long ChannelMonitor_clone_ptr(long arg);
+ // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig);
+ public static native long ChannelMonitor_clone(long orig);
+ // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
+ public static native byte[] ChannelMonitor_write(long obj);
+ // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelMonitor_update_monitor(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR updates, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, const struct LDKLogger *NONNULL_PTR logger);
+ public static native long ChannelMonitor_update_monitor(long this_arg, long updates, long broadcaster, long fee_estimator, long logger);
+ // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
+ public static native long ChannelMonitor_get_latest_update_id(long this_arg);
+ // MUST_USE_RES struct LDKC2Tuple_OutPointCVec_u8ZZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
+ public static native long ChannelMonitor_get_funding_txo(long this_arg);
+ // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
+ public static native long[] ChannelMonitor_get_outputs_to_watch(long this_arg);
+ // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter);
+ public static native void ChannelMonitor_load_outputs_to_watch(long this_arg, long filter);
+ // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
+ public static native long[] ChannelMonitor_get_and_clear_pending_monitor_events(long this_arg);
+ // void ChannelMonitor_process_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKEventHandler *NONNULL_PTR handler);
+ public static native void ChannelMonitor_process_pending_events(long this_arg, long handler);
+ // MUST_USE_RES struct LDKCommitmentTransaction ChannelMonitor_initial_counterparty_commitment_tx(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
+ public static native long ChannelMonitor_initial_counterparty_commitment_tx(long this_arg);
+ // MUST_USE_RES struct LDKCVec_CommitmentTransactionZ ChannelMonitor_counterparty_commitment_txs_from_update(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR update);
+ public static native long[] ChannelMonitor_counterparty_commitment_txs_from_update(long this_arg, long update);
+ // MUST_USE_RES struct LDKCResult_TransactionNoneZ ChannelMonitor_sign_to_local_justice_tx(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input_idx, uint64_t value, uint64_t commitment_number);
+ public static native long ChannelMonitor_sign_to_local_justice_tx(long this_arg, byte[] justice_tx, long input_idx, long value, long commitment_number);
+ // MUST_USE_RES struct LDKPublicKey ChannelMonitor_get_counterparty_node_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
+ public static native byte[] ChannelMonitor_get_counterparty_node_id(long this_arg);
+ // MUST_USE_RES struct LDKCVec_TransactionZ ChannelMonitor_get_latest_holder_commitment_txn(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKLogger *NONNULL_PTR logger);
+ public static native byte[][] ChannelMonitor_get_latest_holder_commitment_txn(long this_arg, long logger);
+ // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_block_connected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
+ public static native long[] ChannelMonitor_block_connected(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
+ // void ChannelMonitor_block_disconnected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
+ public static native void ChannelMonitor_block_disconnected(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
+ // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_transactions_confirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
+ public static native long[] ChannelMonitor_transactions_confirmed(long this_arg, byte[] header, long[] txdata, int height, long broadcaster, long fee_estimator, long logger);
+ // void ChannelMonitor_transaction_unconfirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
+ public static native void ChannelMonitor_transaction_unconfirmed(long this_arg, byte[] txid, long broadcaster, long fee_estimator, long logger);
+ // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_best_block_updated(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
+ public static native long[] ChannelMonitor_best_block_updated(long this_arg, byte[] header, int height, long broadcaster, long fee_estimator, long logger);
+ // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
+ public static native long[] ChannelMonitor_get_relevant_txids(long this_arg);
+ // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
+ public static native long ChannelMonitor_current_best_block(long this_arg);
+ // void ChannelMonitor_rebroadcast_pending_claims(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
+ public static native void ChannelMonitor_rebroadcast_pending_claims(long this_arg, long broadcaster, long fee_estimator, long logger);
+ // MUST_USE_RES struct LDKCVec_SpendableOutputDescriptorZ ChannelMonitor_get_spendable_outputs(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKTransaction tx, uint32_t confirmation_height);
+ public static native long[] ChannelMonitor_get_spendable_outputs(long this_arg, byte[] tx, int confirmation_height);
+ // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
+ public static native long[] ChannelMonitor_get_claimable_balances(long this_arg);
+ // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKEntropySource *NONNULL_PTR arg_a, const struct LDKSignerProvider *NONNULL_PTR arg_b);
+ public static native long C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(byte[] ser, long arg_a, long arg_b);
+ // void OutPoint_free(struct LDKOutPoint this_obj);
+ public static native void OutPoint_free(long this_obj);
+ // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
+ public static native byte[] OutPoint_get_txid(long this_ptr);
+ // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
+ public static native void OutPoint_set_txid(long this_ptr, byte[] val);
+ // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
+ public static native short OutPoint_get_index(long this_ptr);
+ // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
+ public static native void OutPoint_set_index(long this_ptr, short val);
+ // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
+ public static native long OutPoint_new(byte[] txid_arg, short index_arg);
+ // uint64_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg);
+ public static native long OutPoint_clone_ptr(long arg);
+ // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
+ public static native long OutPoint_clone(long orig);
+ // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b);
+ public static native boolean OutPoint_eq(long a, long b);
+ // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o);
+ public static native long OutPoint_hash(long o);
+ // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg);
+ public static native byte[] OutPoint_to_channel_id(long this_arg);
+ // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
+ public static native byte[] OutPoint_write(long obj);
+ // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser);
+ public static native long OutPoint_read(byte[] ser);
+ // void FailureCode_free(struct LDKFailureCode this_ptr);
+ public static native void FailureCode_free(long this_ptr);
+ // uint64_t FailureCode_clone_ptr(LDKFailureCode *NONNULL_PTR arg);
+ public static native long FailureCode_clone_ptr(long arg);
+ // struct LDKFailureCode FailureCode_clone(const struct LDKFailureCode *NONNULL_PTR orig);
+ public static native long FailureCode_clone(long orig);
+ // struct LDKFailureCode FailureCode_temporary_node_failure(void);
+ public static native long FailureCode_temporary_node_failure();
+ // struct LDKFailureCode FailureCode_required_node_feature_missing(void);
+ public static native long FailureCode_required_node_feature_missing();
+ // struct LDKFailureCode FailureCode_incorrect_or_unknown_payment_details(void);
+ public static native long FailureCode_incorrect_or_unknown_payment_details();
+ // struct LDKFailureCode FailureCode_invalid_onion_payload(struct LDKCOption_C2Tuple_u64u16ZZ a);
+ public static native long FailureCode_invalid_onion_payload(long a);