]> git.bitcoin.ninja Git - ldk-java/blob - ts/structs/MessageSendEvent.mts
[TS] Update auto-generated bindings to LDK-C-Bindings 0.0.123.1
[ldk-java] / ts / structs / MessageSendEvent.mts
1 import { TxOut } from '../structs/TxOut.mjs';
2 import { TxIn } from '../structs/TxIn.mjs';
3 import { BigEndianScalar } from '../structs/BigEndianScalar.mjs';
4 import { WitnessProgram } from '../structs/WitnessProgram.mjs';
5 import { BlindedFailure } from '../enums/BlindedFailure.mjs';
6 import { Bolt11SemanticError } from '../enums/Bolt11SemanticError.mjs';
7 import { Bolt12SemanticError } from '../enums/Bolt12SemanticError.mjs';
8 import { COption_NoneZ } from '../enums/COption_NoneZ.mjs';
9 import { ChannelMonitorUpdateStatus } from '../enums/ChannelMonitorUpdateStatus.mjs';
10 import { ChannelShutdownState } from '../enums/ChannelShutdownState.mjs';
11 import { ConfirmationTarget } from '../enums/ConfirmationTarget.mjs';
12 import { CreationError } from '../enums/CreationError.mjs';
13 import { Currency } from '../enums/Currency.mjs';
14 import { Direction } from '../enums/Direction.mjs';
15 import { HTLCClaim } from '../enums/HTLCClaim.mjs';
16 import { IOError } from '../enums/IOError.mjs';
17 import { InboundHTLCStateDetails } from '../enums/InboundHTLCStateDetails.mjs';
18 import { Level } from '../enums/Level.mjs';
19 import { Network } from '../enums/Network.mjs';
20 import { OutboundHTLCStateDetails } from '../enums/OutboundHTLCStateDetails.mjs';
21 import { PaymentFailureReason } from '../enums/PaymentFailureReason.mjs';
22 import { Recipient } from '../enums/Recipient.mjs';
23 import { RetryableSendFailure } from '../enums/RetryableSendFailure.mjs';
24 import { Secp256k1Error } from '../enums/Secp256k1Error.mjs';
25 import { ShortChannelIdError } from '../enums/ShortChannelIdError.mjs';
26 import { SiPrefix } from '../enums/SiPrefix.mjs';
27 import { SocketAddressParseError } from '../enums/SocketAddressParseError.mjs';
28 import { UtxoLookupError } from '../enums/UtxoLookupError.mjs';
29 import { Bech32Error } from '../structs/Bech32Error.mjs';
30 import { RefundMaybeWithDerivedMetadataBuilder } from '../structs/RefundMaybeWithDerivedMetadataBuilder.mjs';
31 import { Result_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ } from '../structs/Result_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ.mjs';
32 import { Refund } from '../structs/Refund.mjs';
33 import { Result_RefundBolt12SemanticErrorZ } from '../structs/Result_RefundBolt12SemanticErrorZ.mjs';
34 import { Option_u64Z } from '../structs/Option_u64Z.mjs';
35 import { BlindedPath } from '../structs/BlindedPath.mjs';
36 import { Bolt12ParseError } from '../structs/Bolt12ParseError.mjs';
37 import { Result_RefundBolt12ParseErrorZ } from '../structs/Result_RefundBolt12ParseErrorZ.mjs';
38 import { Retry } from '../structs/Retry.mjs';
39 import { DecodeError } from '../structs/DecodeError.mjs';
40 import { Result_RetryDecodeErrorZ } from '../structs/Result_RetryDecodeErrorZ.mjs';
41 import { ShutdownScript } from '../structs/ShutdownScript.mjs';
42 import { APIError } from '../structs/APIError.mjs';
43 import { Result_NoneAPIErrorZ } from '../structs/Result_NoneAPIErrorZ.mjs';
44 import { Option_ThirtyTwoBytesZ } from '../structs/Option_ThirtyTwoBytesZ.mjs';
45 import { Option_CVec_u8ZZ } from '../structs/Option_CVec_u8ZZ.mjs';
46 import { RecipientOnionFields } from '../structs/RecipientOnionFields.mjs';
47 import { Result_RecipientOnionFieldsDecodeErrorZ } from '../structs/Result_RecipientOnionFieldsDecodeErrorZ.mjs';
48 import { TwoTuple_u64CVec_u8ZZ } from '../structs/TwoTuple_u64CVec_u8ZZ.mjs';
49 import { Result_RecipientOnionFieldsNoneZ } from '../structs/Result_RecipientOnionFieldsNoneZ.mjs';
50 import { UnsignedBolt12Invoice } from '../structs/UnsignedBolt12Invoice.mjs';
51 import { Result_UnsignedBolt12InvoiceBolt12SemanticErrorZ } from '../structs/Result_UnsignedBolt12InvoiceBolt12SemanticErrorZ.mjs';
52 import { Bolt12Invoice } from '../structs/Bolt12Invoice.mjs';
53 import { Result_Bolt12InvoiceBolt12SemanticErrorZ } from '../structs/Result_Bolt12InvoiceBolt12SemanticErrorZ.mjs';
54 import { Result_SchnorrSignatureNoneZ } from '../structs/Result_SchnorrSignatureNoneZ.mjs';
55 import { Option_CVec_ThirtyTwoBytesZZ } from '../structs/Option_CVec_ThirtyTwoBytesZZ.mjs';
56 import { Amount } from '../structs/Amount.mjs';
57 import { Option_AmountZ } from '../structs/Option_AmountZ.mjs';
58 import { Quantity } from '../structs/Quantity.mjs';
59 import { Option_QuantityZ } from '../structs/Option_QuantityZ.mjs';
60 import { Result_ThirtyTwoBytesNoneZ } from '../structs/Result_ThirtyTwoBytesNoneZ.mjs';
61 import { BlindedPayInfo } from '../structs/BlindedPayInfo.mjs';
62 import { Result_BlindedPayInfoDecodeErrorZ } from '../structs/Result_BlindedPayInfoDecodeErrorZ.mjs';
63 import { DelayedPaymentOutputDescriptor } from '../structs/DelayedPaymentOutputDescriptor.mjs';
64 import { Result_DelayedPaymentOutputDescriptorDecodeErrorZ } from '../structs/Result_DelayedPaymentOutputDescriptorDecodeErrorZ.mjs';
65 import { StaticPaymentOutputDescriptor } from '../structs/StaticPaymentOutputDescriptor.mjs';
66 import { Result_StaticPaymentOutputDescriptorDecodeErrorZ } from '../structs/Result_StaticPaymentOutputDescriptorDecodeErrorZ.mjs';
67 import { OutPoint } from '../structs/OutPoint.mjs';
68 import { SpendableOutputDescriptor } from '../structs/SpendableOutputDescriptor.mjs';
69 import { Result_SpendableOutputDescriptorDecodeErrorZ } from '../structs/Result_SpendableOutputDescriptorDecodeErrorZ.mjs';
70 import { Option_u32Z } from '../structs/Option_u32Z.mjs';
71 import { TwoTuple_CVec_u8Zu64Z } from '../structs/TwoTuple_CVec_u8Zu64Z.mjs';
72 import { Result_C2Tuple_CVec_u8Zu64ZNoneZ } from '../structs/Result_C2Tuple_CVec_u8Zu64ZNoneZ.mjs';
73 import { ChannelDerivationParameters } from '../structs/ChannelDerivationParameters.mjs';
74 import { Result_ChannelDerivationParametersDecodeErrorZ } from '../structs/Result_ChannelDerivationParametersDecodeErrorZ.mjs';
75 import { HTLCDescriptor } from '../structs/HTLCDescriptor.mjs';
76 import { Result_HTLCDescriptorDecodeErrorZ } from '../structs/Result_HTLCDescriptorDecodeErrorZ.mjs';
77 import { Result_NoneNoneZ } from '../structs/Result_NoneNoneZ.mjs';
78 import { Result_PublicKeyNoneZ } from '../structs/Result_PublicKeyNoneZ.mjs';
79 import { Option_BigEndianScalarZ } from '../structs/Option_BigEndianScalarZ.mjs';
80 import { Result_RecoverableSignatureNoneZ } from '../structs/Result_RecoverableSignatureNoneZ.mjs';
81 import { Result_ECDSASignatureNoneZ } from '../structs/Result_ECDSASignatureNoneZ.mjs';
82 import { Result_TransactionNoneZ } from '../structs/Result_TransactionNoneZ.mjs';
83 import { TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ } from '../structs/TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ.mjs';
84 import { Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ } from '../structs/Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ.mjs';
85 import { CommitmentTransaction } from '../structs/CommitmentTransaction.mjs';
86 import { HolderCommitmentTransaction } from '../structs/HolderCommitmentTransaction.mjs';
87 import { HTLCOutputInCommitment } from '../structs/HTLCOutputInCommitment.mjs';
88 import { ClosingTransaction } from '../structs/ClosingTransaction.mjs';
89 import { UnsignedChannelAnnouncement } from '../structs/UnsignedChannelAnnouncement.mjs';
90 import { ChannelPublicKeys } from '../structs/ChannelPublicKeys.mjs';
91 import { ChannelTransactionParameters } from '../structs/ChannelTransactionParameters.mjs';
92 import { ChannelSigner, ChannelSignerInterface } from '../structs/ChannelSigner.mjs';
93 import { EcdsaChannelSigner, EcdsaChannelSignerInterface } from '../structs/EcdsaChannelSigner.mjs';
94 import { WriteableEcdsaChannelSigner, WriteableEcdsaChannelSignerInterface } from '../structs/WriteableEcdsaChannelSigner.mjs';
95 import { Result_WriteableEcdsaChannelSignerDecodeErrorZ } from '../structs/Result_WriteableEcdsaChannelSignerDecodeErrorZ.mjs';
96 import { Result_CVec_u8ZNoneZ } from '../structs/Result_CVec_u8ZNoneZ.mjs';
97 import { Result_ShutdownScriptNoneZ } from '../structs/Result_ShutdownScriptNoneZ.mjs';
98 import { Option_u16Z } from '../structs/Option_u16Z.mjs';
99 import { Option_boolZ } from '../structs/Option_boolZ.mjs';
100 import { Result_WitnessNoneZ } from '../structs/Result_WitnessNoneZ.mjs';
101 import { InMemorySigner } from '../structs/InMemorySigner.mjs';
102 import { Result_InMemorySignerDecodeErrorZ } from '../structs/Result_InMemorySignerDecodeErrorZ.mjs';
103 import { ChannelDetails } from '../structs/ChannelDetails.mjs';
104 import { Route } from '../structs/Route.mjs';
105 import { LightningError } from '../structs/LightningError.mjs';
106 import { Result_RouteLightningErrorZ } from '../structs/Result_RouteLightningErrorZ.mjs';
107 import { TwoTuple_BlindedPayInfoBlindedPathZ } from '../structs/TwoTuple_BlindedPayInfoBlindedPathZ.mjs';
108 import { Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ } from '../structs/Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ.mjs';
109 import { OnionMessagePath } from '../structs/OnionMessagePath.mjs';
110 import { Result_OnionMessagePathNoneZ } from '../structs/Result_OnionMessagePathNoneZ.mjs';
111 import { Result_CVec_BlindedPathZNoneZ } from '../structs/Result_CVec_BlindedPathZNoneZ.mjs';
112 import { InFlightHtlcs } from '../structs/InFlightHtlcs.mjs';
113 import { Result_InFlightHtlcsDecodeErrorZ } from '../structs/Result_InFlightHtlcsDecodeErrorZ.mjs';
114 import { RouteHop } from '../structs/RouteHop.mjs';
115 import { Result_RouteHopDecodeErrorZ } from '../structs/Result_RouteHopDecodeErrorZ.mjs';
116 import { BlindedHop } from '../structs/BlindedHop.mjs';
117 import { BlindedTail } from '../structs/BlindedTail.mjs';
118 import { Result_BlindedTailDecodeErrorZ } from '../structs/Result_BlindedTailDecodeErrorZ.mjs';
119 import { Path } from '../structs/Path.mjs';
120 import { Result_RouteDecodeErrorZ } from '../structs/Result_RouteDecodeErrorZ.mjs';
121 import { RouteParameters } from '../structs/RouteParameters.mjs';
122 import { Result_RouteParametersDecodeErrorZ } from '../structs/Result_RouteParametersDecodeErrorZ.mjs';
123 import { PaymentParameters } from '../structs/PaymentParameters.mjs';
124 import { Result_PaymentParametersDecodeErrorZ } from '../structs/Result_PaymentParametersDecodeErrorZ.mjs';
125 import { RouteHint } from '../structs/RouteHint.mjs';
126 import { RouteHintHop } from '../structs/RouteHintHop.mjs';
127 import { Result_RouteHintDecodeErrorZ } from '../structs/Result_RouteHintDecodeErrorZ.mjs';
128 import { Result_RouteHintHopDecodeErrorZ } from '../structs/Result_RouteHintHopDecodeErrorZ.mjs';
129 import { FixedPenaltyScorer } from '../structs/FixedPenaltyScorer.mjs';
130 import { Result_FixedPenaltyScorerDecodeErrorZ } from '../structs/Result_FixedPenaltyScorerDecodeErrorZ.mjs';
131 import { NodeId } from '../structs/NodeId.mjs';
132 import { TwoTuple_u64u64Z } from '../structs/TwoTuple_u64u64Z.mjs';
133 import { Option_C2Tuple_u64u64ZZ } from '../structs/Option_C2Tuple_u64u64ZZ.mjs';
134 import { TwoTuple_Z } from '../structs/TwoTuple_Z.mjs';
135 import { TwoTuple__u1632_u1632Z } from '../structs/TwoTuple__u1632_u1632Z.mjs';
136 import { Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ } from '../structs/Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ.mjs';
137 import { Option_f64Z } from '../structs/Option_f64Z.mjs';
138 import { Record } from '../structs/Record.mjs';
139 import { Logger, LoggerInterface } from '../structs/Logger.mjs';
140 import { NetworkGraph } from '../structs/NetworkGraph.mjs';
141 import { ProbabilisticScorer } from '../structs/ProbabilisticScorer.mjs';
142 import { Result_ProbabilisticScorerDecodeErrorZ } from '../structs/Result_ProbabilisticScorerDecodeErrorZ.mjs';
143 import { BestBlock } from '../structs/BestBlock.mjs';
144 import { Result_BestBlockDecodeErrorZ } from '../structs/Result_BestBlockDecodeErrorZ.mjs';
145 import { TwoTuple_usizeTransactionZ } from '../structs/TwoTuple_usizeTransactionZ.mjs';
146 import { ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ } from '../structs/ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ.mjs';
147 import { Result_ChannelMonitorUpdateStatusNoneZ } from '../structs/Result_ChannelMonitorUpdateStatusNoneZ.mjs';
148 import { HTLCUpdate } from '../structs/HTLCUpdate.mjs';
149 import { UntrustedString } from '../structs/UntrustedString.mjs';
150 import { ClosureReason } from '../structs/ClosureReason.mjs';
151 import { ChannelId } from '../structs/ChannelId.mjs';
152 import { MonitorEvent } from '../structs/MonitorEvent.mjs';
153 import { FourTuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ } from '../structs/FourTuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ.mjs';
154 import { InitFeatures } from '../structs/InitFeatures.mjs';
155 import { Result_InitFeaturesDecodeErrorZ } from '../structs/Result_InitFeaturesDecodeErrorZ.mjs';
156 import { ChannelFeatures } from '../structs/ChannelFeatures.mjs';
157 import { Result_ChannelFeaturesDecodeErrorZ } from '../structs/Result_ChannelFeaturesDecodeErrorZ.mjs';
158 import { NodeFeatures } from '../structs/NodeFeatures.mjs';
159 import { Result_NodeFeaturesDecodeErrorZ } from '../structs/Result_NodeFeaturesDecodeErrorZ.mjs';
160 import { Bolt11InvoiceFeatures } from '../structs/Bolt11InvoiceFeatures.mjs';
161 import { Result_Bolt11InvoiceFeaturesDecodeErrorZ } from '../structs/Result_Bolt11InvoiceFeaturesDecodeErrorZ.mjs';
162 import { Bolt12InvoiceFeatures } from '../structs/Bolt12InvoiceFeatures.mjs';
163 import { Result_Bolt12InvoiceFeaturesDecodeErrorZ } from '../structs/Result_Bolt12InvoiceFeaturesDecodeErrorZ.mjs';
164 import { BlindedHopFeatures } from '../structs/BlindedHopFeatures.mjs';
165 import { Result_BlindedHopFeaturesDecodeErrorZ } from '../structs/Result_BlindedHopFeaturesDecodeErrorZ.mjs';
166 import { ChannelTypeFeatures } from '../structs/ChannelTypeFeatures.mjs';
167 import { Result_ChannelTypeFeaturesDecodeErrorZ } from '../structs/Result_ChannelTypeFeaturesDecodeErrorZ.mjs';
168 import { OfferId } from '../structs/OfferId.mjs';
169 import { Result_OfferIdDecodeErrorZ } from '../structs/Result_OfferIdDecodeErrorZ.mjs';
170 import { Result_NoneBolt12SemanticErrorZ } from '../structs/Result_NoneBolt12SemanticErrorZ.mjs';
171 import { Offer } from '../structs/Offer.mjs';
172 import { Result_OfferBolt12SemanticErrorZ } from '../structs/Result_OfferBolt12SemanticErrorZ.mjs';
173 import { InvoiceRequestWithDerivedPayerIdBuilder } from '../structs/InvoiceRequestWithDerivedPayerIdBuilder.mjs';
174 import { Result_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ } from '../structs/Result_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ.mjs';
175 import { InvoiceRequestWithExplicitPayerIdBuilder } from '../structs/InvoiceRequestWithExplicitPayerIdBuilder.mjs';
176 import { Result_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ } from '../structs/Result_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ.mjs';
177 import { Result_OfferBolt12ParseErrorZ } from '../structs/Result_OfferBolt12ParseErrorZ.mjs';
178 import { Result_NodeIdDecodeErrorZ } from '../structs/Result_NodeIdDecodeErrorZ.mjs';
179 import { Result_PublicKeySecp256k1ErrorZ } from '../structs/Result_PublicKeySecp256k1ErrorZ.mjs';
180 import { ChannelUpdate } from '../structs/ChannelUpdate.mjs';
181 import { NetworkUpdate } from '../structs/NetworkUpdate.mjs';
182 import { Option_NetworkUpdateZ } from '../structs/Option_NetworkUpdateZ.mjs';
183 import { Result_COption_NetworkUpdateZDecodeErrorZ } from '../structs/Result_COption_NetworkUpdateZDecodeErrorZ.mjs';
184 import { Result_TxOutUtxoLookupErrorZ } from '../structs/Result_TxOutUtxoLookupErrorZ.mjs';
185 import { UtxoFuture } from '../structs/UtxoFuture.mjs';
186 import { UtxoResult } from '../structs/UtxoResult.mjs';
187 import { UtxoLookup, UtxoLookupInterface } from '../structs/UtxoLookup.mjs';
188 import { Option_UtxoLookupZ } from '../structs/Option_UtxoLookupZ.mjs';
189 import { Result_NoneLightningErrorZ } from '../structs/Result_NoneLightningErrorZ.mjs';
190 import { Result_boolLightningErrorZ } from '../structs/Result_boolLightningErrorZ.mjs';
191 import { ChannelAnnouncement } from '../structs/ChannelAnnouncement.mjs';
192 import { ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ } from '../structs/ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ.mjs';
193 import { Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ } from '../structs/Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ.mjs';
194 import { AcceptChannel } from '../structs/AcceptChannel.mjs';
195 import { AcceptChannelV2 } from '../structs/AcceptChannelV2.mjs';
196 import { OpenChannel } from '../structs/OpenChannel.mjs';
197 import { OpenChannelV2 } from '../structs/OpenChannelV2.mjs';
198 import { FundingCreated } from '../structs/FundingCreated.mjs';
199 import { FundingSigned } from '../structs/FundingSigned.mjs';
200 import { Stfu } from '../structs/Stfu.mjs';
201 import { Splice } from '../structs/Splice.mjs';
202 import { SpliceAck } from '../structs/SpliceAck.mjs';
203 import { SpliceLocked } from '../structs/SpliceLocked.mjs';
204 import { TxAddInput } from '../structs/TxAddInput.mjs';
205 import { TxAddOutput } from '../structs/TxAddOutput.mjs';
206 import { TxRemoveInput } from '../structs/TxRemoveInput.mjs';
207 import { TxRemoveOutput } from '../structs/TxRemoveOutput.mjs';
208 import { TxComplete } from '../structs/TxComplete.mjs';
209 import { TxSignatures } from '../structs/TxSignatures.mjs';
210 import { TxInitRbf } from '../structs/TxInitRbf.mjs';
211 import { TxAckRbf } from '../structs/TxAckRbf.mjs';
212 import { TxAbort } from '../structs/TxAbort.mjs';
213 import { ChannelReady } from '../structs/ChannelReady.mjs';
214 import { AnnouncementSignatures } from '../structs/AnnouncementSignatures.mjs';
215 import { CommitmentUpdate } from '../structs/CommitmentUpdate.mjs';
216 import { RevokeAndACK } from '../structs/RevokeAndACK.mjs';
217 import { ClosingSigned } from '../structs/ClosingSigned.mjs';
218 import { Shutdown } from '../structs/Shutdown.mjs';
219 import { ChannelReestablish } from '../structs/ChannelReestablish.mjs';
220 import { NodeAnnouncement } from '../structs/NodeAnnouncement.mjs';
221 import { ErrorMessage } from '../structs/ErrorMessage.mjs';
222 import { WarningMessage } from '../structs/WarningMessage.mjs';
223 import { ErrorAction } from '../structs/ErrorAction.mjs';
224 import { QueryChannelRange } from '../structs/QueryChannelRange.mjs';
225 import { QueryShortChannelIds } from '../structs/QueryShortChannelIds.mjs';
226 import { ReplyChannelRange } from '../structs/ReplyChannelRange.mjs';
227 import { GossipTimestampFilter } from '../structs/GossipTimestampFilter.mjs';
228 import { ChannelUpdateInfo } from '../structs/ChannelUpdateInfo.mjs';
229 import { Result_ChannelUpdateInfoDecodeErrorZ } from '../structs/Result_ChannelUpdateInfoDecodeErrorZ.mjs';
230 import { ChannelInfo } from '../structs/ChannelInfo.mjs';
231 import { Result_ChannelInfoDecodeErrorZ } from '../structs/Result_ChannelInfoDecodeErrorZ.mjs';
232 import { RoutingFees } from '../structs/RoutingFees.mjs';
233 import { Result_RoutingFeesDecodeErrorZ } from '../structs/Result_RoutingFeesDecodeErrorZ.mjs';
234 import { Hostname } from '../structs/Hostname.mjs';
235 import { SocketAddress } from '../structs/SocketAddress.mjs';
236 import { NodeAnnouncementInfo } from '../structs/NodeAnnouncementInfo.mjs';
237 import { Result_NodeAnnouncementInfoDecodeErrorZ } from '../structs/Result_NodeAnnouncementInfoDecodeErrorZ.mjs';
238 import { NodeAlias } from '../structs/NodeAlias.mjs';
239 import { Result_NodeAliasDecodeErrorZ } from '../structs/Result_NodeAliasDecodeErrorZ.mjs';
240 import { NodeInfo } from '../structs/NodeInfo.mjs';
241 import { Result_NodeInfoDecodeErrorZ } from '../structs/Result_NodeInfoDecodeErrorZ.mjs';
242 import { Result_NetworkGraphDecodeErrorZ } from '../structs/Result_NetworkGraphDecodeErrorZ.mjs';
243 import { Option_CVec_SocketAddressZZ } from '../structs/Option_CVec_SocketAddressZZ.mjs';
244 import { Result_u64ShortChannelIdErrorZ } from '../structs/Result_u64ShortChannelIdErrorZ.mjs';
245 import { PendingHTLCInfo } from '../structs/PendingHTLCInfo.mjs';
246 import { InboundHTLCErr } from '../structs/InboundHTLCErr.mjs';
247 import { Result_PendingHTLCInfoInboundHTLCErrZ } from '../structs/Result_PendingHTLCInfoInboundHTLCErrZ.mjs';
248 import { Utxo } from '../structs/Utxo.mjs';
249 import { Option_TxOutZ } from '../structs/Option_TxOutZ.mjs';
250 import { Input } from '../structs/Input.mjs';
251 import { CoinSelection } from '../structs/CoinSelection.mjs';
252 import { Result_CoinSelectionNoneZ } from '../structs/Result_CoinSelectionNoneZ.mjs';
253 import { Result_CVec_UtxoZNoneZ } from '../structs/Result_CVec_UtxoZNoneZ.mjs';
254 import { UnknownPaymentContext } from '../structs/UnknownPaymentContext.mjs';
255 import { Bolt12OfferContext } from '../structs/Bolt12OfferContext.mjs';
256 import { Bolt12RefundContext } from '../structs/Bolt12RefundContext.mjs';
257 import { PaymentContext } from '../structs/PaymentContext.mjs';
258 import { Option_PaymentContextZ } from '../structs/Option_PaymentContextZ.mjs';
259 import { TwoTuple_u64u16Z } from '../structs/TwoTuple_u64u16Z.mjs';
260 import { Option_C2Tuple_u64u16ZZ } from '../structs/Option_C2Tuple_u64u16ZZ.mjs';
261 import { Result_ChannelIdAPIErrorZ } from '../structs/Result_ChannelIdAPIErrorZ.mjs';
262 import { RecentPaymentDetails } from '../structs/RecentPaymentDetails.mjs';
263 import { PaymentSendFailure } from '../structs/PaymentSendFailure.mjs';
264 import { Result_NonePaymentSendFailureZ } from '../structs/Result_NonePaymentSendFailureZ.mjs';
265 import { Result_NoneRetryableSendFailureZ } from '../structs/Result_NoneRetryableSendFailureZ.mjs';
266 import { Result_ThirtyTwoBytesPaymentSendFailureZ } from '../structs/Result_ThirtyTwoBytesPaymentSendFailureZ.mjs';
267 import { Result_ThirtyTwoBytesRetryableSendFailureZ } from '../structs/Result_ThirtyTwoBytesRetryableSendFailureZ.mjs';
268 import { TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ } from '../structs/TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ.mjs';
269 import { Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ } from '../structs/Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ.mjs';
270 import { ProbeSendFailure } from '../structs/ProbeSendFailure.mjs';
271 import { Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ } from '../structs/Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ.mjs';
272 import { TwoTuple_ChannelIdPublicKeyZ } from '../structs/TwoTuple_ChannelIdPublicKeyZ.mjs';
273 import { OfferWithDerivedMetadataBuilder } from '../structs/OfferWithDerivedMetadataBuilder.mjs';
274 import { Result_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ } from '../structs/Result_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ.mjs';
275 import { Option_StrZ } from '../structs/Option_StrZ.mjs';
276 import { Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ } from '../structs/Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ.mjs';
277 import { Result_ThirtyTwoBytesAPIErrorZ } from '../structs/Result_ThirtyTwoBytesAPIErrorZ.mjs';
278 import { InvoiceRequest } from '../structs/InvoiceRequest.mjs';
279 import { InvoiceError } from '../structs/InvoiceError.mjs';
280 import { OffersMessage } from '../structs/OffersMessage.mjs';
281 import { Option_OffersMessageZ } from '../structs/Option_OffersMessageZ.mjs';
282 import { Destination } from '../structs/Destination.mjs';
283 import { ThreeTuple_OffersMessageDestinationBlindedPathZ } from '../structs/ThreeTuple_OffersMessageDestinationBlindedPathZ.mjs';
284 import { PhantomRouteHints } from '../structs/PhantomRouteHints.mjs';
285 import { Result_PhantomRouteHintsDecodeErrorZ } from '../structs/Result_PhantomRouteHintsDecodeErrorZ.mjs';
286 import { BlindedForward } from '../structs/BlindedForward.mjs';
287 import { Result_BlindedForwardDecodeErrorZ } from '../structs/Result_BlindedForwardDecodeErrorZ.mjs';
288 import { OnionPacket } from '../structs/OnionPacket.mjs';
289 import { FinalOnionHopData } from '../structs/FinalOnionHopData.mjs';
290 import { PendingHTLCRouting } from '../structs/PendingHTLCRouting.mjs';
291 import { Result_PendingHTLCRoutingDecodeErrorZ } from '../structs/Result_PendingHTLCRoutingDecodeErrorZ.mjs';
292 import { Result_PendingHTLCInfoDecodeErrorZ } from '../structs/Result_PendingHTLCInfoDecodeErrorZ.mjs';
293 import { Result_BlindedFailureDecodeErrorZ } from '../structs/Result_BlindedFailureDecodeErrorZ.mjs';
294 import { ChannelMonitor } from '../structs/ChannelMonitor.mjs';
295 import { ChannelMonitorUpdate } from '../structs/ChannelMonitorUpdate.mjs';
296 import { Watch, WatchInterface } from '../structs/Watch.mjs';
297 import { BroadcasterInterface, BroadcasterInterfaceInterface } from '../structs/BroadcasterInterface.mjs';
298 import { EntropySource, EntropySourceInterface } from '../structs/EntropySource.mjs';
299 import { UnsignedInvoiceRequest } from '../structs/UnsignedInvoiceRequest.mjs';
300 import { UnsignedChannelUpdate } from '../structs/UnsignedChannelUpdate.mjs';
301 import { UnsignedNodeAnnouncement } from '../structs/UnsignedNodeAnnouncement.mjs';
302 import { UnsignedGossipMessage } from '../structs/UnsignedGossipMessage.mjs';
303 import { NodeSigner, NodeSignerInterface } from '../structs/NodeSigner.mjs';
304 import { SignerProvider, SignerProviderInterface } from '../structs/SignerProvider.mjs';
305 import { FeeEstimator, FeeEstimatorInterface } from '../structs/FeeEstimator.mjs';
306 import { ReceiveTlvs } from '../structs/ReceiveTlvs.mjs';
307 import { MessageRouter, MessageRouterInterface } from '../structs/MessageRouter.mjs';
308 import { Router, RouterInterface } from '../structs/Router.mjs';
309 import { ChannelManager } from '../structs/ChannelManager.mjs';
310 import { TwoTuple_ThirtyTwoBytesChannelManagerZ } from '../structs/TwoTuple_ThirtyTwoBytesChannelManagerZ.mjs';
311 import { Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ } from '../structs/Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ.mjs';
312 import { MaxDustHTLCExposure } from '../structs/MaxDustHTLCExposure.mjs';
313 import { Result_MaxDustHTLCExposureDecodeErrorZ } from '../structs/Result_MaxDustHTLCExposureDecodeErrorZ.mjs';
314 import { ChannelConfig } from '../structs/ChannelConfig.mjs';
315 import { Result_ChannelConfigDecodeErrorZ } from '../structs/Result_ChannelConfigDecodeErrorZ.mjs';
316 import { Option_MaxDustHTLCExposureZ } from '../structs/Option_MaxDustHTLCExposureZ.mjs';
317 import { Option_APIErrorZ } from '../structs/Option_APIErrorZ.mjs';
318 import { Result_COption_APIErrorZDecodeErrorZ } from '../structs/Result_COption_APIErrorZDecodeErrorZ.mjs';
319 import { Result_ChannelMonitorUpdateDecodeErrorZ } from '../structs/Result_ChannelMonitorUpdateDecodeErrorZ.mjs';
320 import { Option_MonitorEventZ } from '../structs/Option_MonitorEventZ.mjs';
321 import { Result_COption_MonitorEventZDecodeErrorZ } from '../structs/Result_COption_MonitorEventZDecodeErrorZ.mjs';
322 import { Result_HTLCUpdateDecodeErrorZ } from '../structs/Result_HTLCUpdateDecodeErrorZ.mjs';
323 import { TwoTuple_OutPointCVec_u8ZZ } from '../structs/TwoTuple_OutPointCVec_u8ZZ.mjs';
324 import { TwoTuple_u32CVec_u8ZZ } from '../structs/TwoTuple_u32CVec_u8ZZ.mjs';
325 import { TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ } from '../structs/TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ.mjs';
326 import { TwoTuple_u32TxOutZ } from '../structs/TwoTuple_u32TxOutZ.mjs';
327 import { TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ } from '../structs/TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ.mjs';
328 import { Balance } from '../structs/Balance.mjs';
329 import { TwoTuple_ThirtyTwoBytesChannelMonitorZ } from '../structs/TwoTuple_ThirtyTwoBytesChannelMonitorZ.mjs';
330 import { Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ } from '../structs/Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ.mjs';
331 import { Type, TypeInterface } from '../structs/Type.mjs';
332 import { TwoTuple_PublicKeyTypeZ } from '../structs/TwoTuple_PublicKeyTypeZ.mjs';
333 import { TwoTuple_PublicKeyCVec_SocketAddressZZ } from '../structs/TwoTuple_PublicKeyCVec_SocketAddressZZ.mjs';
334 import { OnionMessageContents, OnionMessageContentsInterface } from '../structs/OnionMessageContents.mjs';
335 import { Option_OnionMessageContentsZ } from '../structs/Option_OnionMessageContentsZ.mjs';
336 import { Result_COption_OnionMessageContentsZDecodeErrorZ } from '../structs/Result_COption_OnionMessageContentsZDecodeErrorZ.mjs';
337 import { ThreeTuple_OnionMessageContentsDestinationBlindedPathZ } from '../structs/ThreeTuple_OnionMessageContentsDestinationBlindedPathZ.mjs';
338 import { Option_TypeZ } from '../structs/Option_TypeZ.mjs';
339 import { Result_COption_TypeZDecodeErrorZ } from '../structs/Result_COption_TypeZDecodeErrorZ.mjs';
340 import { Option_SocketAddressZ } from '../structs/Option_SocketAddressZ.mjs';
341 import { PeerDetails } from '../structs/PeerDetails.mjs';
342 import { PeerHandleError } from '../structs/PeerHandleError.mjs';
343 import { Result_CVec_u8ZPeerHandleErrorZ } from '../structs/Result_CVec_u8ZPeerHandleErrorZ.mjs';
344 import { Result_NonePeerHandleErrorZ } from '../structs/Result_NonePeerHandleErrorZ.mjs';
345 import { Result_boolPeerHandleErrorZ } from '../structs/Result_boolPeerHandleErrorZ.mjs';
346 import { GraphSyncError } from '../structs/GraphSyncError.mjs';
347 import { Result_u32GraphSyncErrorZ } from '../structs/Result_u32GraphSyncErrorZ.mjs';
348 import { Result_CVec_u8ZIOErrorZ } from '../structs/Result_CVec_u8ZIOErrorZ.mjs';
349 import { Result_NoneIOErrorZ } from '../structs/Result_NoneIOErrorZ.mjs';
350 import { Result_CVec_StrZIOErrorZ } from '../structs/Result_CVec_StrZIOErrorZ.mjs';
351 import { Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ } from '../structs/Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ.mjs';
352 import { Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ } from '../structs/Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ.mjs';
353 import { Result_UnsignedInvoiceRequestBolt12SemanticErrorZ } from '../structs/Result_UnsignedInvoiceRequestBolt12SemanticErrorZ.mjs';
354 import { Result_InvoiceRequestBolt12SemanticErrorZ } from '../structs/Result_InvoiceRequestBolt12SemanticErrorZ.mjs';
355 import { Option_SecretKeyZ } from '../structs/Option_SecretKeyZ.mjs';
356 import { InvoiceWithExplicitSigningPubkeyBuilder } from '../structs/InvoiceWithExplicitSigningPubkeyBuilder.mjs';
357 import { Result_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ } from '../structs/Result_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ.mjs';
358 import { VerifiedInvoiceRequest } from '../structs/VerifiedInvoiceRequest.mjs';
359 import { Result_VerifiedInvoiceRequestNoneZ } from '../structs/Result_VerifiedInvoiceRequestNoneZ.mjs';
360 import { InvoiceWithDerivedSigningPubkeyBuilder } from '../structs/InvoiceWithDerivedSigningPubkeyBuilder.mjs';
361 import { Result_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ } from '../structs/Result_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ.mjs';
362 import { InvoiceRequestFields } from '../structs/InvoiceRequestFields.mjs';
363 import { Result_InvoiceRequestFieldsDecodeErrorZ } from '../structs/Result_InvoiceRequestFieldsDecodeErrorZ.mjs';
364 import { Option_ECDSASignatureZ } from '../structs/Option_ECDSASignatureZ.mjs';
365 import { Option_i64Z } from '../structs/Option_i64Z.mjs';
366 import { Result_SocketAddressDecodeErrorZ } from '../structs/Result_SocketAddressDecodeErrorZ.mjs';
367 import { Result_SocketAddressSocketAddressParseErrorZ } from '../structs/Result_SocketAddressSocketAddressParseErrorZ.mjs';
368 import { UpdateAddHTLC } from '../structs/UpdateAddHTLC.mjs';
369 import { UpdateFulfillHTLC } from '../structs/UpdateFulfillHTLC.mjs';
370 import { UpdateFailHTLC } from '../structs/UpdateFailHTLC.mjs';
371 import { UpdateFailMalformedHTLC } from '../structs/UpdateFailMalformedHTLC.mjs';
372 import { Result_AcceptChannelDecodeErrorZ } from '../structs/Result_AcceptChannelDecodeErrorZ.mjs';
373 import { Result_AcceptChannelV2DecodeErrorZ } from '../structs/Result_AcceptChannelV2DecodeErrorZ.mjs';
374 import { Result_StfuDecodeErrorZ } from '../structs/Result_StfuDecodeErrorZ.mjs';
375 import { Result_SpliceDecodeErrorZ } from '../structs/Result_SpliceDecodeErrorZ.mjs';
376 import { Result_SpliceAckDecodeErrorZ } from '../structs/Result_SpliceAckDecodeErrorZ.mjs';
377 import { Result_SpliceLockedDecodeErrorZ } from '../structs/Result_SpliceLockedDecodeErrorZ.mjs';
378 import { Result_TxAddInputDecodeErrorZ } from '../structs/Result_TxAddInputDecodeErrorZ.mjs';
379 import { Result_TxAddOutputDecodeErrorZ } from '../structs/Result_TxAddOutputDecodeErrorZ.mjs';
380 import { Result_TxRemoveInputDecodeErrorZ } from '../structs/Result_TxRemoveInputDecodeErrorZ.mjs';
381 import { Result_TxRemoveOutputDecodeErrorZ } from '../structs/Result_TxRemoveOutputDecodeErrorZ.mjs';
382 import { Result_TxCompleteDecodeErrorZ } from '../structs/Result_TxCompleteDecodeErrorZ.mjs';
383 import { Result_TxSignaturesDecodeErrorZ } from '../structs/Result_TxSignaturesDecodeErrorZ.mjs';
384 import { Result_TxInitRbfDecodeErrorZ } from '../structs/Result_TxInitRbfDecodeErrorZ.mjs';
385 import { Result_TxAckRbfDecodeErrorZ } from '../structs/Result_TxAckRbfDecodeErrorZ.mjs';
386 import { Result_TxAbortDecodeErrorZ } from '../structs/Result_TxAbortDecodeErrorZ.mjs';
387 import { Result_AnnouncementSignaturesDecodeErrorZ } from '../structs/Result_AnnouncementSignaturesDecodeErrorZ.mjs';
388 import { Result_ChannelReestablishDecodeErrorZ } from '../structs/Result_ChannelReestablishDecodeErrorZ.mjs';
389 import { Result_ClosingSignedDecodeErrorZ } from '../structs/Result_ClosingSignedDecodeErrorZ.mjs';
390 import { ClosingSignedFeeRange } from '../structs/ClosingSignedFeeRange.mjs';
391 import { Result_ClosingSignedFeeRangeDecodeErrorZ } from '../structs/Result_ClosingSignedFeeRangeDecodeErrorZ.mjs';
392 import { CommitmentSigned } from '../structs/CommitmentSigned.mjs';
393 import { Result_CommitmentSignedDecodeErrorZ } from '../structs/Result_CommitmentSignedDecodeErrorZ.mjs';
394 import { Result_FundingCreatedDecodeErrorZ } from '../structs/Result_FundingCreatedDecodeErrorZ.mjs';
395 import { Result_FundingSignedDecodeErrorZ } from '../structs/Result_FundingSignedDecodeErrorZ.mjs';
396 import { Result_ChannelReadyDecodeErrorZ } from '../structs/Result_ChannelReadyDecodeErrorZ.mjs';
397 import { Init } from '../structs/Init.mjs';
398 import { Result_InitDecodeErrorZ } from '../structs/Result_InitDecodeErrorZ.mjs';
399 import { Result_OpenChannelDecodeErrorZ } from '../structs/Result_OpenChannelDecodeErrorZ.mjs';
400 import { Result_OpenChannelV2DecodeErrorZ } from '../structs/Result_OpenChannelV2DecodeErrorZ.mjs';
401 import { Result_RevokeAndACKDecodeErrorZ } from '../structs/Result_RevokeAndACKDecodeErrorZ.mjs';
402 import { Result_ShutdownDecodeErrorZ } from '../structs/Result_ShutdownDecodeErrorZ.mjs';
403 import { Result_UpdateFailHTLCDecodeErrorZ } from '../structs/Result_UpdateFailHTLCDecodeErrorZ.mjs';
404 import { Result_UpdateFailMalformedHTLCDecodeErrorZ } from '../structs/Result_UpdateFailMalformedHTLCDecodeErrorZ.mjs';
405 import { UpdateFee } from '../structs/UpdateFee.mjs';
406 import { Result_UpdateFeeDecodeErrorZ } from '../structs/Result_UpdateFeeDecodeErrorZ.mjs';
407 import { Result_UpdateFulfillHTLCDecodeErrorZ } from '../structs/Result_UpdateFulfillHTLCDecodeErrorZ.mjs';
408 import { Result_OnionPacketDecodeErrorZ } from '../structs/Result_OnionPacketDecodeErrorZ.mjs';
409 import { Result_UpdateAddHTLCDecodeErrorZ } from '../structs/Result_UpdateAddHTLCDecodeErrorZ.mjs';
410 import { OnionMessage } from '../structs/OnionMessage.mjs';
411 import { Result_OnionMessageDecodeErrorZ } from '../structs/Result_OnionMessageDecodeErrorZ.mjs';
412 import { Result_FinalOnionHopDataDecodeErrorZ } from '../structs/Result_FinalOnionHopDataDecodeErrorZ.mjs';
413 import { Ping } from '../structs/Ping.mjs';
414 import { Result_PingDecodeErrorZ } from '../structs/Result_PingDecodeErrorZ.mjs';
415 import { Pong } from '../structs/Pong.mjs';
416 import { Result_PongDecodeErrorZ } from '../structs/Result_PongDecodeErrorZ.mjs';
417 import { Result_UnsignedChannelAnnouncementDecodeErrorZ } from '../structs/Result_UnsignedChannelAnnouncementDecodeErrorZ.mjs';
418 import { Result_ChannelAnnouncementDecodeErrorZ } from '../structs/Result_ChannelAnnouncementDecodeErrorZ.mjs';
419 import { Result_UnsignedChannelUpdateDecodeErrorZ } from '../structs/Result_UnsignedChannelUpdateDecodeErrorZ.mjs';
420 import { Result_ChannelUpdateDecodeErrorZ } from '../structs/Result_ChannelUpdateDecodeErrorZ.mjs';
421 import { Result_ErrorMessageDecodeErrorZ } from '../structs/Result_ErrorMessageDecodeErrorZ.mjs';
422 import { Result_WarningMessageDecodeErrorZ } from '../structs/Result_WarningMessageDecodeErrorZ.mjs';
423 import { Result_UnsignedNodeAnnouncementDecodeErrorZ } from '../structs/Result_UnsignedNodeAnnouncementDecodeErrorZ.mjs';
424 import { Result_NodeAnnouncementDecodeErrorZ } from '../structs/Result_NodeAnnouncementDecodeErrorZ.mjs';
425 import { Result_QueryShortChannelIdsDecodeErrorZ } from '../structs/Result_QueryShortChannelIdsDecodeErrorZ.mjs';
426 import { ReplyShortChannelIdsEnd } from '../structs/ReplyShortChannelIdsEnd.mjs';
427 import { Result_ReplyShortChannelIdsEndDecodeErrorZ } from '../structs/Result_ReplyShortChannelIdsEndDecodeErrorZ.mjs';
428 import { Result_QueryChannelRangeDecodeErrorZ } from '../structs/Result_QueryChannelRangeDecodeErrorZ.mjs';
429 import { Result_ReplyChannelRangeDecodeErrorZ } from '../structs/Result_ReplyChannelRangeDecodeErrorZ.mjs';
430 import { Result_GossipTimestampFilterDecodeErrorZ } from '../structs/Result_GossipTimestampFilterDecodeErrorZ.mjs';
431 import { Bolt11Invoice } from '../structs/Bolt11Invoice.mjs';
432 import { SignOrCreationError } from '../structs/SignOrCreationError.mjs';
433 import { Result_Bolt11InvoiceSignOrCreationErrorZ } from '../structs/Result_Bolt11InvoiceSignOrCreationErrorZ.mjs';
434 import { Option_InboundHTLCStateDetailsZ } from '../structs/Option_InboundHTLCStateDetailsZ.mjs';
435 import { Result_COption_InboundHTLCStateDetailsZDecodeErrorZ } from '../structs/Result_COption_InboundHTLCStateDetailsZDecodeErrorZ.mjs';
436 import { InboundHTLCDetails } from '../structs/InboundHTLCDetails.mjs';
437 import { Result_InboundHTLCDetailsDecodeErrorZ } from '../structs/Result_InboundHTLCDetailsDecodeErrorZ.mjs';
438 import { Option_OutboundHTLCStateDetailsZ } from '../structs/Option_OutboundHTLCStateDetailsZ.mjs';
439 import { Result_COption_OutboundHTLCStateDetailsZDecodeErrorZ } from '../structs/Result_COption_OutboundHTLCStateDetailsZDecodeErrorZ.mjs';
440 import { OutboundHTLCDetails } from '../structs/OutboundHTLCDetails.mjs';
441 import { Result_OutboundHTLCDetailsDecodeErrorZ } from '../structs/Result_OutboundHTLCDetailsDecodeErrorZ.mjs';
442 import { CounterpartyForwardingInfo } from '../structs/CounterpartyForwardingInfo.mjs';
443 import { Result_CounterpartyForwardingInfoDecodeErrorZ } from '../structs/Result_CounterpartyForwardingInfoDecodeErrorZ.mjs';
444 import { ChannelCounterparty } from '../structs/ChannelCounterparty.mjs';
445 import { Result_ChannelCounterpartyDecodeErrorZ } from '../structs/Result_ChannelCounterpartyDecodeErrorZ.mjs';
446 import { Option_ChannelShutdownStateZ } from '../structs/Option_ChannelShutdownStateZ.mjs';
447 import { Result_ChannelDetailsDecodeErrorZ } from '../structs/Result_ChannelDetailsDecodeErrorZ.mjs';
448 import { Result_ChannelShutdownStateDecodeErrorZ } from '../structs/Result_ChannelShutdownStateDecodeErrorZ.mjs';
449 import { Result_OffersMessageDecodeErrorZ } from '../structs/Result_OffersMessageDecodeErrorZ.mjs';
450 import { Option_HTLCClaimZ } from '../structs/Option_HTLCClaimZ.mjs';
451 import { CounterpartyCommitmentSecrets } from '../structs/CounterpartyCommitmentSecrets.mjs';
452 import { Result_CounterpartyCommitmentSecretsDecodeErrorZ } from '../structs/Result_CounterpartyCommitmentSecretsDecodeErrorZ.mjs';
453 import { TxCreationKeys } from '../structs/TxCreationKeys.mjs';
454 import { Result_TxCreationKeysDecodeErrorZ } from '../structs/Result_TxCreationKeysDecodeErrorZ.mjs';
455 import { Result_ChannelPublicKeysDecodeErrorZ } from '../structs/Result_ChannelPublicKeysDecodeErrorZ.mjs';
456 import { Result_HTLCOutputInCommitmentDecodeErrorZ } from '../structs/Result_HTLCOutputInCommitmentDecodeErrorZ.mjs';
457 import { CounterpartyChannelTransactionParameters } from '../structs/CounterpartyChannelTransactionParameters.mjs';
458 import { Result_CounterpartyChannelTransactionParametersDecodeErrorZ } from '../structs/Result_CounterpartyChannelTransactionParametersDecodeErrorZ.mjs';
459 import { Result_ChannelTransactionParametersDecodeErrorZ } from '../structs/Result_ChannelTransactionParametersDecodeErrorZ.mjs';
460 import { Result_HolderCommitmentTransactionDecodeErrorZ } from '../structs/Result_HolderCommitmentTransactionDecodeErrorZ.mjs';
461 import { BuiltCommitmentTransaction } from '../structs/BuiltCommitmentTransaction.mjs';
462 import { Result_BuiltCommitmentTransactionDecodeErrorZ } from '../structs/Result_BuiltCommitmentTransactionDecodeErrorZ.mjs';
463 import { TrustedClosingTransaction } from '../structs/TrustedClosingTransaction.mjs';
464 import { Result_TrustedClosingTransactionNoneZ } from '../structs/Result_TrustedClosingTransactionNoneZ.mjs';
465 import { Result_CommitmentTransactionDecodeErrorZ } from '../structs/Result_CommitmentTransactionDecodeErrorZ.mjs';
466 import { TrustedCommitmentTransaction } from '../structs/TrustedCommitmentTransaction.mjs';
467 import { Result_TrustedCommitmentTransactionNoneZ } from '../structs/Result_TrustedCommitmentTransactionNoneZ.mjs';
468 import { Result_CVec_ECDSASignatureZNoneZ } from '../structs/Result_CVec_ECDSASignatureZNoneZ.mjs';
469 import { Option_usizeZ } from '../structs/Option_usizeZ.mjs';
470 import { Result_ShutdownScriptDecodeErrorZ } from '../structs/Result_ShutdownScriptDecodeErrorZ.mjs';
471 import { InvalidShutdownScript } from '../structs/InvalidShutdownScript.mjs';
472 import { Result_ShutdownScriptInvalidShutdownScriptZ } from '../structs/Result_ShutdownScriptInvalidShutdownScriptZ.mjs';
473 import { PaymentPurpose } from '../structs/PaymentPurpose.mjs';
474 import { Result_PaymentPurposeDecodeErrorZ } from '../structs/Result_PaymentPurposeDecodeErrorZ.mjs';
475 import { ClaimedHTLC } from '../structs/ClaimedHTLC.mjs';
476 import { Result_ClaimedHTLCDecodeErrorZ } from '../structs/Result_ClaimedHTLCDecodeErrorZ.mjs';
477 import { PathFailure } from '../structs/PathFailure.mjs';
478 import { Option_PathFailureZ } from '../structs/Option_PathFailureZ.mjs';
479 import { Result_COption_PathFailureZDecodeErrorZ } from '../structs/Result_COption_PathFailureZDecodeErrorZ.mjs';
480 import { Option_ClosureReasonZ } from '../structs/Option_ClosureReasonZ.mjs';
481 import { Result_COption_ClosureReasonZDecodeErrorZ } from '../structs/Result_COption_ClosureReasonZDecodeErrorZ.mjs';
482 import { HTLCDestination } from '../structs/HTLCDestination.mjs';
483 import { Option_HTLCDestinationZ } from '../structs/Option_HTLCDestinationZ.mjs';
484 import { Result_COption_HTLCDestinationZDecodeErrorZ } from '../structs/Result_COption_HTLCDestinationZDecodeErrorZ.mjs';
485 import { Result_PaymentFailureReasonDecodeErrorZ } from '../structs/Result_PaymentFailureReasonDecodeErrorZ.mjs';
486 import { Option_U128Z } from '../structs/Option_U128Z.mjs';
487 import { Option_PaymentFailureReasonZ } from '../structs/Option_PaymentFailureReasonZ.mjs';
488 import { AnchorDescriptor } from '../structs/AnchorDescriptor.mjs';
489 import { BumpTransactionEvent } from '../structs/BumpTransactionEvent.mjs';
490 import { Event } from '../structs/Event.mjs';
491 import { Option_EventZ } from '../structs/Option_EventZ.mjs';
492 import { Result_COption_EventZDecodeErrorZ } from '../structs/Result_COption_EventZDecodeErrorZ.mjs';
493 import { Bolt11ParseError } from '../structs/Bolt11ParseError.mjs';
494 import { Result_SiPrefixBolt11ParseErrorZ } from '../structs/Result_SiPrefixBolt11ParseErrorZ.mjs';
495 import { ParseOrSemanticError } from '../structs/ParseOrSemanticError.mjs';
496 import { Result_Bolt11InvoiceParseOrSemanticErrorZ } from '../structs/Result_Bolt11InvoiceParseOrSemanticErrorZ.mjs';
497 import { SignedRawBolt11Invoice } from '../structs/SignedRawBolt11Invoice.mjs';
498 import { Result_SignedRawBolt11InvoiceBolt11ParseErrorZ } from '../structs/Result_SignedRawBolt11InvoiceBolt11ParseErrorZ.mjs';
499 import { RawBolt11Invoice } from '../structs/RawBolt11Invoice.mjs';
500 import { Bolt11InvoiceSignature } from '../structs/Bolt11InvoiceSignature.mjs';
501 import { ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ } from '../structs/ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ.mjs';
502 import { PayeePubKey } from '../structs/PayeePubKey.mjs';
503 import { Result_PayeePubKeySecp256k1ErrorZ } from '../structs/Result_PayeePubKeySecp256k1ErrorZ.mjs';
504 import { PrivateRoute } from '../structs/PrivateRoute.mjs';
505 import { PositiveTimestamp } from '../structs/PositiveTimestamp.mjs';
506 import { Result_PositiveTimestampCreationErrorZ } from '../structs/Result_PositiveTimestampCreationErrorZ.mjs';
507 import { Result_NoneBolt11SemanticErrorZ } from '../structs/Result_NoneBolt11SemanticErrorZ.mjs';
508 import { Result_Bolt11InvoiceBolt11SemanticErrorZ } from '../structs/Result_Bolt11InvoiceBolt11SemanticErrorZ.mjs';
509 import { Description } from '../structs/Description.mjs';
510 import { Result_DescriptionCreationErrorZ } from '../structs/Result_DescriptionCreationErrorZ.mjs';
511 import { Result_PrivateRouteCreationErrorZ } from '../structs/Result_PrivateRouteCreationErrorZ.mjs';
512 import { Result_OutPointDecodeErrorZ } from '../structs/Result_OutPointDecodeErrorZ.mjs';
513 import { BigSize } from '../structs/BigSize.mjs';
514 import { Result_BigSizeDecodeErrorZ } from '../structs/Result_BigSizeDecodeErrorZ.mjs';
515 import { Result_HostnameDecodeErrorZ } from '../structs/Result_HostnameDecodeErrorZ.mjs';
516 import { TransactionU16LenLimited } from '../structs/TransactionU16LenLimited.mjs';
517 import { Result_TransactionU16LenLimitedNoneZ } from '../structs/Result_TransactionU16LenLimitedNoneZ.mjs';
518 import { Result_TransactionU16LenLimitedDecodeErrorZ } from '../structs/Result_TransactionU16LenLimitedDecodeErrorZ.mjs';
519 import { Result_UntrustedStringDecodeErrorZ } from '../structs/Result_UntrustedStringDecodeErrorZ.mjs';
520 import { Result_ChannelIdDecodeErrorZ } from '../structs/Result_ChannelIdDecodeErrorZ.mjs';
521 import { TwoTuple__u832u16Z } from '../structs/TwoTuple__u832u16Z.mjs';
522 import { PaymentRelay } from '../structs/PaymentRelay.mjs';
523 import { Result_PaymentRelayDecodeErrorZ } from '../structs/Result_PaymentRelayDecodeErrorZ.mjs';
524 import { PaymentConstraints } from '../structs/PaymentConstraints.mjs';
525 import { Result_PaymentConstraintsDecodeErrorZ } from '../structs/Result_PaymentConstraintsDecodeErrorZ.mjs';
526 import { Result_PaymentContextDecodeErrorZ } from '../structs/Result_PaymentContextDecodeErrorZ.mjs';
527 import { Result_UnknownPaymentContextDecodeErrorZ } from '../structs/Result_UnknownPaymentContextDecodeErrorZ.mjs';
528 import { Result_Bolt12OfferContextDecodeErrorZ } from '../structs/Result_Bolt12OfferContextDecodeErrorZ.mjs';
529 import { Result_Bolt12RefundContextDecodeErrorZ } from '../structs/Result_Bolt12RefundContextDecodeErrorZ.mjs';
530 import { Result_StrSecp256k1ErrorZ } from '../structs/Result_StrSecp256k1ErrorZ.mjs';
531 import { ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ } from '../structs/ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ.mjs';
532 import { Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ } from '../structs/Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ.mjs';
533 import { ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ } from '../structs/ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ.mjs';
534 import { SendError } from '../structs/SendError.mjs';
535 import { Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ } from '../structs/Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ.mjs';
536 import { NextMessageHop } from '../structs/NextMessageHop.mjs';
537 import { ParsedOnionMessageContents } from '../structs/ParsedOnionMessageContents.mjs';
538 import { PeeledOnion } from '../structs/PeeledOnion.mjs';
539 import { Result_PeeledOnionNoneZ } from '../structs/Result_PeeledOnionNoneZ.mjs';
540 import { SendSuccess } from '../structs/SendSuccess.mjs';
541 import { Result_SendSuccessSendErrorZ } from '../structs/Result_SendSuccessSendErrorZ.mjs';
542 import { Result_BlindedPathNoneZ } from '../structs/Result_BlindedPathNoneZ.mjs';
543 import { Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ } from '../structs/Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ.mjs';
544 import { ForwardNode } from '../structs/ForwardNode.mjs';
545 import { Result_BlindedPathDecodeErrorZ } from '../structs/Result_BlindedPathDecodeErrorZ.mjs';
546 import { Result_BlindedHopDecodeErrorZ } from '../structs/Result_BlindedHopDecodeErrorZ.mjs';
547 import { Result_InvoiceErrorDecodeErrorZ } from '../structs/Result_InvoiceErrorDecodeErrorZ.mjs';
548 import { TrackedSpendableOutput } from '../structs/TrackedSpendableOutput.mjs';
549 import { Result_TrackedSpendableOutputDecodeErrorZ } from '../structs/Result_TrackedSpendableOutputDecodeErrorZ.mjs';
550 import { OutputSpendStatus } from '../structs/OutputSpendStatus.mjs';
551 import { Result_OutputSpendStatusDecodeErrorZ } from '../structs/Result_OutputSpendStatusDecodeErrorZ.mjs';
552 import { WatchedOutput } from '../structs/WatchedOutput.mjs';
553 import { Filter, FilterInterface } from '../structs/Filter.mjs';
554 import { Option_FilterZ } from '../structs/Option_FilterZ.mjs';
555 import { ChangeDestinationSource, ChangeDestinationSourceInterface } from '../structs/ChangeDestinationSource.mjs';
556 import { KVStore, KVStoreInterface } from '../structs/KVStore.mjs';
557 import { OutputSpender, OutputSpenderInterface } from '../structs/OutputSpender.mjs';
558 import { OutputSweeper } from '../structs/OutputSweeper.mjs';
559 import { Result_OutputSweeperDecodeErrorZ } from '../structs/Result_OutputSweeperDecodeErrorZ.mjs';
560 import { TwoTuple_BestBlockOutputSweeperZ } from '../structs/TwoTuple_BestBlockOutputSweeperZ.mjs';
561 import { Result_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ } from '../structs/Result_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ.mjs';
562 import { DelayedPaymentBasepoint } from '../structs/DelayedPaymentBasepoint.mjs';
563 import { Result_DelayedPaymentBasepointDecodeErrorZ } from '../structs/Result_DelayedPaymentBasepointDecodeErrorZ.mjs';
564 import { DelayedPaymentKey } from '../structs/DelayedPaymentKey.mjs';
565 import { Result_DelayedPaymentKeyDecodeErrorZ } from '../structs/Result_DelayedPaymentKeyDecodeErrorZ.mjs';
566 import { HtlcBasepoint } from '../structs/HtlcBasepoint.mjs';
567 import { Result_HtlcBasepointDecodeErrorZ } from '../structs/Result_HtlcBasepointDecodeErrorZ.mjs';
568 import { HtlcKey } from '../structs/HtlcKey.mjs';
569 import { Result_HtlcKeyDecodeErrorZ } from '../structs/Result_HtlcKeyDecodeErrorZ.mjs';
570 import { RevocationBasepoint } from '../structs/RevocationBasepoint.mjs';
571 import { Result_RevocationBasepointDecodeErrorZ } from '../structs/Result_RevocationBasepointDecodeErrorZ.mjs';
572 import { RevocationKey } from '../structs/RevocationKey.mjs';
573 import { Result_RevocationKeyDecodeErrorZ } from '../structs/Result_RevocationKeyDecodeErrorZ.mjs';
574 import { LockedChannelMonitor } from '../structs/LockedChannelMonitor.mjs';
575 import { Result_LockedChannelMonitorNoneZ } from '../structs/Result_LockedChannelMonitorNoneZ.mjs';
576 import { TwoTuple_OutPointChannelIdZ } from '../structs/TwoTuple_OutPointChannelIdZ.mjs';
577 import { MonitorUpdateId } from '../structs/MonitorUpdateId.mjs';
578 import { TwoTuple_OutPointCVec_MonitorUpdateIdZZ } from '../structs/TwoTuple_OutPointCVec_MonitorUpdateIdZZ.mjs';
579 import { FirstHopCandidate } from '../structs/FirstHopCandidate.mjs';
580 import { PublicHopCandidate } from '../structs/PublicHopCandidate.mjs';
581 import { PrivateHopCandidate } from '../structs/PrivateHopCandidate.mjs';
582 import { BlindedPathCandidate } from '../structs/BlindedPathCandidate.mjs';
583 import { OneHopBlindedPathCandidate } from '../structs/OneHopBlindedPathCandidate.mjs';
584 import { CandidateRouteHop } from '../structs/CandidateRouteHop.mjs';
585 import { ChannelUsage } from '../structs/ChannelUsage.mjs';
586 import { ProbabilisticScoringFeeParameters } from '../structs/ProbabilisticScoringFeeParameters.mjs';
587 import { ScoreLookUp, ScoreLookUpInterface } from '../structs/ScoreLookUp.mjs';
588 import { ScoreUpdate, ScoreUpdateInterface } from '../structs/ScoreUpdate.mjs';
589 import { LockableScore, LockableScoreInterface } from '../structs/LockableScore.mjs';
590 import { WriteableScore, WriteableScoreInterface } from '../structs/WriteableScore.mjs';
591 import { Persister, PersisterInterface } from '../structs/Persister.mjs';
592 import { MonitorUpdatingPersister } from '../structs/MonitorUpdatingPersister.mjs';
593 import { Persist, PersistInterface } from '../structs/Persist.mjs';
594 import { PrintableString } from '../structs/PrintableString.mjs';
595 import { Listen, ListenInterface } from '../structs/Listen.mjs';
596 import { Confirm, ConfirmInterface } from '../structs/Confirm.mjs';
597 import { SpendingDelay } from '../structs/SpendingDelay.mjs';
598 import { FutureCallback, FutureCallbackInterface } from '../structs/FutureCallback.mjs';
599 import { Future } from '../structs/Future.mjs';
600 import { ChannelHandshakeConfig } from '../structs/ChannelHandshakeConfig.mjs';
601 import { ChannelHandshakeLimits } from '../structs/ChannelHandshakeLimits.mjs';
602 import { ChannelConfigUpdate } from '../structs/ChannelConfigUpdate.mjs';
603 import { UserConfig } from '../structs/UserConfig.mjs';
604 import { ChainMonitor } from '../structs/ChainMonitor.mjs';
605 import { EventHandler, EventHandlerInterface } from '../structs/EventHandler.mjs';
606 import { EventsProvider, EventsProviderInterface } from '../structs/EventsProvider.mjs';
607 import { FailureCode } from '../structs/FailureCode.mjs';
608 import { ChainParameters } from '../structs/ChainParameters.mjs';
609 import { MessageSendEventsProvider, MessageSendEventsProviderInterface } from '../structs/MessageSendEventsProvider.mjs';
610 import { ChannelMessageHandler, ChannelMessageHandlerInterface } from '../structs/ChannelMessageHandler.mjs';
611 import { OffersMessageHandler, OffersMessageHandlerInterface } from '../structs/OffersMessageHandler.mjs';
612 import { NodeIdLookUp, NodeIdLookUpInterface } from '../structs/NodeIdLookUp.mjs';
613 import { ChannelManagerReadArgs } from '../structs/ChannelManagerReadArgs.mjs';
614 import { ExpandedKey } from '../structs/ExpandedKey.mjs';
615 import { CommonOpenChannelFields } from '../structs/CommonOpenChannelFields.mjs';
616 import { CommonAcceptChannelFields } from '../structs/CommonAcceptChannelFields.mjs';
617 import { Packet } from '../structs/Packet.mjs';
618 import { RoutingMessageHandler, RoutingMessageHandlerInterface } from '../structs/RoutingMessageHandler.mjs';
619 import { OnionMessageHandler, OnionMessageHandlerInterface } from '../structs/OnionMessageHandler.mjs';
620 import { TrampolineOnionPacket } from '../structs/TrampolineOnionPacket.mjs';
621 import { CustomMessageReader, CustomMessageReaderInterface } from '../structs/CustomMessageReader.mjs';
622 import { CustomMessageHandler, CustomMessageHandlerInterface } from '../structs/CustomMessageHandler.mjs';
623 import { IgnoringMessageHandler } from '../structs/IgnoringMessageHandler.mjs';
624 import { CustomOnionMessageHandler, CustomOnionMessageHandlerInterface } from '../structs/CustomOnionMessageHandler.mjs';
625 import { ErroringMessageHandler } from '../structs/ErroringMessageHandler.mjs';
626 import { MessageHandler } from '../structs/MessageHandler.mjs';
627 import { SocketDescriptor, SocketDescriptorInterface } from '../structs/SocketDescriptor.mjs';
628 import { PeerManager } from '../structs/PeerManager.mjs';
629 import { DirectedChannelTransactionParameters } from '../structs/DirectedChannelTransactionParameters.mjs';
630 import { OfferFeatures } from '../structs/OfferFeatures.mjs';
631 import { InvoiceRequestFeatures } from '../structs/InvoiceRequestFeatures.mjs';
632 import { OfferWithExplicitMetadataBuilder } from '../structs/OfferWithExplicitMetadataBuilder.mjs';
633 import { SignBolt12InvoiceFn, SignBolt12InvoiceFnInterface } from '../structs/SignBolt12InvoiceFn.mjs';
634 import { TaggedHash } from '../structs/TaggedHash.mjs';
635 import { ErroneousField } from '../structs/ErroneousField.mjs';
636 import { SignInvoiceRequestFn, SignInvoiceRequestFnInterface } from '../structs/SignInvoiceRequestFn.mjs';
637 import { SignError } from '../structs/SignError.mjs';
638 import { P2PGossipSync } from '../structs/P2PGossipSync.mjs';
639 import { ReadOnlyNetworkGraph } from '../structs/ReadOnlyNetworkGraph.mjs';
640 import { DirectedChannelInfo } from '../structs/DirectedChannelInfo.mjs';
641 import { EffectiveCapacity } from '../structs/EffectiveCapacity.mjs';
642 import { DefaultRouter } from '../structs/DefaultRouter.mjs';
643 import { ScorerAccountingForInFlightHtlcs } from '../structs/ScorerAccountingForInFlightHtlcs.mjs';
644 import { Payee } from '../structs/Payee.mjs';
645 import { Score, ScoreInterface } from '../structs/Score.mjs';
646 import { MultiThreadedLockableScore } from '../structs/MultiThreadedLockableScore.mjs';
647 import { MultiThreadedScoreLockRead } from '../structs/MultiThreadedScoreLockRead.mjs';
648 import { MultiThreadedScoreLockWrite } from '../structs/MultiThreadedScoreLockWrite.mjs';
649 import { ProbabilisticScoringDecayParameters } from '../structs/ProbabilisticScoringDecayParameters.mjs';
650 import { KeysManager } from '../structs/KeysManager.mjs';
651 import { PhantomKeysManager } from '../structs/PhantomKeysManager.mjs';
652 import { RandomBytes } from '../structs/RandomBytes.mjs';
653 import { OnionMessenger } from '../structs/OnionMessenger.mjs';
654 import { DefaultMessageRouter } from '../structs/DefaultMessageRouter.mjs';
655 import { IntroductionNode } from '../structs/IntroductionNode.mjs';
656 import { EmptyNodeIdLookUp } from '../structs/EmptyNodeIdLookUp.mjs';
657 import { ForwardTlvs } from '../structs/ForwardTlvs.mjs';
658 import { CoinSelectionSource, CoinSelectionSourceInterface } from '../structs/CoinSelectionSource.mjs';
659 import { WalletSource, WalletSourceInterface } from '../structs/WalletSource.mjs';
660 import { Wallet } from '../structs/Wallet.mjs';
661 import { BumpTransactionEventHandler } from '../structs/BumpTransactionEventHandler.mjs';
662 import { RapidGossipSync } from '../structs/RapidGossipSync.mjs';
663 import { GossipSync } from '../structs/GossipSync.mjs';
664 import { RawDataPart } from '../structs/RawDataPart.mjs';
665 import { Sha256 } from '../structs/Sha256.mjs';
666 import { ExpiryTime } from '../structs/ExpiryTime.mjs';
667 import { MinFinalCltvExpiryDelta } from '../structs/MinFinalCltvExpiryDelta.mjs';
668 import { Fallback } from '../structs/Fallback.mjs';
669
670 import { CommonBase, UInt5, WitnessVersion, UnqualifiedError } from './CommonBase.mjs';
671 import * as bindings from '../bindings.mjs'
672
673 /**
674  * An event generated by ChannelManager which indicates a message should be sent to a peer (or
675  * broadcast to most peers).
676  * These events are handled by PeerManager::process_events if you are using a PeerManager.
677  */
678 export class MessageSendEvent extends CommonBase {
679         protected constructor(_dummy: null, ptr: bigint) { super(ptr, bindings.MessageSendEvent_free); }
680         /* @internal */
681         public static constr_from_ptr(ptr: bigint): MessageSendEvent {
682                 const raw_ty: number = bindings.LDKMessageSendEvent_ty_from_ptr(ptr);
683                 switch (raw_ty) {
684                         case 0: return new MessageSendEvent_SendAcceptChannel(ptr);
685                         case 1: return new MessageSendEvent_SendAcceptChannelV2(ptr);
686                         case 2: return new MessageSendEvent_SendOpenChannel(ptr);
687                         case 3: return new MessageSendEvent_SendOpenChannelV2(ptr);
688                         case 4: return new MessageSendEvent_SendFundingCreated(ptr);
689                         case 5: return new MessageSendEvent_SendFundingSigned(ptr);
690                         case 6: return new MessageSendEvent_SendStfu(ptr);
691                         case 7: return new MessageSendEvent_SendSplice(ptr);
692                         case 8: return new MessageSendEvent_SendSpliceAck(ptr);
693                         case 9: return new MessageSendEvent_SendSpliceLocked(ptr);
694                         case 10: return new MessageSendEvent_SendTxAddInput(ptr);
695                         case 11: return new MessageSendEvent_SendTxAddOutput(ptr);
696                         case 12: return new MessageSendEvent_SendTxRemoveInput(ptr);
697                         case 13: return new MessageSendEvent_SendTxRemoveOutput(ptr);
698                         case 14: return new MessageSendEvent_SendTxComplete(ptr);
699                         case 15: return new MessageSendEvent_SendTxSignatures(ptr);
700                         case 16: return new MessageSendEvent_SendTxInitRbf(ptr);
701                         case 17: return new MessageSendEvent_SendTxAckRbf(ptr);
702                         case 18: return new MessageSendEvent_SendTxAbort(ptr);
703                         case 19: return new MessageSendEvent_SendChannelReady(ptr);
704                         case 20: return new MessageSendEvent_SendAnnouncementSignatures(ptr);
705                         case 21: return new MessageSendEvent_UpdateHTLCs(ptr);
706                         case 22: return new MessageSendEvent_SendRevokeAndACK(ptr);
707                         case 23: return new MessageSendEvent_SendClosingSigned(ptr);
708                         case 24: return new MessageSendEvent_SendShutdown(ptr);
709                         case 25: return new MessageSendEvent_SendChannelReestablish(ptr);
710                         case 26: return new MessageSendEvent_SendChannelAnnouncement(ptr);
711                         case 27: return new MessageSendEvent_BroadcastChannelAnnouncement(ptr);
712                         case 28: return new MessageSendEvent_BroadcastChannelUpdate(ptr);
713                         case 29: return new MessageSendEvent_BroadcastNodeAnnouncement(ptr);
714                         case 30: return new MessageSendEvent_SendChannelUpdate(ptr);
715                         case 31: return new MessageSendEvent_HandleError(ptr);
716                         case 32: return new MessageSendEvent_SendChannelRangeQuery(ptr);
717                         case 33: return new MessageSendEvent_SendShortIdsQuery(ptr);
718                         case 34: return new MessageSendEvent_SendReplyChannelRange(ptr);
719                         case 35: return new MessageSendEvent_SendGossipTimestampFilter(ptr);
720                         default:
721                                 throw new Error('oops, this should be unreachable'); // Unreachable without extending the (internal) bindings interface
722                 }
723         }
724
725         public clone_ptr(): bigint {
726                 const ret: bigint = bindings.MessageSendEvent_clone_ptr(this.ptr);
727                 return ret;
728         }
729
730         /**
731          * Creates a copy of the MessageSendEvent
732          */
733         public clone(): MessageSendEvent {
734                 const ret: bigint = bindings.MessageSendEvent_clone(this.ptr);
735                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
736                 CommonBase.add_ref_from(ret_hu_conv, this);
737                 return ret_hu_conv;
738         }
739
740         /**
741          * Utility method to constructs a new SendAcceptChannel-variant MessageSendEvent
742          */
743         public static constructor_send_accept_channel(node_id: Uint8Array, msg: AcceptChannel): MessageSendEvent {
744                 const ret: bigint = bindings.MessageSendEvent_send_accept_channel(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
745                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
746                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
747                 CommonBase.add_ref_from(ret_hu_conv, msg);
748                 return ret_hu_conv;
749         }
750
751         /**
752          * Utility method to constructs a new SendAcceptChannelV2-variant MessageSendEvent
753          */
754         public static constructor_send_accept_channel_v2(node_id: Uint8Array, msg: AcceptChannelV2): MessageSendEvent {
755                 const ret: bigint = bindings.MessageSendEvent_send_accept_channel_v2(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
756                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
757                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
758                 CommonBase.add_ref_from(ret_hu_conv, msg);
759                 return ret_hu_conv;
760         }
761
762         /**
763          * Utility method to constructs a new SendOpenChannel-variant MessageSendEvent
764          */
765         public static constructor_send_open_channel(node_id: Uint8Array, msg: OpenChannel): MessageSendEvent {
766                 const ret: bigint = bindings.MessageSendEvent_send_open_channel(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
767                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
768                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
769                 CommonBase.add_ref_from(ret_hu_conv, msg);
770                 return ret_hu_conv;
771         }
772
773         /**
774          * Utility method to constructs a new SendOpenChannelV2-variant MessageSendEvent
775          */
776         public static constructor_send_open_channel_v2(node_id: Uint8Array, msg: OpenChannelV2): MessageSendEvent {
777                 const ret: bigint = bindings.MessageSendEvent_send_open_channel_v2(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
778                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
779                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
780                 CommonBase.add_ref_from(ret_hu_conv, msg);
781                 return ret_hu_conv;
782         }
783
784         /**
785          * Utility method to constructs a new SendFundingCreated-variant MessageSendEvent
786          */
787         public static constructor_send_funding_created(node_id: Uint8Array, msg: FundingCreated): MessageSendEvent {
788                 const ret: bigint = bindings.MessageSendEvent_send_funding_created(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
789                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
790                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
791                 CommonBase.add_ref_from(ret_hu_conv, msg);
792                 return ret_hu_conv;
793         }
794
795         /**
796          * Utility method to constructs a new SendFundingSigned-variant MessageSendEvent
797          */
798         public static constructor_send_funding_signed(node_id: Uint8Array, msg: FundingSigned): MessageSendEvent {
799                 const ret: bigint = bindings.MessageSendEvent_send_funding_signed(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
800                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
801                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
802                 CommonBase.add_ref_from(ret_hu_conv, msg);
803                 return ret_hu_conv;
804         }
805
806         /**
807          * Utility method to constructs a new SendStfu-variant MessageSendEvent
808          */
809         public static constructor_send_stfu(node_id: Uint8Array, msg: Stfu): MessageSendEvent {
810                 const ret: bigint = bindings.MessageSendEvent_send_stfu(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
811                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
812                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
813                 CommonBase.add_ref_from(ret_hu_conv, msg);
814                 return ret_hu_conv;
815         }
816
817         /**
818          * Utility method to constructs a new SendSplice-variant MessageSendEvent
819          */
820         public static constructor_send_splice(node_id: Uint8Array, msg: Splice): MessageSendEvent {
821                 const ret: bigint = bindings.MessageSendEvent_send_splice(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
822                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
823                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
824                 CommonBase.add_ref_from(ret_hu_conv, msg);
825                 return ret_hu_conv;
826         }
827
828         /**
829          * Utility method to constructs a new SendSpliceAck-variant MessageSendEvent
830          */
831         public static constructor_send_splice_ack(node_id: Uint8Array, msg: SpliceAck): MessageSendEvent {
832                 const ret: bigint = bindings.MessageSendEvent_send_splice_ack(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
833                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
834                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
835                 CommonBase.add_ref_from(ret_hu_conv, msg);
836                 return ret_hu_conv;
837         }
838
839         /**
840          * Utility method to constructs a new SendSpliceLocked-variant MessageSendEvent
841          */
842         public static constructor_send_splice_locked(node_id: Uint8Array, msg: SpliceLocked): MessageSendEvent {
843                 const ret: bigint = bindings.MessageSendEvent_send_splice_locked(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
844                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
845                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
846                 CommonBase.add_ref_from(ret_hu_conv, msg);
847                 return ret_hu_conv;
848         }
849
850         /**
851          * Utility method to constructs a new SendTxAddInput-variant MessageSendEvent
852          */
853         public static constructor_send_tx_add_input(node_id: Uint8Array, msg: TxAddInput): MessageSendEvent {
854                 const ret: bigint = bindings.MessageSendEvent_send_tx_add_input(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
855                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
856                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
857                 CommonBase.add_ref_from(ret_hu_conv, msg);
858                 return ret_hu_conv;
859         }
860
861         /**
862          * Utility method to constructs a new SendTxAddOutput-variant MessageSendEvent
863          */
864         public static constructor_send_tx_add_output(node_id: Uint8Array, msg: TxAddOutput): MessageSendEvent {
865                 const ret: bigint = bindings.MessageSendEvent_send_tx_add_output(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
866                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
867                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
868                 CommonBase.add_ref_from(ret_hu_conv, msg);
869                 return ret_hu_conv;
870         }
871
872         /**
873          * Utility method to constructs a new SendTxRemoveInput-variant MessageSendEvent
874          */
875         public static constructor_send_tx_remove_input(node_id: Uint8Array, msg: TxRemoveInput): MessageSendEvent {
876                 const ret: bigint = bindings.MessageSendEvent_send_tx_remove_input(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
877                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
878                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
879                 CommonBase.add_ref_from(ret_hu_conv, msg);
880                 return ret_hu_conv;
881         }
882
883         /**
884          * Utility method to constructs a new SendTxRemoveOutput-variant MessageSendEvent
885          */
886         public static constructor_send_tx_remove_output(node_id: Uint8Array, msg: TxRemoveOutput): MessageSendEvent {
887                 const ret: bigint = bindings.MessageSendEvent_send_tx_remove_output(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
888                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
889                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
890                 CommonBase.add_ref_from(ret_hu_conv, msg);
891                 return ret_hu_conv;
892         }
893
894         /**
895          * Utility method to constructs a new SendTxComplete-variant MessageSendEvent
896          */
897         public static constructor_send_tx_complete(node_id: Uint8Array, msg: TxComplete): MessageSendEvent {
898                 const ret: bigint = bindings.MessageSendEvent_send_tx_complete(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
899                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
900                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
901                 CommonBase.add_ref_from(ret_hu_conv, msg);
902                 return ret_hu_conv;
903         }
904
905         /**
906          * Utility method to constructs a new SendTxSignatures-variant MessageSendEvent
907          */
908         public static constructor_send_tx_signatures(node_id: Uint8Array, msg: TxSignatures): MessageSendEvent {
909                 const ret: bigint = bindings.MessageSendEvent_send_tx_signatures(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
910                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
911                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
912                 CommonBase.add_ref_from(ret_hu_conv, msg);
913                 return ret_hu_conv;
914         }
915
916         /**
917          * Utility method to constructs a new SendTxInitRbf-variant MessageSendEvent
918          */
919         public static constructor_send_tx_init_rbf(node_id: Uint8Array, msg: TxInitRbf): MessageSendEvent {
920                 const ret: bigint = bindings.MessageSendEvent_send_tx_init_rbf(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
921                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
922                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
923                 CommonBase.add_ref_from(ret_hu_conv, msg);
924                 return ret_hu_conv;
925         }
926
927         /**
928          * Utility method to constructs a new SendTxAckRbf-variant MessageSendEvent
929          */
930         public static constructor_send_tx_ack_rbf(node_id: Uint8Array, msg: TxAckRbf): MessageSendEvent {
931                 const ret: bigint = bindings.MessageSendEvent_send_tx_ack_rbf(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
932                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
933                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
934                 CommonBase.add_ref_from(ret_hu_conv, msg);
935                 return ret_hu_conv;
936         }
937
938         /**
939          * Utility method to constructs a new SendTxAbort-variant MessageSendEvent
940          */
941         public static constructor_send_tx_abort(node_id: Uint8Array, msg: TxAbort): MessageSendEvent {
942                 const ret: bigint = bindings.MessageSendEvent_send_tx_abort(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
943                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
944                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
945                 CommonBase.add_ref_from(ret_hu_conv, msg);
946                 return ret_hu_conv;
947         }
948
949         /**
950          * Utility method to constructs a new SendChannelReady-variant MessageSendEvent
951          */
952         public static constructor_send_channel_ready(node_id: Uint8Array, msg: ChannelReady): MessageSendEvent {
953                 const ret: bigint = bindings.MessageSendEvent_send_channel_ready(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
954                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
955                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
956                 CommonBase.add_ref_from(ret_hu_conv, msg);
957                 return ret_hu_conv;
958         }
959
960         /**
961          * Utility method to constructs a new SendAnnouncementSignatures-variant MessageSendEvent
962          */
963         public static constructor_send_announcement_signatures(node_id: Uint8Array, msg: AnnouncementSignatures): MessageSendEvent {
964                 const ret: bigint = bindings.MessageSendEvent_send_announcement_signatures(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
965                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
966                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
967                 CommonBase.add_ref_from(ret_hu_conv, msg);
968                 return ret_hu_conv;
969         }
970
971         /**
972          * Utility method to constructs a new UpdateHTLCs-variant MessageSendEvent
973          */
974         public static constructor_update_htlcs(node_id: Uint8Array, updates: CommitmentUpdate): MessageSendEvent {
975                 const ret: bigint = bindings.MessageSendEvent_update_htlcs(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(updates));
976                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
977                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
978                 CommonBase.add_ref_from(ret_hu_conv, updates);
979                 return ret_hu_conv;
980         }
981
982         /**
983          * Utility method to constructs a new SendRevokeAndACK-variant MessageSendEvent
984          */
985         public static constructor_send_revoke_and_ack(node_id: Uint8Array, msg: RevokeAndACK): MessageSendEvent {
986                 const ret: bigint = bindings.MessageSendEvent_send_revoke_and_ack(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
987                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
988                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
989                 CommonBase.add_ref_from(ret_hu_conv, msg);
990                 return ret_hu_conv;
991         }
992
993         /**
994          * Utility method to constructs a new SendClosingSigned-variant MessageSendEvent
995          */
996         public static constructor_send_closing_signed(node_id: Uint8Array, msg: ClosingSigned): MessageSendEvent {
997                 const ret: bigint = bindings.MessageSendEvent_send_closing_signed(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
998                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
999                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1000                 CommonBase.add_ref_from(ret_hu_conv, msg);
1001                 return ret_hu_conv;
1002         }
1003
1004         /**
1005          * Utility method to constructs a new SendShutdown-variant MessageSendEvent
1006          */
1007         public static constructor_send_shutdown(node_id: Uint8Array, msg: Shutdown): MessageSendEvent {
1008                 const ret: bigint = bindings.MessageSendEvent_send_shutdown(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
1009                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1010                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1011                 CommonBase.add_ref_from(ret_hu_conv, msg);
1012                 return ret_hu_conv;
1013         }
1014
1015         /**
1016          * Utility method to constructs a new SendChannelReestablish-variant MessageSendEvent
1017          */
1018         public static constructor_send_channel_reestablish(node_id: Uint8Array, msg: ChannelReestablish): MessageSendEvent {
1019                 const ret: bigint = bindings.MessageSendEvent_send_channel_reestablish(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
1020                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1021                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1022                 CommonBase.add_ref_from(ret_hu_conv, msg);
1023                 return ret_hu_conv;
1024         }
1025
1026         /**
1027          * Utility method to constructs a new SendChannelAnnouncement-variant MessageSendEvent
1028          */
1029         public static constructor_send_channel_announcement(node_id: Uint8Array, msg: ChannelAnnouncement, update_msg: ChannelUpdate): MessageSendEvent {
1030                 const ret: bigint = bindings.MessageSendEvent_send_channel_announcement(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg), CommonBase.get_ptr_of(update_msg));
1031                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1032                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1033                 CommonBase.add_ref_from(ret_hu_conv, msg);
1034                 CommonBase.add_ref_from(ret_hu_conv, update_msg);
1035                 return ret_hu_conv;
1036         }
1037
1038         /**
1039          * Utility method to constructs a new BroadcastChannelAnnouncement-variant MessageSendEvent
1040          */
1041         public static constructor_broadcast_channel_announcement(msg: ChannelAnnouncement, update_msg: ChannelUpdate): MessageSendEvent {
1042                 const ret: bigint = bindings.MessageSendEvent_broadcast_channel_announcement(CommonBase.get_ptr_of(msg), CommonBase.get_ptr_of(update_msg));
1043                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1044                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1045                 CommonBase.add_ref_from(ret_hu_conv, msg);
1046                 CommonBase.add_ref_from(ret_hu_conv, update_msg);
1047                 return ret_hu_conv;
1048         }
1049
1050         /**
1051          * Utility method to constructs a new BroadcastChannelUpdate-variant MessageSendEvent
1052          */
1053         public static constructor_broadcast_channel_update(msg: ChannelUpdate): MessageSendEvent {
1054                 const ret: bigint = bindings.MessageSendEvent_broadcast_channel_update(CommonBase.get_ptr_of(msg));
1055                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1056                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1057                 CommonBase.add_ref_from(ret_hu_conv, msg);
1058                 return ret_hu_conv;
1059         }
1060
1061         /**
1062          * Utility method to constructs a new BroadcastNodeAnnouncement-variant MessageSendEvent
1063          */
1064         public static constructor_broadcast_node_announcement(msg: NodeAnnouncement): MessageSendEvent {
1065                 const ret: bigint = bindings.MessageSendEvent_broadcast_node_announcement(CommonBase.get_ptr_of(msg));
1066                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1067                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1068                 CommonBase.add_ref_from(ret_hu_conv, msg);
1069                 return ret_hu_conv;
1070         }
1071
1072         /**
1073          * Utility method to constructs a new SendChannelUpdate-variant MessageSendEvent
1074          */
1075         public static constructor_send_channel_update(node_id: Uint8Array, msg: ChannelUpdate): MessageSendEvent {
1076                 const ret: bigint = bindings.MessageSendEvent_send_channel_update(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
1077                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1078                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1079                 CommonBase.add_ref_from(ret_hu_conv, msg);
1080                 return ret_hu_conv;
1081         }
1082
1083         /**
1084          * Utility method to constructs a new HandleError-variant MessageSendEvent
1085          */
1086         public static constructor_handle_error(node_id: Uint8Array, action: ErrorAction): MessageSendEvent {
1087                 const ret: bigint = bindings.MessageSendEvent_handle_error(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(action));
1088                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1089                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1090                 CommonBase.add_ref_from(ret_hu_conv, action);
1091                 return ret_hu_conv;
1092         }
1093
1094         /**
1095          * Utility method to constructs a new SendChannelRangeQuery-variant MessageSendEvent
1096          */
1097         public static constructor_send_channel_range_query(node_id: Uint8Array, msg: QueryChannelRange): MessageSendEvent {
1098                 const ret: bigint = bindings.MessageSendEvent_send_channel_range_query(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
1099                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1100                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1101                 CommonBase.add_ref_from(ret_hu_conv, msg);
1102                 return ret_hu_conv;
1103         }
1104
1105         /**
1106          * Utility method to constructs a new SendShortIdsQuery-variant MessageSendEvent
1107          */
1108         public static constructor_send_short_ids_query(node_id: Uint8Array, msg: QueryShortChannelIds): MessageSendEvent {
1109                 const ret: bigint = bindings.MessageSendEvent_send_short_ids_query(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
1110                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1111                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1112                 CommonBase.add_ref_from(ret_hu_conv, msg);
1113                 return ret_hu_conv;
1114         }
1115
1116         /**
1117          * Utility method to constructs a new SendReplyChannelRange-variant MessageSendEvent
1118          */
1119         public static constructor_send_reply_channel_range(node_id: Uint8Array, msg: ReplyChannelRange): MessageSendEvent {
1120                 const ret: bigint = bindings.MessageSendEvent_send_reply_channel_range(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
1121                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1122                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1123                 CommonBase.add_ref_from(ret_hu_conv, msg);
1124                 return ret_hu_conv;
1125         }
1126
1127         /**
1128          * Utility method to constructs a new SendGossipTimestampFilter-variant MessageSendEvent
1129          */
1130         public static constructor_send_gossip_timestamp_filter(node_id: Uint8Array, msg: GossipTimestampFilter): MessageSendEvent {
1131                 const ret: bigint = bindings.MessageSendEvent_send_gossip_timestamp_filter(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(msg));
1132                 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1133                 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1134                 CommonBase.add_ref_from(ret_hu_conv, msg);
1135                 return ret_hu_conv;
1136         }
1137
1138 }
1139 /** A MessageSendEvent of type SendAcceptChannel */
1140 export class MessageSendEvent_SendAcceptChannel extends MessageSendEvent {
1141         /**
1142          * The node_id of the node which should receive this message
1143          */
1144         public node_id: Uint8Array;
1145         /**
1146          * The message which should be sent.
1147          */
1148         public msg: AcceptChannel;
1149         /* @internal */
1150         public constructor(ptr: bigint) {
1151                 super(null, ptr);
1152                 const node_id: number = bindings.LDKMessageSendEvent_SendAcceptChannel_get_node_id(ptr);
1153                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1154                 this.node_id = node_id_conv;
1155                 const msg: bigint = bindings.LDKMessageSendEvent_SendAcceptChannel_get_msg(ptr);
1156                 const msg_hu_conv: AcceptChannel = new AcceptChannel(null, msg);
1157                         CommonBase.add_ref_from(msg_hu_conv, this);
1158                 this.msg = msg_hu_conv;
1159         }
1160 }
1161 /** A MessageSendEvent of type SendAcceptChannelV2 */
1162 export class MessageSendEvent_SendAcceptChannelV2 extends MessageSendEvent {
1163         /**
1164          * The node_id of the node which should receive this message
1165          */
1166         public node_id: Uint8Array;
1167         /**
1168          * The message which should be sent.
1169          */
1170         public msg: AcceptChannelV2;
1171         /* @internal */
1172         public constructor(ptr: bigint) {
1173                 super(null, ptr);
1174                 const node_id: number = bindings.LDKMessageSendEvent_SendAcceptChannelV2_get_node_id(ptr);
1175                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1176                 this.node_id = node_id_conv;
1177                 const msg: bigint = bindings.LDKMessageSendEvent_SendAcceptChannelV2_get_msg(ptr);
1178                 const msg_hu_conv: AcceptChannelV2 = new AcceptChannelV2(null, msg);
1179                         CommonBase.add_ref_from(msg_hu_conv, this);
1180                 this.msg = msg_hu_conv;
1181         }
1182 }
1183 /** A MessageSendEvent of type SendOpenChannel */
1184 export class MessageSendEvent_SendOpenChannel extends MessageSendEvent {
1185         /**
1186          * The node_id of the node which should receive this message
1187          */
1188         public node_id: Uint8Array;
1189         /**
1190          * The message which should be sent.
1191          */
1192         public msg: OpenChannel;
1193         /* @internal */
1194         public constructor(ptr: bigint) {
1195                 super(null, ptr);
1196                 const node_id: number = bindings.LDKMessageSendEvent_SendOpenChannel_get_node_id(ptr);
1197                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1198                 this.node_id = node_id_conv;
1199                 const msg: bigint = bindings.LDKMessageSendEvent_SendOpenChannel_get_msg(ptr);
1200                 const msg_hu_conv: OpenChannel = new OpenChannel(null, msg);
1201                         CommonBase.add_ref_from(msg_hu_conv, this);
1202                 this.msg = msg_hu_conv;
1203         }
1204 }
1205 /** A MessageSendEvent of type SendOpenChannelV2 */
1206 export class MessageSendEvent_SendOpenChannelV2 extends MessageSendEvent {
1207         /**
1208          * The node_id of the node which should receive this message
1209          */
1210         public node_id: Uint8Array;
1211         /**
1212          * The message which should be sent.
1213          */
1214         public msg: OpenChannelV2;
1215         /* @internal */
1216         public constructor(ptr: bigint) {
1217                 super(null, ptr);
1218                 const node_id: number = bindings.LDKMessageSendEvent_SendOpenChannelV2_get_node_id(ptr);
1219                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1220                 this.node_id = node_id_conv;
1221                 const msg: bigint = bindings.LDKMessageSendEvent_SendOpenChannelV2_get_msg(ptr);
1222                 const msg_hu_conv: OpenChannelV2 = new OpenChannelV2(null, msg);
1223                         CommonBase.add_ref_from(msg_hu_conv, this);
1224                 this.msg = msg_hu_conv;
1225         }
1226 }
1227 /** A MessageSendEvent of type SendFundingCreated */
1228 export class MessageSendEvent_SendFundingCreated extends MessageSendEvent {
1229         /**
1230          * The node_id of the node which should receive this message
1231          */
1232         public node_id: Uint8Array;
1233         /**
1234          * The message which should be sent.
1235          */
1236         public msg: FundingCreated;
1237         /* @internal */
1238         public constructor(ptr: bigint) {
1239                 super(null, ptr);
1240                 const node_id: number = bindings.LDKMessageSendEvent_SendFundingCreated_get_node_id(ptr);
1241                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1242                 this.node_id = node_id_conv;
1243                 const msg: bigint = bindings.LDKMessageSendEvent_SendFundingCreated_get_msg(ptr);
1244                 const msg_hu_conv: FundingCreated = new FundingCreated(null, msg);
1245                         CommonBase.add_ref_from(msg_hu_conv, this);
1246                 this.msg = msg_hu_conv;
1247         }
1248 }
1249 /** A MessageSendEvent of type SendFundingSigned */
1250 export class MessageSendEvent_SendFundingSigned extends MessageSendEvent {
1251         /**
1252          * The node_id of the node which should receive this message
1253          */
1254         public node_id: Uint8Array;
1255         /**
1256          * The message which should be sent.
1257          */
1258         public msg: FundingSigned;
1259         /* @internal */
1260         public constructor(ptr: bigint) {
1261                 super(null, ptr);
1262                 const node_id: number = bindings.LDKMessageSendEvent_SendFundingSigned_get_node_id(ptr);
1263                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1264                 this.node_id = node_id_conv;
1265                 const msg: bigint = bindings.LDKMessageSendEvent_SendFundingSigned_get_msg(ptr);
1266                 const msg_hu_conv: FundingSigned = new FundingSigned(null, msg);
1267                         CommonBase.add_ref_from(msg_hu_conv, this);
1268                 this.msg = msg_hu_conv;
1269         }
1270 }
1271 /** A MessageSendEvent of type SendStfu */
1272 export class MessageSendEvent_SendStfu extends MessageSendEvent {
1273         /**
1274          * The node_id of the node which should receive this message
1275          */
1276         public node_id: Uint8Array;
1277         /**
1278          * The message which should be sent.
1279          */
1280         public msg: Stfu;
1281         /* @internal */
1282         public constructor(ptr: bigint) {
1283                 super(null, ptr);
1284                 const node_id: number = bindings.LDKMessageSendEvent_SendStfu_get_node_id(ptr);
1285                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1286                 this.node_id = node_id_conv;
1287                 const msg: bigint = bindings.LDKMessageSendEvent_SendStfu_get_msg(ptr);
1288                 const msg_hu_conv: Stfu = new Stfu(null, msg);
1289                         CommonBase.add_ref_from(msg_hu_conv, this);
1290                 this.msg = msg_hu_conv;
1291         }
1292 }
1293 /** A MessageSendEvent of type SendSplice */
1294 export class MessageSendEvent_SendSplice extends MessageSendEvent {
1295         /**
1296          * The node_id of the node which should receive this message
1297          */
1298         public node_id: Uint8Array;
1299         /**
1300          * The message which should be sent.
1301          */
1302         public msg: Splice;
1303         /* @internal */
1304         public constructor(ptr: bigint) {
1305                 super(null, ptr);
1306                 const node_id: number = bindings.LDKMessageSendEvent_SendSplice_get_node_id(ptr);
1307                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1308                 this.node_id = node_id_conv;
1309                 const msg: bigint = bindings.LDKMessageSendEvent_SendSplice_get_msg(ptr);
1310                 const msg_hu_conv: Splice = new Splice(null, msg);
1311                         CommonBase.add_ref_from(msg_hu_conv, this);
1312                 this.msg = msg_hu_conv;
1313         }
1314 }
1315 /** A MessageSendEvent of type SendSpliceAck */
1316 export class MessageSendEvent_SendSpliceAck extends MessageSendEvent {
1317         /**
1318          * The node_id of the node which should receive this message
1319          */
1320         public node_id: Uint8Array;
1321         /**
1322          * The message which should be sent.
1323          */
1324         public msg: SpliceAck;
1325         /* @internal */
1326         public constructor(ptr: bigint) {
1327                 super(null, ptr);
1328                 const node_id: number = bindings.LDKMessageSendEvent_SendSpliceAck_get_node_id(ptr);
1329                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1330                 this.node_id = node_id_conv;
1331                 const msg: bigint = bindings.LDKMessageSendEvent_SendSpliceAck_get_msg(ptr);
1332                 const msg_hu_conv: SpliceAck = new SpliceAck(null, msg);
1333                         CommonBase.add_ref_from(msg_hu_conv, this);
1334                 this.msg = msg_hu_conv;
1335         }
1336 }
1337 /** A MessageSendEvent of type SendSpliceLocked */
1338 export class MessageSendEvent_SendSpliceLocked extends MessageSendEvent {
1339         /**
1340          * The node_id of the node which should receive this message
1341          */
1342         public node_id: Uint8Array;
1343         /**
1344          * The message which should be sent.
1345          */
1346         public msg: SpliceLocked;
1347         /* @internal */
1348         public constructor(ptr: bigint) {
1349                 super(null, ptr);
1350                 const node_id: number = bindings.LDKMessageSendEvent_SendSpliceLocked_get_node_id(ptr);
1351                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1352                 this.node_id = node_id_conv;
1353                 const msg: bigint = bindings.LDKMessageSendEvent_SendSpliceLocked_get_msg(ptr);
1354                 const msg_hu_conv: SpliceLocked = new SpliceLocked(null, msg);
1355                         CommonBase.add_ref_from(msg_hu_conv, this);
1356                 this.msg = msg_hu_conv;
1357         }
1358 }
1359 /** A MessageSendEvent of type SendTxAddInput */
1360 export class MessageSendEvent_SendTxAddInput extends MessageSendEvent {
1361         /**
1362          * The node_id of the node which should receive this message
1363          */
1364         public node_id: Uint8Array;
1365         /**
1366          * The message which should be sent.
1367          */
1368         public msg: TxAddInput;
1369         /* @internal */
1370         public constructor(ptr: bigint) {
1371                 super(null, ptr);
1372                 const node_id: number = bindings.LDKMessageSendEvent_SendTxAddInput_get_node_id(ptr);
1373                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1374                 this.node_id = node_id_conv;
1375                 const msg: bigint = bindings.LDKMessageSendEvent_SendTxAddInput_get_msg(ptr);
1376                 const msg_hu_conv: TxAddInput = new TxAddInput(null, msg);
1377                         CommonBase.add_ref_from(msg_hu_conv, this);
1378                 this.msg = msg_hu_conv;
1379         }
1380 }
1381 /** A MessageSendEvent of type SendTxAddOutput */
1382 export class MessageSendEvent_SendTxAddOutput extends MessageSendEvent {
1383         /**
1384          * The node_id of the node which should receive this message
1385          */
1386         public node_id: Uint8Array;
1387         /**
1388          * The message which should be sent.
1389          */
1390         public msg: TxAddOutput;
1391         /* @internal */
1392         public constructor(ptr: bigint) {
1393                 super(null, ptr);
1394                 const node_id: number = bindings.LDKMessageSendEvent_SendTxAddOutput_get_node_id(ptr);
1395                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1396                 this.node_id = node_id_conv;
1397                 const msg: bigint = bindings.LDKMessageSendEvent_SendTxAddOutput_get_msg(ptr);
1398                 const msg_hu_conv: TxAddOutput = new TxAddOutput(null, msg);
1399                         CommonBase.add_ref_from(msg_hu_conv, this);
1400                 this.msg = msg_hu_conv;
1401         }
1402 }
1403 /** A MessageSendEvent of type SendTxRemoveInput */
1404 export class MessageSendEvent_SendTxRemoveInput extends MessageSendEvent {
1405         /**
1406          * The node_id of the node which should receive this message
1407          */
1408         public node_id: Uint8Array;
1409         /**
1410          * The message which should be sent.
1411          */
1412         public msg: TxRemoveInput;
1413         /* @internal */
1414         public constructor(ptr: bigint) {
1415                 super(null, ptr);
1416                 const node_id: number = bindings.LDKMessageSendEvent_SendTxRemoveInput_get_node_id(ptr);
1417                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1418                 this.node_id = node_id_conv;
1419                 const msg: bigint = bindings.LDKMessageSendEvent_SendTxRemoveInput_get_msg(ptr);
1420                 const msg_hu_conv: TxRemoveInput = new TxRemoveInput(null, msg);
1421                         CommonBase.add_ref_from(msg_hu_conv, this);
1422                 this.msg = msg_hu_conv;
1423         }
1424 }
1425 /** A MessageSendEvent of type SendTxRemoveOutput */
1426 export class MessageSendEvent_SendTxRemoveOutput extends MessageSendEvent {
1427         /**
1428          * The node_id of the node which should receive this message
1429          */
1430         public node_id: Uint8Array;
1431         /**
1432          * The message which should be sent.
1433          */
1434         public msg: TxRemoveOutput;
1435         /* @internal */
1436         public constructor(ptr: bigint) {
1437                 super(null, ptr);
1438                 const node_id: number = bindings.LDKMessageSendEvent_SendTxRemoveOutput_get_node_id(ptr);
1439                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1440                 this.node_id = node_id_conv;
1441                 const msg: bigint = bindings.LDKMessageSendEvent_SendTxRemoveOutput_get_msg(ptr);
1442                 const msg_hu_conv: TxRemoveOutput = new TxRemoveOutput(null, msg);
1443                         CommonBase.add_ref_from(msg_hu_conv, this);
1444                 this.msg = msg_hu_conv;
1445         }
1446 }
1447 /** A MessageSendEvent of type SendTxComplete */
1448 export class MessageSendEvent_SendTxComplete extends MessageSendEvent {
1449         /**
1450          * The node_id of the node which should receive this message
1451          */
1452         public node_id: Uint8Array;
1453         /**
1454          * The message which should be sent.
1455          */
1456         public msg: TxComplete;
1457         /* @internal */
1458         public constructor(ptr: bigint) {
1459                 super(null, ptr);
1460                 const node_id: number = bindings.LDKMessageSendEvent_SendTxComplete_get_node_id(ptr);
1461                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1462                 this.node_id = node_id_conv;
1463                 const msg: bigint = bindings.LDKMessageSendEvent_SendTxComplete_get_msg(ptr);
1464                 const msg_hu_conv: TxComplete = new TxComplete(null, msg);
1465                         CommonBase.add_ref_from(msg_hu_conv, this);
1466                 this.msg = msg_hu_conv;
1467         }
1468 }
1469 /** A MessageSendEvent of type SendTxSignatures */
1470 export class MessageSendEvent_SendTxSignatures extends MessageSendEvent {
1471         /**
1472          * The node_id of the node which should receive this message
1473          */
1474         public node_id: Uint8Array;
1475         /**
1476          * The message which should be sent.
1477          */
1478         public msg: TxSignatures;
1479         /* @internal */
1480         public constructor(ptr: bigint) {
1481                 super(null, ptr);
1482                 const node_id: number = bindings.LDKMessageSendEvent_SendTxSignatures_get_node_id(ptr);
1483                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1484                 this.node_id = node_id_conv;
1485                 const msg: bigint = bindings.LDKMessageSendEvent_SendTxSignatures_get_msg(ptr);
1486                 const msg_hu_conv: TxSignatures = new TxSignatures(null, msg);
1487                         CommonBase.add_ref_from(msg_hu_conv, this);
1488                 this.msg = msg_hu_conv;
1489         }
1490 }
1491 /** A MessageSendEvent of type SendTxInitRbf */
1492 export class MessageSendEvent_SendTxInitRbf extends MessageSendEvent {
1493         /**
1494          * The node_id of the node which should receive this message
1495          */
1496         public node_id: Uint8Array;
1497         /**
1498          * The message which should be sent.
1499          */
1500         public msg: TxInitRbf;
1501         /* @internal */
1502         public constructor(ptr: bigint) {
1503                 super(null, ptr);
1504                 const node_id: number = bindings.LDKMessageSendEvent_SendTxInitRbf_get_node_id(ptr);
1505                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1506                 this.node_id = node_id_conv;
1507                 const msg: bigint = bindings.LDKMessageSendEvent_SendTxInitRbf_get_msg(ptr);
1508                 const msg_hu_conv: TxInitRbf = new TxInitRbf(null, msg);
1509                         CommonBase.add_ref_from(msg_hu_conv, this);
1510                 this.msg = msg_hu_conv;
1511         }
1512 }
1513 /** A MessageSendEvent of type SendTxAckRbf */
1514 export class MessageSendEvent_SendTxAckRbf extends MessageSendEvent {
1515         /**
1516          * The node_id of the node which should receive this message
1517          */
1518         public node_id: Uint8Array;
1519         /**
1520          * The message which should be sent.
1521          */
1522         public msg: TxAckRbf;
1523         /* @internal */
1524         public constructor(ptr: bigint) {
1525                 super(null, ptr);
1526                 const node_id: number = bindings.LDKMessageSendEvent_SendTxAckRbf_get_node_id(ptr);
1527                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1528                 this.node_id = node_id_conv;
1529                 const msg: bigint = bindings.LDKMessageSendEvent_SendTxAckRbf_get_msg(ptr);
1530                 const msg_hu_conv: TxAckRbf = new TxAckRbf(null, msg);
1531                         CommonBase.add_ref_from(msg_hu_conv, this);
1532                 this.msg = msg_hu_conv;
1533         }
1534 }
1535 /** A MessageSendEvent of type SendTxAbort */
1536 export class MessageSendEvent_SendTxAbort extends MessageSendEvent {
1537         /**
1538          * The node_id of the node which should receive this message
1539          */
1540         public node_id: Uint8Array;
1541         /**
1542          * The message which should be sent.
1543          */
1544         public msg: TxAbort;
1545         /* @internal */
1546         public constructor(ptr: bigint) {
1547                 super(null, ptr);
1548                 const node_id: number = bindings.LDKMessageSendEvent_SendTxAbort_get_node_id(ptr);
1549                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1550                 this.node_id = node_id_conv;
1551                 const msg: bigint = bindings.LDKMessageSendEvent_SendTxAbort_get_msg(ptr);
1552                 const msg_hu_conv: TxAbort = new TxAbort(null, msg);
1553                         CommonBase.add_ref_from(msg_hu_conv, this);
1554                 this.msg = msg_hu_conv;
1555         }
1556 }
1557 /** A MessageSendEvent of type SendChannelReady */
1558 export class MessageSendEvent_SendChannelReady extends MessageSendEvent {
1559         /**
1560          * The node_id of the node which should receive these message(s)
1561          */
1562         public node_id: Uint8Array;
1563         /**
1564          * The channel_ready message which should be sent.
1565          */
1566         public msg: ChannelReady;
1567         /* @internal */
1568         public constructor(ptr: bigint) {
1569                 super(null, ptr);
1570                 const node_id: number = bindings.LDKMessageSendEvent_SendChannelReady_get_node_id(ptr);
1571                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1572                 this.node_id = node_id_conv;
1573                 const msg: bigint = bindings.LDKMessageSendEvent_SendChannelReady_get_msg(ptr);
1574                 const msg_hu_conv: ChannelReady = new ChannelReady(null, msg);
1575                         CommonBase.add_ref_from(msg_hu_conv, this);
1576                 this.msg = msg_hu_conv;
1577         }
1578 }
1579 /** A MessageSendEvent of type SendAnnouncementSignatures */
1580 export class MessageSendEvent_SendAnnouncementSignatures extends MessageSendEvent {
1581         /**
1582          * The node_id of the node which should receive these message(s)
1583          */
1584         public node_id: Uint8Array;
1585         /**
1586          * The announcement_signatures message which should be sent.
1587          */
1588         public msg: AnnouncementSignatures;
1589         /* @internal */
1590         public constructor(ptr: bigint) {
1591                 super(null, ptr);
1592                 const node_id: number = bindings.LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id(ptr);
1593                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1594                 this.node_id = node_id_conv;
1595                 const msg: bigint = bindings.LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(ptr);
1596                 const msg_hu_conv: AnnouncementSignatures = new AnnouncementSignatures(null, msg);
1597                         CommonBase.add_ref_from(msg_hu_conv, this);
1598                 this.msg = msg_hu_conv;
1599         }
1600 }
1601 /** A MessageSendEvent of type UpdateHTLCs */
1602 export class MessageSendEvent_UpdateHTLCs extends MessageSendEvent {
1603         /**
1604          * The node_id of the node which should receive these message(s)
1605          */
1606         public node_id: Uint8Array;
1607         /**
1608          * The update messages which should be sent. ALL messages in the struct should be sent!
1609          */
1610         public updates: CommitmentUpdate;
1611         /* @internal */
1612         public constructor(ptr: bigint) {
1613                 super(null, ptr);
1614                 const node_id: number = bindings.LDKMessageSendEvent_UpdateHTLCs_get_node_id(ptr);
1615                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1616                 this.node_id = node_id_conv;
1617                 const updates: bigint = bindings.LDKMessageSendEvent_UpdateHTLCs_get_updates(ptr);
1618                 const updates_hu_conv: CommitmentUpdate = new CommitmentUpdate(null, updates);
1619                         CommonBase.add_ref_from(updates_hu_conv, this);
1620                 this.updates = updates_hu_conv;
1621         }
1622 }
1623 /** A MessageSendEvent of type SendRevokeAndACK */
1624 export class MessageSendEvent_SendRevokeAndACK extends MessageSendEvent {
1625         /**
1626          * The node_id of the node which should receive this message
1627          */
1628         public node_id: Uint8Array;
1629         /**
1630          * The message which should be sent.
1631          */
1632         public msg: RevokeAndACK;
1633         /* @internal */
1634         public constructor(ptr: bigint) {
1635                 super(null, ptr);
1636                 const node_id: number = bindings.LDKMessageSendEvent_SendRevokeAndACK_get_node_id(ptr);
1637                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1638                 this.node_id = node_id_conv;
1639                 const msg: bigint = bindings.LDKMessageSendEvent_SendRevokeAndACK_get_msg(ptr);
1640                 const msg_hu_conv: RevokeAndACK = new RevokeAndACK(null, msg);
1641                         CommonBase.add_ref_from(msg_hu_conv, this);
1642                 this.msg = msg_hu_conv;
1643         }
1644 }
1645 /** A MessageSendEvent of type SendClosingSigned */
1646 export class MessageSendEvent_SendClosingSigned extends MessageSendEvent {
1647         /**
1648          * The node_id of the node which should receive this message
1649          */
1650         public node_id: Uint8Array;
1651         /**
1652          * The message which should be sent.
1653          */
1654         public msg: ClosingSigned;
1655         /* @internal */
1656         public constructor(ptr: bigint) {
1657                 super(null, ptr);
1658                 const node_id: number = bindings.LDKMessageSendEvent_SendClosingSigned_get_node_id(ptr);
1659                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1660                 this.node_id = node_id_conv;
1661                 const msg: bigint = bindings.LDKMessageSendEvent_SendClosingSigned_get_msg(ptr);
1662                 const msg_hu_conv: ClosingSigned = new ClosingSigned(null, msg);
1663                         CommonBase.add_ref_from(msg_hu_conv, this);
1664                 this.msg = msg_hu_conv;
1665         }
1666 }
1667 /** A MessageSendEvent of type SendShutdown */
1668 export class MessageSendEvent_SendShutdown extends MessageSendEvent {
1669         /**
1670          * The node_id of the node which should receive this message
1671          */
1672         public node_id: Uint8Array;
1673         /**
1674          * The message which should be sent.
1675          */
1676         public msg: Shutdown;
1677         /* @internal */
1678         public constructor(ptr: bigint) {
1679                 super(null, ptr);
1680                 const node_id: number = bindings.LDKMessageSendEvent_SendShutdown_get_node_id(ptr);
1681                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1682                 this.node_id = node_id_conv;
1683                 const msg: bigint = bindings.LDKMessageSendEvent_SendShutdown_get_msg(ptr);
1684                 const msg_hu_conv: Shutdown = new Shutdown(null, msg);
1685                         CommonBase.add_ref_from(msg_hu_conv, this);
1686                 this.msg = msg_hu_conv;
1687         }
1688 }
1689 /** A MessageSendEvent of type SendChannelReestablish */
1690 export class MessageSendEvent_SendChannelReestablish extends MessageSendEvent {
1691         /**
1692          * The node_id of the node which should receive this message
1693          */
1694         public node_id: Uint8Array;
1695         /**
1696          * The message which should be sent.
1697          */
1698         public msg: ChannelReestablish;
1699         /* @internal */
1700         public constructor(ptr: bigint) {
1701                 super(null, ptr);
1702                 const node_id: number = bindings.LDKMessageSendEvent_SendChannelReestablish_get_node_id(ptr);
1703                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1704                 this.node_id = node_id_conv;
1705                 const msg: bigint = bindings.LDKMessageSendEvent_SendChannelReestablish_get_msg(ptr);
1706                 const msg_hu_conv: ChannelReestablish = new ChannelReestablish(null, msg);
1707                         CommonBase.add_ref_from(msg_hu_conv, this);
1708                 this.msg = msg_hu_conv;
1709         }
1710 }
1711 /** A MessageSendEvent of type SendChannelAnnouncement */
1712 export class MessageSendEvent_SendChannelAnnouncement extends MessageSendEvent {
1713         /**
1714          * The node_id of the node which should receive this message
1715          */
1716         public node_id: Uint8Array;
1717         /**
1718          * The channel_announcement which should be sent.
1719          */
1720         public msg: ChannelAnnouncement;
1721         /**
1722          * The followup channel_update which should be sent.
1723          */
1724         public update_msg: ChannelUpdate;
1725         /* @internal */
1726         public constructor(ptr: bigint) {
1727                 super(null, ptr);
1728                 const node_id: number = bindings.LDKMessageSendEvent_SendChannelAnnouncement_get_node_id(ptr);
1729                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1730                 this.node_id = node_id_conv;
1731                 const msg: bigint = bindings.LDKMessageSendEvent_SendChannelAnnouncement_get_msg(ptr);
1732                 const msg_hu_conv: ChannelAnnouncement = new ChannelAnnouncement(null, msg);
1733                         CommonBase.add_ref_from(msg_hu_conv, this);
1734                 this.msg = msg_hu_conv;
1735                 const update_msg: bigint = bindings.LDKMessageSendEvent_SendChannelAnnouncement_get_update_msg(ptr);
1736                 const update_msg_hu_conv: ChannelUpdate = new ChannelUpdate(null, update_msg);
1737                         CommonBase.add_ref_from(update_msg_hu_conv, this);
1738                 this.update_msg = update_msg_hu_conv;
1739         }
1740 }
1741 /** A MessageSendEvent of type BroadcastChannelAnnouncement */
1742 export class MessageSendEvent_BroadcastChannelAnnouncement extends MessageSendEvent {
1743         /**
1744          * The channel_announcement which should be sent.
1745          */
1746         public msg: ChannelAnnouncement;
1747         /**
1748          * The followup channel_update which should be sent.
1749          * 
1750          * Note that this (or a relevant inner pointer) may be NULL or all-0s to represent None
1751          */
1752         public update_msg: ChannelUpdate;
1753         /* @internal */
1754         public constructor(ptr: bigint) {
1755                 super(null, ptr);
1756                 const msg: bigint = bindings.LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(ptr);
1757                 const msg_hu_conv: ChannelAnnouncement = new ChannelAnnouncement(null, msg);
1758                         CommonBase.add_ref_from(msg_hu_conv, this);
1759                 this.msg = msg_hu_conv;
1760                 const update_msg: bigint = bindings.LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(ptr);
1761                 const update_msg_hu_conv: ChannelUpdate = new ChannelUpdate(null, update_msg);
1762                         CommonBase.add_ref_from(update_msg_hu_conv, this);
1763                 this.update_msg = update_msg_hu_conv;
1764         }
1765 }
1766 /** A MessageSendEvent of type BroadcastChannelUpdate */
1767 export class MessageSendEvent_BroadcastChannelUpdate extends MessageSendEvent {
1768         /**
1769          * The channel_update which should be sent.
1770          */
1771         public msg: ChannelUpdate;
1772         /* @internal */
1773         public constructor(ptr: bigint) {
1774                 super(null, ptr);
1775                 const msg: bigint = bindings.LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(ptr);
1776                 const msg_hu_conv: ChannelUpdate = new ChannelUpdate(null, msg);
1777                         CommonBase.add_ref_from(msg_hu_conv, this);
1778                 this.msg = msg_hu_conv;
1779         }
1780 }
1781 /** A MessageSendEvent of type BroadcastNodeAnnouncement */
1782 export class MessageSendEvent_BroadcastNodeAnnouncement extends MessageSendEvent {
1783         /**
1784          * The node_announcement which should be sent.
1785          */
1786         public msg: NodeAnnouncement;
1787         /* @internal */
1788         public constructor(ptr: bigint) {
1789                 super(null, ptr);
1790                 const msg: bigint = bindings.LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg(ptr);
1791                 const msg_hu_conv: NodeAnnouncement = new NodeAnnouncement(null, msg);
1792                         CommonBase.add_ref_from(msg_hu_conv, this);
1793                 this.msg = msg_hu_conv;
1794         }
1795 }
1796 /** A MessageSendEvent of type SendChannelUpdate */
1797 export class MessageSendEvent_SendChannelUpdate extends MessageSendEvent {
1798         /**
1799          * The node_id of the node which should receive this message
1800          */
1801         public node_id: Uint8Array;
1802         /**
1803          * The channel_update which should be sent.
1804          */
1805         public msg: ChannelUpdate;
1806         /* @internal */
1807         public constructor(ptr: bigint) {
1808                 super(null, ptr);
1809                 const node_id: number = bindings.LDKMessageSendEvent_SendChannelUpdate_get_node_id(ptr);
1810                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1811                 this.node_id = node_id_conv;
1812                 const msg: bigint = bindings.LDKMessageSendEvent_SendChannelUpdate_get_msg(ptr);
1813                 const msg_hu_conv: ChannelUpdate = new ChannelUpdate(null, msg);
1814                         CommonBase.add_ref_from(msg_hu_conv, this);
1815                 this.msg = msg_hu_conv;
1816         }
1817 }
1818 /** A MessageSendEvent of type HandleError */
1819 export class MessageSendEvent_HandleError extends MessageSendEvent {
1820         /**
1821          * The node_id of the node which should receive this message
1822          */
1823         public node_id: Uint8Array;
1824         /**
1825          * The action which should be taken.
1826          */
1827         public action: ErrorAction;
1828         /* @internal */
1829         public constructor(ptr: bigint) {
1830                 super(null, ptr);
1831                 const node_id: number = bindings.LDKMessageSendEvent_HandleError_get_node_id(ptr);
1832                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1833                 this.node_id = node_id_conv;
1834                 const action: bigint = bindings.LDKMessageSendEvent_HandleError_get_action(ptr);
1835                 const action_hu_conv: ErrorAction = ErrorAction.constr_from_ptr(action);
1836                         CommonBase.add_ref_from(action_hu_conv, this);
1837                 this.action = action_hu_conv;
1838         }
1839 }
1840 /** A MessageSendEvent of type SendChannelRangeQuery */
1841 export class MessageSendEvent_SendChannelRangeQuery extends MessageSendEvent {
1842         /**
1843          * The node_id of this message recipient
1844          */
1845         public node_id: Uint8Array;
1846         /**
1847          * The query_channel_range which should be sent.
1848          */
1849         public msg: QueryChannelRange;
1850         /* @internal */
1851         public constructor(ptr: bigint) {
1852                 super(null, ptr);
1853                 const node_id: number = bindings.LDKMessageSendEvent_SendChannelRangeQuery_get_node_id(ptr);
1854                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1855                 this.node_id = node_id_conv;
1856                 const msg: bigint = bindings.LDKMessageSendEvent_SendChannelRangeQuery_get_msg(ptr);
1857                 const msg_hu_conv: QueryChannelRange = new QueryChannelRange(null, msg);
1858                         CommonBase.add_ref_from(msg_hu_conv, this);
1859                 this.msg = msg_hu_conv;
1860         }
1861 }
1862 /** A MessageSendEvent of type SendShortIdsQuery */
1863 export class MessageSendEvent_SendShortIdsQuery extends MessageSendEvent {
1864         /**
1865          * The node_id of this message recipient
1866          */
1867         public node_id: Uint8Array;
1868         /**
1869          * The query_short_channel_ids which should be sent.
1870          */
1871         public msg: QueryShortChannelIds;
1872         /* @internal */
1873         public constructor(ptr: bigint) {
1874                 super(null, ptr);
1875                 const node_id: number = bindings.LDKMessageSendEvent_SendShortIdsQuery_get_node_id(ptr);
1876                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1877                 this.node_id = node_id_conv;
1878                 const msg: bigint = bindings.LDKMessageSendEvent_SendShortIdsQuery_get_msg(ptr);
1879                 const msg_hu_conv: QueryShortChannelIds = new QueryShortChannelIds(null, msg);
1880                         CommonBase.add_ref_from(msg_hu_conv, this);
1881                 this.msg = msg_hu_conv;
1882         }
1883 }
1884 /** A MessageSendEvent of type SendReplyChannelRange */
1885 export class MessageSendEvent_SendReplyChannelRange extends MessageSendEvent {
1886         /**
1887          * The node_id of this message recipient
1888          */
1889         public node_id: Uint8Array;
1890         /**
1891          * The reply_channel_range which should be sent.
1892          */
1893         public msg: ReplyChannelRange;
1894         /* @internal */
1895         public constructor(ptr: bigint) {
1896                 super(null, ptr);
1897                 const node_id: number = bindings.LDKMessageSendEvent_SendReplyChannelRange_get_node_id(ptr);
1898                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1899                 this.node_id = node_id_conv;
1900                 const msg: bigint = bindings.LDKMessageSendEvent_SendReplyChannelRange_get_msg(ptr);
1901                 const msg_hu_conv: ReplyChannelRange = new ReplyChannelRange(null, msg);
1902                         CommonBase.add_ref_from(msg_hu_conv, this);
1903                 this.msg = msg_hu_conv;
1904         }
1905 }
1906 /** A MessageSendEvent of type SendGossipTimestampFilter */
1907 export class MessageSendEvent_SendGossipTimestampFilter extends MessageSendEvent {
1908         /**
1909          * The node_id of this message recipient
1910          */
1911         public node_id: Uint8Array;
1912         /**
1913          * The gossip_timestamp_filter which should be sent.
1914          */
1915         public msg: GossipTimestampFilter;
1916         /* @internal */
1917         public constructor(ptr: bigint) {
1918                 super(null, ptr);
1919                 const node_id: number = bindings.LDKMessageSendEvent_SendGossipTimestampFilter_get_node_id(ptr);
1920                 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1921                 this.node_id = node_id_conv;
1922                 const msg: bigint = bindings.LDKMessageSendEvent_SendGossipTimestampFilter_get_msg(ptr);
1923                 const msg_hu_conv: GossipTimestampFilter = new GossipTimestampFilter(null, msg);
1924                         CommonBase.add_ref_from(msg_hu_conv, this);
1925                 this.msg = msg_hu_conv;
1926         }
1927 }