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