+ // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
+ public static native long TxOut_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);
+ // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
+ public static native void CResult_ChannelConfigDecodeErrorZ_free(long _res);
+ // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelConfigDecodeErrorZ_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);
+ // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
+ public static native void CResult_OutPointDecodeErrorZ_free(long _res);
+ // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_OutPointDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_ok(struct LDKSecretKey o);
+ public static native long CResult_SecretKeyErrorZ_ok(byte[] o);
+ // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_err(enum LDKSecp256k1Error e);
+ public static native long CResult_SecretKeyErrorZ_err(LDKSecp256k1Error e);
+ // void CResult_SecretKeyErrorZ_free(struct LDKCResult_SecretKeyErrorZ _res);
+ public static native void CResult_SecretKeyErrorZ_free(long _res);
+ // 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(LDKSecp256k1Error e);
+ // void CResult_PublicKeyErrorZ_free(struct LDKCResult_PublicKeyErrorZ _res);
+ public static native void CResult_PublicKeyErrorZ_free(long _res);
+ // 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);
+ // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
+ public static native void CResult_TxCreationKeysDecodeErrorZ_free(long _res);
+ // 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);
+ // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
+ public static native void CResult_ChannelPublicKeysDecodeErrorZ_free(long _res);
+ // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelPublicKeysDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_ok(struct LDKTxCreationKeys o);
+ public static native long CResult_TxCreationKeysErrorZ_ok(long o);
+ // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_err(enum LDKSecp256k1Error e);
+ public static native long CResult_TxCreationKeysErrorZ_err(LDKSecp256k1Error e);
+ // void CResult_TxCreationKeysErrorZ_free(struct LDKCResult_TxCreationKeysErrorZ _res);
+ public static native void CResult_TxCreationKeysErrorZ_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);
+ // 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);
+ // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
+ public static native void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(long _res);
+ // 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);
+ // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
+ public static native void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(long _res);
+ // 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);
+ // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
+ public static native void CResult_ChannelTransactionParametersDecodeErrorZ_free(long _res);
+ // 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);
+ // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
+ public static native void CResult_HolderCommitmentTransactionDecodeErrorZ_free(long _res);
+ // 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);
+ // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
+ public static native void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(long _res);
+ // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(long orig);
+ // 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);
+ // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
+ public static native void CResult_CommitmentTransactionDecodeErrorZ_free(long _res);
+ // 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();
+ // 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();
+ // void CResult_CVec_SignatureZNoneZ_free(struct LDKCResult_CVec_SignatureZNoneZ _res);
+ public static native void CResult_CVec_SignatureZNoneZ_free(long _res);
+ // 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);