+ public static class LDKCOption_C2Tuple_usizeTransactionZZ {
+ private LDKCOption_C2Tuple_usizeTransactionZZ() {}
+ export class Some extends LDKCOption_C2Tuple_usizeTransactionZZ {
+ public number some;
+ Some(number some) { this.some = some; }
+ }
+ export class None extends LDKCOption_C2Tuple_usizeTransactionZZ {
+ None() { }
+ }
+ static native void init();
+ }
+ static { LDKCOption_C2Tuple_usizeTransactionZZ.init(); }
+ public static native LDKCOption_C2Tuple_usizeTransactionZZ LDKCOption_C2Tuple_usizeTransactionZZ_ref_from_ptr(long ptr);
+ public static native boolean LDKCResult_DirectionalChannelInfoDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_DirectionalChannelInfoDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_DirectionalChannelInfoDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ChannelInfoDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_ChannelInfoDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_ChannelInfoDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_RoutingFeesDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_RoutingFeesDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_RoutingFeesDecodeErrorZ_get_err(long arg);
+ public static class LDKNetAddress {
+ private LDKNetAddress() {}
+ export class IPv4 extends LDKNetAddress {
+ public Uint8Array addr;
+ public number port;
+ IPv4(Uint8Array addr, number port) { this.addr = addr; this.port = port; }
+ }
+ export class IPv6 extends LDKNetAddress {
+ public Uint8Array addr;
+ public number port;
+ IPv6(Uint8Array addr, number port) { this.addr = addr; this.port = port; }
+ }
+ export class OnionV2 extends LDKNetAddress {
+ public Uint8Array addr;
+ public number port;
+ OnionV2(Uint8Array addr, number port) { this.addr = addr; this.port = port; }
+ }
+ export class OnionV3 extends LDKNetAddress {
+ public Uint8Array ed25519_pubkey;
+ public number checksum;
+ public number version;
+ public number port;
+ OnionV3(Uint8Array ed25519_pubkey, number checksum, number version, number port) { this.ed25519_pubkey = ed25519_pubkey; this.checksum = checksum; this.version = version; this.port = port; }
+ }
+ static native void init();
+ }
+ static { LDKNetAddress.init(); }
+ public static native LDKNetAddress LDKNetAddress_ref_from_ptr(long ptr);
+ public static native long LDKCVec_NetAddressZ_new(number[] elems);
+ public static native boolean LDKCResult_NodeAnnouncementInfoDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_NodeAnnouncementInfoDecodeErrorZ_get_err(long arg);
+ public static native long LDKCVec_u64Z_new(number[] elems);
+ public static native boolean LDKCResult_NodeInfoDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_NodeInfoDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_NodeInfoDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_NetworkGraphDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_NetworkGraphDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_NetworkGraphDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_InitFeaturesDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_InitFeaturesDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_InitFeaturesDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_NodeFeaturesDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_NodeFeaturesDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_NodeFeaturesDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ChannelFeaturesDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_ChannelFeaturesDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_ChannelFeaturesDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_InvoiceFeaturesDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_InvoiceFeaturesDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_InvoiceFeaturesDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_NetAddressu8Z_result_ok(long arg);
+ public static native number LDKCResult_NetAddressu8Z_get_ok(long arg);
+ public static native number LDKCResult_NetAddressu8Z_get_err(long arg);
+ public static native boolean LDKCResult_CResult_NetAddressu8ZDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_CResult_NetAddressu8ZDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_CResult_NetAddressu8ZDecodeErrorZ_get_err(long arg);
+ public static native long LDKCVec_UpdateAddHTLCZ_new(number[] elems);
+ public static native long LDKCVec_UpdateFulfillHTLCZ_new(number[] elems);
+ public static native long LDKCVec_UpdateFailHTLCZ_new(number[] elems);
+ public static native long LDKCVec_UpdateFailMalformedHTLCZ_new(number[] elems);
+ public static native boolean LDKCResult_AcceptChannelDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_AcceptChannelDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_AcceptChannelDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_AnnouncementSignaturesDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_AnnouncementSignaturesDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_AnnouncementSignaturesDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ChannelReestablishDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_ChannelReestablishDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_ChannelReestablishDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ClosingSignedDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_ClosingSignedDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_ClosingSignedDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_CommitmentSignedDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_CommitmentSignedDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_CommitmentSignedDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_FundingCreatedDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_FundingCreatedDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_FundingCreatedDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_FundingSignedDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_FundingSignedDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_FundingSignedDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_FundingLockedDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_FundingLockedDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_FundingLockedDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_InitDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_InitDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_InitDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_OpenChannelDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_OpenChannelDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_OpenChannelDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_RevokeAndACKDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_RevokeAndACKDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_RevokeAndACKDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ShutdownDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_ShutdownDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_ShutdownDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_UpdateFailHTLCDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_UpdateFailHTLCDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_UpdateFailHTLCDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_UpdateFeeDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_UpdateFeeDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_UpdateFeeDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_UpdateFulfillHTLCDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_UpdateFulfillHTLCDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_UpdateAddHTLCDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_UpdateAddHTLCDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_UpdateAddHTLCDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_PingDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_PingDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_PingDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_PongDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_PongDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_PongDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ChannelAnnouncementDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_ChannelAnnouncementDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_ChannelAnnouncementDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_UnsignedChannelUpdateDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_UnsignedChannelUpdateDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ChannelUpdateDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_ChannelUpdateDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_ChannelUpdateDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ErrorMessageDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_ErrorMessageDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_ErrorMessageDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_NodeAnnouncementDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_NodeAnnouncementDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_NodeAnnouncementDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_QueryShortChannelIdsDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_QueryShortChannelIdsDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_QueryShortChannelIdsDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_QueryChannelRangeDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_QueryChannelRangeDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_QueryChannelRangeDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ReplyChannelRangeDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_ReplyChannelRangeDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_ReplyChannelRangeDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_GossipTimestampFilterDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_GossipTimestampFilterDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_GossipTimestampFilterDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_SpendableOutputDescriptorDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_SpendableOutputDescriptorDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_SignDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_SignDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_SignDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_CVec_CVec_u8ZZNoneZ_result_ok(long arg);
+ public static native Uint8Array[] LDKCResult_CVec_CVec_u8ZZNoneZ_get_ok(long arg);
+ public static native void LDKCResult_CVec_CVec_u8ZZNoneZ_get_err(long arg);
+ public static native boolean LDKCResult_InMemorySignerDecodeErrorZ_result_ok(long arg);
+ public static native number LDKCResult_InMemorySignerDecodeErrorZ_get_ok(long arg);
+ public static native number LDKCResult_InMemorySignerDecodeErrorZ_get_err(long arg);
+ public static native long LDKCVec_TxOutZ_new(number[] elems);
+ public static native boolean LDKCResult_TransactionNoneZ_result_ok(long arg);
+ public static native Uint8Array LDKCResult_TransactionNoneZ_get_ok(long arg);
+ public static native void LDKCResult_TransactionNoneZ_get_err(long arg);
+ public static native boolean LDKCResult_NoneErrorZ_result_ok(long arg);
+ public static native void LDKCResult_NoneErrorZ_get_ok(long arg);
+ public static native LDKIOError LDKCResult_NoneErrorZ_get_err(long arg);
+ public static native long LDKCVec_C2Tuple_BlockHashChannelMonitorZZ_new(number[] elems);
+ public static native boolean LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_result_ok(long arg);
+ public static native number[] LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_ok(long arg);
+ public static native LDKIOError LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_err(long arg);