]> git.bitcoin.ninja Git - ldk-java/blob - ts/structs/ChannelDetails.mts
615fdde632d714e1b130b3532455591f0b0236c9
[ldk-java] / ts / structs / ChannelDetails.mts
1 import { TxOut } from '../structs/TxOut.mjs';
2 import { TxIn } from '../structs/TxIn.mjs';
3 import { BigEndianScalar } from '../structs/BigEndianScalar.mjs';
4 import { WitnessProgram } from '../structs/WitnessProgram.mjs';
5 import { BlindedFailure } from '../enums/BlindedFailure.mjs';
6 import { Bolt11SemanticError } from '../enums/Bolt11SemanticError.mjs';
7 import { Bolt12SemanticError } from '../enums/Bolt12SemanticError.mjs';
8 import { COption_NoneZ } from '../enums/COption_NoneZ.mjs';
9 import { ChannelMonitorUpdateStatus } from '../enums/ChannelMonitorUpdateStatus.mjs';
10 import { ChannelShutdownState } from '../enums/ChannelShutdownState.mjs';
11 import { ConfirmationTarget } from '../enums/ConfirmationTarget.mjs';
12 import { CreationError } from '../enums/CreationError.mjs';
13 import { Currency } from '../enums/Currency.mjs';
14 import { Direction } from '../enums/Direction.mjs';
15 import { HTLCClaim } from '../enums/HTLCClaim.mjs';
16 import { IOError } from '../enums/IOError.mjs';
17 import { InboundHTLCStateDetails } from '../enums/InboundHTLCStateDetails.mjs';
18 import { Level } from '../enums/Level.mjs';
19 import { Network } from '../enums/Network.mjs';
20 import { OutboundHTLCStateDetails } from '../enums/OutboundHTLCStateDetails.mjs';
21 import { PaymentFailureReason } from '../enums/PaymentFailureReason.mjs';
22 import { Recipient } from '../enums/Recipient.mjs';
23 import { RetryableSendFailure } from '../enums/RetryableSendFailure.mjs';
24 import { Secp256k1Error } from '../enums/Secp256k1Error.mjs';
25 import { ShortChannelIdError } from '../enums/ShortChannelIdError.mjs';
26 import { SiPrefix } from '../enums/SiPrefix.mjs';
27 import { SocketAddressParseError } from '../enums/SocketAddressParseError.mjs';
28 import { UtxoLookupError } from '../enums/UtxoLookupError.mjs';
29 import { Bech32Error } from '../structs/Bech32Error.mjs';
30 import { RefundMaybeWithDerivedMetadataBuilder } from '../structs/RefundMaybeWithDerivedMetadataBuilder.mjs';
31 import { Result_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ } from '../structs/Result_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ.mjs';
32 import { Refund } from '../structs/Refund.mjs';
33 import { Result_RefundBolt12SemanticErrorZ } from '../structs/Result_RefundBolt12SemanticErrorZ.mjs';
34 import { Option_u64Z } from '../structs/Option_u64Z.mjs';
35 import { BlindedPath } from '../structs/BlindedPath.mjs';
36 import { Bolt12ParseError } from '../structs/Bolt12ParseError.mjs';
37 import { Result_RefundBolt12ParseErrorZ } from '../structs/Result_RefundBolt12ParseErrorZ.mjs';
38 import { Retry } from '../structs/Retry.mjs';
39 import { DecodeError } from '../structs/DecodeError.mjs';
40 import { Result_RetryDecodeErrorZ } from '../structs/Result_RetryDecodeErrorZ.mjs';
41 import { ShutdownScript } from '../structs/ShutdownScript.mjs';
42 import { APIError } from '../structs/APIError.mjs';
43 import { Result_NoneAPIErrorZ } from '../structs/Result_NoneAPIErrorZ.mjs';
44 import { Option_ThirtyTwoBytesZ } from '../structs/Option_ThirtyTwoBytesZ.mjs';
45 import { Option_CVec_u8ZZ } from '../structs/Option_CVec_u8ZZ.mjs';
46 import { RecipientOnionFields } from '../structs/RecipientOnionFields.mjs';
47 import { Result_RecipientOnionFieldsDecodeErrorZ } from '../structs/Result_RecipientOnionFieldsDecodeErrorZ.mjs';
48 import { TwoTuple_u64CVec_u8ZZ } from '../structs/TwoTuple_u64CVec_u8ZZ.mjs';
49 import { Result_RecipientOnionFieldsNoneZ } from '../structs/Result_RecipientOnionFieldsNoneZ.mjs';
50 import { UnsignedBolt12Invoice } from '../structs/UnsignedBolt12Invoice.mjs';
51 import { Result_UnsignedBolt12InvoiceBolt12SemanticErrorZ } from '../structs/Result_UnsignedBolt12InvoiceBolt12SemanticErrorZ.mjs';
52 import { Bolt12Invoice } from '../structs/Bolt12Invoice.mjs';
53 import { Result_Bolt12InvoiceBolt12SemanticErrorZ } from '../structs/Result_Bolt12InvoiceBolt12SemanticErrorZ.mjs';
54 import { Result_SchnorrSignatureNoneZ } from '../structs/Result_SchnorrSignatureNoneZ.mjs';
55 import { Option_CVec_ThirtyTwoBytesZZ } from '../structs/Option_CVec_ThirtyTwoBytesZZ.mjs';
56 import { Amount } from '../structs/Amount.mjs';
57 import { Option_AmountZ } from '../structs/Option_AmountZ.mjs';
58 import { Quantity } from '../structs/Quantity.mjs';
59 import { Option_QuantityZ } from '../structs/Option_QuantityZ.mjs';
60 import { Result_ThirtyTwoBytesNoneZ } from '../structs/Result_ThirtyTwoBytesNoneZ.mjs';
61 import { BlindedPayInfo } from '../structs/BlindedPayInfo.mjs';
62 import { Result_BlindedPayInfoDecodeErrorZ } from '../structs/Result_BlindedPayInfoDecodeErrorZ.mjs';
63 import { DelayedPaymentOutputDescriptor } from '../structs/DelayedPaymentOutputDescriptor.mjs';
64 import { Result_DelayedPaymentOutputDescriptorDecodeErrorZ } from '../structs/Result_DelayedPaymentOutputDescriptorDecodeErrorZ.mjs';
65 import { StaticPaymentOutputDescriptor } from '../structs/StaticPaymentOutputDescriptor.mjs';
66 import { Result_StaticPaymentOutputDescriptorDecodeErrorZ } from '../structs/Result_StaticPaymentOutputDescriptorDecodeErrorZ.mjs';
67 import { OutPoint } from '../structs/OutPoint.mjs';
68 import { SpendableOutputDescriptor } from '../structs/SpendableOutputDescriptor.mjs';
69 import { Result_SpendableOutputDescriptorDecodeErrorZ } from '../structs/Result_SpendableOutputDescriptorDecodeErrorZ.mjs';
70 import { Option_u32Z } from '../structs/Option_u32Z.mjs';
71 import { TwoTuple_CVec_u8Zu64Z } from '../structs/TwoTuple_CVec_u8Zu64Z.mjs';
72 import { Result_C2Tuple_CVec_u8Zu64ZNoneZ } from '../structs/Result_C2Tuple_CVec_u8Zu64ZNoneZ.mjs';
73 import { ChannelDerivationParameters } from '../structs/ChannelDerivationParameters.mjs';
74 import { Result_ChannelDerivationParametersDecodeErrorZ } from '../structs/Result_ChannelDerivationParametersDecodeErrorZ.mjs';
75 import { HTLCDescriptor } from '../structs/HTLCDescriptor.mjs';
76 import { Result_HTLCDescriptorDecodeErrorZ } from '../structs/Result_HTLCDescriptorDecodeErrorZ.mjs';
77 import { Result_NoneNoneZ } from '../structs/Result_NoneNoneZ.mjs';
78 import { Result_PublicKeyNoneZ } from '../structs/Result_PublicKeyNoneZ.mjs';
79 import { Option_BigEndianScalarZ } from '../structs/Option_BigEndianScalarZ.mjs';
80 import { Result_RecoverableSignatureNoneZ } from '../structs/Result_RecoverableSignatureNoneZ.mjs';
81 import { Result_ECDSASignatureNoneZ } from '../structs/Result_ECDSASignatureNoneZ.mjs';
82 import { Result_TransactionNoneZ } from '../structs/Result_TransactionNoneZ.mjs';
83 import { TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ } from '../structs/TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ.mjs';
84 import { Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ } from '../structs/Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ.mjs';
85 import { CommitmentTransaction } from '../structs/CommitmentTransaction.mjs';
86 import { HolderCommitmentTransaction } from '../structs/HolderCommitmentTransaction.mjs';
87 import { HTLCOutputInCommitment } from '../structs/HTLCOutputInCommitment.mjs';
88 import { ClosingTransaction } from '../structs/ClosingTransaction.mjs';
89 import { UnsignedChannelAnnouncement } from '../structs/UnsignedChannelAnnouncement.mjs';
90 import { ChannelPublicKeys } from '../structs/ChannelPublicKeys.mjs';
91 import { ChannelTransactionParameters } from '../structs/ChannelTransactionParameters.mjs';
92 import { ChannelSigner, ChannelSignerInterface } from '../structs/ChannelSigner.mjs';
93 import { EcdsaChannelSigner, EcdsaChannelSignerInterface } from '../structs/EcdsaChannelSigner.mjs';
94 import { WriteableEcdsaChannelSigner, WriteableEcdsaChannelSignerInterface } from '../structs/WriteableEcdsaChannelSigner.mjs';
95 import { Result_WriteableEcdsaChannelSignerDecodeErrorZ } from '../structs/Result_WriteableEcdsaChannelSignerDecodeErrorZ.mjs';
96 import { Result_CVec_u8ZNoneZ } from '../structs/Result_CVec_u8ZNoneZ.mjs';
97 import { Result_ShutdownScriptNoneZ } from '../structs/Result_ShutdownScriptNoneZ.mjs';
98 import { Option_u16Z } from '../structs/Option_u16Z.mjs';
99 import { Option_boolZ } from '../structs/Option_boolZ.mjs';
100 import { Result_WitnessNoneZ } from '../structs/Result_WitnessNoneZ.mjs';
101 import { InMemorySigner } from '../structs/InMemorySigner.mjs';
102 import { Result_InMemorySignerDecodeErrorZ } from '../structs/Result_InMemorySignerDecodeErrorZ.mjs';
103 import { Route } from '../structs/Route.mjs';
104 import { LightningError } from '../structs/LightningError.mjs';
105 import { Result_RouteLightningErrorZ } from '../structs/Result_RouteLightningErrorZ.mjs';
106 import { TwoTuple_BlindedPayInfoBlindedPathZ } from '../structs/TwoTuple_BlindedPayInfoBlindedPathZ.mjs';
107 import { Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ } from '../structs/Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ.mjs';
108 import { OnionMessagePath } from '../structs/OnionMessagePath.mjs';
109 import { Result_OnionMessagePathNoneZ } from '../structs/Result_OnionMessagePathNoneZ.mjs';
110 import { Result_CVec_BlindedPathZNoneZ } from '../structs/Result_CVec_BlindedPathZNoneZ.mjs';
111 import { InFlightHtlcs } from '../structs/InFlightHtlcs.mjs';
112 import { Result_InFlightHtlcsDecodeErrorZ } from '../structs/Result_InFlightHtlcsDecodeErrorZ.mjs';
113 import { RouteHop } from '../structs/RouteHop.mjs';
114 import { Result_RouteHopDecodeErrorZ } from '../structs/Result_RouteHopDecodeErrorZ.mjs';
115 import { BlindedHop } from '../structs/BlindedHop.mjs';
116 import { BlindedTail } from '../structs/BlindedTail.mjs';
117 import { Result_BlindedTailDecodeErrorZ } from '../structs/Result_BlindedTailDecodeErrorZ.mjs';
118 import { Path } from '../structs/Path.mjs';
119 import { Result_RouteDecodeErrorZ } from '../structs/Result_RouteDecodeErrorZ.mjs';
120 import { RouteParameters } from '../structs/RouteParameters.mjs';
121 import { Result_RouteParametersDecodeErrorZ } from '../structs/Result_RouteParametersDecodeErrorZ.mjs';
122 import { PaymentParameters } from '../structs/PaymentParameters.mjs';
123 import { Result_PaymentParametersDecodeErrorZ } from '../structs/Result_PaymentParametersDecodeErrorZ.mjs';
124 import { RouteHint } from '../structs/RouteHint.mjs';
125 import { RouteHintHop } from '../structs/RouteHintHop.mjs';
126 import { Result_RouteHintDecodeErrorZ } from '../structs/Result_RouteHintDecodeErrorZ.mjs';
127 import { Result_RouteHintHopDecodeErrorZ } from '../structs/Result_RouteHintHopDecodeErrorZ.mjs';
128 import { FixedPenaltyScorer } from '../structs/FixedPenaltyScorer.mjs';
129 import { Result_FixedPenaltyScorerDecodeErrorZ } from '../structs/Result_FixedPenaltyScorerDecodeErrorZ.mjs';
130 import { NodeId } from '../structs/NodeId.mjs';
131 import { TwoTuple_u64u64Z } from '../structs/TwoTuple_u64u64Z.mjs';
132 import { Option_C2Tuple_u64u64ZZ } from '../structs/Option_C2Tuple_u64u64ZZ.mjs';
133 import { TwoTuple_Z } from '../structs/TwoTuple_Z.mjs';
134 import { TwoTuple__u1632_u1632Z } from '../structs/TwoTuple__u1632_u1632Z.mjs';
135 import { Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ } from '../structs/Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ.mjs';
136 import { Option_f64Z } from '../structs/Option_f64Z.mjs';
137 import { Record } from '../structs/Record.mjs';
138 import { Logger, LoggerInterface } from '../structs/Logger.mjs';
139 import { NetworkGraph } from '../structs/NetworkGraph.mjs';
140 import { ProbabilisticScorer } from '../structs/ProbabilisticScorer.mjs';
141 import { Result_ProbabilisticScorerDecodeErrorZ } from '../structs/Result_ProbabilisticScorerDecodeErrorZ.mjs';
142 import { BestBlock } from '../structs/BestBlock.mjs';
143 import { Result_BestBlockDecodeErrorZ } from '../structs/Result_BestBlockDecodeErrorZ.mjs';
144 import { TwoTuple_usizeTransactionZ } from '../structs/TwoTuple_usizeTransactionZ.mjs';
145 import { ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ } from '../structs/ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ.mjs';
146 import { Result_ChannelMonitorUpdateStatusNoneZ } from '../structs/Result_ChannelMonitorUpdateStatusNoneZ.mjs';
147 import { HTLCUpdate } from '../structs/HTLCUpdate.mjs';
148 import { UntrustedString } from '../structs/UntrustedString.mjs';
149 import { ClosureReason } from '../structs/ClosureReason.mjs';
150 import { ChannelId } from '../structs/ChannelId.mjs';
151 import { MonitorEvent } from '../structs/MonitorEvent.mjs';
152 import { FourTuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ } from '../structs/FourTuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ.mjs';
153 import { InitFeatures } from '../structs/InitFeatures.mjs';
154 import { Result_InitFeaturesDecodeErrorZ } from '../structs/Result_InitFeaturesDecodeErrorZ.mjs';
155 import { ChannelFeatures } from '../structs/ChannelFeatures.mjs';
156 import { Result_ChannelFeaturesDecodeErrorZ } from '../structs/Result_ChannelFeaturesDecodeErrorZ.mjs';
157 import { NodeFeatures } from '../structs/NodeFeatures.mjs';
158 import { Result_NodeFeaturesDecodeErrorZ } from '../structs/Result_NodeFeaturesDecodeErrorZ.mjs';
159 import { Bolt11InvoiceFeatures } from '../structs/Bolt11InvoiceFeatures.mjs';
160 import { Result_Bolt11InvoiceFeaturesDecodeErrorZ } from '../structs/Result_Bolt11InvoiceFeaturesDecodeErrorZ.mjs';
161 import { Bolt12InvoiceFeatures } from '../structs/Bolt12InvoiceFeatures.mjs';
162 import { Result_Bolt12InvoiceFeaturesDecodeErrorZ } from '../structs/Result_Bolt12InvoiceFeaturesDecodeErrorZ.mjs';
163 import { BlindedHopFeatures } from '../structs/BlindedHopFeatures.mjs';
164 import { Result_BlindedHopFeaturesDecodeErrorZ } from '../structs/Result_BlindedHopFeaturesDecodeErrorZ.mjs';
165 import { ChannelTypeFeatures } from '../structs/ChannelTypeFeatures.mjs';
166 import { Result_ChannelTypeFeaturesDecodeErrorZ } from '../structs/Result_ChannelTypeFeaturesDecodeErrorZ.mjs';
167 import { OfferId } from '../structs/OfferId.mjs';
168 import { Result_OfferIdDecodeErrorZ } from '../structs/Result_OfferIdDecodeErrorZ.mjs';
169 import { Result_NoneBolt12SemanticErrorZ } from '../structs/Result_NoneBolt12SemanticErrorZ.mjs';
170 import { Offer } from '../structs/Offer.mjs';
171 import { Result_OfferBolt12SemanticErrorZ } from '../structs/Result_OfferBolt12SemanticErrorZ.mjs';
172 import { InvoiceRequestWithDerivedPayerIdBuilder } from '../structs/InvoiceRequestWithDerivedPayerIdBuilder.mjs';
173 import { Result_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ } from '../structs/Result_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ.mjs';
174 import { InvoiceRequestWithExplicitPayerIdBuilder } from '../structs/InvoiceRequestWithExplicitPayerIdBuilder.mjs';
175 import { Result_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ } from '../structs/Result_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ.mjs';
176 import { Result_OfferBolt12ParseErrorZ } from '../structs/Result_OfferBolt12ParseErrorZ.mjs';
177 import { Result_NodeIdDecodeErrorZ } from '../structs/Result_NodeIdDecodeErrorZ.mjs';
178 import { Result_PublicKeySecp256k1ErrorZ } from '../structs/Result_PublicKeySecp256k1ErrorZ.mjs';
179 import { ChannelUpdate } from '../structs/ChannelUpdate.mjs';
180 import { NetworkUpdate } from '../structs/NetworkUpdate.mjs';
181 import { Option_NetworkUpdateZ } from '../structs/Option_NetworkUpdateZ.mjs';
182 import { Result_COption_NetworkUpdateZDecodeErrorZ } from '../structs/Result_COption_NetworkUpdateZDecodeErrorZ.mjs';
183 import { Result_TxOutUtxoLookupErrorZ } from '../structs/Result_TxOutUtxoLookupErrorZ.mjs';
184 import { UtxoFuture } from '../structs/UtxoFuture.mjs';
185 import { UtxoResult } from '../structs/UtxoResult.mjs';
186 import { UtxoLookup, UtxoLookupInterface } from '../structs/UtxoLookup.mjs';
187 import { Option_UtxoLookupZ } from '../structs/Option_UtxoLookupZ.mjs';
188 import { Result_NoneLightningErrorZ } from '../structs/Result_NoneLightningErrorZ.mjs';
189 import { Result_boolLightningErrorZ } from '../structs/Result_boolLightningErrorZ.mjs';
190 import { ChannelAnnouncement } from '../structs/ChannelAnnouncement.mjs';
191 import { ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ } from '../structs/ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ.mjs';
192 import { Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ } from '../structs/Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ.mjs';
193 import { AcceptChannel } from '../structs/AcceptChannel.mjs';
194 import { AcceptChannelV2 } from '../structs/AcceptChannelV2.mjs';
195 import { OpenChannel } from '../structs/OpenChannel.mjs';
196 import { OpenChannelV2 } from '../structs/OpenChannelV2.mjs';
197 import { FundingCreated } from '../structs/FundingCreated.mjs';
198 import { FundingSigned } from '../structs/FundingSigned.mjs';
199 import { Stfu } from '../structs/Stfu.mjs';
200 import { Splice } from '../structs/Splice.mjs';
201 import { SpliceAck } from '../structs/SpliceAck.mjs';
202 import { SpliceLocked } from '../structs/SpliceLocked.mjs';
203 import { TxAddInput } from '../structs/TxAddInput.mjs';
204 import { TxAddOutput } from '../structs/TxAddOutput.mjs';
205 import { TxRemoveInput } from '../structs/TxRemoveInput.mjs';
206 import { TxRemoveOutput } from '../structs/TxRemoveOutput.mjs';
207 import { TxComplete } from '../structs/TxComplete.mjs';
208 import { TxSignatures } from '../structs/TxSignatures.mjs';
209 import { TxInitRbf } from '../structs/TxInitRbf.mjs';
210 import { TxAckRbf } from '../structs/TxAckRbf.mjs';
211 import { TxAbort } from '../structs/TxAbort.mjs';
212 import { ChannelReady } from '../structs/ChannelReady.mjs';
213 import { AnnouncementSignatures } from '../structs/AnnouncementSignatures.mjs';
214 import { CommitmentUpdate } from '../structs/CommitmentUpdate.mjs';
215 import { RevokeAndACK } from '../structs/RevokeAndACK.mjs';
216 import { ClosingSigned } from '../structs/ClosingSigned.mjs';
217 import { Shutdown } from '../structs/Shutdown.mjs';
218 import { ChannelReestablish } from '../structs/ChannelReestablish.mjs';
219 import { NodeAnnouncement } from '../structs/NodeAnnouncement.mjs';
220 import { ErrorMessage } from '../structs/ErrorMessage.mjs';
221 import { WarningMessage } from '../structs/WarningMessage.mjs';
222 import { ErrorAction } from '../structs/ErrorAction.mjs';
223 import { QueryChannelRange } from '../structs/QueryChannelRange.mjs';
224 import { QueryShortChannelIds } from '../structs/QueryShortChannelIds.mjs';
225 import { ReplyChannelRange } from '../structs/ReplyChannelRange.mjs';
226 import { GossipTimestampFilter } from '../structs/GossipTimestampFilter.mjs';
227 import { MessageSendEvent } from '../structs/MessageSendEvent.mjs';
228 import { ChannelUpdateInfo } from '../structs/ChannelUpdateInfo.mjs';
229 import { Result_ChannelUpdateInfoDecodeErrorZ } from '../structs/Result_ChannelUpdateInfoDecodeErrorZ.mjs';
230 import { ChannelInfo } from '../structs/ChannelInfo.mjs';
231 import { Result_ChannelInfoDecodeErrorZ } from '../structs/Result_ChannelInfoDecodeErrorZ.mjs';
232 import { RoutingFees } from '../structs/RoutingFees.mjs';
233 import { Result_RoutingFeesDecodeErrorZ } from '../structs/Result_RoutingFeesDecodeErrorZ.mjs';
234 import { Hostname } from '../structs/Hostname.mjs';
235 import { SocketAddress } from '../structs/SocketAddress.mjs';
236 import { NodeAnnouncementInfo } from '../structs/NodeAnnouncementInfo.mjs';
237 import { Result_NodeAnnouncementInfoDecodeErrorZ } from '../structs/Result_NodeAnnouncementInfoDecodeErrorZ.mjs';
238 import { NodeAlias } from '../structs/NodeAlias.mjs';
239 import { Result_NodeAliasDecodeErrorZ } from '../structs/Result_NodeAliasDecodeErrorZ.mjs';
240 import { NodeInfo } from '../structs/NodeInfo.mjs';
241 import { Result_NodeInfoDecodeErrorZ } from '../structs/Result_NodeInfoDecodeErrorZ.mjs';
242 import { Result_NetworkGraphDecodeErrorZ } from '../structs/Result_NetworkGraphDecodeErrorZ.mjs';
243 import { Option_CVec_SocketAddressZZ } from '../structs/Option_CVec_SocketAddressZZ.mjs';
244 import { Result_u64ShortChannelIdErrorZ } from '../structs/Result_u64ShortChannelIdErrorZ.mjs';
245 import { PendingHTLCInfo } from '../structs/PendingHTLCInfo.mjs';
246 import { InboundHTLCErr } from '../structs/InboundHTLCErr.mjs';
247 import { Result_PendingHTLCInfoInboundHTLCErrZ } from '../structs/Result_PendingHTLCInfoInboundHTLCErrZ.mjs';
248 import { Utxo } from '../structs/Utxo.mjs';
249 import { Option_TxOutZ } from '../structs/Option_TxOutZ.mjs';
250 import { Input } from '../structs/Input.mjs';
251 import { CoinSelection } from '../structs/CoinSelection.mjs';
252 import { Result_CoinSelectionNoneZ } from '../structs/Result_CoinSelectionNoneZ.mjs';
253 import { Result_CVec_UtxoZNoneZ } from '../structs/Result_CVec_UtxoZNoneZ.mjs';
254 import { UnknownPaymentContext } from '../structs/UnknownPaymentContext.mjs';
255 import { Bolt12OfferContext } from '../structs/Bolt12OfferContext.mjs';
256 import { Bolt12RefundContext } from '../structs/Bolt12RefundContext.mjs';
257 import { PaymentContext } from '../structs/PaymentContext.mjs';
258 import { Option_PaymentContextZ } from '../structs/Option_PaymentContextZ.mjs';
259 import { TwoTuple_u64u16Z } from '../structs/TwoTuple_u64u16Z.mjs';
260 import { Option_C2Tuple_u64u16ZZ } from '../structs/Option_C2Tuple_u64u16ZZ.mjs';
261 import { Result_ChannelIdAPIErrorZ } from '../structs/Result_ChannelIdAPIErrorZ.mjs';
262 import { RecentPaymentDetails } from '../structs/RecentPaymentDetails.mjs';
263 import { PaymentSendFailure } from '../structs/PaymentSendFailure.mjs';
264 import { Result_NonePaymentSendFailureZ } from '../structs/Result_NonePaymentSendFailureZ.mjs';
265 import { Result_NoneRetryableSendFailureZ } from '../structs/Result_NoneRetryableSendFailureZ.mjs';
266 import { Result_ThirtyTwoBytesPaymentSendFailureZ } from '../structs/Result_ThirtyTwoBytesPaymentSendFailureZ.mjs';
267 import { Result_ThirtyTwoBytesRetryableSendFailureZ } from '../structs/Result_ThirtyTwoBytesRetryableSendFailureZ.mjs';
268 import { TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ } from '../structs/TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ.mjs';
269 import { Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ } from '../structs/Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ.mjs';
270 import { ProbeSendFailure } from '../structs/ProbeSendFailure.mjs';
271 import { Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ } from '../structs/Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ.mjs';
272 import { TwoTuple_ChannelIdPublicKeyZ } from '../structs/TwoTuple_ChannelIdPublicKeyZ.mjs';
273 import { OfferWithDerivedMetadataBuilder } from '../structs/OfferWithDerivedMetadataBuilder.mjs';
274 import { Result_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ } from '../structs/Result_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ.mjs';
275 import { Option_StrZ } from '../structs/Option_StrZ.mjs';
276 import { Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ } from '../structs/Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ.mjs';
277 import { Result_ThirtyTwoBytesAPIErrorZ } from '../structs/Result_ThirtyTwoBytesAPIErrorZ.mjs';
278 import { InvoiceRequest } from '../structs/InvoiceRequest.mjs';
279 import { InvoiceError } from '../structs/InvoiceError.mjs';
280 import { OffersMessage } from '../structs/OffersMessage.mjs';
281 import { Option_OffersMessageZ } from '../structs/Option_OffersMessageZ.mjs';
282 import { Destination } from '../structs/Destination.mjs';
283 import { ThreeTuple_OffersMessageDestinationBlindedPathZ } from '../structs/ThreeTuple_OffersMessageDestinationBlindedPathZ.mjs';
284 import { PhantomRouteHints } from '../structs/PhantomRouteHints.mjs';
285 import { Result_PhantomRouteHintsDecodeErrorZ } from '../structs/Result_PhantomRouteHintsDecodeErrorZ.mjs';
286 import { BlindedForward } from '../structs/BlindedForward.mjs';
287 import { Result_BlindedForwardDecodeErrorZ } from '../structs/Result_BlindedForwardDecodeErrorZ.mjs';
288 import { OnionPacket } from '../structs/OnionPacket.mjs';
289 import { FinalOnionHopData } from '../structs/FinalOnionHopData.mjs';
290 import { PendingHTLCRouting } from '../structs/PendingHTLCRouting.mjs';
291 import { Result_PendingHTLCRoutingDecodeErrorZ } from '../structs/Result_PendingHTLCRoutingDecodeErrorZ.mjs';
292 import { Result_PendingHTLCInfoDecodeErrorZ } from '../structs/Result_PendingHTLCInfoDecodeErrorZ.mjs';
293 import { Result_BlindedFailureDecodeErrorZ } from '../structs/Result_BlindedFailureDecodeErrorZ.mjs';
294 import { ChannelMonitor } from '../structs/ChannelMonitor.mjs';
295 import { ChannelMonitorUpdate } from '../structs/ChannelMonitorUpdate.mjs';
296 import { Watch, WatchInterface } from '../structs/Watch.mjs';
297 import { BroadcasterInterface, BroadcasterInterfaceInterface } from '../structs/BroadcasterInterface.mjs';
298 import { EntropySource, EntropySourceInterface } from '../structs/EntropySource.mjs';
299 import { UnsignedInvoiceRequest } from '../structs/UnsignedInvoiceRequest.mjs';
300 import { UnsignedChannelUpdate } from '../structs/UnsignedChannelUpdate.mjs';
301 import { UnsignedNodeAnnouncement } from '../structs/UnsignedNodeAnnouncement.mjs';
302 import { UnsignedGossipMessage } from '../structs/UnsignedGossipMessage.mjs';
303 import { NodeSigner, NodeSignerInterface } from '../structs/NodeSigner.mjs';
304 import { SignerProvider, SignerProviderInterface } from '../structs/SignerProvider.mjs';
305 import { FeeEstimator, FeeEstimatorInterface } from '../structs/FeeEstimator.mjs';
306 import { ReceiveTlvs } from '../structs/ReceiveTlvs.mjs';
307 import { MessageRouter, MessageRouterInterface } from '../structs/MessageRouter.mjs';
308 import { Router, RouterInterface } from '../structs/Router.mjs';
309 import { ChannelManager } from '../structs/ChannelManager.mjs';
310 import { TwoTuple_ThirtyTwoBytesChannelManagerZ } from '../structs/TwoTuple_ThirtyTwoBytesChannelManagerZ.mjs';
311 import { Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ } from '../structs/Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ.mjs';
312 import { MaxDustHTLCExposure } from '../structs/MaxDustHTLCExposure.mjs';
313 import { Result_MaxDustHTLCExposureDecodeErrorZ } from '../structs/Result_MaxDustHTLCExposureDecodeErrorZ.mjs';
314 import { ChannelConfig } from '../structs/ChannelConfig.mjs';
315 import { Result_ChannelConfigDecodeErrorZ } from '../structs/Result_ChannelConfigDecodeErrorZ.mjs';
316 import { Option_MaxDustHTLCExposureZ } from '../structs/Option_MaxDustHTLCExposureZ.mjs';
317 import { Option_APIErrorZ } from '../structs/Option_APIErrorZ.mjs';
318 import { Result_COption_APIErrorZDecodeErrorZ } from '../structs/Result_COption_APIErrorZDecodeErrorZ.mjs';
319 import { Result_ChannelMonitorUpdateDecodeErrorZ } from '../structs/Result_ChannelMonitorUpdateDecodeErrorZ.mjs';
320 import { Option_MonitorEventZ } from '../structs/Option_MonitorEventZ.mjs';
321 import { Result_COption_MonitorEventZDecodeErrorZ } from '../structs/Result_COption_MonitorEventZDecodeErrorZ.mjs';
322 import { Result_HTLCUpdateDecodeErrorZ } from '../structs/Result_HTLCUpdateDecodeErrorZ.mjs';
323 import { TwoTuple_OutPointCVec_u8ZZ } from '../structs/TwoTuple_OutPointCVec_u8ZZ.mjs';
324 import { TwoTuple_u32CVec_u8ZZ } from '../structs/TwoTuple_u32CVec_u8ZZ.mjs';
325 import { TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ } from '../structs/TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ.mjs';
326 import { TwoTuple_u32TxOutZ } from '../structs/TwoTuple_u32TxOutZ.mjs';
327 import { TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ } from '../structs/TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ.mjs';
328 import { Balance } from '../structs/Balance.mjs';
329 import { TwoTuple_ThirtyTwoBytesChannelMonitorZ } from '../structs/TwoTuple_ThirtyTwoBytesChannelMonitorZ.mjs';
330 import { Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ } from '../structs/Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ.mjs';
331 import { Type, TypeInterface } from '../structs/Type.mjs';
332 import { TwoTuple_PublicKeyTypeZ } from '../structs/TwoTuple_PublicKeyTypeZ.mjs';
333 import { TwoTuple_PublicKeyCVec_SocketAddressZZ } from '../structs/TwoTuple_PublicKeyCVec_SocketAddressZZ.mjs';
334 import { OnionMessageContents, OnionMessageContentsInterface } from '../structs/OnionMessageContents.mjs';
335 import { Option_OnionMessageContentsZ } from '../structs/Option_OnionMessageContentsZ.mjs';
336 import { Result_COption_OnionMessageContentsZDecodeErrorZ } from '../structs/Result_COption_OnionMessageContentsZDecodeErrorZ.mjs';
337 import { ThreeTuple_OnionMessageContentsDestinationBlindedPathZ } from '../structs/ThreeTuple_OnionMessageContentsDestinationBlindedPathZ.mjs';
338 import { Option_TypeZ } from '../structs/Option_TypeZ.mjs';
339 import { Result_COption_TypeZDecodeErrorZ } from '../structs/Result_COption_TypeZDecodeErrorZ.mjs';
340 import { Option_SocketAddressZ } from '../structs/Option_SocketAddressZ.mjs';
341 import { PeerDetails } from '../structs/PeerDetails.mjs';
342 import { PeerHandleError } from '../structs/PeerHandleError.mjs';
343 import { Result_CVec_u8ZPeerHandleErrorZ } from '../structs/Result_CVec_u8ZPeerHandleErrorZ.mjs';
344 import { Result_NonePeerHandleErrorZ } from '../structs/Result_NonePeerHandleErrorZ.mjs';
345 import { Result_boolPeerHandleErrorZ } from '../structs/Result_boolPeerHandleErrorZ.mjs';
346 import { GraphSyncError } from '../structs/GraphSyncError.mjs';
347 import { Result_u32GraphSyncErrorZ } from '../structs/Result_u32GraphSyncErrorZ.mjs';
348 import { Result_CVec_u8ZIOErrorZ } from '../structs/Result_CVec_u8ZIOErrorZ.mjs';
349 import { Result_NoneIOErrorZ } from '../structs/Result_NoneIOErrorZ.mjs';
350 import { Result_CVec_StrZIOErrorZ } from '../structs/Result_CVec_StrZIOErrorZ.mjs';
351 import { Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ } from '../structs/Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ.mjs';
352 import { Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ } from '../structs/Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ.mjs';
353 import { Result_UnsignedInvoiceRequestBolt12SemanticErrorZ } from '../structs/Result_UnsignedInvoiceRequestBolt12SemanticErrorZ.mjs';
354 import { Result_InvoiceRequestBolt12SemanticErrorZ } from '../structs/Result_InvoiceRequestBolt12SemanticErrorZ.mjs';
355 import { Option_SecretKeyZ } from '../structs/Option_SecretKeyZ.mjs';
356 import { InvoiceWithExplicitSigningPubkeyBuilder } from '../structs/InvoiceWithExplicitSigningPubkeyBuilder.mjs';
357 import { Result_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ } from '../structs/Result_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ.mjs';
358 import { VerifiedInvoiceRequest } from '../structs/VerifiedInvoiceRequest.mjs';
359 import { Result_VerifiedInvoiceRequestNoneZ } from '../structs/Result_VerifiedInvoiceRequestNoneZ.mjs';
360 import { InvoiceWithDerivedSigningPubkeyBuilder } from '../structs/InvoiceWithDerivedSigningPubkeyBuilder.mjs';
361 import { Result_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ } from '../structs/Result_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ.mjs';
362 import { InvoiceRequestFields } from '../structs/InvoiceRequestFields.mjs';
363 import { Result_InvoiceRequestFieldsDecodeErrorZ } from '../structs/Result_InvoiceRequestFieldsDecodeErrorZ.mjs';
364 import { Option_ECDSASignatureZ } from '../structs/Option_ECDSASignatureZ.mjs';
365 import { Option_i64Z } from '../structs/Option_i64Z.mjs';
366 import { Result_SocketAddressDecodeErrorZ } from '../structs/Result_SocketAddressDecodeErrorZ.mjs';
367 import { Result_SocketAddressSocketAddressParseErrorZ } from '../structs/Result_SocketAddressSocketAddressParseErrorZ.mjs';
368 import { UpdateAddHTLC } from '../structs/UpdateAddHTLC.mjs';
369 import { UpdateFulfillHTLC } from '../structs/UpdateFulfillHTLC.mjs';
370 import { UpdateFailHTLC } from '../structs/UpdateFailHTLC.mjs';
371 import { UpdateFailMalformedHTLC } from '../structs/UpdateFailMalformedHTLC.mjs';
372 import { Result_AcceptChannelDecodeErrorZ } from '../structs/Result_AcceptChannelDecodeErrorZ.mjs';
373 import { Result_AcceptChannelV2DecodeErrorZ } from '../structs/Result_AcceptChannelV2DecodeErrorZ.mjs';
374 import { Result_StfuDecodeErrorZ } from '../structs/Result_StfuDecodeErrorZ.mjs';
375 import { Result_SpliceDecodeErrorZ } from '../structs/Result_SpliceDecodeErrorZ.mjs';
376 import { Result_SpliceAckDecodeErrorZ } from '../structs/Result_SpliceAckDecodeErrorZ.mjs';
377 import { Result_SpliceLockedDecodeErrorZ } from '../structs/Result_SpliceLockedDecodeErrorZ.mjs';
378 import { Result_TxAddInputDecodeErrorZ } from '../structs/Result_TxAddInputDecodeErrorZ.mjs';
379 import { Result_TxAddOutputDecodeErrorZ } from '../structs/Result_TxAddOutputDecodeErrorZ.mjs';
380 import { Result_TxRemoveInputDecodeErrorZ } from '../structs/Result_TxRemoveInputDecodeErrorZ.mjs';
381 import { Result_TxRemoveOutputDecodeErrorZ } from '../structs/Result_TxRemoveOutputDecodeErrorZ.mjs';
382 import { Result_TxCompleteDecodeErrorZ } from '../structs/Result_TxCompleteDecodeErrorZ.mjs';
383 import { Result_TxSignaturesDecodeErrorZ } from '../structs/Result_TxSignaturesDecodeErrorZ.mjs';
384 import { Result_TxInitRbfDecodeErrorZ } from '../structs/Result_TxInitRbfDecodeErrorZ.mjs';
385 import { Result_TxAckRbfDecodeErrorZ } from '../structs/Result_TxAckRbfDecodeErrorZ.mjs';
386 import { Result_TxAbortDecodeErrorZ } from '../structs/Result_TxAbortDecodeErrorZ.mjs';
387 import { Result_AnnouncementSignaturesDecodeErrorZ } from '../structs/Result_AnnouncementSignaturesDecodeErrorZ.mjs';
388 import { Result_ChannelReestablishDecodeErrorZ } from '../structs/Result_ChannelReestablishDecodeErrorZ.mjs';
389 import { Result_ClosingSignedDecodeErrorZ } from '../structs/Result_ClosingSignedDecodeErrorZ.mjs';
390 import { ClosingSignedFeeRange } from '../structs/ClosingSignedFeeRange.mjs';
391 import { Result_ClosingSignedFeeRangeDecodeErrorZ } from '../structs/Result_ClosingSignedFeeRangeDecodeErrorZ.mjs';
392 import { CommitmentSigned } from '../structs/CommitmentSigned.mjs';
393 import { Result_CommitmentSignedDecodeErrorZ } from '../structs/Result_CommitmentSignedDecodeErrorZ.mjs';
394 import { Result_FundingCreatedDecodeErrorZ } from '../structs/Result_FundingCreatedDecodeErrorZ.mjs';
395 import { Result_FundingSignedDecodeErrorZ } from '../structs/Result_FundingSignedDecodeErrorZ.mjs';
396 import { Result_ChannelReadyDecodeErrorZ } from '../structs/Result_ChannelReadyDecodeErrorZ.mjs';
397 import { Init } from '../structs/Init.mjs';
398 import { Result_InitDecodeErrorZ } from '../structs/Result_InitDecodeErrorZ.mjs';
399 import { Result_OpenChannelDecodeErrorZ } from '../structs/Result_OpenChannelDecodeErrorZ.mjs';
400 import { Result_OpenChannelV2DecodeErrorZ } from '../structs/Result_OpenChannelV2DecodeErrorZ.mjs';
401 import { Result_RevokeAndACKDecodeErrorZ } from '../structs/Result_RevokeAndACKDecodeErrorZ.mjs';
402 import { Result_ShutdownDecodeErrorZ } from '../structs/Result_ShutdownDecodeErrorZ.mjs';
403 import { Result_UpdateFailHTLCDecodeErrorZ } from '../structs/Result_UpdateFailHTLCDecodeErrorZ.mjs';
404 import { Result_UpdateFailMalformedHTLCDecodeErrorZ } from '../structs/Result_UpdateFailMalformedHTLCDecodeErrorZ.mjs';
405 import { UpdateFee } from '../structs/UpdateFee.mjs';
406 import { Result_UpdateFeeDecodeErrorZ } from '../structs/Result_UpdateFeeDecodeErrorZ.mjs';
407 import { Result_UpdateFulfillHTLCDecodeErrorZ } from '../structs/Result_UpdateFulfillHTLCDecodeErrorZ.mjs';
408 import { Result_OnionPacketDecodeErrorZ } from '../structs/Result_OnionPacketDecodeErrorZ.mjs';
409 import { Result_UpdateAddHTLCDecodeErrorZ } from '../structs/Result_UpdateAddHTLCDecodeErrorZ.mjs';
410 import { OnionMessage } from '../structs/OnionMessage.mjs';
411 import { Result_OnionMessageDecodeErrorZ } from '../structs/Result_OnionMessageDecodeErrorZ.mjs';
412 import { Result_FinalOnionHopDataDecodeErrorZ } from '../structs/Result_FinalOnionHopDataDecodeErrorZ.mjs';
413 import { Ping } from '../structs/Ping.mjs';
414 import { Result_PingDecodeErrorZ } from '../structs/Result_PingDecodeErrorZ.mjs';
415 import { Pong } from '../structs/Pong.mjs';
416 import { Result_PongDecodeErrorZ } from '../structs/Result_PongDecodeErrorZ.mjs';
417 import { Result_UnsignedChannelAnnouncementDecodeErrorZ } from '../structs/Result_UnsignedChannelAnnouncementDecodeErrorZ.mjs';
418 import { Result_ChannelAnnouncementDecodeErrorZ } from '../structs/Result_ChannelAnnouncementDecodeErrorZ.mjs';
419 import { Result_UnsignedChannelUpdateDecodeErrorZ } from '../structs/Result_UnsignedChannelUpdateDecodeErrorZ.mjs';
420 import { Result_ChannelUpdateDecodeErrorZ } from '../structs/Result_ChannelUpdateDecodeErrorZ.mjs';
421 import { Result_ErrorMessageDecodeErrorZ } from '../structs/Result_ErrorMessageDecodeErrorZ.mjs';
422 import { Result_WarningMessageDecodeErrorZ } from '../structs/Result_WarningMessageDecodeErrorZ.mjs';
423 import { Result_UnsignedNodeAnnouncementDecodeErrorZ } from '../structs/Result_UnsignedNodeAnnouncementDecodeErrorZ.mjs';
424 import { Result_NodeAnnouncementDecodeErrorZ } from '../structs/Result_NodeAnnouncementDecodeErrorZ.mjs';
425 import { Result_QueryShortChannelIdsDecodeErrorZ } from '../structs/Result_QueryShortChannelIdsDecodeErrorZ.mjs';
426 import { ReplyShortChannelIdsEnd } from '../structs/ReplyShortChannelIdsEnd.mjs';
427 import { Result_ReplyShortChannelIdsEndDecodeErrorZ } from '../structs/Result_ReplyShortChannelIdsEndDecodeErrorZ.mjs';
428 import { Result_QueryChannelRangeDecodeErrorZ } from '../structs/Result_QueryChannelRangeDecodeErrorZ.mjs';
429 import { Result_ReplyChannelRangeDecodeErrorZ } from '../structs/Result_ReplyChannelRangeDecodeErrorZ.mjs';
430 import { Result_GossipTimestampFilterDecodeErrorZ } from '../structs/Result_GossipTimestampFilterDecodeErrorZ.mjs';
431 import { Bolt11Invoice } from '../structs/Bolt11Invoice.mjs';
432 import { SignOrCreationError } from '../structs/SignOrCreationError.mjs';
433 import { Result_Bolt11InvoiceSignOrCreationErrorZ } from '../structs/Result_Bolt11InvoiceSignOrCreationErrorZ.mjs';
434 import { Option_InboundHTLCStateDetailsZ } from '../structs/Option_InboundHTLCStateDetailsZ.mjs';
435 import { Result_COption_InboundHTLCStateDetailsZDecodeErrorZ } from '../structs/Result_COption_InboundHTLCStateDetailsZDecodeErrorZ.mjs';
436 import { InboundHTLCDetails } from '../structs/InboundHTLCDetails.mjs';
437 import { Result_InboundHTLCDetailsDecodeErrorZ } from '../structs/Result_InboundHTLCDetailsDecodeErrorZ.mjs';
438 import { Option_OutboundHTLCStateDetailsZ } from '../structs/Option_OutboundHTLCStateDetailsZ.mjs';
439 import { Result_COption_OutboundHTLCStateDetailsZDecodeErrorZ } from '../structs/Result_COption_OutboundHTLCStateDetailsZDecodeErrorZ.mjs';
440 import { OutboundHTLCDetails } from '../structs/OutboundHTLCDetails.mjs';
441 import { Result_OutboundHTLCDetailsDecodeErrorZ } from '../structs/Result_OutboundHTLCDetailsDecodeErrorZ.mjs';
442 import { CounterpartyForwardingInfo } from '../structs/CounterpartyForwardingInfo.mjs';
443 import { Result_CounterpartyForwardingInfoDecodeErrorZ } from '../structs/Result_CounterpartyForwardingInfoDecodeErrorZ.mjs';
444 import { ChannelCounterparty } from '../structs/ChannelCounterparty.mjs';
445 import { Result_ChannelCounterpartyDecodeErrorZ } from '../structs/Result_ChannelCounterpartyDecodeErrorZ.mjs';
446 import { Option_ChannelShutdownStateZ } from '../structs/Option_ChannelShutdownStateZ.mjs';
447 import { Result_ChannelDetailsDecodeErrorZ } from '../structs/Result_ChannelDetailsDecodeErrorZ.mjs';
448 import { Result_ChannelShutdownStateDecodeErrorZ } from '../structs/Result_ChannelShutdownStateDecodeErrorZ.mjs';
449 import { Result_OffersMessageDecodeErrorZ } from '../structs/Result_OffersMessageDecodeErrorZ.mjs';
450 import { Option_HTLCClaimZ } from '../structs/Option_HTLCClaimZ.mjs';
451 import { CounterpartyCommitmentSecrets } from '../structs/CounterpartyCommitmentSecrets.mjs';
452 import { Result_CounterpartyCommitmentSecretsDecodeErrorZ } from '../structs/Result_CounterpartyCommitmentSecretsDecodeErrorZ.mjs';
453 import { TxCreationKeys } from '../structs/TxCreationKeys.mjs';
454 import { Result_TxCreationKeysDecodeErrorZ } from '../structs/Result_TxCreationKeysDecodeErrorZ.mjs';
455 import { Result_ChannelPublicKeysDecodeErrorZ } from '../structs/Result_ChannelPublicKeysDecodeErrorZ.mjs';
456 import { Result_HTLCOutputInCommitmentDecodeErrorZ } from '../structs/Result_HTLCOutputInCommitmentDecodeErrorZ.mjs';
457 import { CounterpartyChannelTransactionParameters } from '../structs/CounterpartyChannelTransactionParameters.mjs';
458 import { Result_CounterpartyChannelTransactionParametersDecodeErrorZ } from '../structs/Result_CounterpartyChannelTransactionParametersDecodeErrorZ.mjs';
459 import { Result_ChannelTransactionParametersDecodeErrorZ } from '../structs/Result_ChannelTransactionParametersDecodeErrorZ.mjs';
460 import { Result_HolderCommitmentTransactionDecodeErrorZ } from '../structs/Result_HolderCommitmentTransactionDecodeErrorZ.mjs';
461 import { BuiltCommitmentTransaction } from '../structs/BuiltCommitmentTransaction.mjs';
462 import { Result_BuiltCommitmentTransactionDecodeErrorZ } from '../structs/Result_BuiltCommitmentTransactionDecodeErrorZ.mjs';
463 import { TrustedClosingTransaction } from '../structs/TrustedClosingTransaction.mjs';
464 import { Result_TrustedClosingTransactionNoneZ } from '../structs/Result_TrustedClosingTransactionNoneZ.mjs';
465 import { Result_CommitmentTransactionDecodeErrorZ } from '../structs/Result_CommitmentTransactionDecodeErrorZ.mjs';
466 import { TrustedCommitmentTransaction } from '../structs/TrustedCommitmentTransaction.mjs';
467 import { Result_TrustedCommitmentTransactionNoneZ } from '../structs/Result_TrustedCommitmentTransactionNoneZ.mjs';
468 import { Result_CVec_ECDSASignatureZNoneZ } from '../structs/Result_CVec_ECDSASignatureZNoneZ.mjs';
469 import { Option_usizeZ } from '../structs/Option_usizeZ.mjs';
470 import { Result_ShutdownScriptDecodeErrorZ } from '../structs/Result_ShutdownScriptDecodeErrorZ.mjs';
471 import { InvalidShutdownScript } from '../structs/InvalidShutdownScript.mjs';
472 import { Result_ShutdownScriptInvalidShutdownScriptZ } from '../structs/Result_ShutdownScriptInvalidShutdownScriptZ.mjs';
473 import { PaymentPurpose } from '../structs/PaymentPurpose.mjs';
474 import { Result_PaymentPurposeDecodeErrorZ } from '../structs/Result_PaymentPurposeDecodeErrorZ.mjs';
475 import { ClaimedHTLC } from '../structs/ClaimedHTLC.mjs';
476 import { Result_ClaimedHTLCDecodeErrorZ } from '../structs/Result_ClaimedHTLCDecodeErrorZ.mjs';
477 import { PathFailure } from '../structs/PathFailure.mjs';
478 import { Option_PathFailureZ } from '../structs/Option_PathFailureZ.mjs';
479 import { Result_COption_PathFailureZDecodeErrorZ } from '../structs/Result_COption_PathFailureZDecodeErrorZ.mjs';
480 import { Option_ClosureReasonZ } from '../structs/Option_ClosureReasonZ.mjs';
481 import { Result_COption_ClosureReasonZDecodeErrorZ } from '../structs/Result_COption_ClosureReasonZDecodeErrorZ.mjs';
482 import { HTLCDestination } from '../structs/HTLCDestination.mjs';
483 import { Option_HTLCDestinationZ } from '../structs/Option_HTLCDestinationZ.mjs';
484 import { Result_COption_HTLCDestinationZDecodeErrorZ } from '../structs/Result_COption_HTLCDestinationZDecodeErrorZ.mjs';
485 import { Result_PaymentFailureReasonDecodeErrorZ } from '../structs/Result_PaymentFailureReasonDecodeErrorZ.mjs';
486 import { Option_U128Z } from '../structs/Option_U128Z.mjs';
487 import { Option_PaymentFailureReasonZ } from '../structs/Option_PaymentFailureReasonZ.mjs';
488 import { AnchorDescriptor } from '../structs/AnchorDescriptor.mjs';
489 import { BumpTransactionEvent } from '../structs/BumpTransactionEvent.mjs';
490 import { Event } from '../structs/Event.mjs';
491 import { Option_EventZ } from '../structs/Option_EventZ.mjs';
492 import { Result_COption_EventZDecodeErrorZ } from '../structs/Result_COption_EventZDecodeErrorZ.mjs';
493 import { Bolt11ParseError } from '../structs/Bolt11ParseError.mjs';
494 import { Result_SiPrefixBolt11ParseErrorZ } from '../structs/Result_SiPrefixBolt11ParseErrorZ.mjs';
495 import { ParseOrSemanticError } from '../structs/ParseOrSemanticError.mjs';
496 import { Result_Bolt11InvoiceParseOrSemanticErrorZ } from '../structs/Result_Bolt11InvoiceParseOrSemanticErrorZ.mjs';
497 import { SignedRawBolt11Invoice } from '../structs/SignedRawBolt11Invoice.mjs';
498 import { Result_SignedRawBolt11InvoiceBolt11ParseErrorZ } from '../structs/Result_SignedRawBolt11InvoiceBolt11ParseErrorZ.mjs';
499 import { RawBolt11Invoice } from '../structs/RawBolt11Invoice.mjs';
500 import { Bolt11InvoiceSignature } from '../structs/Bolt11InvoiceSignature.mjs';
501 import { ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ } from '../structs/ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ.mjs';
502 import { PayeePubKey } from '../structs/PayeePubKey.mjs';
503 import { Result_PayeePubKeySecp256k1ErrorZ } from '../structs/Result_PayeePubKeySecp256k1ErrorZ.mjs';
504 import { PrivateRoute } from '../structs/PrivateRoute.mjs';
505 import { PositiveTimestamp } from '../structs/PositiveTimestamp.mjs';
506 import { Result_PositiveTimestampCreationErrorZ } from '../structs/Result_PositiveTimestampCreationErrorZ.mjs';
507 import { Result_NoneBolt11SemanticErrorZ } from '../structs/Result_NoneBolt11SemanticErrorZ.mjs';
508 import { Result_Bolt11InvoiceBolt11SemanticErrorZ } from '../structs/Result_Bolt11InvoiceBolt11SemanticErrorZ.mjs';
509 import { Description } from '../structs/Description.mjs';
510 import { Result_DescriptionCreationErrorZ } from '../structs/Result_DescriptionCreationErrorZ.mjs';
511 import { Result_PrivateRouteCreationErrorZ } from '../structs/Result_PrivateRouteCreationErrorZ.mjs';
512 import { Result_OutPointDecodeErrorZ } from '../structs/Result_OutPointDecodeErrorZ.mjs';
513 import { BigSize } from '../structs/BigSize.mjs';
514 import { Result_BigSizeDecodeErrorZ } from '../structs/Result_BigSizeDecodeErrorZ.mjs';
515 import { Result_HostnameDecodeErrorZ } from '../structs/Result_HostnameDecodeErrorZ.mjs';
516 import { TransactionU16LenLimited } from '../structs/TransactionU16LenLimited.mjs';
517 import { Result_TransactionU16LenLimitedNoneZ } from '../structs/Result_TransactionU16LenLimitedNoneZ.mjs';
518 import { Result_TransactionU16LenLimitedDecodeErrorZ } from '../structs/Result_TransactionU16LenLimitedDecodeErrorZ.mjs';
519 import { Result_UntrustedStringDecodeErrorZ } from '../structs/Result_UntrustedStringDecodeErrorZ.mjs';
520 import { Result_ChannelIdDecodeErrorZ } from '../structs/Result_ChannelIdDecodeErrorZ.mjs';
521 import { TwoTuple__u832u16Z } from '../structs/TwoTuple__u832u16Z.mjs';
522 import { PaymentRelay } from '../structs/PaymentRelay.mjs';
523 import { Result_PaymentRelayDecodeErrorZ } from '../structs/Result_PaymentRelayDecodeErrorZ.mjs';
524 import { PaymentConstraints } from '../structs/PaymentConstraints.mjs';
525 import { Result_PaymentConstraintsDecodeErrorZ } from '../structs/Result_PaymentConstraintsDecodeErrorZ.mjs';
526 import { Result_PaymentContextDecodeErrorZ } from '../structs/Result_PaymentContextDecodeErrorZ.mjs';
527 import { Result_UnknownPaymentContextDecodeErrorZ } from '../structs/Result_UnknownPaymentContextDecodeErrorZ.mjs';
528 import { Result_Bolt12OfferContextDecodeErrorZ } from '../structs/Result_Bolt12OfferContextDecodeErrorZ.mjs';
529 import { Result_Bolt12RefundContextDecodeErrorZ } from '../structs/Result_Bolt12RefundContextDecodeErrorZ.mjs';
530 import { Result_StrSecp256k1ErrorZ } from '../structs/Result_StrSecp256k1ErrorZ.mjs';
531 import { ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ } from '../structs/ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ.mjs';
532 import { Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ } from '../structs/Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ.mjs';
533 import { ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ } from '../structs/ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ.mjs';
534 import { SendError } from '../structs/SendError.mjs';
535 import { Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ } from '../structs/Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ.mjs';
536 import { NextMessageHop } from '../structs/NextMessageHop.mjs';
537 import { ParsedOnionMessageContents } from '../structs/ParsedOnionMessageContents.mjs';
538 import { PeeledOnion } from '../structs/PeeledOnion.mjs';
539 import { Result_PeeledOnionNoneZ } from '../structs/Result_PeeledOnionNoneZ.mjs';
540 import { SendSuccess } from '../structs/SendSuccess.mjs';
541 import { Result_SendSuccessSendErrorZ } from '../structs/Result_SendSuccessSendErrorZ.mjs';
542 import { Result_BlindedPathNoneZ } from '../structs/Result_BlindedPathNoneZ.mjs';
543 import { Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ } from '../structs/Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ.mjs';
544 import { ForwardNode } from '../structs/ForwardNode.mjs';
545 import { Result_BlindedPathDecodeErrorZ } from '../structs/Result_BlindedPathDecodeErrorZ.mjs';
546 import { Result_BlindedHopDecodeErrorZ } from '../structs/Result_BlindedHopDecodeErrorZ.mjs';
547 import { Result_InvoiceErrorDecodeErrorZ } from '../structs/Result_InvoiceErrorDecodeErrorZ.mjs';
548 import { TrackedSpendableOutput } from '../structs/TrackedSpendableOutput.mjs';
549 import { Result_TrackedSpendableOutputDecodeErrorZ } from '../structs/Result_TrackedSpendableOutputDecodeErrorZ.mjs';
550 import { OutputSpendStatus } from '../structs/OutputSpendStatus.mjs';
551 import { Result_OutputSpendStatusDecodeErrorZ } from '../structs/Result_OutputSpendStatusDecodeErrorZ.mjs';
552 import { WatchedOutput } from '../structs/WatchedOutput.mjs';
553 import { Filter, FilterInterface } from '../structs/Filter.mjs';
554 import { Option_FilterZ } from '../structs/Option_FilterZ.mjs';
555 import { ChangeDestinationSource, ChangeDestinationSourceInterface } from '../structs/ChangeDestinationSource.mjs';
556 import { KVStore, KVStoreInterface } from '../structs/KVStore.mjs';
557 import { OutputSpender, OutputSpenderInterface } from '../structs/OutputSpender.mjs';
558 import { OutputSweeper } from '../structs/OutputSweeper.mjs';
559 import { Result_OutputSweeperDecodeErrorZ } from '../structs/Result_OutputSweeperDecodeErrorZ.mjs';
560 import { TwoTuple_BestBlockOutputSweeperZ } from '../structs/TwoTuple_BestBlockOutputSweeperZ.mjs';
561 import { Result_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ } from '../structs/Result_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ.mjs';
562 import { DelayedPaymentBasepoint } from '../structs/DelayedPaymentBasepoint.mjs';
563 import { Result_DelayedPaymentBasepointDecodeErrorZ } from '../structs/Result_DelayedPaymentBasepointDecodeErrorZ.mjs';
564 import { DelayedPaymentKey } from '../structs/DelayedPaymentKey.mjs';
565 import { Result_DelayedPaymentKeyDecodeErrorZ } from '../structs/Result_DelayedPaymentKeyDecodeErrorZ.mjs';
566 import { HtlcBasepoint } from '../structs/HtlcBasepoint.mjs';
567 import { Result_HtlcBasepointDecodeErrorZ } from '../structs/Result_HtlcBasepointDecodeErrorZ.mjs';
568 import { HtlcKey } from '../structs/HtlcKey.mjs';
569 import { Result_HtlcKeyDecodeErrorZ } from '../structs/Result_HtlcKeyDecodeErrorZ.mjs';
570 import { RevocationBasepoint } from '../structs/RevocationBasepoint.mjs';
571 import { Result_RevocationBasepointDecodeErrorZ } from '../structs/Result_RevocationBasepointDecodeErrorZ.mjs';
572 import { RevocationKey } from '../structs/RevocationKey.mjs';
573 import { Result_RevocationKeyDecodeErrorZ } from '../structs/Result_RevocationKeyDecodeErrorZ.mjs';
574 import { LockedChannelMonitor } from '../structs/LockedChannelMonitor.mjs';
575 import { Result_LockedChannelMonitorNoneZ } from '../structs/Result_LockedChannelMonitorNoneZ.mjs';
576 import { TwoTuple_OutPointChannelIdZ } from '../structs/TwoTuple_OutPointChannelIdZ.mjs';
577 import { MonitorUpdateId } from '../structs/MonitorUpdateId.mjs';
578 import { TwoTuple_OutPointCVec_MonitorUpdateIdZZ } from '../structs/TwoTuple_OutPointCVec_MonitorUpdateIdZZ.mjs';
579 import { FirstHopCandidate } from '../structs/FirstHopCandidate.mjs';
580 import { PublicHopCandidate } from '../structs/PublicHopCandidate.mjs';
581 import { PrivateHopCandidate } from '../structs/PrivateHopCandidate.mjs';
582 import { BlindedPathCandidate } from '../structs/BlindedPathCandidate.mjs';
583 import { OneHopBlindedPathCandidate } from '../structs/OneHopBlindedPathCandidate.mjs';
584 import { CandidateRouteHop } from '../structs/CandidateRouteHop.mjs';
585 import { ChannelUsage } from '../structs/ChannelUsage.mjs';
586 import { ProbabilisticScoringFeeParameters } from '../structs/ProbabilisticScoringFeeParameters.mjs';
587 import { ScoreLookUp, ScoreLookUpInterface } from '../structs/ScoreLookUp.mjs';
588 import { ScoreUpdate, ScoreUpdateInterface } from '../structs/ScoreUpdate.mjs';
589 import { LockableScore, LockableScoreInterface } from '../structs/LockableScore.mjs';
590 import { WriteableScore, WriteableScoreInterface } from '../structs/WriteableScore.mjs';
591 import { Persister, PersisterInterface } from '../structs/Persister.mjs';
592 import { MonitorUpdatingPersister } from '../structs/MonitorUpdatingPersister.mjs';
593 import { Persist, PersistInterface } from '../structs/Persist.mjs';
594 import { PrintableString } from '../structs/PrintableString.mjs';
595 import { Listen, ListenInterface } from '../structs/Listen.mjs';
596 import { Confirm, ConfirmInterface } from '../structs/Confirm.mjs';
597 import { SpendingDelay } from '../structs/SpendingDelay.mjs';
598 import { FutureCallback, FutureCallbackInterface } from '../structs/FutureCallback.mjs';
599 import { Future } from '../structs/Future.mjs';
600 import { ChannelHandshakeConfig } from '../structs/ChannelHandshakeConfig.mjs';
601 import { ChannelHandshakeLimits } from '../structs/ChannelHandshakeLimits.mjs';
602 import { ChannelConfigUpdate } from '../structs/ChannelConfigUpdate.mjs';
603 import { UserConfig } from '../structs/UserConfig.mjs';
604 import { ChainMonitor } from '../structs/ChainMonitor.mjs';
605 import { EventHandler, EventHandlerInterface } from '../structs/EventHandler.mjs';
606 import { EventsProvider, EventsProviderInterface } from '../structs/EventsProvider.mjs';
607 import { FailureCode } from '../structs/FailureCode.mjs';
608 import { ChainParameters } from '../structs/ChainParameters.mjs';
609 import { MessageSendEventsProvider, MessageSendEventsProviderInterface } from '../structs/MessageSendEventsProvider.mjs';
610 import { ChannelMessageHandler, ChannelMessageHandlerInterface } from '../structs/ChannelMessageHandler.mjs';
611 import { OffersMessageHandler, OffersMessageHandlerInterface } from '../structs/OffersMessageHandler.mjs';
612 import { NodeIdLookUp, NodeIdLookUpInterface } from '../structs/NodeIdLookUp.mjs';
613 import { ChannelManagerReadArgs } from '../structs/ChannelManagerReadArgs.mjs';
614 import { ExpandedKey } from '../structs/ExpandedKey.mjs';
615 import { CommonOpenChannelFields } from '../structs/CommonOpenChannelFields.mjs';
616 import { CommonAcceptChannelFields } from '../structs/CommonAcceptChannelFields.mjs';
617 import { Packet } from '../structs/Packet.mjs';
618 import { RoutingMessageHandler, RoutingMessageHandlerInterface } from '../structs/RoutingMessageHandler.mjs';
619 import { OnionMessageHandler, OnionMessageHandlerInterface } from '../structs/OnionMessageHandler.mjs';
620 import { TrampolineOnionPacket } from '../structs/TrampolineOnionPacket.mjs';
621 import { CustomMessageReader, CustomMessageReaderInterface } from '../structs/CustomMessageReader.mjs';
622 import { CustomMessageHandler, CustomMessageHandlerInterface } from '../structs/CustomMessageHandler.mjs';
623 import { IgnoringMessageHandler } from '../structs/IgnoringMessageHandler.mjs';
624 import { CustomOnionMessageHandler, CustomOnionMessageHandlerInterface } from '../structs/CustomOnionMessageHandler.mjs';
625 import { ErroringMessageHandler } from '../structs/ErroringMessageHandler.mjs';
626 import { MessageHandler } from '../structs/MessageHandler.mjs';
627 import { SocketDescriptor, SocketDescriptorInterface } from '../structs/SocketDescriptor.mjs';
628 import { PeerManager } from '../structs/PeerManager.mjs';
629 import { DirectedChannelTransactionParameters } from '../structs/DirectedChannelTransactionParameters.mjs';
630 import { OfferFeatures } from '../structs/OfferFeatures.mjs';
631 import { InvoiceRequestFeatures } from '../structs/InvoiceRequestFeatures.mjs';
632 import { OfferWithExplicitMetadataBuilder } from '../structs/OfferWithExplicitMetadataBuilder.mjs';
633 import { SignBolt12InvoiceFn, SignBolt12InvoiceFnInterface } from '../structs/SignBolt12InvoiceFn.mjs';
634 import { TaggedHash } from '../structs/TaggedHash.mjs';
635 import { ErroneousField } from '../structs/ErroneousField.mjs';
636 import { SignInvoiceRequestFn, SignInvoiceRequestFnInterface } from '../structs/SignInvoiceRequestFn.mjs';
637 import { SignError } from '../structs/SignError.mjs';
638 import { P2PGossipSync } from '../structs/P2PGossipSync.mjs';
639 import { ReadOnlyNetworkGraph } from '../structs/ReadOnlyNetworkGraph.mjs';
640 import { DirectedChannelInfo } from '../structs/DirectedChannelInfo.mjs';
641 import { EffectiveCapacity } from '../structs/EffectiveCapacity.mjs';
642 import { DefaultRouter } from '../structs/DefaultRouter.mjs';
643 import { ScorerAccountingForInFlightHtlcs } from '../structs/ScorerAccountingForInFlightHtlcs.mjs';
644 import { Payee } from '../structs/Payee.mjs';
645 import { Score, ScoreInterface } from '../structs/Score.mjs';
646 import { MultiThreadedLockableScore } from '../structs/MultiThreadedLockableScore.mjs';
647 import { MultiThreadedScoreLockRead } from '../structs/MultiThreadedScoreLockRead.mjs';
648 import { MultiThreadedScoreLockWrite } from '../structs/MultiThreadedScoreLockWrite.mjs';
649 import { ProbabilisticScoringDecayParameters } from '../structs/ProbabilisticScoringDecayParameters.mjs';
650 import { KeysManager } from '../structs/KeysManager.mjs';
651 import { PhantomKeysManager } from '../structs/PhantomKeysManager.mjs';
652 import { RandomBytes } from '../structs/RandomBytes.mjs';
653 import { OnionMessenger } from '../structs/OnionMessenger.mjs';
654 import { DefaultMessageRouter } from '../structs/DefaultMessageRouter.mjs';
655 import { IntroductionNode } from '../structs/IntroductionNode.mjs';
656 import { EmptyNodeIdLookUp } from '../structs/EmptyNodeIdLookUp.mjs';
657 import { ForwardTlvs } from '../structs/ForwardTlvs.mjs';
658 import { CoinSelectionSource, CoinSelectionSourceInterface } from '../structs/CoinSelectionSource.mjs';
659 import { WalletSource, WalletSourceInterface } from '../structs/WalletSource.mjs';
660 import { Wallet } from '../structs/Wallet.mjs';
661 import { BumpTransactionEventHandler } from '../structs/BumpTransactionEventHandler.mjs';
662 import { RapidGossipSync } from '../structs/RapidGossipSync.mjs';
663 import { GossipSync } from '../structs/GossipSync.mjs';
664 import { RawDataPart } from '../structs/RawDataPart.mjs';
665 import { Sha256 } from '../structs/Sha256.mjs';
666 import { ExpiryTime } from '../structs/ExpiryTime.mjs';
667 import { MinFinalCltvExpiryDelta } from '../structs/MinFinalCltvExpiryDelta.mjs';
668 import { Fallback } from '../structs/Fallback.mjs';
669
670 import { CommonBase, UInt5, WitnessVersion, UnqualifiedError } from './CommonBase.mjs';
671 import * as bindings from '../bindings.mjs'
672
673
674 /**
675  * Details of a channel, as returned by [`ChannelManager::list_channels`] and [`ChannelManager::list_usable_channels`]
676  * 
677  * [`ChannelManager::list_channels`]: crate::ln::channelmanager::ChannelManager::list_channels
678  * [`ChannelManager::list_usable_channels`]: crate::ln::channelmanager::ChannelManager::list_usable_channels
679  */
680 export class ChannelDetails extends CommonBase {
681         /* @internal */
682         public constructor(_dummy: null, ptr: bigint) {
683                 super(ptr, bindings.ChannelDetails_free);
684         }
685
686         /**
687          * The channel's ID (prior to funding transaction generation, this is a random 32 bytes,
688          * thereafter this is the txid of the funding transaction xor the funding transaction output).
689          * Note that this means this value is *not* persistent - it can change once during the
690          * lifetime of the channel.
691          */
692         public get_channel_id(): ChannelId {
693                 const ret: bigint = bindings.ChannelDetails_get_channel_id(this.ptr);
694                 const ret_hu_conv: ChannelId = new ChannelId(null, ret);
695                 CommonBase.add_ref_from(ret_hu_conv, this);
696                 return ret_hu_conv;
697         }
698
699         /**
700          * The channel's ID (prior to funding transaction generation, this is a random 32 bytes,
701          * thereafter this is the txid of the funding transaction xor the funding transaction output).
702          * Note that this means this value is *not* persistent - it can change once during the
703          * lifetime of the channel.
704          */
705         public set_channel_id(val: ChannelId): void {
706                 bindings.ChannelDetails_set_channel_id(this.ptr, CommonBase.get_ptr_of(val));
707                 CommonBase.add_ref_from(this, val);
708         }
709
710         /**
711          * Parameters which apply to our counterparty. See individual fields for more information.
712          */
713         public get_counterparty(): ChannelCounterparty {
714                 const ret: bigint = bindings.ChannelDetails_get_counterparty(this.ptr);
715                 const ret_hu_conv: ChannelCounterparty = new ChannelCounterparty(null, ret);
716                 CommonBase.add_ref_from(ret_hu_conv, this);
717                 return ret_hu_conv;
718         }
719
720         /**
721          * Parameters which apply to our counterparty. See individual fields for more information.
722          */
723         public set_counterparty(val: ChannelCounterparty): void {
724                 bindings.ChannelDetails_set_counterparty(this.ptr, CommonBase.get_ptr_of(val));
725                 CommonBase.add_ref_from(this, val);
726         }
727
728         /**
729          * The Channel's funding transaction output, if we've negotiated the funding transaction with
730          * our counterparty already.
731          * 
732          * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
733          */
734         public get_funding_txo(): OutPoint {
735                 const ret: bigint = bindings.ChannelDetails_get_funding_txo(this.ptr);
736                 const ret_hu_conv: OutPoint = new OutPoint(null, ret);
737                 CommonBase.add_ref_from(ret_hu_conv, this);
738                 return ret_hu_conv;
739         }
740
741         /**
742          * The Channel's funding transaction output, if we've negotiated the funding transaction with
743          * our counterparty already.
744          * 
745          * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
746          */
747         public set_funding_txo(val: OutPoint|null): void {
748                 bindings.ChannelDetails_set_funding_txo(this.ptr, val == null ? 0n : CommonBase.get_ptr_of(val));
749                 CommonBase.add_ref_from(this, val);
750         }
751
752         /**
753          * The features which this channel operates with. See individual features for more info.
754          * 
755          * `None` until negotiation completes and the channel type is finalized.
756          * 
757          * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
758          */
759         public get_channel_type(): ChannelTypeFeatures {
760                 const ret: bigint = bindings.ChannelDetails_get_channel_type(this.ptr);
761                 const ret_hu_conv: ChannelTypeFeatures = new ChannelTypeFeatures(null, ret);
762                 CommonBase.add_ref_from(ret_hu_conv, this);
763                 return ret_hu_conv;
764         }
765
766         /**
767          * The features which this channel operates with. See individual features for more info.
768          * 
769          * `None` until negotiation completes and the channel type is finalized.
770          * 
771          * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
772          */
773         public set_channel_type(val: ChannelTypeFeatures|null): void {
774                 bindings.ChannelDetails_set_channel_type(this.ptr, val == null ? 0n : CommonBase.get_ptr_of(val));
775                 CommonBase.add_ref_from(this, val);
776         }
777
778         /**
779          * The position of the funding transaction in the chain. None if the funding transaction has
780          * not yet been confirmed and the channel fully opened.
781          * 
782          * Note that if [`inbound_scid_alias`] is set, it must be used for invoices and inbound
783          * payments instead of this. See [`get_inbound_payment_scid`].
784          * 
785          * For channels with [`confirmations_required`] set to `Some(0)`, [`outbound_scid_alias`] may
786          * be used in place of this in outbound routes. See [`get_outbound_payment_scid`].
787          * 
788          * [`inbound_scid_alias`]: Self::inbound_scid_alias
789          * [`outbound_scid_alias`]: Self::outbound_scid_alias
790          * [`get_inbound_payment_scid`]: Self::get_inbound_payment_scid
791          * [`get_outbound_payment_scid`]: Self::get_outbound_payment_scid
792          * [`confirmations_required`]: Self::confirmations_required
793          */
794         public get_short_channel_id(): Option_u64Z {
795                 const ret: bigint = bindings.ChannelDetails_get_short_channel_id(this.ptr);
796                 const ret_hu_conv: Option_u64Z = Option_u64Z.constr_from_ptr(ret);
797                 CommonBase.add_ref_from(ret_hu_conv, this);
798                 return ret_hu_conv;
799         }
800
801         /**
802          * The position of the funding transaction in the chain. None if the funding transaction has
803          * not yet been confirmed and the channel fully opened.
804          * 
805          * Note that if [`inbound_scid_alias`] is set, it must be used for invoices and inbound
806          * payments instead of this. See [`get_inbound_payment_scid`].
807          * 
808          * For channels with [`confirmations_required`] set to `Some(0)`, [`outbound_scid_alias`] may
809          * be used in place of this in outbound routes. See [`get_outbound_payment_scid`].
810          * 
811          * [`inbound_scid_alias`]: Self::inbound_scid_alias
812          * [`outbound_scid_alias`]: Self::outbound_scid_alias
813          * [`get_inbound_payment_scid`]: Self::get_inbound_payment_scid
814          * [`get_outbound_payment_scid`]: Self::get_outbound_payment_scid
815          * [`confirmations_required`]: Self::confirmations_required
816          */
817         public set_short_channel_id(val: Option_u64Z): void {
818                 bindings.ChannelDetails_set_short_channel_id(this.ptr, CommonBase.get_ptr_of(val));
819                 CommonBase.add_ref_from(this, val);
820         }
821
822         /**
823          * An optional [`short_channel_id`] alias for this channel, randomly generated by us and
824          * usable in place of [`short_channel_id`] to reference the channel in outbound routes when
825          * the channel has not yet been confirmed (as long as [`confirmations_required`] is
826          * `Some(0)`).
827          * 
828          * This will be `None` as long as the channel is not available for routing outbound payments.
829          * 
830          * [`short_channel_id`]: Self::short_channel_id
831          * [`confirmations_required`]: Self::confirmations_required
832          */
833         public get_outbound_scid_alias(): Option_u64Z {
834                 const ret: bigint = bindings.ChannelDetails_get_outbound_scid_alias(this.ptr);
835                 const ret_hu_conv: Option_u64Z = Option_u64Z.constr_from_ptr(ret);
836                 CommonBase.add_ref_from(ret_hu_conv, this);
837                 return ret_hu_conv;
838         }
839
840         /**
841          * An optional [`short_channel_id`] alias for this channel, randomly generated by us and
842          * usable in place of [`short_channel_id`] to reference the channel in outbound routes when
843          * the channel has not yet been confirmed (as long as [`confirmations_required`] is
844          * `Some(0)`).
845          * 
846          * This will be `None` as long as the channel is not available for routing outbound payments.
847          * 
848          * [`short_channel_id`]: Self::short_channel_id
849          * [`confirmations_required`]: Self::confirmations_required
850          */
851         public set_outbound_scid_alias(val: Option_u64Z): void {
852                 bindings.ChannelDetails_set_outbound_scid_alias(this.ptr, CommonBase.get_ptr_of(val));
853                 CommonBase.add_ref_from(this, val);
854         }
855
856         /**
857          * An optional [`short_channel_id`] alias for this channel, randomly generated by our
858          * counterparty and usable in place of [`short_channel_id`] in invoice route hints. Our
859          * counterparty will recognize the alias provided here in place of the [`short_channel_id`]
860          * when they see a payment to be routed to us.
861          * 
862          * Our counterparty may choose to rotate this value at any time, though will always recognize
863          * previous values for inbound payment forwarding.
864          * 
865          * [`short_channel_id`]: Self::short_channel_id
866          */
867         public get_inbound_scid_alias(): Option_u64Z {
868                 const ret: bigint = bindings.ChannelDetails_get_inbound_scid_alias(this.ptr);
869                 const ret_hu_conv: Option_u64Z = Option_u64Z.constr_from_ptr(ret);
870                 CommonBase.add_ref_from(ret_hu_conv, this);
871                 return ret_hu_conv;
872         }
873
874         /**
875          * An optional [`short_channel_id`] alias for this channel, randomly generated by our
876          * counterparty and usable in place of [`short_channel_id`] in invoice route hints. Our
877          * counterparty will recognize the alias provided here in place of the [`short_channel_id`]
878          * when they see a payment to be routed to us.
879          * 
880          * Our counterparty may choose to rotate this value at any time, though will always recognize
881          * previous values for inbound payment forwarding.
882          * 
883          * [`short_channel_id`]: Self::short_channel_id
884          */
885         public set_inbound_scid_alias(val: Option_u64Z): void {
886                 bindings.ChannelDetails_set_inbound_scid_alias(this.ptr, CommonBase.get_ptr_of(val));
887                 CommonBase.add_ref_from(this, val);
888         }
889
890         /**
891          * The value, in satoshis, of this channel as appears in the funding output
892          */
893         public get_channel_value_satoshis(): bigint {
894                 const ret: bigint = bindings.ChannelDetails_get_channel_value_satoshis(this.ptr);
895                 return ret;
896         }
897
898         /**
899          * The value, in satoshis, of this channel as appears in the funding output
900          */
901         public set_channel_value_satoshis(val: bigint): void {
902                 bindings.ChannelDetails_set_channel_value_satoshis(this.ptr, val);
903         }
904
905         /**
906          * The value, in satoshis, that must always be held in the channel for us. This value ensures
907          * that if we broadcast a revoked state, our counterparty can punish us by claiming at least
908          * this value on chain.
909          * 
910          * This value is not included in [`outbound_capacity_msat`] as it can never be spent.
911          * 
912          * This value will be `None` for outbound channels until the counterparty accepts the channel.
913          * 
914          * [`outbound_capacity_msat`]: ChannelDetails::outbound_capacity_msat
915          */
916         public get_unspendable_punishment_reserve(): Option_u64Z {
917                 const ret: bigint = bindings.ChannelDetails_get_unspendable_punishment_reserve(this.ptr);
918                 const ret_hu_conv: Option_u64Z = Option_u64Z.constr_from_ptr(ret);
919                 CommonBase.add_ref_from(ret_hu_conv, this);
920                 return ret_hu_conv;
921         }
922
923         /**
924          * The value, in satoshis, that must always be held in the channel for us. This value ensures
925          * that if we broadcast a revoked state, our counterparty can punish us by claiming at least
926          * this value on chain.
927          * 
928          * This value is not included in [`outbound_capacity_msat`] as it can never be spent.
929          * 
930          * This value will be `None` for outbound channels until the counterparty accepts the channel.
931          * 
932          * [`outbound_capacity_msat`]: ChannelDetails::outbound_capacity_msat
933          */
934         public set_unspendable_punishment_reserve(val: Option_u64Z): void {
935                 bindings.ChannelDetails_set_unspendable_punishment_reserve(this.ptr, CommonBase.get_ptr_of(val));
936                 CommonBase.add_ref_from(this, val);
937         }
938
939         /**
940          * The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound
941          * channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if
942          * [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise
943          * `user_channel_id` will be randomized for an inbound channel.  This may be zero for objects
944          * serialized with LDK versions prior to 0.0.113.
945          * 
946          * [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
947          * [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
948          * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels
949          */
950         public get_user_channel_id(): bigint {
951                 const ret: number = bindings.ChannelDetails_get_user_channel_id(this.ptr);
952                 const ret_conv: bigint = bindings.decodeUint128(ret);
953                 return ret_conv;
954         }
955
956         /**
957          * The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound
958          * channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if
959          * [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise
960          * `user_channel_id` will be randomized for an inbound channel.  This may be zero for objects
961          * serialized with LDK versions prior to 0.0.113.
962          * 
963          * [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
964          * [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
965          * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels
966          */
967         public set_user_channel_id(val: bigint): void {
968                 bindings.ChannelDetails_set_user_channel_id(this.ptr, bindings.encodeUint128(val));
969         }
970
971         /**
972          * The currently negotiated fee rate denominated in satoshi per 1000 weight units,
973          * which is applied to commitment and HTLC transactions.
974          * 
975          * This value will be `None` for objects serialized with LDK versions prior to 0.0.115.
976          */
977         public get_feerate_sat_per_1000_weight(): Option_u32Z {
978                 const ret: bigint = bindings.ChannelDetails_get_feerate_sat_per_1000_weight(this.ptr);
979                 const ret_hu_conv: Option_u32Z = Option_u32Z.constr_from_ptr(ret);
980                 CommonBase.add_ref_from(ret_hu_conv, this);
981                 return ret_hu_conv;
982         }
983
984         /**
985          * The currently negotiated fee rate denominated in satoshi per 1000 weight units,
986          * which is applied to commitment and HTLC transactions.
987          * 
988          * This value will be `None` for objects serialized with LDK versions prior to 0.0.115.
989          */
990         public set_feerate_sat_per_1000_weight(val: Option_u32Z): void {
991                 bindings.ChannelDetails_set_feerate_sat_per_1000_weight(this.ptr, CommonBase.get_ptr_of(val));
992                 CommonBase.add_ref_from(this, val);
993         }
994
995         /**
996          * Our total balance.  This is the amount we would get if we close the channel.
997          * This value is not exact. Due to various in-flight changes and feerate changes, exactly this
998          * amount is not likely to be recoverable on close.
999          * 
1000          * This does not include any pending HTLCs which are not yet fully resolved (and, thus, whose
1001          * balance is not available for inclusion in new outbound HTLCs). This further does not include
1002          * any pending outgoing HTLCs which are awaiting some other resolution to be sent.
1003          * This does not consider any on-chain fees.
1004          * 
1005          * See also [`ChannelDetails::outbound_capacity_msat`]
1006          */
1007         public get_balance_msat(): bigint {
1008                 const ret: bigint = bindings.ChannelDetails_get_balance_msat(this.ptr);
1009                 return ret;
1010         }
1011
1012         /**
1013          * Our total balance.  This is the amount we would get if we close the channel.
1014          * This value is not exact. Due to various in-flight changes and feerate changes, exactly this
1015          * amount is not likely to be recoverable on close.
1016          * 
1017          * This does not include any pending HTLCs which are not yet fully resolved (and, thus, whose
1018          * balance is not available for inclusion in new outbound HTLCs). This further does not include
1019          * any pending outgoing HTLCs which are awaiting some other resolution to be sent.
1020          * This does not consider any on-chain fees.
1021          * 
1022          * See also [`ChannelDetails::outbound_capacity_msat`]
1023          */
1024         public set_balance_msat(val: bigint): void {
1025                 bindings.ChannelDetails_set_balance_msat(this.ptr, val);
1026         }
1027
1028         /**
1029          * The available outbound capacity for sending HTLCs to the remote peer. This does not include
1030          * any pending HTLCs which are not yet fully resolved (and, thus, whose balance is not
1031          * available for inclusion in new outbound HTLCs). This further does not include any pending
1032          * outgoing HTLCs which are awaiting some other resolution to be sent.
1033          * 
1034          * See also [`ChannelDetails::balance_msat`]
1035          * 
1036          * This value is not exact. Due to various in-flight changes, feerate changes, and our
1037          * conflict-avoidance policy, exactly this amount is not likely to be spendable. However, we
1038          * should be able to spend nearly this amount.
1039          */
1040         public get_outbound_capacity_msat(): bigint {
1041                 const ret: bigint = bindings.ChannelDetails_get_outbound_capacity_msat(this.ptr);
1042                 return ret;
1043         }
1044
1045         /**
1046          * The available outbound capacity for sending HTLCs to the remote peer. This does not include
1047          * any pending HTLCs which are not yet fully resolved (and, thus, whose balance is not
1048          * available for inclusion in new outbound HTLCs). This further does not include any pending
1049          * outgoing HTLCs which are awaiting some other resolution to be sent.
1050          * 
1051          * See also [`ChannelDetails::balance_msat`]
1052          * 
1053          * This value is not exact. Due to various in-flight changes, feerate changes, and our
1054          * conflict-avoidance policy, exactly this amount is not likely to be spendable. However, we
1055          * should be able to spend nearly this amount.
1056          */
1057         public set_outbound_capacity_msat(val: bigint): void {
1058                 bindings.ChannelDetails_set_outbound_capacity_msat(this.ptr, val);
1059         }
1060
1061         /**
1062          * The available outbound capacity for sending a single HTLC to the remote peer. This is
1063          * similar to [`ChannelDetails::outbound_capacity_msat`] but it may be further restricted by
1064          * the current state and per-HTLC limit(s). This is intended for use when routing, allowing us
1065          * to use a limit as close as possible to the HTLC limit we can currently send.
1066          * 
1067          * See also [`ChannelDetails::next_outbound_htlc_minimum_msat`],
1068          * [`ChannelDetails::balance_msat`], and [`ChannelDetails::outbound_capacity_msat`].
1069          */
1070         public get_next_outbound_htlc_limit_msat(): bigint {
1071                 const ret: bigint = bindings.ChannelDetails_get_next_outbound_htlc_limit_msat(this.ptr);
1072                 return ret;
1073         }
1074
1075         /**
1076          * The available outbound capacity for sending a single HTLC to the remote peer. This is
1077          * similar to [`ChannelDetails::outbound_capacity_msat`] but it may be further restricted by
1078          * the current state and per-HTLC limit(s). This is intended for use when routing, allowing us
1079          * to use a limit as close as possible to the HTLC limit we can currently send.
1080          * 
1081          * See also [`ChannelDetails::next_outbound_htlc_minimum_msat`],
1082          * [`ChannelDetails::balance_msat`], and [`ChannelDetails::outbound_capacity_msat`].
1083          */
1084         public set_next_outbound_htlc_limit_msat(val: bigint): void {
1085                 bindings.ChannelDetails_set_next_outbound_htlc_limit_msat(this.ptr, val);
1086         }
1087
1088         /**
1089          * The minimum value for sending a single HTLC to the remote peer. This is the equivalent of
1090          * [`ChannelDetails::next_outbound_htlc_limit_msat`] but represents a lower-bound, rather than
1091          * an upper-bound. This is intended for use when routing, allowing us to ensure we pick a
1092          * route which is valid.
1093          */
1094         public get_next_outbound_htlc_minimum_msat(): bigint {
1095                 const ret: bigint = bindings.ChannelDetails_get_next_outbound_htlc_minimum_msat(this.ptr);
1096                 return ret;
1097         }
1098
1099         /**
1100          * The minimum value for sending a single HTLC to the remote peer. This is the equivalent of
1101          * [`ChannelDetails::next_outbound_htlc_limit_msat`] but represents a lower-bound, rather than
1102          * an upper-bound. This is intended for use when routing, allowing us to ensure we pick a
1103          * route which is valid.
1104          */
1105         public set_next_outbound_htlc_minimum_msat(val: bigint): void {
1106                 bindings.ChannelDetails_set_next_outbound_htlc_minimum_msat(this.ptr, val);
1107         }
1108
1109         /**
1110          * The available inbound capacity for the remote peer to send HTLCs to us. This does not
1111          * include any pending HTLCs which are not yet fully resolved (and, thus, whose balance is not
1112          * available for inclusion in new inbound HTLCs).
1113          * Note that there are some corner cases not fully handled here, so the actual available
1114          * inbound capacity may be slightly higher than this.
1115          * 
1116          * This value is not exact. Due to various in-flight changes, feerate changes, and our
1117          * counterparty's conflict-avoidance policy, exactly this amount is not likely to be spendable.
1118          * However, our counterparty should be able to spend nearly this amount.
1119          */
1120         public get_inbound_capacity_msat(): bigint {
1121                 const ret: bigint = bindings.ChannelDetails_get_inbound_capacity_msat(this.ptr);
1122                 return ret;
1123         }
1124
1125         /**
1126          * The available inbound capacity for the remote peer to send HTLCs to us. This does not
1127          * include any pending HTLCs which are not yet fully resolved (and, thus, whose balance is not
1128          * available for inclusion in new inbound HTLCs).
1129          * Note that there are some corner cases not fully handled here, so the actual available
1130          * inbound capacity may be slightly higher than this.
1131          * 
1132          * This value is not exact. Due to various in-flight changes, feerate changes, and our
1133          * counterparty's conflict-avoidance policy, exactly this amount is not likely to be spendable.
1134          * However, our counterparty should be able to spend nearly this amount.
1135          */
1136         public set_inbound_capacity_msat(val: bigint): void {
1137                 bindings.ChannelDetails_set_inbound_capacity_msat(this.ptr, val);
1138         }
1139
1140         /**
1141          * The number of required confirmations on the funding transaction before the funding will be
1142          * considered \"locked\". This number is selected by the channel fundee (i.e. us if
1143          * [`is_outbound`] is *not* set), and can be selected for inbound channels with
1144          * [`ChannelHandshakeConfig::minimum_depth`] or limited for outbound channels with
1145          * [`ChannelHandshakeLimits::max_minimum_depth`].
1146          * 
1147          * This value will be `None` for outbound channels until the counterparty accepts the channel.
1148          * 
1149          * [`is_outbound`]: ChannelDetails::is_outbound
1150          * [`ChannelHandshakeConfig::minimum_depth`]: crate::util::config::ChannelHandshakeConfig::minimum_depth
1151          * [`ChannelHandshakeLimits::max_minimum_depth`]: crate::util::config::ChannelHandshakeLimits::max_minimum_depth
1152          */
1153         public get_confirmations_required(): Option_u32Z {
1154                 const ret: bigint = bindings.ChannelDetails_get_confirmations_required(this.ptr);
1155                 const ret_hu_conv: Option_u32Z = Option_u32Z.constr_from_ptr(ret);
1156                 CommonBase.add_ref_from(ret_hu_conv, this);
1157                 return ret_hu_conv;
1158         }
1159
1160         /**
1161          * The number of required confirmations on the funding transaction before the funding will be
1162          * considered \"locked\". This number is selected by the channel fundee (i.e. us if
1163          * [`is_outbound`] is *not* set), and can be selected for inbound channels with
1164          * [`ChannelHandshakeConfig::minimum_depth`] or limited for outbound channels with
1165          * [`ChannelHandshakeLimits::max_minimum_depth`].
1166          * 
1167          * This value will be `None` for outbound channels until the counterparty accepts the channel.
1168          * 
1169          * [`is_outbound`]: ChannelDetails::is_outbound
1170          * [`ChannelHandshakeConfig::minimum_depth`]: crate::util::config::ChannelHandshakeConfig::minimum_depth
1171          * [`ChannelHandshakeLimits::max_minimum_depth`]: crate::util::config::ChannelHandshakeLimits::max_minimum_depth
1172          */
1173         public set_confirmations_required(val: Option_u32Z): void {
1174                 bindings.ChannelDetails_set_confirmations_required(this.ptr, CommonBase.get_ptr_of(val));
1175                 CommonBase.add_ref_from(this, val);
1176         }
1177
1178         /**
1179          * The current number of confirmations on the funding transaction.
1180          * 
1181          * This value will be `None` for objects serialized with LDK versions prior to 0.0.113.
1182          */
1183         public get_confirmations(): Option_u32Z {
1184                 const ret: bigint = bindings.ChannelDetails_get_confirmations(this.ptr);
1185                 const ret_hu_conv: Option_u32Z = Option_u32Z.constr_from_ptr(ret);
1186                 CommonBase.add_ref_from(ret_hu_conv, this);
1187                 return ret_hu_conv;
1188         }
1189
1190         /**
1191          * The current number of confirmations on the funding transaction.
1192          * 
1193          * This value will be `None` for objects serialized with LDK versions prior to 0.0.113.
1194          */
1195         public set_confirmations(val: Option_u32Z): void {
1196                 bindings.ChannelDetails_set_confirmations(this.ptr, CommonBase.get_ptr_of(val));
1197                 CommonBase.add_ref_from(this, val);
1198         }
1199
1200         /**
1201          * The number of blocks (after our commitment transaction confirms) that we will need to wait
1202          * until we can claim our funds after we force-close the channel. During this time our
1203          * counterparty is allowed to punish us if we broadcasted a stale state. If our counterparty
1204          * force-closes the channel and broadcasts a commitment transaction we do not have to wait any
1205          * time to claim our non-HTLC-encumbered funds.
1206          * 
1207          * This value will be `None` for outbound channels until the counterparty accepts the channel.
1208          */
1209         public get_force_close_spend_delay(): Option_u16Z {
1210                 const ret: bigint = bindings.ChannelDetails_get_force_close_spend_delay(this.ptr);
1211                 const ret_hu_conv: Option_u16Z = Option_u16Z.constr_from_ptr(ret);
1212                 CommonBase.add_ref_from(ret_hu_conv, this);
1213                 return ret_hu_conv;
1214         }
1215
1216         /**
1217          * The number of blocks (after our commitment transaction confirms) that we will need to wait
1218          * until we can claim our funds after we force-close the channel. During this time our
1219          * counterparty is allowed to punish us if we broadcasted a stale state. If our counterparty
1220          * force-closes the channel and broadcasts a commitment transaction we do not have to wait any
1221          * time to claim our non-HTLC-encumbered funds.
1222          * 
1223          * This value will be `None` for outbound channels until the counterparty accepts the channel.
1224          */
1225         public set_force_close_spend_delay(val: Option_u16Z): void {
1226                 bindings.ChannelDetails_set_force_close_spend_delay(this.ptr, CommonBase.get_ptr_of(val));
1227                 CommonBase.add_ref_from(this, val);
1228         }
1229
1230         /**
1231          * True if the channel was initiated (and thus funded) by us.
1232          */
1233         public get_is_outbound(): boolean {
1234                 const ret: boolean = bindings.ChannelDetails_get_is_outbound(this.ptr);
1235                 return ret;
1236         }
1237
1238         /**
1239          * True if the channel was initiated (and thus funded) by us.
1240          */
1241         public set_is_outbound(val: boolean): void {
1242                 bindings.ChannelDetails_set_is_outbound(this.ptr, val);
1243         }
1244
1245         /**
1246          * True if the channel is confirmed, channel_ready messages have been exchanged, and the
1247          * channel is not currently being shut down. `channel_ready` message exchange implies the
1248          * required confirmation count has been reached (and we were connected to the peer at some
1249          * point after the funding transaction received enough confirmations). The required
1250          * confirmation count is provided in [`confirmations_required`].
1251          * 
1252          * [`confirmations_required`]: ChannelDetails::confirmations_required
1253          */
1254         public get_is_channel_ready(): boolean {
1255                 const ret: boolean = bindings.ChannelDetails_get_is_channel_ready(this.ptr);
1256                 return ret;
1257         }
1258
1259         /**
1260          * True if the channel is confirmed, channel_ready messages have been exchanged, and the
1261          * channel is not currently being shut down. `channel_ready` message exchange implies the
1262          * required confirmation count has been reached (and we were connected to the peer at some
1263          * point after the funding transaction received enough confirmations). The required
1264          * confirmation count is provided in [`confirmations_required`].
1265          * 
1266          * [`confirmations_required`]: ChannelDetails::confirmations_required
1267          */
1268         public set_is_channel_ready(val: boolean): void {
1269                 bindings.ChannelDetails_set_is_channel_ready(this.ptr, val);
1270         }
1271
1272         /**
1273          * The stage of the channel's shutdown.
1274          * `None` for `ChannelDetails` serialized on LDK versions prior to 0.0.116.
1275          * 
1276          * Returns a copy of the field.
1277          */
1278         public get_channel_shutdown_state(): Option_ChannelShutdownStateZ {
1279                 const ret: bigint = bindings.ChannelDetails_get_channel_shutdown_state(this.ptr);
1280                 const ret_hu_conv: Option_ChannelShutdownStateZ = Option_ChannelShutdownStateZ.constr_from_ptr(ret);
1281                 CommonBase.add_ref_from(ret_hu_conv, this);
1282                 return ret_hu_conv;
1283         }
1284
1285         /**
1286          * The stage of the channel's shutdown.
1287          * `None` for `ChannelDetails` serialized on LDK versions prior to 0.0.116.
1288          */
1289         public set_channel_shutdown_state(val: Option_ChannelShutdownStateZ): void {
1290                 bindings.ChannelDetails_set_channel_shutdown_state(this.ptr, CommonBase.get_ptr_of(val));
1291                 CommonBase.add_ref_from(this, val);
1292         }
1293
1294         /**
1295          * True if the channel is (a) confirmed and channel_ready messages have been exchanged, (b)
1296          * the peer is connected, and (c) the channel is not currently negotiating a shutdown.
1297          * 
1298          * This is a strict superset of `is_channel_ready`.
1299          */
1300         public get_is_usable(): boolean {
1301                 const ret: boolean = bindings.ChannelDetails_get_is_usable(this.ptr);
1302                 return ret;
1303         }
1304
1305         /**
1306          * True if the channel is (a) confirmed and channel_ready messages have been exchanged, (b)
1307          * the peer is connected, and (c) the channel is not currently negotiating a shutdown.
1308          * 
1309          * This is a strict superset of `is_channel_ready`.
1310          */
1311         public set_is_usable(val: boolean): void {
1312                 bindings.ChannelDetails_set_is_usable(this.ptr, val);
1313         }
1314
1315         /**
1316          * True if this channel is (or will be) publicly-announced.
1317          */
1318         public get_is_public(): boolean {
1319                 const ret: boolean = bindings.ChannelDetails_get_is_public(this.ptr);
1320                 return ret;
1321         }
1322
1323         /**
1324          * True if this channel is (or will be) publicly-announced.
1325          */
1326         public set_is_public(val: boolean): void {
1327                 bindings.ChannelDetails_set_is_public(this.ptr, val);
1328         }
1329
1330         /**
1331          * The smallest value HTLC (in msat) we will accept, for this channel. This field
1332          * is only `None` for `ChannelDetails` objects serialized prior to LDK 0.0.107
1333          */
1334         public get_inbound_htlc_minimum_msat(): Option_u64Z {
1335                 const ret: bigint = bindings.ChannelDetails_get_inbound_htlc_minimum_msat(this.ptr);
1336                 const ret_hu_conv: Option_u64Z = Option_u64Z.constr_from_ptr(ret);
1337                 CommonBase.add_ref_from(ret_hu_conv, this);
1338                 return ret_hu_conv;
1339         }
1340
1341         /**
1342          * The smallest value HTLC (in msat) we will accept, for this channel. This field
1343          * is only `None` for `ChannelDetails` objects serialized prior to LDK 0.0.107
1344          */
1345         public set_inbound_htlc_minimum_msat(val: Option_u64Z): void {
1346                 bindings.ChannelDetails_set_inbound_htlc_minimum_msat(this.ptr, CommonBase.get_ptr_of(val));
1347                 CommonBase.add_ref_from(this, val);
1348         }
1349
1350         /**
1351          * The largest value HTLC (in msat) we currently will accept, for this channel.
1352          */
1353         public get_inbound_htlc_maximum_msat(): Option_u64Z {
1354                 const ret: bigint = bindings.ChannelDetails_get_inbound_htlc_maximum_msat(this.ptr);
1355                 const ret_hu_conv: Option_u64Z = Option_u64Z.constr_from_ptr(ret);
1356                 CommonBase.add_ref_from(ret_hu_conv, this);
1357                 return ret_hu_conv;
1358         }
1359
1360         /**
1361          * The largest value HTLC (in msat) we currently will accept, for this channel.
1362          */
1363         public set_inbound_htlc_maximum_msat(val: Option_u64Z): void {
1364                 bindings.ChannelDetails_set_inbound_htlc_maximum_msat(this.ptr, CommonBase.get_ptr_of(val));
1365                 CommonBase.add_ref_from(this, val);
1366         }
1367
1368         /**
1369          * Set of configurable parameters that affect channel operation.
1370          * 
1371          * This field is only `None` for `ChannelDetails` objects serialized prior to LDK 0.0.109.
1372          * 
1373          * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
1374          */
1375         public get_config(): ChannelConfig {
1376                 const ret: bigint = bindings.ChannelDetails_get_config(this.ptr);
1377                 const ret_hu_conv: ChannelConfig = new ChannelConfig(null, ret);
1378                 CommonBase.add_ref_from(ret_hu_conv, this);
1379                 return ret_hu_conv;
1380         }
1381
1382         /**
1383          * Set of configurable parameters that affect channel operation.
1384          * 
1385          * This field is only `None` for `ChannelDetails` objects serialized prior to LDK 0.0.109.
1386          * 
1387          * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
1388          */
1389         public set_config(val: ChannelConfig|null): void {
1390                 bindings.ChannelDetails_set_config(this.ptr, val == null ? 0n : CommonBase.get_ptr_of(val));
1391                 CommonBase.add_ref_from(this, val);
1392         }
1393
1394         /**
1395          * Pending inbound HTLCs.
1396          * 
1397          * This field is empty for objects serialized with LDK versions prior to 0.0.122.
1398          */
1399         public get_pending_inbound_htlcs(): InboundHTLCDetails[] {
1400                 const ret: number = bindings.ChannelDetails_get_pending_inbound_htlcs(this.ptr);
1401                 const ret_conv_20_len: number = bindings.getArrayLength(ret);
1402                 const ret_conv_20_arr: InboundHTLCDetails[] = new Array(ret_conv_20_len).fill(null);
1403                 for (var u = 0; u < ret_conv_20_len; u++) {
1404                         const ret_conv_20: bigint = bindings.getU64ArrayElem(ret, u);
1405                         const ret_conv_20_hu_conv: InboundHTLCDetails = new InboundHTLCDetails(null, ret_conv_20);
1406                         CommonBase.add_ref_from(ret_conv_20_hu_conv, this);
1407                         ret_conv_20_arr[u] = ret_conv_20_hu_conv;
1408                 }
1409                 bindings.freeWasmMemory(ret)
1410                 return ret_conv_20_arr;
1411         }
1412
1413         /**
1414          * Pending inbound HTLCs.
1415          * 
1416          * This field is empty for objects serialized with LDK versions prior to 0.0.122.
1417          */
1418         public set_pending_inbound_htlcs(val: InboundHTLCDetails[]): void {
1419                 bindings.ChannelDetails_set_pending_inbound_htlcs(this.ptr, bindings.encodeUint64Array(val.map(val_conv_20 => CommonBase.get_ptr_of(val_conv_20))));
1420                 val.forEach((val_conv_20: InboundHTLCDetails) => { CommonBase.add_ref_from(this, val_conv_20); });
1421         }
1422
1423         /**
1424          * Pending outbound HTLCs.
1425          * 
1426          * This field is empty for objects serialized with LDK versions prior to 0.0.122.
1427          */
1428         public get_pending_outbound_htlcs(): OutboundHTLCDetails[] {
1429                 const ret: number = bindings.ChannelDetails_get_pending_outbound_htlcs(this.ptr);
1430                 const ret_conv_21_len: number = bindings.getArrayLength(ret);
1431                 const ret_conv_21_arr: OutboundHTLCDetails[] = new Array(ret_conv_21_len).fill(null);
1432                 for (var v = 0; v < ret_conv_21_len; v++) {
1433                         const ret_conv_21: bigint = bindings.getU64ArrayElem(ret, v);
1434                         const ret_conv_21_hu_conv: OutboundHTLCDetails = new OutboundHTLCDetails(null, ret_conv_21);
1435                         CommonBase.add_ref_from(ret_conv_21_hu_conv, this);
1436                         ret_conv_21_arr[v] = ret_conv_21_hu_conv;
1437                 }
1438                 bindings.freeWasmMemory(ret)
1439                 return ret_conv_21_arr;
1440         }
1441
1442         /**
1443          * Pending outbound HTLCs.
1444          * 
1445          * This field is empty for objects serialized with LDK versions prior to 0.0.122.
1446          */
1447         public set_pending_outbound_htlcs(val: OutboundHTLCDetails[]): void {
1448                 bindings.ChannelDetails_set_pending_outbound_htlcs(this.ptr, bindings.encodeUint64Array(val.map(val_conv_21 => CommonBase.get_ptr_of(val_conv_21))));
1449                 val.forEach((val_conv_21: OutboundHTLCDetails) => { CommonBase.add_ref_from(this, val_conv_21); });
1450         }
1451
1452         /**
1453          * Constructs a new ChannelDetails given each field
1454          * 
1455          * Note that funding_txo_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
1456          * Note that channel_type_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
1457          * Note that config_arg (or a relevant inner pointer) may be NULL or all-0s to represent None
1458          */
1459         public static constructor_new(channel_id_arg: ChannelId, counterparty_arg: ChannelCounterparty, funding_txo_arg: OutPoint|null, channel_type_arg: ChannelTypeFeatures|null, short_channel_id_arg: Option_u64Z, outbound_scid_alias_arg: Option_u64Z, inbound_scid_alias_arg: Option_u64Z, channel_value_satoshis_arg: bigint, unspendable_punishment_reserve_arg: Option_u64Z, user_channel_id_arg: bigint, feerate_sat_per_1000_weight_arg: Option_u32Z, balance_msat_arg: bigint, outbound_capacity_msat_arg: bigint, next_outbound_htlc_limit_msat_arg: bigint, next_outbound_htlc_minimum_msat_arg: bigint, inbound_capacity_msat_arg: bigint, confirmations_required_arg: Option_u32Z, confirmations_arg: Option_u32Z, force_close_spend_delay_arg: Option_u16Z, is_outbound_arg: boolean, is_channel_ready_arg: boolean, channel_shutdown_state_arg: Option_ChannelShutdownStateZ, is_usable_arg: boolean, is_public_arg: boolean, inbound_htlc_minimum_msat_arg: Option_u64Z, inbound_htlc_maximum_msat_arg: Option_u64Z, config_arg: ChannelConfig|null, pending_inbound_htlcs_arg: InboundHTLCDetails[], pending_outbound_htlcs_arg: OutboundHTLCDetails[]): ChannelDetails {
1460                 const ret: bigint = bindings.ChannelDetails_new(CommonBase.get_ptr_of(channel_id_arg), CommonBase.get_ptr_of(counterparty_arg), funding_txo_arg == null ? 0n : CommonBase.get_ptr_of(funding_txo_arg), channel_type_arg == null ? 0n : CommonBase.get_ptr_of(channel_type_arg), CommonBase.get_ptr_of(short_channel_id_arg), CommonBase.get_ptr_of(outbound_scid_alias_arg), CommonBase.get_ptr_of(inbound_scid_alias_arg), channel_value_satoshis_arg, CommonBase.get_ptr_of(unspendable_punishment_reserve_arg), bindings.encodeUint128(user_channel_id_arg), CommonBase.get_ptr_of(feerate_sat_per_1000_weight_arg), balance_msat_arg, outbound_capacity_msat_arg, next_outbound_htlc_limit_msat_arg, next_outbound_htlc_minimum_msat_arg, inbound_capacity_msat_arg, CommonBase.get_ptr_of(confirmations_required_arg), CommonBase.get_ptr_of(confirmations_arg), CommonBase.get_ptr_of(force_close_spend_delay_arg), is_outbound_arg, is_channel_ready_arg, CommonBase.get_ptr_of(channel_shutdown_state_arg), is_usable_arg, is_public_arg, CommonBase.get_ptr_of(inbound_htlc_minimum_msat_arg), CommonBase.get_ptr_of(inbound_htlc_maximum_msat_arg), config_arg == null ? 0n : CommonBase.get_ptr_of(config_arg), bindings.encodeUint64Array(pending_inbound_htlcs_arg.map(pending_inbound_htlcs_arg_conv_20 => CommonBase.get_ptr_of(pending_inbound_htlcs_arg_conv_20))), bindings.encodeUint64Array(pending_outbound_htlcs_arg.map(pending_outbound_htlcs_arg_conv_21 => CommonBase.get_ptr_of(pending_outbound_htlcs_arg_conv_21))));
1461                 const ret_hu_conv: ChannelDetails = new ChannelDetails(null, ret);
1462                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1463                 CommonBase.add_ref_from(ret_hu_conv, channel_id_arg);
1464                 CommonBase.add_ref_from(ret_hu_conv, counterparty_arg);
1465                 CommonBase.add_ref_from(ret_hu_conv, funding_txo_arg);
1466                 CommonBase.add_ref_from(ret_hu_conv, channel_type_arg);
1467                 CommonBase.add_ref_from(ret_hu_conv, short_channel_id_arg);
1468                 CommonBase.add_ref_from(ret_hu_conv, outbound_scid_alias_arg);
1469                 CommonBase.add_ref_from(ret_hu_conv, inbound_scid_alias_arg);
1470                 CommonBase.add_ref_from(ret_hu_conv, unspendable_punishment_reserve_arg);
1471                 CommonBase.add_ref_from(ret_hu_conv, feerate_sat_per_1000_weight_arg);
1472                 CommonBase.add_ref_from(ret_hu_conv, confirmations_required_arg);
1473                 CommonBase.add_ref_from(ret_hu_conv, confirmations_arg);
1474                 CommonBase.add_ref_from(ret_hu_conv, force_close_spend_delay_arg);
1475                 CommonBase.add_ref_from(ret_hu_conv, channel_shutdown_state_arg);
1476                 CommonBase.add_ref_from(ret_hu_conv, inbound_htlc_minimum_msat_arg);
1477                 CommonBase.add_ref_from(ret_hu_conv, inbound_htlc_maximum_msat_arg);
1478                 CommonBase.add_ref_from(ret_hu_conv, config_arg);
1479                 pending_inbound_htlcs_arg.forEach((pending_inbound_htlcs_arg_conv_20: InboundHTLCDetails) => { CommonBase.add_ref_from(ret_hu_conv, pending_inbound_htlcs_arg_conv_20); });
1480                 pending_outbound_htlcs_arg.forEach((pending_outbound_htlcs_arg_conv_21: OutboundHTLCDetails) => { CommonBase.add_ref_from(ret_hu_conv, pending_outbound_htlcs_arg_conv_21); });
1481                 return ret_hu_conv;
1482         }
1483
1484         public clone_ptr(): bigint {
1485                 const ret: bigint = bindings.ChannelDetails_clone_ptr(this.ptr);
1486                 return ret;
1487         }
1488
1489         /**
1490          * Creates a copy of the ChannelDetails
1491          */
1492         public clone(): ChannelDetails {
1493                 const ret: bigint = bindings.ChannelDetails_clone(this.ptr);
1494                 const ret_hu_conv: ChannelDetails = new ChannelDetails(null, ret);
1495                 CommonBase.add_ref_from(ret_hu_conv, this);
1496                 return ret_hu_conv;
1497         }
1498
1499         /**
1500          * Gets the current SCID which should be used to identify this channel for inbound payments.
1501          * This should be used for providing invoice hints or in any other context where our
1502          * counterparty will forward a payment to us.
1503          * 
1504          * This is either the [`ChannelDetails::inbound_scid_alias`], if set, or the
1505          * [`ChannelDetails::short_channel_id`]. See those for more information.
1506          */
1507         public get_inbound_payment_scid(): Option_u64Z {
1508                 const ret: bigint = bindings.ChannelDetails_get_inbound_payment_scid(this.ptr);
1509                 const ret_hu_conv: Option_u64Z = Option_u64Z.constr_from_ptr(ret);
1510                 CommonBase.add_ref_from(ret_hu_conv, this);
1511                 return ret_hu_conv;
1512         }
1513
1514         /**
1515          * Gets the current SCID which should be used to identify this channel for outbound payments.
1516          * This should be used in [`Route`]s to describe the first hop or in other contexts where
1517          * we're sending or forwarding a payment outbound over this channel.
1518          * 
1519          * This is either the [`ChannelDetails::short_channel_id`], if set, or the
1520          * [`ChannelDetails::outbound_scid_alias`]. See those for more information.
1521          * 
1522          * [`Route`]: crate::routing::router::Route
1523          */
1524         public get_outbound_payment_scid(): Option_u64Z {
1525                 const ret: bigint = bindings.ChannelDetails_get_outbound_payment_scid(this.ptr);
1526                 const ret_hu_conv: Option_u64Z = Option_u64Z.constr_from_ptr(ret);
1527                 CommonBase.add_ref_from(ret_hu_conv, this);
1528                 return ret_hu_conv;
1529         }
1530
1531         /**
1532          * Serialize the ChannelDetails object into a byte array which can be read by ChannelDetails_read
1533          */
1534         public write(): Uint8Array {
1535                 const ret: number = bindings.ChannelDetails_write(this.ptr);
1536                 const ret_conv: Uint8Array = bindings.decodeUint8Array(ret);
1537                 return ret_conv;
1538         }
1539
1540         /**
1541          * Read a ChannelDetails from a byte array, created by ChannelDetails_write
1542          */
1543         public static constructor_read(ser: Uint8Array): Result_ChannelDetailsDecodeErrorZ {
1544                 const ret: bigint = bindings.ChannelDetails_read(bindings.encodeUint8Array(ser));
1545                 const ret_hu_conv: Result_ChannelDetailsDecodeErrorZ = Result_ChannelDetailsDecodeErrorZ.constr_from_ptr(ret);
1546                 return ret_hu_conv;
1547         }
1548
1549 }