1 import { TxOut } from '../structs/TxOut.mjs';
2 import { TxIn } from '../structs/TxIn.mjs';
3 import { BigEndianScalar } from '../structs/BigEndianScalar.mjs';
4 import { WitnessProgram } from '../structs/WitnessProgram.mjs';
5 import { BlindedFailure } from '../enums/BlindedFailure.mjs';
6 import { Bolt11SemanticError } from '../enums/Bolt11SemanticError.mjs';
7 import { Bolt12SemanticError } from '../enums/Bolt12SemanticError.mjs';
8 import { COption_NoneZ } from '../enums/COption_NoneZ.mjs';
9 import { ChannelMonitorUpdateStatus } from '../enums/ChannelMonitorUpdateStatus.mjs';
10 import { ChannelShutdownState } from '../enums/ChannelShutdownState.mjs';
11 import { ConfirmationTarget } from '../enums/ConfirmationTarget.mjs';
12 import { CreationError } from '../enums/CreationError.mjs';
13 import { Currency } from '../enums/Currency.mjs';
14 import { HTLCClaim } from '../enums/HTLCClaim.mjs';
15 import { IOError } from '../enums/IOError.mjs';
16 import { Level } from '../enums/Level.mjs';
17 import { Network } from '../enums/Network.mjs';
18 import { PaymentFailureReason } from '../enums/PaymentFailureReason.mjs';
19 import { Recipient } from '../enums/Recipient.mjs';
20 import { RetryableSendFailure } from '../enums/RetryableSendFailure.mjs';
21 import { Secp256k1Error } from '../enums/Secp256k1Error.mjs';
22 import { SiPrefix } from '../enums/SiPrefix.mjs';
23 import { SocketAddressParseError } from '../enums/SocketAddressParseError.mjs';
24 import { UtxoLookupError } from '../enums/UtxoLookupError.mjs';
25 import { Bech32Error } from '../structs/Bech32Error.mjs';
26 import { Option_u64Z } from '../structs/Option_u64Z.mjs';
27 import { BlindedPath } from '../structs/BlindedPath.mjs';
28 import { Refund } from '../structs/Refund.mjs';
29 import { Bolt12ParseError } from '../structs/Bolt12ParseError.mjs';
30 import { Result_RefundBolt12ParseErrorZ } from '../structs/Result_RefundBolt12ParseErrorZ.mjs';
31 import { Retry } from '../structs/Retry.mjs';
32 import { DecodeError } from '../structs/DecodeError.mjs';
33 import { Result_RetryDecodeErrorZ } from '../structs/Result_RetryDecodeErrorZ.mjs';
34 import { ShutdownScript } from '../structs/ShutdownScript.mjs';
35 import { APIError } from '../structs/APIError.mjs';
36 import { Result_NoneAPIErrorZ } from '../structs/Result_NoneAPIErrorZ.mjs';
37 import { Option_ThirtyTwoBytesZ } from '../structs/Option_ThirtyTwoBytesZ.mjs';
38 import { Option_CVec_u8ZZ } from '../structs/Option_CVec_u8ZZ.mjs';
39 import { RecipientOnionFields } from '../structs/RecipientOnionFields.mjs';
40 import { Result_RecipientOnionFieldsDecodeErrorZ } from '../structs/Result_RecipientOnionFieldsDecodeErrorZ.mjs';
41 import { TwoTuple_u64CVec_u8ZZ } from '../structs/TwoTuple_u64CVec_u8ZZ.mjs';
42 import { Result_RecipientOnionFieldsNoneZ } from '../structs/Result_RecipientOnionFieldsNoneZ.mjs';
43 import { Option_CVec_ThirtyTwoBytesZZ } from '../structs/Option_CVec_ThirtyTwoBytesZZ.mjs';
44 import { Result_ThirtyTwoBytesNoneZ } from '../structs/Result_ThirtyTwoBytesNoneZ.mjs';
45 import { BlindedPayInfo } from '../structs/BlindedPayInfo.mjs';
46 import { Result_BlindedPayInfoDecodeErrorZ } from '../structs/Result_BlindedPayInfoDecodeErrorZ.mjs';
47 import { DelayedPaymentOutputDescriptor } from '../structs/DelayedPaymentOutputDescriptor.mjs';
48 import { Result_DelayedPaymentOutputDescriptorDecodeErrorZ } from '../structs/Result_DelayedPaymentOutputDescriptorDecodeErrorZ.mjs';
49 import { StaticPaymentOutputDescriptor } from '../structs/StaticPaymentOutputDescriptor.mjs';
50 import { Result_StaticPaymentOutputDescriptorDecodeErrorZ } from '../structs/Result_StaticPaymentOutputDescriptorDecodeErrorZ.mjs';
51 import { OutPoint } from '../structs/OutPoint.mjs';
52 import { SpendableOutputDescriptor } from '../structs/SpendableOutputDescriptor.mjs';
53 import { Result_SpendableOutputDescriptorDecodeErrorZ } from '../structs/Result_SpendableOutputDescriptorDecodeErrorZ.mjs';
54 import { Option_u32Z } from '../structs/Option_u32Z.mjs';
55 import { TwoTuple_CVec_u8Zu64Z } from '../structs/TwoTuple_CVec_u8Zu64Z.mjs';
56 import { Result_C2Tuple_CVec_u8Zu64ZNoneZ } from '../structs/Result_C2Tuple_CVec_u8Zu64ZNoneZ.mjs';
57 import { ChannelDerivationParameters } from '../structs/ChannelDerivationParameters.mjs';
58 import { Result_ChannelDerivationParametersDecodeErrorZ } from '../structs/Result_ChannelDerivationParametersDecodeErrorZ.mjs';
59 import { HTLCDescriptor } from '../structs/HTLCDescriptor.mjs';
60 import { Result_HTLCDescriptorDecodeErrorZ } from '../structs/Result_HTLCDescriptorDecodeErrorZ.mjs';
61 import { Result_NoneNoneZ } from '../structs/Result_NoneNoneZ.mjs';
62 import { Result_PublicKeyNoneZ } from '../structs/Result_PublicKeyNoneZ.mjs';
63 import { Option_BigEndianScalarZ } from '../structs/Option_BigEndianScalarZ.mjs';
64 import { Result_RecoverableSignatureNoneZ } from '../structs/Result_RecoverableSignatureNoneZ.mjs';
65 import { Result_SchnorrSignatureNoneZ } from '../structs/Result_SchnorrSignatureNoneZ.mjs';
66 import { Result_ECDSASignatureNoneZ } from '../structs/Result_ECDSASignatureNoneZ.mjs';
67 import { TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ } from '../structs/TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ.mjs';
68 import { Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ } from '../structs/Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ.mjs';
69 import { CommitmentTransaction } from '../structs/CommitmentTransaction.mjs';
70 import { HolderCommitmentTransaction } from '../structs/HolderCommitmentTransaction.mjs';
71 import { HTLCOutputInCommitment } from '../structs/HTLCOutputInCommitment.mjs';
72 import { ClosingTransaction } from '../structs/ClosingTransaction.mjs';
73 import { UnsignedChannelAnnouncement } from '../structs/UnsignedChannelAnnouncement.mjs';
74 import { ChannelPublicKeys } from '../structs/ChannelPublicKeys.mjs';
75 import { ChannelTransactionParameters } from '../structs/ChannelTransactionParameters.mjs';
76 import { ChannelSigner, ChannelSignerInterface } from '../structs/ChannelSigner.mjs';
77 import { EcdsaChannelSigner, EcdsaChannelSignerInterface } from '../structs/EcdsaChannelSigner.mjs';
78 import { WriteableEcdsaChannelSigner, WriteableEcdsaChannelSignerInterface } from '../structs/WriteableEcdsaChannelSigner.mjs';
79 import { Result_WriteableEcdsaChannelSignerDecodeErrorZ } from '../structs/Result_WriteableEcdsaChannelSignerDecodeErrorZ.mjs';
80 import { Result_CVec_u8ZNoneZ } from '../structs/Result_CVec_u8ZNoneZ.mjs';
81 import { Result_ShutdownScriptNoneZ } from '../structs/Result_ShutdownScriptNoneZ.mjs';
82 import { Option_u16Z } from '../structs/Option_u16Z.mjs';
83 import { Option_boolZ } from '../structs/Option_boolZ.mjs';
84 import { Result_WitnessNoneZ } from '../structs/Result_WitnessNoneZ.mjs';
85 import { InMemorySigner } from '../structs/InMemorySigner.mjs';
86 import { Result_InMemorySignerDecodeErrorZ } from '../structs/Result_InMemorySignerDecodeErrorZ.mjs';
87 import { Result_TransactionNoneZ } from '../structs/Result_TransactionNoneZ.mjs';
88 import { ChannelDetails } from '../structs/ChannelDetails.mjs';
89 import { Route } from '../structs/Route.mjs';
90 import { LightningError } from '../structs/LightningError.mjs';
91 import { Result_RouteLightningErrorZ } from '../structs/Result_RouteLightningErrorZ.mjs';
92 import { TwoTuple_BlindedPayInfoBlindedPathZ } from '../structs/TwoTuple_BlindedPayInfoBlindedPathZ.mjs';
93 import { Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ } from '../structs/Result_CVec_C2Tuple_BlindedPayInfoBlindedPathZZNoneZ.mjs';
94 import { OnionMessagePath } from '../structs/OnionMessagePath.mjs';
95 import { Result_OnionMessagePathNoneZ } from '../structs/Result_OnionMessagePathNoneZ.mjs';
96 import { Result_CVec_BlindedPathZNoneZ } from '../structs/Result_CVec_BlindedPathZNoneZ.mjs';
97 import { InFlightHtlcs } from '../structs/InFlightHtlcs.mjs';
98 import { Result_InFlightHtlcsDecodeErrorZ } from '../structs/Result_InFlightHtlcsDecodeErrorZ.mjs';
99 import { RouteHop } from '../structs/RouteHop.mjs';
100 import { Result_RouteHopDecodeErrorZ } from '../structs/Result_RouteHopDecodeErrorZ.mjs';
101 import { BlindedHop } from '../structs/BlindedHop.mjs';
102 import { BlindedTail } from '../structs/BlindedTail.mjs';
103 import { Result_BlindedTailDecodeErrorZ } from '../structs/Result_BlindedTailDecodeErrorZ.mjs';
104 import { Path } from '../structs/Path.mjs';
105 import { Result_RouteDecodeErrorZ } from '../structs/Result_RouteDecodeErrorZ.mjs';
106 import { RouteParameters } from '../structs/RouteParameters.mjs';
107 import { Result_RouteParametersDecodeErrorZ } from '../structs/Result_RouteParametersDecodeErrorZ.mjs';
108 import { PaymentParameters } from '../structs/PaymentParameters.mjs';
109 import { Result_PaymentParametersDecodeErrorZ } from '../structs/Result_PaymentParametersDecodeErrorZ.mjs';
110 import { RouteHint } from '../structs/RouteHint.mjs';
111 import { RouteHintHop } from '../structs/RouteHintHop.mjs';
112 import { Result_RouteHintDecodeErrorZ } from '../structs/Result_RouteHintDecodeErrorZ.mjs';
113 import { Result_RouteHintHopDecodeErrorZ } from '../structs/Result_RouteHintHopDecodeErrorZ.mjs';
114 import { FixedPenaltyScorer } from '../structs/FixedPenaltyScorer.mjs';
115 import { Result_FixedPenaltyScorerDecodeErrorZ } from '../structs/Result_FixedPenaltyScorerDecodeErrorZ.mjs';
116 import { NodeId } from '../structs/NodeId.mjs';
117 import { TwoTuple_u64u64Z } from '../structs/TwoTuple_u64u64Z.mjs';
118 import { Option_C2Tuple_u64u64ZZ } from '../structs/Option_C2Tuple_u64u64ZZ.mjs';
119 import { TwoTuple_Z } from '../structs/TwoTuple_Z.mjs';
120 import { TwoTuple__u1632_u1632Z } from '../structs/TwoTuple__u1632_u1632Z.mjs';
121 import { Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ } from '../structs/Option_C2Tuple_ThirtyTwoU16sThirtyTwoU16sZZ.mjs';
122 import { Option_f64Z } from '../structs/Option_f64Z.mjs';
123 import { Record } from '../structs/Record.mjs';
124 import { Logger, LoggerInterface } from '../structs/Logger.mjs';
125 import { NetworkGraph } from '../structs/NetworkGraph.mjs';
126 import { ProbabilisticScorer } from '../structs/ProbabilisticScorer.mjs';
127 import { Result_ProbabilisticScorerDecodeErrorZ } from '../structs/Result_ProbabilisticScorerDecodeErrorZ.mjs';
128 import { TwoTuple_usizeTransactionZ } from '../structs/TwoTuple_usizeTransactionZ.mjs';
129 import { ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ } from '../structs/ThreeTuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZ.mjs';
130 import { Result_ChannelMonitorUpdateStatusNoneZ } from '../structs/Result_ChannelMonitorUpdateStatusNoneZ.mjs';
131 import { HTLCUpdate } from '../structs/HTLCUpdate.mjs';
132 import { MonitorEvent } from '../structs/MonitorEvent.mjs';
133 import { ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ } from '../structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.mjs';
134 import { InitFeatures } from '../structs/InitFeatures.mjs';
135 import { Result_InitFeaturesDecodeErrorZ } from '../structs/Result_InitFeaturesDecodeErrorZ.mjs';
136 import { ChannelFeatures } from '../structs/ChannelFeatures.mjs';
137 import { Result_ChannelFeaturesDecodeErrorZ } from '../structs/Result_ChannelFeaturesDecodeErrorZ.mjs';
138 import { NodeFeatures } from '../structs/NodeFeatures.mjs';
139 import { Result_NodeFeaturesDecodeErrorZ } from '../structs/Result_NodeFeaturesDecodeErrorZ.mjs';
140 import { Bolt11InvoiceFeatures } from '../structs/Bolt11InvoiceFeatures.mjs';
141 import { Result_Bolt11InvoiceFeaturesDecodeErrorZ } from '../structs/Result_Bolt11InvoiceFeaturesDecodeErrorZ.mjs';
142 import { Bolt12InvoiceFeatures } from '../structs/Bolt12InvoiceFeatures.mjs';
143 import { Result_Bolt12InvoiceFeaturesDecodeErrorZ } from '../structs/Result_Bolt12InvoiceFeaturesDecodeErrorZ.mjs';
144 import { BlindedHopFeatures } from '../structs/BlindedHopFeatures.mjs';
145 import { Result_BlindedHopFeaturesDecodeErrorZ } from '../structs/Result_BlindedHopFeaturesDecodeErrorZ.mjs';
146 import { ChannelTypeFeatures } from '../structs/ChannelTypeFeatures.mjs';
147 import { Result_ChannelTypeFeaturesDecodeErrorZ } from '../structs/Result_ChannelTypeFeaturesDecodeErrorZ.mjs';
148 import { Offer } from '../structs/Offer.mjs';
149 import { Result_OfferBolt12ParseErrorZ } from '../structs/Result_OfferBolt12ParseErrorZ.mjs';
150 import { Result_PublicKeySecp256k1ErrorZ } from '../structs/Result_PublicKeySecp256k1ErrorZ.mjs';
151 import { Result_NodeIdDecodeErrorZ } from '../structs/Result_NodeIdDecodeErrorZ.mjs';
152 import { ChannelUpdate } from '../structs/ChannelUpdate.mjs';
153 import { NetworkUpdate } from '../structs/NetworkUpdate.mjs';
154 import { Option_NetworkUpdateZ } from '../structs/Option_NetworkUpdateZ.mjs';
155 import { Result_COption_NetworkUpdateZDecodeErrorZ } from '../structs/Result_COption_NetworkUpdateZDecodeErrorZ.mjs';
156 import { Result_TxOutUtxoLookupErrorZ } from '../structs/Result_TxOutUtxoLookupErrorZ.mjs';
157 import { UtxoFuture } from '../structs/UtxoFuture.mjs';
158 import { UtxoResult } from '../structs/UtxoResult.mjs';
159 import { UtxoLookup, UtxoLookupInterface } from '../structs/UtxoLookup.mjs';
160 import { Option_UtxoLookupZ } from '../structs/Option_UtxoLookupZ.mjs';
161 import { Result_NoneLightningErrorZ } from '../structs/Result_NoneLightningErrorZ.mjs';
162 import { Result_boolLightningErrorZ } from '../structs/Result_boolLightningErrorZ.mjs';
163 import { ChannelAnnouncement } from '../structs/ChannelAnnouncement.mjs';
164 import { ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ } from '../structs/ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ.mjs';
165 import { Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ } from '../structs/Option_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ.mjs';
166 import { AcceptChannel } from '../structs/AcceptChannel.mjs';
167 import { AcceptChannelV2 } from '../structs/AcceptChannelV2.mjs';
168 import { OpenChannel } from '../structs/OpenChannel.mjs';
169 import { OpenChannelV2 } from '../structs/OpenChannelV2.mjs';
170 import { FundingCreated } from '../structs/FundingCreated.mjs';
171 import { FundingSigned } from '../structs/FundingSigned.mjs';
172 import { Stfu } from '../structs/Stfu.mjs';
173 import { Splice } from '../structs/Splice.mjs';
174 import { SpliceAck } from '../structs/SpliceAck.mjs';
175 import { SpliceLocked } from '../structs/SpliceLocked.mjs';
176 import { TxAddInput } from '../structs/TxAddInput.mjs';
177 import { TxAddOutput } from '../structs/TxAddOutput.mjs';
178 import { TxRemoveInput } from '../structs/TxRemoveInput.mjs';
179 import { TxRemoveOutput } from '../structs/TxRemoveOutput.mjs';
180 import { TxComplete } from '../structs/TxComplete.mjs';
181 import { TxSignatures } from '../structs/TxSignatures.mjs';
182 import { TxInitRbf } from '../structs/TxInitRbf.mjs';
183 import { TxAckRbf } from '../structs/TxAckRbf.mjs';
184 import { TxAbort } from '../structs/TxAbort.mjs';
185 import { ChannelReady } from '../structs/ChannelReady.mjs';
186 import { AnnouncementSignatures } from '../structs/AnnouncementSignatures.mjs';
187 import { CommitmentUpdate } from '../structs/CommitmentUpdate.mjs';
188 import { RevokeAndACK } from '../structs/RevokeAndACK.mjs';
189 import { ClosingSigned } from '../structs/ClosingSigned.mjs';
190 import { Shutdown } from '../structs/Shutdown.mjs';
191 import { ChannelReestablish } from '../structs/ChannelReestablish.mjs';
192 import { NodeAnnouncement } from '../structs/NodeAnnouncement.mjs';
193 import { ErrorMessage } from '../structs/ErrorMessage.mjs';
194 import { WarningMessage } from '../structs/WarningMessage.mjs';
195 import { ErrorAction } from '../structs/ErrorAction.mjs';
196 import { QueryChannelRange } from '../structs/QueryChannelRange.mjs';
197 import { QueryShortChannelIds } from '../structs/QueryShortChannelIds.mjs';
198 import { ReplyChannelRange } from '../structs/ReplyChannelRange.mjs';
199 import { GossipTimestampFilter } from '../structs/GossipTimestampFilter.mjs';
200 import { ChannelUpdateInfo } from '../structs/ChannelUpdateInfo.mjs';
201 import { Result_ChannelUpdateInfoDecodeErrorZ } from '../structs/Result_ChannelUpdateInfoDecodeErrorZ.mjs';
202 import { ChannelInfo } from '../structs/ChannelInfo.mjs';
203 import { Result_ChannelInfoDecodeErrorZ } from '../structs/Result_ChannelInfoDecodeErrorZ.mjs';
204 import { RoutingFees } from '../structs/RoutingFees.mjs';
205 import { Result_RoutingFeesDecodeErrorZ } from '../structs/Result_RoutingFeesDecodeErrorZ.mjs';
206 import { Hostname } from '../structs/Hostname.mjs';
207 import { SocketAddress } from '../structs/SocketAddress.mjs';
208 import { NodeAnnouncementInfo } from '../structs/NodeAnnouncementInfo.mjs';
209 import { Result_NodeAnnouncementInfoDecodeErrorZ } from '../structs/Result_NodeAnnouncementInfoDecodeErrorZ.mjs';
210 import { NodeAlias } from '../structs/NodeAlias.mjs';
211 import { Result_NodeAliasDecodeErrorZ } from '../structs/Result_NodeAliasDecodeErrorZ.mjs';
212 import { NodeInfo } from '../structs/NodeInfo.mjs';
213 import { Result_NodeInfoDecodeErrorZ } from '../structs/Result_NodeInfoDecodeErrorZ.mjs';
214 import { Result_NetworkGraphDecodeErrorZ } from '../structs/Result_NetworkGraphDecodeErrorZ.mjs';
215 import { Option_CVec_SocketAddressZZ } from '../structs/Option_CVec_SocketAddressZZ.mjs';
216 import { PendingHTLCInfo } from '../structs/PendingHTLCInfo.mjs';
217 import { InboundHTLCErr } from '../structs/InboundHTLCErr.mjs';
218 import { Result_PendingHTLCInfoInboundHTLCErrZ } from '../structs/Result_PendingHTLCInfoInboundHTLCErrZ.mjs';
219 import { Utxo } from '../structs/Utxo.mjs';
220 import { Option_TxOutZ } from '../structs/Option_TxOutZ.mjs';
221 import { Input } from '../structs/Input.mjs';
222 import { CoinSelection } from '../structs/CoinSelection.mjs';
223 import { Result_CoinSelectionNoneZ } from '../structs/Result_CoinSelectionNoneZ.mjs';
224 import { Result_CVec_UtxoZNoneZ } from '../structs/Result_CVec_UtxoZNoneZ.mjs';
225 import { TwoTuple_u64u16Z } from '../structs/TwoTuple_u64u16Z.mjs';
226 import { Option_C2Tuple_u64u16ZZ } from '../structs/Option_C2Tuple_u64u16ZZ.mjs';
227 import { Option_ChannelShutdownStateZ } from '../structs/Option_ChannelShutdownStateZ.mjs';
228 import { Result_ThirtyTwoBytesAPIErrorZ } from '../structs/Result_ThirtyTwoBytesAPIErrorZ.mjs';
229 import { RecentPaymentDetails } from '../structs/RecentPaymentDetails.mjs';
230 import { PaymentSendFailure } from '../structs/PaymentSendFailure.mjs';
231 import { Result_NonePaymentSendFailureZ } from '../structs/Result_NonePaymentSendFailureZ.mjs';
232 import { Result_NoneRetryableSendFailureZ } from '../structs/Result_NoneRetryableSendFailureZ.mjs';
233 import { Result_ThirtyTwoBytesPaymentSendFailureZ } from '../structs/Result_ThirtyTwoBytesPaymentSendFailureZ.mjs';
234 import { Result_ThirtyTwoBytesRetryableSendFailureZ } from '../structs/Result_ThirtyTwoBytesRetryableSendFailureZ.mjs';
235 import { TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ } from '../structs/TwoTuple_ThirtyTwoBytesThirtyTwoBytesZ.mjs';
236 import { Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ } from '../structs/Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ.mjs';
237 import { ProbeSendFailure } from '../structs/ProbeSendFailure.mjs';
238 import { Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ } from '../structs/Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ.mjs';
239 import { TwoTuple_ThirtyTwoBytesPublicKeyZ } from '../structs/TwoTuple_ThirtyTwoBytesPublicKeyZ.mjs';
240 import { Option_StrZ } from '../structs/Option_StrZ.mjs';
241 import { Result_NoneBolt12SemanticErrorZ } from '../structs/Result_NoneBolt12SemanticErrorZ.mjs';
242 import { Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ } from '../structs/Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ.mjs';
243 import { InvoiceRequest } from '../structs/InvoiceRequest.mjs';
244 import { Bolt12Invoice } from '../structs/Bolt12Invoice.mjs';
245 import { InvoiceError } from '../structs/InvoiceError.mjs';
246 import { OffersMessage } from '../structs/OffersMessage.mjs';
247 import { Option_OffersMessageZ } from '../structs/Option_OffersMessageZ.mjs';
248 import { Destination } from '../structs/Destination.mjs';
249 import { ThreeTuple_OffersMessageDestinationBlindedPathZ } from '../structs/ThreeTuple_OffersMessageDestinationBlindedPathZ.mjs';
250 import { CounterpartyForwardingInfo } from '../structs/CounterpartyForwardingInfo.mjs';
251 import { Result_CounterpartyForwardingInfoDecodeErrorZ } from '../structs/Result_CounterpartyForwardingInfoDecodeErrorZ.mjs';
252 import { ChannelCounterparty } from '../structs/ChannelCounterparty.mjs';
253 import { Result_ChannelCounterpartyDecodeErrorZ } from '../structs/Result_ChannelCounterpartyDecodeErrorZ.mjs';
254 import { Result_ChannelDetailsDecodeErrorZ } from '../structs/Result_ChannelDetailsDecodeErrorZ.mjs';
255 import { PhantomRouteHints } from '../structs/PhantomRouteHints.mjs';
256 import { Result_PhantomRouteHintsDecodeErrorZ } from '../structs/Result_PhantomRouteHintsDecodeErrorZ.mjs';
257 import { BlindedForward } from '../structs/BlindedForward.mjs';
258 import { Result_BlindedForwardDecodeErrorZ } from '../structs/Result_BlindedForwardDecodeErrorZ.mjs';
259 import { OnionPacket } from '../structs/OnionPacket.mjs';
260 import { FinalOnionHopData } from '../structs/FinalOnionHopData.mjs';
261 import { PendingHTLCRouting } from '../structs/PendingHTLCRouting.mjs';
262 import { Result_PendingHTLCRoutingDecodeErrorZ } from '../structs/Result_PendingHTLCRoutingDecodeErrorZ.mjs';
263 import { Result_PendingHTLCInfoDecodeErrorZ } from '../structs/Result_PendingHTLCInfoDecodeErrorZ.mjs';
264 import { Result_BlindedFailureDecodeErrorZ } from '../structs/Result_BlindedFailureDecodeErrorZ.mjs';
265 import { Result_ChannelShutdownStateDecodeErrorZ } from '../structs/Result_ChannelShutdownStateDecodeErrorZ.mjs';
266 import { ChannelMonitor } from '../structs/ChannelMonitor.mjs';
267 import { ChannelMonitorUpdate } from '../structs/ChannelMonitorUpdate.mjs';
268 import { Watch, WatchInterface } from '../structs/Watch.mjs';
269 import { BroadcasterInterface, BroadcasterInterfaceInterface } from '../structs/BroadcasterInterface.mjs';
270 import { EntropySource, EntropySourceInterface } from '../structs/EntropySource.mjs';
271 import { UnsignedInvoiceRequest } from '../structs/UnsignedInvoiceRequest.mjs';
272 import { UnsignedBolt12Invoice } from '../structs/UnsignedBolt12Invoice.mjs';
273 import { UnsignedChannelUpdate } from '../structs/UnsignedChannelUpdate.mjs';
274 import { UnsignedNodeAnnouncement } from '../structs/UnsignedNodeAnnouncement.mjs';
275 import { UnsignedGossipMessage } from '../structs/UnsignedGossipMessage.mjs';
276 import { NodeSigner, NodeSignerInterface } from '../structs/NodeSigner.mjs';
277 import { SignerProvider, SignerProviderInterface } from '../structs/SignerProvider.mjs';
278 import { FeeEstimator, FeeEstimatorInterface } from '../structs/FeeEstimator.mjs';
279 import { ReceiveTlvs } from '../structs/ReceiveTlvs.mjs';
280 import { MessageRouter, MessageRouterInterface } from '../structs/MessageRouter.mjs';
281 import { Router, RouterInterface } from '../structs/Router.mjs';
282 import { ChannelManager } from '../structs/ChannelManager.mjs';
283 import { TwoTuple_ThirtyTwoBytesChannelManagerZ } from '../structs/TwoTuple_ThirtyTwoBytesChannelManagerZ.mjs';
284 import { Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ } from '../structs/Result_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ.mjs';
285 import { MaxDustHTLCExposure } from '../structs/MaxDustHTLCExposure.mjs';
286 import { Result_MaxDustHTLCExposureDecodeErrorZ } from '../structs/Result_MaxDustHTLCExposureDecodeErrorZ.mjs';
287 import { ChannelConfig } from '../structs/ChannelConfig.mjs';
288 import { Result_ChannelConfigDecodeErrorZ } from '../structs/Result_ChannelConfigDecodeErrorZ.mjs';
289 import { Option_MaxDustHTLCExposureZ } from '../structs/Option_MaxDustHTLCExposureZ.mjs';
290 import { Option_APIErrorZ } from '../structs/Option_APIErrorZ.mjs';
291 import { Result_COption_APIErrorZDecodeErrorZ } from '../structs/Result_COption_APIErrorZDecodeErrorZ.mjs';
292 import { Result_ChannelMonitorUpdateDecodeErrorZ } from '../structs/Result_ChannelMonitorUpdateDecodeErrorZ.mjs';
293 import { Option_MonitorEventZ } from '../structs/Option_MonitorEventZ.mjs';
294 import { Result_COption_MonitorEventZDecodeErrorZ } from '../structs/Result_COption_MonitorEventZDecodeErrorZ.mjs';
295 import { Result_HTLCUpdateDecodeErrorZ } from '../structs/Result_HTLCUpdateDecodeErrorZ.mjs';
296 import { TwoTuple_OutPointCVec_u8ZZ } from '../structs/TwoTuple_OutPointCVec_u8ZZ.mjs';
297 import { TwoTuple_u32CVec_u8ZZ } from '../structs/TwoTuple_u32CVec_u8ZZ.mjs';
298 import { TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ } from '../structs/TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZ.mjs';
299 import { TwoTuple_u32TxOutZ } from '../structs/TwoTuple_u32TxOutZ.mjs';
300 import { TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ } from '../structs/TwoTuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZ.mjs';
301 import { Balance } from '../structs/Balance.mjs';
302 import { TwoTuple_ThirtyTwoBytesChannelMonitorZ } from '../structs/TwoTuple_ThirtyTwoBytesChannelMonitorZ.mjs';
303 import { Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ } from '../structs/Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ.mjs';
304 import { Type, TypeInterface } from '../structs/Type.mjs';
305 import { TwoTuple_PublicKeyTypeZ } from '../structs/TwoTuple_PublicKeyTypeZ.mjs';
306 import { TwoTuple_PublicKeyCVec_SocketAddressZZ } from '../structs/TwoTuple_PublicKeyCVec_SocketAddressZZ.mjs';
307 import { OnionMessageContents, OnionMessageContentsInterface } from '../structs/OnionMessageContents.mjs';
308 import { Option_OnionMessageContentsZ } from '../structs/Option_OnionMessageContentsZ.mjs';
309 import { Result_COption_OnionMessageContentsZDecodeErrorZ } from '../structs/Result_COption_OnionMessageContentsZDecodeErrorZ.mjs';
310 import { ThreeTuple_OnionMessageContentsDestinationBlindedPathZ } from '../structs/ThreeTuple_OnionMessageContentsDestinationBlindedPathZ.mjs';
311 import { Option_TypeZ } from '../structs/Option_TypeZ.mjs';
312 import { Result_COption_TypeZDecodeErrorZ } from '../structs/Result_COption_TypeZDecodeErrorZ.mjs';
313 import { Option_SocketAddressZ } from '../structs/Option_SocketAddressZ.mjs';
314 import { TwoTuple_PublicKeyCOption_SocketAddressZZ } from '../structs/TwoTuple_PublicKeyCOption_SocketAddressZZ.mjs';
315 import { PeerHandleError } from '../structs/PeerHandleError.mjs';
316 import { Result_CVec_u8ZPeerHandleErrorZ } from '../structs/Result_CVec_u8ZPeerHandleErrorZ.mjs';
317 import { Result_NonePeerHandleErrorZ } from '../structs/Result_NonePeerHandleErrorZ.mjs';
318 import { Result_boolPeerHandleErrorZ } from '../structs/Result_boolPeerHandleErrorZ.mjs';
319 import { GraphSyncError } from '../structs/GraphSyncError.mjs';
320 import { Result_u32GraphSyncErrorZ } from '../structs/Result_u32GraphSyncErrorZ.mjs';
321 import { Result_CVec_u8ZIOErrorZ } from '../structs/Result_CVec_u8ZIOErrorZ.mjs';
322 import { Result_NoneIOErrorZ } from '../structs/Result_NoneIOErrorZ.mjs';
323 import { Result_CVec_StrZIOErrorZ } from '../structs/Result_CVec_StrZIOErrorZ.mjs';
324 import { Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ } from '../structs/Result_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ.mjs';
325 import { Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ } from '../structs/Result_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ.mjs';
326 import { Option_SecretKeyZ } from '../structs/Option_SecretKeyZ.mjs';
327 import { VerifiedInvoiceRequest } from '../structs/VerifiedInvoiceRequest.mjs';
328 import { Result_VerifiedInvoiceRequestNoneZ } from '../structs/Result_VerifiedInvoiceRequestNoneZ.mjs';
329 import { Option_i64Z } from '../structs/Option_i64Z.mjs';
330 import { Result_SocketAddressDecodeErrorZ } from '../structs/Result_SocketAddressDecodeErrorZ.mjs';
331 import { Result_SocketAddressSocketAddressParseErrorZ } from '../structs/Result_SocketAddressSocketAddressParseErrorZ.mjs';
332 import { UpdateAddHTLC } from '../structs/UpdateAddHTLC.mjs';
333 import { UpdateFulfillHTLC } from '../structs/UpdateFulfillHTLC.mjs';
334 import { UpdateFailHTLC } from '../structs/UpdateFailHTLC.mjs';
335 import { UpdateFailMalformedHTLC } from '../structs/UpdateFailMalformedHTLC.mjs';
336 import { Result_AcceptChannelDecodeErrorZ } from '../structs/Result_AcceptChannelDecodeErrorZ.mjs';
337 import { Result_AcceptChannelV2DecodeErrorZ } from '../structs/Result_AcceptChannelV2DecodeErrorZ.mjs';
338 import { Result_StfuDecodeErrorZ } from '../structs/Result_StfuDecodeErrorZ.mjs';
339 import { Result_SpliceDecodeErrorZ } from '../structs/Result_SpliceDecodeErrorZ.mjs';
340 import { Result_SpliceAckDecodeErrorZ } from '../structs/Result_SpliceAckDecodeErrorZ.mjs';
341 import { Result_SpliceLockedDecodeErrorZ } from '../structs/Result_SpliceLockedDecodeErrorZ.mjs';
342 import { Result_TxAddInputDecodeErrorZ } from '../structs/Result_TxAddInputDecodeErrorZ.mjs';
343 import { Result_TxAddOutputDecodeErrorZ } from '../structs/Result_TxAddOutputDecodeErrorZ.mjs';
344 import { Result_TxRemoveInputDecodeErrorZ } from '../structs/Result_TxRemoveInputDecodeErrorZ.mjs';
345 import { Result_TxRemoveOutputDecodeErrorZ } from '../structs/Result_TxRemoveOutputDecodeErrorZ.mjs';
346 import { Result_TxCompleteDecodeErrorZ } from '../structs/Result_TxCompleteDecodeErrorZ.mjs';
347 import { Result_TxSignaturesDecodeErrorZ } from '../structs/Result_TxSignaturesDecodeErrorZ.mjs';
348 import { Result_TxInitRbfDecodeErrorZ } from '../structs/Result_TxInitRbfDecodeErrorZ.mjs';
349 import { Result_TxAckRbfDecodeErrorZ } from '../structs/Result_TxAckRbfDecodeErrorZ.mjs';
350 import { Result_TxAbortDecodeErrorZ } from '../structs/Result_TxAbortDecodeErrorZ.mjs';
351 import { Result_AnnouncementSignaturesDecodeErrorZ } from '../structs/Result_AnnouncementSignaturesDecodeErrorZ.mjs';
352 import { Result_ChannelReestablishDecodeErrorZ } from '../structs/Result_ChannelReestablishDecodeErrorZ.mjs';
353 import { Result_ClosingSignedDecodeErrorZ } from '../structs/Result_ClosingSignedDecodeErrorZ.mjs';
354 import { ClosingSignedFeeRange } from '../structs/ClosingSignedFeeRange.mjs';
355 import { Result_ClosingSignedFeeRangeDecodeErrorZ } from '../structs/Result_ClosingSignedFeeRangeDecodeErrorZ.mjs';
356 import { CommitmentSigned } from '../structs/CommitmentSigned.mjs';
357 import { Result_CommitmentSignedDecodeErrorZ } from '../structs/Result_CommitmentSignedDecodeErrorZ.mjs';
358 import { Result_FundingCreatedDecodeErrorZ } from '../structs/Result_FundingCreatedDecodeErrorZ.mjs';
359 import { Result_FundingSignedDecodeErrorZ } from '../structs/Result_FundingSignedDecodeErrorZ.mjs';
360 import { Result_ChannelReadyDecodeErrorZ } from '../structs/Result_ChannelReadyDecodeErrorZ.mjs';
361 import { Init } from '../structs/Init.mjs';
362 import { Result_InitDecodeErrorZ } from '../structs/Result_InitDecodeErrorZ.mjs';
363 import { Result_OpenChannelDecodeErrorZ } from '../structs/Result_OpenChannelDecodeErrorZ.mjs';
364 import { Result_OpenChannelV2DecodeErrorZ } from '../structs/Result_OpenChannelV2DecodeErrorZ.mjs';
365 import { Result_RevokeAndACKDecodeErrorZ } from '../structs/Result_RevokeAndACKDecodeErrorZ.mjs';
366 import { Result_ShutdownDecodeErrorZ } from '../structs/Result_ShutdownDecodeErrorZ.mjs';
367 import { Result_UpdateFailHTLCDecodeErrorZ } from '../structs/Result_UpdateFailHTLCDecodeErrorZ.mjs';
368 import { Result_UpdateFailMalformedHTLCDecodeErrorZ } from '../structs/Result_UpdateFailMalformedHTLCDecodeErrorZ.mjs';
369 import { UpdateFee } from '../structs/UpdateFee.mjs';
370 import { Result_UpdateFeeDecodeErrorZ } from '../structs/Result_UpdateFeeDecodeErrorZ.mjs';
371 import { Result_UpdateFulfillHTLCDecodeErrorZ } from '../structs/Result_UpdateFulfillHTLCDecodeErrorZ.mjs';
372 import { Result_OnionPacketDecodeErrorZ } from '../structs/Result_OnionPacketDecodeErrorZ.mjs';
373 import { Result_UpdateAddHTLCDecodeErrorZ } from '../structs/Result_UpdateAddHTLCDecodeErrorZ.mjs';
374 import { OnionMessage } from '../structs/OnionMessage.mjs';
375 import { Result_OnionMessageDecodeErrorZ } from '../structs/Result_OnionMessageDecodeErrorZ.mjs';
376 import { Result_FinalOnionHopDataDecodeErrorZ } from '../structs/Result_FinalOnionHopDataDecodeErrorZ.mjs';
377 import { Ping } from '../structs/Ping.mjs';
378 import { Result_PingDecodeErrorZ } from '../structs/Result_PingDecodeErrorZ.mjs';
379 import { Pong } from '../structs/Pong.mjs';
380 import { Result_PongDecodeErrorZ } from '../structs/Result_PongDecodeErrorZ.mjs';
381 import { Result_UnsignedChannelAnnouncementDecodeErrorZ } from '../structs/Result_UnsignedChannelAnnouncementDecodeErrorZ.mjs';
382 import { Result_ChannelAnnouncementDecodeErrorZ } from '../structs/Result_ChannelAnnouncementDecodeErrorZ.mjs';
383 import { Result_UnsignedChannelUpdateDecodeErrorZ } from '../structs/Result_UnsignedChannelUpdateDecodeErrorZ.mjs';
384 import { Result_ChannelUpdateDecodeErrorZ } from '../structs/Result_ChannelUpdateDecodeErrorZ.mjs';
385 import { Result_ErrorMessageDecodeErrorZ } from '../structs/Result_ErrorMessageDecodeErrorZ.mjs';
386 import { Result_WarningMessageDecodeErrorZ } from '../structs/Result_WarningMessageDecodeErrorZ.mjs';
387 import { Result_UnsignedNodeAnnouncementDecodeErrorZ } from '../structs/Result_UnsignedNodeAnnouncementDecodeErrorZ.mjs';
388 import { Result_NodeAnnouncementDecodeErrorZ } from '../structs/Result_NodeAnnouncementDecodeErrorZ.mjs';
389 import { Result_QueryShortChannelIdsDecodeErrorZ } from '../structs/Result_QueryShortChannelIdsDecodeErrorZ.mjs';
390 import { ReplyShortChannelIdsEnd } from '../structs/ReplyShortChannelIdsEnd.mjs';
391 import { Result_ReplyShortChannelIdsEndDecodeErrorZ } from '../structs/Result_ReplyShortChannelIdsEndDecodeErrorZ.mjs';
392 import { Result_QueryChannelRangeDecodeErrorZ } from '../structs/Result_QueryChannelRangeDecodeErrorZ.mjs';
393 import { Result_ReplyChannelRangeDecodeErrorZ } from '../structs/Result_ReplyChannelRangeDecodeErrorZ.mjs';
394 import { Result_GossipTimestampFilterDecodeErrorZ } from '../structs/Result_GossipTimestampFilterDecodeErrorZ.mjs';
395 import { Bolt11Invoice } from '../structs/Bolt11Invoice.mjs';
396 import { SignOrCreationError } from '../structs/SignOrCreationError.mjs';
397 import { Result_Bolt11InvoiceSignOrCreationErrorZ } from '../structs/Result_Bolt11InvoiceSignOrCreationErrorZ.mjs';
398 import { Result_OffersMessageDecodeErrorZ } from '../structs/Result_OffersMessageDecodeErrorZ.mjs';
399 import { Option_HTLCClaimZ } from '../structs/Option_HTLCClaimZ.mjs';
400 import { CounterpartyCommitmentSecrets } from '../structs/CounterpartyCommitmentSecrets.mjs';
401 import { Result_CounterpartyCommitmentSecretsDecodeErrorZ } from '../structs/Result_CounterpartyCommitmentSecretsDecodeErrorZ.mjs';
402 import { TxCreationKeys } from '../structs/TxCreationKeys.mjs';
403 import { Result_TxCreationKeysDecodeErrorZ } from '../structs/Result_TxCreationKeysDecodeErrorZ.mjs';
404 import { Result_ChannelPublicKeysDecodeErrorZ } from '../structs/Result_ChannelPublicKeysDecodeErrorZ.mjs';
405 import { Result_HTLCOutputInCommitmentDecodeErrorZ } from '../structs/Result_HTLCOutputInCommitmentDecodeErrorZ.mjs';
406 import { CounterpartyChannelTransactionParameters } from '../structs/CounterpartyChannelTransactionParameters.mjs';
407 import { Result_CounterpartyChannelTransactionParametersDecodeErrorZ } from '../structs/Result_CounterpartyChannelTransactionParametersDecodeErrorZ.mjs';
408 import { Result_ChannelTransactionParametersDecodeErrorZ } from '../structs/Result_ChannelTransactionParametersDecodeErrorZ.mjs';
409 import { Result_HolderCommitmentTransactionDecodeErrorZ } from '../structs/Result_HolderCommitmentTransactionDecodeErrorZ.mjs';
410 import { BuiltCommitmentTransaction } from '../structs/BuiltCommitmentTransaction.mjs';
411 import { Result_BuiltCommitmentTransactionDecodeErrorZ } from '../structs/Result_BuiltCommitmentTransactionDecodeErrorZ.mjs';
412 import { TrustedClosingTransaction } from '../structs/TrustedClosingTransaction.mjs';
413 import { Result_TrustedClosingTransactionNoneZ } from '../structs/Result_TrustedClosingTransactionNoneZ.mjs';
414 import { Result_CommitmentTransactionDecodeErrorZ } from '../structs/Result_CommitmentTransactionDecodeErrorZ.mjs';
415 import { TrustedCommitmentTransaction } from '../structs/TrustedCommitmentTransaction.mjs';
416 import { Result_TrustedCommitmentTransactionNoneZ } from '../structs/Result_TrustedCommitmentTransactionNoneZ.mjs';
417 import { Result_CVec_ECDSASignatureZNoneZ } from '../structs/Result_CVec_ECDSASignatureZNoneZ.mjs';
418 import { Option_usizeZ } from '../structs/Option_usizeZ.mjs';
419 import { Result_ShutdownScriptDecodeErrorZ } from '../structs/Result_ShutdownScriptDecodeErrorZ.mjs';
420 import { InvalidShutdownScript } from '../structs/InvalidShutdownScript.mjs';
421 import { Result_ShutdownScriptInvalidShutdownScriptZ } from '../structs/Result_ShutdownScriptInvalidShutdownScriptZ.mjs';
422 import { PaymentPurpose } from '../structs/PaymentPurpose.mjs';
423 import { Result_PaymentPurposeDecodeErrorZ } from '../structs/Result_PaymentPurposeDecodeErrorZ.mjs';
424 import { ClaimedHTLC } from '../structs/ClaimedHTLC.mjs';
425 import { Result_ClaimedHTLCDecodeErrorZ } from '../structs/Result_ClaimedHTLCDecodeErrorZ.mjs';
426 import { PathFailure } from '../structs/PathFailure.mjs';
427 import { Option_PathFailureZ } from '../structs/Option_PathFailureZ.mjs';
428 import { Result_COption_PathFailureZDecodeErrorZ } from '../structs/Result_COption_PathFailureZDecodeErrorZ.mjs';
429 import { UntrustedString } from '../structs/UntrustedString.mjs';
430 import { ClosureReason } from '../structs/ClosureReason.mjs';
431 import { Option_ClosureReasonZ } from '../structs/Option_ClosureReasonZ.mjs';
432 import { Result_COption_ClosureReasonZDecodeErrorZ } from '../structs/Result_COption_ClosureReasonZDecodeErrorZ.mjs';
433 import { HTLCDestination } from '../structs/HTLCDestination.mjs';
434 import { Option_HTLCDestinationZ } from '../structs/Option_HTLCDestinationZ.mjs';
435 import { Result_COption_HTLCDestinationZDecodeErrorZ } from '../structs/Result_COption_HTLCDestinationZDecodeErrorZ.mjs';
436 import { Result_PaymentFailureReasonDecodeErrorZ } from '../structs/Result_PaymentFailureReasonDecodeErrorZ.mjs';
437 import { Option_U128Z } from '../structs/Option_U128Z.mjs';
438 import { Option_PaymentFailureReasonZ } from '../structs/Option_PaymentFailureReasonZ.mjs';
439 import { AnchorDescriptor } from '../structs/AnchorDescriptor.mjs';
440 import { BumpTransactionEvent } from '../structs/BumpTransactionEvent.mjs';
441 import { Event } from '../structs/Event.mjs';
442 import { Option_EventZ } from '../structs/Option_EventZ.mjs';
443 import { Result_COption_EventZDecodeErrorZ } from '../structs/Result_COption_EventZDecodeErrorZ.mjs';
444 import { Bolt11ParseError } from '../structs/Bolt11ParseError.mjs';
445 import { Result_SiPrefixBolt11ParseErrorZ } from '../structs/Result_SiPrefixBolt11ParseErrorZ.mjs';
446 import { ParseOrSemanticError } from '../structs/ParseOrSemanticError.mjs';
447 import { Result_Bolt11InvoiceParseOrSemanticErrorZ } from '../structs/Result_Bolt11InvoiceParseOrSemanticErrorZ.mjs';
448 import { SignedRawBolt11Invoice } from '../structs/SignedRawBolt11Invoice.mjs';
449 import { Result_SignedRawBolt11InvoiceBolt11ParseErrorZ } from '../structs/Result_SignedRawBolt11InvoiceBolt11ParseErrorZ.mjs';
450 import { RawBolt11Invoice } from '../structs/RawBolt11Invoice.mjs';
451 import { Bolt11InvoiceSignature } from '../structs/Bolt11InvoiceSignature.mjs';
452 import { ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ } from '../structs/ThreeTuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ.mjs';
453 import { PayeePubKey } from '../structs/PayeePubKey.mjs';
454 import { Result_PayeePubKeySecp256k1ErrorZ } from '../structs/Result_PayeePubKeySecp256k1ErrorZ.mjs';
455 import { PrivateRoute } from '../structs/PrivateRoute.mjs';
456 import { PositiveTimestamp } from '../structs/PositiveTimestamp.mjs';
457 import { Result_PositiveTimestampCreationErrorZ } from '../structs/Result_PositiveTimestampCreationErrorZ.mjs';
458 import { Result_NoneBolt11SemanticErrorZ } from '../structs/Result_NoneBolt11SemanticErrorZ.mjs';
459 import { Result_Bolt11InvoiceBolt11SemanticErrorZ } from '../structs/Result_Bolt11InvoiceBolt11SemanticErrorZ.mjs';
460 import { Description } from '../structs/Description.mjs';
461 import { Result_DescriptionCreationErrorZ } from '../structs/Result_DescriptionCreationErrorZ.mjs';
462 import { Result_PrivateRouteCreationErrorZ } from '../structs/Result_PrivateRouteCreationErrorZ.mjs';
463 import { Result_OutPointDecodeErrorZ } from '../structs/Result_OutPointDecodeErrorZ.mjs';
464 import { BigSize } from '../structs/BigSize.mjs';
465 import { Result_BigSizeDecodeErrorZ } from '../structs/Result_BigSizeDecodeErrorZ.mjs';
466 import { Result_HostnameDecodeErrorZ } from '../structs/Result_HostnameDecodeErrorZ.mjs';
467 import { TransactionU16LenLimited } from '../structs/TransactionU16LenLimited.mjs';
468 import { Result_TransactionU16LenLimitedNoneZ } from '../structs/Result_TransactionU16LenLimitedNoneZ.mjs';
469 import { Result_TransactionU16LenLimitedDecodeErrorZ } from '../structs/Result_TransactionU16LenLimitedDecodeErrorZ.mjs';
470 import { Result_UntrustedStringDecodeErrorZ } from '../structs/Result_UntrustedStringDecodeErrorZ.mjs';
471 import { TwoTuple__u832u16Z } from '../structs/TwoTuple__u832u16Z.mjs';
472 import { PaymentRelay } from '../structs/PaymentRelay.mjs';
473 import { Result_PaymentRelayDecodeErrorZ } from '../structs/Result_PaymentRelayDecodeErrorZ.mjs';
474 import { PaymentConstraints } from '../structs/PaymentConstraints.mjs';
475 import { Result_PaymentConstraintsDecodeErrorZ } from '../structs/Result_PaymentConstraintsDecodeErrorZ.mjs';
476 import { ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ } from '../structs/ThreeTuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ.mjs';
477 import { Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ } from '../structs/Result_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ.mjs';
478 import { Result_StrSecp256k1ErrorZ } from '../structs/Result_StrSecp256k1ErrorZ.mjs';
479 import { ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ } from '../structs/ThreeTuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ.mjs';
480 import { SendError } from '../structs/SendError.mjs';
481 import { Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ } from '../structs/Result_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ.mjs';
482 import { ParsedOnionMessageContents } from '../structs/ParsedOnionMessageContents.mjs';
483 import { PeeledOnion } from '../structs/PeeledOnion.mjs';
484 import { Result_PeeledOnionNoneZ } from '../structs/Result_PeeledOnionNoneZ.mjs';
485 import { SendSuccess } from '../structs/SendSuccess.mjs';
486 import { Result_SendSuccessSendErrorZ } from '../structs/Result_SendSuccessSendErrorZ.mjs';
487 import { Result_BlindedPathNoneZ } from '../structs/Result_BlindedPathNoneZ.mjs';
488 import { Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ } from '../structs/Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ.mjs';
489 import { ForwardNode } from '../structs/ForwardNode.mjs';
490 import { Result_BlindedPathDecodeErrorZ } from '../structs/Result_BlindedPathDecodeErrorZ.mjs';
491 import { Result_BlindedHopDecodeErrorZ } from '../structs/Result_BlindedHopDecodeErrorZ.mjs';
492 import { Result_InvoiceErrorDecodeErrorZ } from '../structs/Result_InvoiceErrorDecodeErrorZ.mjs';
493 import { DelayedPaymentBasepoint } from '../structs/DelayedPaymentBasepoint.mjs';
494 import { Result_DelayedPaymentBasepointDecodeErrorZ } from '../structs/Result_DelayedPaymentBasepointDecodeErrorZ.mjs';
495 import { DelayedPaymentKey } from '../structs/DelayedPaymentKey.mjs';
496 import { Result_DelayedPaymentKeyDecodeErrorZ } from '../structs/Result_DelayedPaymentKeyDecodeErrorZ.mjs';
497 import { HtlcBasepoint } from '../structs/HtlcBasepoint.mjs';
498 import { Result_HtlcBasepointDecodeErrorZ } from '../structs/Result_HtlcBasepointDecodeErrorZ.mjs';
499 import { HtlcKey } from '../structs/HtlcKey.mjs';
500 import { Result_HtlcKeyDecodeErrorZ } from '../structs/Result_HtlcKeyDecodeErrorZ.mjs';
501 import { RevocationBasepoint } from '../structs/RevocationBasepoint.mjs';
502 import { Result_RevocationBasepointDecodeErrorZ } from '../structs/Result_RevocationBasepointDecodeErrorZ.mjs';
503 import { RevocationKey } from '../structs/RevocationKey.mjs';
504 import { Result_RevocationKeyDecodeErrorZ } from '../structs/Result_RevocationKeyDecodeErrorZ.mjs';
505 import { WatchedOutput } from '../structs/WatchedOutput.mjs';
506 import { Filter, FilterInterface } from '../structs/Filter.mjs';
507 import { Option_FilterZ } from '../structs/Option_FilterZ.mjs';
508 import { LockedChannelMonitor } from '../structs/LockedChannelMonitor.mjs';
509 import { Result_LockedChannelMonitorNoneZ } from '../structs/Result_LockedChannelMonitorNoneZ.mjs';
510 import { MonitorUpdateId } from '../structs/MonitorUpdateId.mjs';
511 import { TwoTuple_OutPointCVec_MonitorUpdateIdZZ } from '../structs/TwoTuple_OutPointCVec_MonitorUpdateIdZZ.mjs';
512 import { KVStore, KVStoreInterface } from '../structs/KVStore.mjs';
513 import { FirstHopCandidate } from '../structs/FirstHopCandidate.mjs';
514 import { PublicHopCandidate } from '../structs/PublicHopCandidate.mjs';
515 import { PrivateHopCandidate } from '../structs/PrivateHopCandidate.mjs';
516 import { BlindedPathCandidate } from '../structs/BlindedPathCandidate.mjs';
517 import { OneHopBlindedPathCandidate } from '../structs/OneHopBlindedPathCandidate.mjs';
518 import { CandidateRouteHop } from '../structs/CandidateRouteHop.mjs';
519 import { ChannelUsage } from '../structs/ChannelUsage.mjs';
520 import { ProbabilisticScoringFeeParameters } from '../structs/ProbabilisticScoringFeeParameters.mjs';
521 import { ScoreLookUp, ScoreLookUpInterface } from '../structs/ScoreLookUp.mjs';
522 import { ScoreUpdate, ScoreUpdateInterface } from '../structs/ScoreUpdate.mjs';
523 import { LockableScore, LockableScoreInterface } from '../structs/LockableScore.mjs';
524 import { WriteableScore, WriteableScoreInterface } from '../structs/WriteableScore.mjs';
525 import { Persister, PersisterInterface } from '../structs/Persister.mjs';
526 import { MonitorUpdatingPersister } from '../structs/MonitorUpdatingPersister.mjs';
527 import { Persist, PersistInterface } from '../structs/Persist.mjs';
528 import { PrintableString } from '../structs/PrintableString.mjs';
529 import { FutureCallback, FutureCallbackInterface } from '../structs/FutureCallback.mjs';
530 import { Future } from '../structs/Future.mjs';
531 import { ChannelHandshakeConfig } from '../structs/ChannelHandshakeConfig.mjs';
532 import { ChannelHandshakeLimits } from '../structs/ChannelHandshakeLimits.mjs';
533 import { ChannelConfigUpdate } from '../structs/ChannelConfigUpdate.mjs';
534 import { UserConfig } from '../structs/UserConfig.mjs';
535 import { BestBlock } from '../structs/BestBlock.mjs';
536 import { Listen, ListenInterface } from '../structs/Listen.mjs';
537 import { Confirm, ConfirmInterface } from '../structs/Confirm.mjs';
538 import { ChainMonitor } from '../structs/ChainMonitor.mjs';
539 import { EventHandler, EventHandlerInterface } from '../structs/EventHandler.mjs';
540 import { EventsProvider, EventsProviderInterface } from '../structs/EventsProvider.mjs';
541 import { FailureCode } from '../structs/FailureCode.mjs';
542 import { ChainParameters } from '../structs/ChainParameters.mjs';
543 import { MessageSendEventsProvider, MessageSendEventsProviderInterface } from '../structs/MessageSendEventsProvider.mjs';
544 import { ChannelMessageHandler, ChannelMessageHandlerInterface } from '../structs/ChannelMessageHandler.mjs';
545 import { OffersMessageHandler, OffersMessageHandlerInterface } from '../structs/OffersMessageHandler.mjs';
546 import { ChannelManagerReadArgs } from '../structs/ChannelManagerReadArgs.mjs';
547 import { ExpandedKey } from '../structs/ExpandedKey.mjs';
548 import { Packet } from '../structs/Packet.mjs';
549 import { RoutingMessageHandler, RoutingMessageHandlerInterface } from '../structs/RoutingMessageHandler.mjs';
550 import { OnionMessageHandler, OnionMessageHandlerInterface } from '../structs/OnionMessageHandler.mjs';
551 import { CustomMessageReader, CustomMessageReaderInterface } from '../structs/CustomMessageReader.mjs';
552 import { CustomMessageHandler, CustomMessageHandlerInterface } from '../structs/CustomMessageHandler.mjs';
553 import { IgnoringMessageHandler } from '../structs/IgnoringMessageHandler.mjs';
554 import { CustomOnionMessageHandler, CustomOnionMessageHandlerInterface } from '../structs/CustomOnionMessageHandler.mjs';
555 import { ErroringMessageHandler } from '../structs/ErroringMessageHandler.mjs';
556 import { MessageHandler } from '../structs/MessageHandler.mjs';
557 import { SocketDescriptor, SocketDescriptorInterface } from '../structs/SocketDescriptor.mjs';
558 import { PeerManager } from '../structs/PeerManager.mjs';
559 import { DirectedChannelTransactionParameters } from '../structs/DirectedChannelTransactionParameters.mjs';
560 import { OfferFeatures } from '../structs/OfferFeatures.mjs';
561 import { InvoiceRequestFeatures } from '../structs/InvoiceRequestFeatures.mjs';
562 import { Amount } from '../structs/Amount.mjs';
563 import { Quantity } from '../structs/Quantity.mjs';
564 import { TaggedHash } from '../structs/TaggedHash.mjs';
565 import { ErroneousField } from '../structs/ErroneousField.mjs';
566 import { P2PGossipSync } from '../structs/P2PGossipSync.mjs';
567 import { ReadOnlyNetworkGraph } from '../structs/ReadOnlyNetworkGraph.mjs';
568 import { DirectedChannelInfo } from '../structs/DirectedChannelInfo.mjs';
569 import { EffectiveCapacity } from '../structs/EffectiveCapacity.mjs';
570 import { DefaultRouter } from '../structs/DefaultRouter.mjs';
571 import { ScorerAccountingForInFlightHtlcs } from '../structs/ScorerAccountingForInFlightHtlcs.mjs';
572 import { Payee } from '../structs/Payee.mjs';
573 import { Score, ScoreInterface } from '../structs/Score.mjs';
574 import { MultiThreadedLockableScore } from '../structs/MultiThreadedLockableScore.mjs';
575 import { MultiThreadedScoreLockRead } from '../structs/MultiThreadedScoreLockRead.mjs';
576 import { MultiThreadedScoreLockWrite } from '../structs/MultiThreadedScoreLockWrite.mjs';
577 import { ProbabilisticScoringDecayParameters } from '../structs/ProbabilisticScoringDecayParameters.mjs';
578 import { KeysManager } from '../structs/KeysManager.mjs';
579 import { PhantomKeysManager } from '../structs/PhantomKeysManager.mjs';
580 import { OnionMessenger } from '../structs/OnionMessenger.mjs';
581 import { DefaultMessageRouter } from '../structs/DefaultMessageRouter.mjs';
582 import { ForwardTlvs } from '../structs/ForwardTlvs.mjs';
583 import { CoinSelectionSource, CoinSelectionSourceInterface } from '../structs/CoinSelectionSource.mjs';
584 import { WalletSource, WalletSourceInterface } from '../structs/WalletSource.mjs';
585 import { Wallet } from '../structs/Wallet.mjs';
586 import { BumpTransactionEventHandler } from '../structs/BumpTransactionEventHandler.mjs';
587 import { RapidGossipSync } from '../structs/RapidGossipSync.mjs';
588 import { GossipSync } from '../structs/GossipSync.mjs';
589 import { RawDataPart } from '../structs/RawDataPart.mjs';
590 import { Sha256 } from '../structs/Sha256.mjs';
591 import { ExpiryTime } from '../structs/ExpiryTime.mjs';
592 import { MinFinalCltvExpiryDelta } from '../structs/MinFinalCltvExpiryDelta.mjs';
593 import { Fallback } from '../structs/Fallback.mjs';
595 import { CommonBase, UInt5, WitnessVersion, UnqualifiedError } from './CommonBase.mjs';
596 import * as bindings from '../bindings.mjs'
599 * An event generated by ChannelManager which indicates a message should be sent to a peer (or
600 * broadcast to most peers).
601 * These events are handled by PeerManager::process_events if you are using a PeerManager.
603 export class MessageSendEvent extends CommonBase {
604 protected constructor(_dummy: null, ptr: bigint) { super(ptr, bindings.MessageSendEvent_free); }
606 public static constr_from_ptr(ptr: bigint): MessageSendEvent {
607 const raw_ty: number = bindings.LDKMessageSendEvent_ty_from_ptr(ptr);
609 case 0: return new MessageSendEvent_SendAcceptChannel(ptr);
610 case 1: return new MessageSendEvent_SendAcceptChannelV2(ptr);
611 case 2: return new MessageSendEvent_SendOpenChannel(ptr);
612 case 3: return new MessageSendEvent_SendOpenChannelV2(ptr);
613 case 4: return new MessageSendEvent_SendFundingCreated(ptr);
614 case 5: return new MessageSendEvent_SendFundingSigned(ptr);
615 case 6: return new MessageSendEvent_SendStfu(ptr);
616 case 7: return new MessageSendEvent_SendSplice(ptr);
617 case 8: return new MessageSendEvent_SendSpliceAck(ptr);
618 case 9: return new MessageSendEvent_SendSpliceLocked(ptr);
619 case 10: return new MessageSendEvent_SendTxAddInput(ptr);
620 case 11: return new MessageSendEvent_SendTxAddOutput(ptr);
621 case 12: return new MessageSendEvent_SendTxRemoveInput(ptr);
622 case 13: return new MessageSendEvent_SendTxRemoveOutput(ptr);
623 case 14: return new MessageSendEvent_SendTxComplete(ptr);
624 case 15: return new MessageSendEvent_SendTxSignatures(ptr);
625 case 16: return new MessageSendEvent_SendTxInitRbf(ptr);
626 case 17: return new MessageSendEvent_SendTxAckRbf(ptr);
627 case 18: return new MessageSendEvent_SendTxAbort(ptr);
628 case 19: return new MessageSendEvent_SendChannelReady(ptr);
629 case 20: return new MessageSendEvent_SendAnnouncementSignatures(ptr);
630 case 21: return new MessageSendEvent_UpdateHTLCs(ptr);
631 case 22: return new MessageSendEvent_SendRevokeAndACK(ptr);
632 case 23: return new MessageSendEvent_SendClosingSigned(ptr);
633 case 24: return new MessageSendEvent_SendShutdown(ptr);
634 case 25: return new MessageSendEvent_SendChannelReestablish(ptr);
635 case 26: return new MessageSendEvent_SendChannelAnnouncement(ptr);
636 case 27: return new MessageSendEvent_BroadcastChannelAnnouncement(ptr);
637 case 28: return new MessageSendEvent_BroadcastChannelUpdate(ptr);
638 case 29: return new MessageSendEvent_BroadcastNodeAnnouncement(ptr);
639 case 30: return new MessageSendEvent_SendChannelUpdate(ptr);
640 case 31: return new MessageSendEvent_HandleError(ptr);
641 case 32: return new MessageSendEvent_SendChannelRangeQuery(ptr);
642 case 33: return new MessageSendEvent_SendShortIdsQuery(ptr);
643 case 34: return new MessageSendEvent_SendReplyChannelRange(ptr);
644 case 35: return new MessageSendEvent_SendGossipTimestampFilter(ptr);
646 throw new Error('oops, this should be unreachable'); // Unreachable without extending the (internal) bindings interface
650 public clone_ptr(): bigint {
651 const ret: bigint = bindings.MessageSendEvent_clone_ptr(this.ptr);
656 * Creates a copy of the MessageSendEvent
658 public clone(): MessageSendEvent {
659 const ret: bigint = bindings.MessageSendEvent_clone(this.ptr);
660 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
661 CommonBase.add_ref_from(ret_hu_conv, this);
666 * Utility method to constructs a new SendAcceptChannel-variant MessageSendEvent
668 public static constructor_send_accept_channel(node_id: Uint8Array, msg: AcceptChannel): MessageSendEvent {
669 const ret: bigint = bindings.MessageSendEvent_send_accept_channel(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
670 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
671 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
672 CommonBase.add_ref_from(ret_hu_conv, msg);
677 * Utility method to constructs a new SendAcceptChannelV2-variant MessageSendEvent
679 public static constructor_send_accept_channel_v2(node_id: Uint8Array, msg: AcceptChannelV2): MessageSendEvent {
680 const ret: bigint = bindings.MessageSendEvent_send_accept_channel_v2(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
681 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
682 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
683 CommonBase.add_ref_from(ret_hu_conv, msg);
688 * Utility method to constructs a new SendOpenChannel-variant MessageSendEvent
690 public static constructor_send_open_channel(node_id: Uint8Array, msg: OpenChannel): MessageSendEvent {
691 const ret: bigint = bindings.MessageSendEvent_send_open_channel(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
692 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
693 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
694 CommonBase.add_ref_from(ret_hu_conv, msg);
699 * Utility method to constructs a new SendOpenChannelV2-variant MessageSendEvent
701 public static constructor_send_open_channel_v2(node_id: Uint8Array, msg: OpenChannelV2): MessageSendEvent {
702 const ret: bigint = bindings.MessageSendEvent_send_open_channel_v2(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
703 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
704 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
705 CommonBase.add_ref_from(ret_hu_conv, msg);
710 * Utility method to constructs a new SendFundingCreated-variant MessageSendEvent
712 public static constructor_send_funding_created(node_id: Uint8Array, msg: FundingCreated): MessageSendEvent {
713 const ret: bigint = bindings.MessageSendEvent_send_funding_created(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
714 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
715 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
716 CommonBase.add_ref_from(ret_hu_conv, msg);
721 * Utility method to constructs a new SendFundingSigned-variant MessageSendEvent
723 public static constructor_send_funding_signed(node_id: Uint8Array, msg: FundingSigned): MessageSendEvent {
724 const ret: bigint = bindings.MessageSendEvent_send_funding_signed(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
725 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
726 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
727 CommonBase.add_ref_from(ret_hu_conv, msg);
732 * Utility method to constructs a new SendStfu-variant MessageSendEvent
734 public static constructor_send_stfu(node_id: Uint8Array, msg: Stfu): MessageSendEvent {
735 const ret: bigint = bindings.MessageSendEvent_send_stfu(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
736 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
737 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
738 CommonBase.add_ref_from(ret_hu_conv, msg);
743 * Utility method to constructs a new SendSplice-variant MessageSendEvent
745 public static constructor_send_splice(node_id: Uint8Array, msg: Splice): MessageSendEvent {
746 const ret: bigint = bindings.MessageSendEvent_send_splice(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
747 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
748 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
749 CommonBase.add_ref_from(ret_hu_conv, msg);
754 * Utility method to constructs a new SendSpliceAck-variant MessageSendEvent
756 public static constructor_send_splice_ack(node_id: Uint8Array, msg: SpliceAck): MessageSendEvent {
757 const ret: bigint = bindings.MessageSendEvent_send_splice_ack(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
758 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
759 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
760 CommonBase.add_ref_from(ret_hu_conv, msg);
765 * Utility method to constructs a new SendSpliceLocked-variant MessageSendEvent
767 public static constructor_send_splice_locked(node_id: Uint8Array, msg: SpliceLocked): MessageSendEvent {
768 const ret: bigint = bindings.MessageSendEvent_send_splice_locked(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
769 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
770 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
771 CommonBase.add_ref_from(ret_hu_conv, msg);
776 * Utility method to constructs a new SendTxAddInput-variant MessageSendEvent
778 public static constructor_send_tx_add_input(node_id: Uint8Array, msg: TxAddInput): MessageSendEvent {
779 const ret: bigint = bindings.MessageSendEvent_send_tx_add_input(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
780 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
781 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
782 CommonBase.add_ref_from(ret_hu_conv, msg);
787 * Utility method to constructs a new SendTxAddOutput-variant MessageSendEvent
789 public static constructor_send_tx_add_output(node_id: Uint8Array, msg: TxAddOutput): MessageSendEvent {
790 const ret: bigint = bindings.MessageSendEvent_send_tx_add_output(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
791 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
792 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
793 CommonBase.add_ref_from(ret_hu_conv, msg);
798 * Utility method to constructs a new SendTxRemoveInput-variant MessageSendEvent
800 public static constructor_send_tx_remove_input(node_id: Uint8Array, msg: TxRemoveInput): MessageSendEvent {
801 const ret: bigint = bindings.MessageSendEvent_send_tx_remove_input(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
802 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
803 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
804 CommonBase.add_ref_from(ret_hu_conv, msg);
809 * Utility method to constructs a new SendTxRemoveOutput-variant MessageSendEvent
811 public static constructor_send_tx_remove_output(node_id: Uint8Array, msg: TxRemoveOutput): MessageSendEvent {
812 const ret: bigint = bindings.MessageSendEvent_send_tx_remove_output(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
813 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
814 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
815 CommonBase.add_ref_from(ret_hu_conv, msg);
820 * Utility method to constructs a new SendTxComplete-variant MessageSendEvent
822 public static constructor_send_tx_complete(node_id: Uint8Array, msg: TxComplete): MessageSendEvent {
823 const ret: bigint = bindings.MessageSendEvent_send_tx_complete(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
824 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
825 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
826 CommonBase.add_ref_from(ret_hu_conv, msg);
831 * Utility method to constructs a new SendTxSignatures-variant MessageSendEvent
833 public static constructor_send_tx_signatures(node_id: Uint8Array, msg: TxSignatures): MessageSendEvent {
834 const ret: bigint = bindings.MessageSendEvent_send_tx_signatures(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
835 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
836 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
837 CommonBase.add_ref_from(ret_hu_conv, msg);
842 * Utility method to constructs a new SendTxInitRbf-variant MessageSendEvent
844 public static constructor_send_tx_init_rbf(node_id: Uint8Array, msg: TxInitRbf): MessageSendEvent {
845 const ret: bigint = bindings.MessageSendEvent_send_tx_init_rbf(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
846 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
847 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
848 CommonBase.add_ref_from(ret_hu_conv, msg);
853 * Utility method to constructs a new SendTxAckRbf-variant MessageSendEvent
855 public static constructor_send_tx_ack_rbf(node_id: Uint8Array, msg: TxAckRbf): MessageSendEvent {
856 const ret: bigint = bindings.MessageSendEvent_send_tx_ack_rbf(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
857 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
858 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
859 CommonBase.add_ref_from(ret_hu_conv, msg);
864 * Utility method to constructs a new SendTxAbort-variant MessageSendEvent
866 public static constructor_send_tx_abort(node_id: Uint8Array, msg: TxAbort): MessageSendEvent {
867 const ret: bigint = bindings.MessageSendEvent_send_tx_abort(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
868 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
869 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
870 CommonBase.add_ref_from(ret_hu_conv, msg);
875 * Utility method to constructs a new SendChannelReady-variant MessageSendEvent
877 public static constructor_send_channel_ready(node_id: Uint8Array, msg: ChannelReady): MessageSendEvent {
878 const ret: bigint = bindings.MessageSendEvent_send_channel_ready(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
879 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
880 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
881 CommonBase.add_ref_from(ret_hu_conv, msg);
886 * Utility method to constructs a new SendAnnouncementSignatures-variant MessageSendEvent
888 public static constructor_send_announcement_signatures(node_id: Uint8Array, msg: AnnouncementSignatures): MessageSendEvent {
889 const ret: bigint = bindings.MessageSendEvent_send_announcement_signatures(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
890 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
891 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
892 CommonBase.add_ref_from(ret_hu_conv, msg);
897 * Utility method to constructs a new UpdateHTLCs-variant MessageSendEvent
899 public static constructor_update_htlcs(node_id: Uint8Array, updates: CommitmentUpdate): MessageSendEvent {
900 const ret: bigint = bindings.MessageSendEvent_update_htlcs(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), updates == null ? 0n : CommonBase.get_ptr_of(updates));
901 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
902 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
903 CommonBase.add_ref_from(ret_hu_conv, updates);
908 * Utility method to constructs a new SendRevokeAndACK-variant MessageSendEvent
910 public static constructor_send_revoke_and_ack(node_id: Uint8Array, msg: RevokeAndACK): MessageSendEvent {
911 const ret: bigint = bindings.MessageSendEvent_send_revoke_and_ack(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
912 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
913 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
914 CommonBase.add_ref_from(ret_hu_conv, msg);
919 * Utility method to constructs a new SendClosingSigned-variant MessageSendEvent
921 public static constructor_send_closing_signed(node_id: Uint8Array, msg: ClosingSigned): MessageSendEvent {
922 const ret: bigint = bindings.MessageSendEvent_send_closing_signed(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
923 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
924 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
925 CommonBase.add_ref_from(ret_hu_conv, msg);
930 * Utility method to constructs a new SendShutdown-variant MessageSendEvent
932 public static constructor_send_shutdown(node_id: Uint8Array, msg: Shutdown): MessageSendEvent {
933 const ret: bigint = bindings.MessageSendEvent_send_shutdown(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
934 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
935 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
936 CommonBase.add_ref_from(ret_hu_conv, msg);
941 * Utility method to constructs a new SendChannelReestablish-variant MessageSendEvent
943 public static constructor_send_channel_reestablish(node_id: Uint8Array, msg: ChannelReestablish): MessageSendEvent {
944 const ret: bigint = bindings.MessageSendEvent_send_channel_reestablish(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
945 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
946 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
947 CommonBase.add_ref_from(ret_hu_conv, msg);
952 * Utility method to constructs a new SendChannelAnnouncement-variant MessageSendEvent
954 public static constructor_send_channel_announcement(node_id: Uint8Array, msg: ChannelAnnouncement, update_msg: ChannelUpdate): MessageSendEvent {
955 const ret: bigint = bindings.MessageSendEvent_send_channel_announcement(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg), update_msg == null ? 0n : CommonBase.get_ptr_of(update_msg));
956 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
957 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
958 CommonBase.add_ref_from(ret_hu_conv, msg);
959 CommonBase.add_ref_from(ret_hu_conv, update_msg);
964 * Utility method to constructs a new BroadcastChannelAnnouncement-variant MessageSendEvent
966 public static constructor_broadcast_channel_announcement(msg: ChannelAnnouncement, update_msg: ChannelUpdate): MessageSendEvent {
967 const ret: bigint = bindings.MessageSendEvent_broadcast_channel_announcement(msg == null ? 0n : CommonBase.get_ptr_of(msg), update_msg == null ? 0n : CommonBase.get_ptr_of(update_msg));
968 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
969 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
970 CommonBase.add_ref_from(ret_hu_conv, msg);
971 CommonBase.add_ref_from(ret_hu_conv, update_msg);
976 * Utility method to constructs a new BroadcastChannelUpdate-variant MessageSendEvent
978 public static constructor_broadcast_channel_update(msg: ChannelUpdate): MessageSendEvent {
979 const ret: bigint = bindings.MessageSendEvent_broadcast_channel_update(msg == null ? 0n : CommonBase.get_ptr_of(msg));
980 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
981 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
982 CommonBase.add_ref_from(ret_hu_conv, msg);
987 * Utility method to constructs a new BroadcastNodeAnnouncement-variant MessageSendEvent
989 public static constructor_broadcast_node_announcement(msg: NodeAnnouncement): MessageSendEvent {
990 const ret: bigint = bindings.MessageSendEvent_broadcast_node_announcement(msg == null ? 0n : CommonBase.get_ptr_of(msg));
991 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
992 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
993 CommonBase.add_ref_from(ret_hu_conv, msg);
998 * Utility method to constructs a new SendChannelUpdate-variant MessageSendEvent
1000 public static constructor_send_channel_update(node_id: Uint8Array, msg: ChannelUpdate): MessageSendEvent {
1001 const ret: bigint = bindings.MessageSendEvent_send_channel_update(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
1002 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1003 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1004 CommonBase.add_ref_from(ret_hu_conv, msg);
1009 * Utility method to constructs a new HandleError-variant MessageSendEvent
1011 public static constructor_handle_error(node_id: Uint8Array, action: ErrorAction): MessageSendEvent {
1012 const ret: bigint = bindings.MessageSendEvent_handle_error(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), CommonBase.get_ptr_of(action));
1013 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1014 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1015 CommonBase.add_ref_from(ret_hu_conv, action);
1020 * Utility method to constructs a new SendChannelRangeQuery-variant MessageSendEvent
1022 public static constructor_send_channel_range_query(node_id: Uint8Array, msg: QueryChannelRange): MessageSendEvent {
1023 const ret: bigint = bindings.MessageSendEvent_send_channel_range_query(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
1024 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1025 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1026 CommonBase.add_ref_from(ret_hu_conv, msg);
1031 * Utility method to constructs a new SendShortIdsQuery-variant MessageSendEvent
1033 public static constructor_send_short_ids_query(node_id: Uint8Array, msg: QueryShortChannelIds): MessageSendEvent {
1034 const ret: bigint = bindings.MessageSendEvent_send_short_ids_query(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
1035 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1036 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1037 CommonBase.add_ref_from(ret_hu_conv, msg);
1042 * Utility method to constructs a new SendReplyChannelRange-variant MessageSendEvent
1044 public static constructor_send_reply_channel_range(node_id: Uint8Array, msg: ReplyChannelRange): MessageSendEvent {
1045 const ret: bigint = bindings.MessageSendEvent_send_reply_channel_range(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
1046 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1047 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1048 CommonBase.add_ref_from(ret_hu_conv, msg);
1053 * Utility method to constructs a new SendGossipTimestampFilter-variant MessageSendEvent
1055 public static constructor_send_gossip_timestamp_filter(node_id: Uint8Array, msg: GossipTimestampFilter): MessageSendEvent {
1056 const ret: bigint = bindings.MessageSendEvent_send_gossip_timestamp_filter(bindings.encodeUint8Array(bindings.check_arr_len(node_id, 33)), msg == null ? 0n : CommonBase.get_ptr_of(msg));
1057 const ret_hu_conv: MessageSendEvent = MessageSendEvent.constr_from_ptr(ret);
1058 CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
1059 CommonBase.add_ref_from(ret_hu_conv, msg);
1064 /** A MessageSendEvent of type SendAcceptChannel */
1065 export class MessageSendEvent_SendAcceptChannel extends MessageSendEvent {
1067 * The node_id of the node which should receive this message
1069 public node_id: Uint8Array;
1071 * The message which should be sent.
1073 public msg: AcceptChannel;
1075 public constructor(ptr: bigint) {
1077 const node_id: number = bindings.LDKMessageSendEvent_SendAcceptChannel_get_node_id(ptr);
1078 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1079 this.node_id = node_id_conv;
1080 const msg: bigint = bindings.LDKMessageSendEvent_SendAcceptChannel_get_msg(ptr);
1081 const msg_hu_conv: AcceptChannel = new AcceptChannel(null, msg);
1082 CommonBase.add_ref_from(msg_hu_conv, this);
1083 this.msg = msg_hu_conv;
1086 /** A MessageSendEvent of type SendAcceptChannelV2 */
1087 export class MessageSendEvent_SendAcceptChannelV2 extends MessageSendEvent {
1089 * The node_id of the node which should receive this message
1091 public node_id: Uint8Array;
1093 * The message which should be sent.
1095 public msg: AcceptChannelV2;
1097 public constructor(ptr: bigint) {
1099 const node_id: number = bindings.LDKMessageSendEvent_SendAcceptChannelV2_get_node_id(ptr);
1100 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1101 this.node_id = node_id_conv;
1102 const msg: bigint = bindings.LDKMessageSendEvent_SendAcceptChannelV2_get_msg(ptr);
1103 const msg_hu_conv: AcceptChannelV2 = new AcceptChannelV2(null, msg);
1104 CommonBase.add_ref_from(msg_hu_conv, this);
1105 this.msg = msg_hu_conv;
1108 /** A MessageSendEvent of type SendOpenChannel */
1109 export class MessageSendEvent_SendOpenChannel extends MessageSendEvent {
1111 * The node_id of the node which should receive this message
1113 public node_id: Uint8Array;
1115 * The message which should be sent.
1117 public msg: OpenChannel;
1119 public constructor(ptr: bigint) {
1121 const node_id: number = bindings.LDKMessageSendEvent_SendOpenChannel_get_node_id(ptr);
1122 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1123 this.node_id = node_id_conv;
1124 const msg: bigint = bindings.LDKMessageSendEvent_SendOpenChannel_get_msg(ptr);
1125 const msg_hu_conv: OpenChannel = new OpenChannel(null, msg);
1126 CommonBase.add_ref_from(msg_hu_conv, this);
1127 this.msg = msg_hu_conv;
1130 /** A MessageSendEvent of type SendOpenChannelV2 */
1131 export class MessageSendEvent_SendOpenChannelV2 extends MessageSendEvent {
1133 * The node_id of the node which should receive this message
1135 public node_id: Uint8Array;
1137 * The message which should be sent.
1139 public msg: OpenChannelV2;
1141 public constructor(ptr: bigint) {
1143 const node_id: number = bindings.LDKMessageSendEvent_SendOpenChannelV2_get_node_id(ptr);
1144 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1145 this.node_id = node_id_conv;
1146 const msg: bigint = bindings.LDKMessageSendEvent_SendOpenChannelV2_get_msg(ptr);
1147 const msg_hu_conv: OpenChannelV2 = new OpenChannelV2(null, msg);
1148 CommonBase.add_ref_from(msg_hu_conv, this);
1149 this.msg = msg_hu_conv;
1152 /** A MessageSendEvent of type SendFundingCreated */
1153 export class MessageSendEvent_SendFundingCreated extends MessageSendEvent {
1155 * The node_id of the node which should receive this message
1157 public node_id: Uint8Array;
1159 * The message which should be sent.
1161 public msg: FundingCreated;
1163 public constructor(ptr: bigint) {
1165 const node_id: number = bindings.LDKMessageSendEvent_SendFundingCreated_get_node_id(ptr);
1166 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1167 this.node_id = node_id_conv;
1168 const msg: bigint = bindings.LDKMessageSendEvent_SendFundingCreated_get_msg(ptr);
1169 const msg_hu_conv: FundingCreated = new FundingCreated(null, msg);
1170 CommonBase.add_ref_from(msg_hu_conv, this);
1171 this.msg = msg_hu_conv;
1174 /** A MessageSendEvent of type SendFundingSigned */
1175 export class MessageSendEvent_SendFundingSigned extends MessageSendEvent {
1177 * The node_id of the node which should receive this message
1179 public node_id: Uint8Array;
1181 * The message which should be sent.
1183 public msg: FundingSigned;
1185 public constructor(ptr: bigint) {
1187 const node_id: number = bindings.LDKMessageSendEvent_SendFundingSigned_get_node_id(ptr);
1188 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1189 this.node_id = node_id_conv;
1190 const msg: bigint = bindings.LDKMessageSendEvent_SendFundingSigned_get_msg(ptr);
1191 const msg_hu_conv: FundingSigned = new FundingSigned(null, msg);
1192 CommonBase.add_ref_from(msg_hu_conv, this);
1193 this.msg = msg_hu_conv;
1196 /** A MessageSendEvent of type SendStfu */
1197 export class MessageSendEvent_SendStfu extends MessageSendEvent {
1199 * The node_id of the node which should receive this message
1201 public node_id: Uint8Array;
1203 * The message which should be sent.
1207 public constructor(ptr: bigint) {
1209 const node_id: number = bindings.LDKMessageSendEvent_SendStfu_get_node_id(ptr);
1210 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1211 this.node_id = node_id_conv;
1212 const msg: bigint = bindings.LDKMessageSendEvent_SendStfu_get_msg(ptr);
1213 const msg_hu_conv: Stfu = new Stfu(null, msg);
1214 CommonBase.add_ref_from(msg_hu_conv, this);
1215 this.msg = msg_hu_conv;
1218 /** A MessageSendEvent of type SendSplice */
1219 export class MessageSendEvent_SendSplice extends MessageSendEvent {
1221 * The node_id of the node which should receive this message
1223 public node_id: Uint8Array;
1225 * The message which should be sent.
1229 public constructor(ptr: bigint) {
1231 const node_id: number = bindings.LDKMessageSendEvent_SendSplice_get_node_id(ptr);
1232 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1233 this.node_id = node_id_conv;
1234 const msg: bigint = bindings.LDKMessageSendEvent_SendSplice_get_msg(ptr);
1235 const msg_hu_conv: Splice = new Splice(null, msg);
1236 CommonBase.add_ref_from(msg_hu_conv, this);
1237 this.msg = msg_hu_conv;
1240 /** A MessageSendEvent of type SendSpliceAck */
1241 export class MessageSendEvent_SendSpliceAck extends MessageSendEvent {
1243 * The node_id of the node which should receive this message
1245 public node_id: Uint8Array;
1247 * The message which should be sent.
1249 public msg: SpliceAck;
1251 public constructor(ptr: bigint) {
1253 const node_id: number = bindings.LDKMessageSendEvent_SendSpliceAck_get_node_id(ptr);
1254 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1255 this.node_id = node_id_conv;
1256 const msg: bigint = bindings.LDKMessageSendEvent_SendSpliceAck_get_msg(ptr);
1257 const msg_hu_conv: SpliceAck = new SpliceAck(null, msg);
1258 CommonBase.add_ref_from(msg_hu_conv, this);
1259 this.msg = msg_hu_conv;
1262 /** A MessageSendEvent of type SendSpliceLocked */
1263 export class MessageSendEvent_SendSpliceLocked extends MessageSendEvent {
1265 * The node_id of the node which should receive this message
1267 public node_id: Uint8Array;
1269 * The message which should be sent.
1271 public msg: SpliceLocked;
1273 public constructor(ptr: bigint) {
1275 const node_id: number = bindings.LDKMessageSendEvent_SendSpliceLocked_get_node_id(ptr);
1276 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1277 this.node_id = node_id_conv;
1278 const msg: bigint = bindings.LDKMessageSendEvent_SendSpliceLocked_get_msg(ptr);
1279 const msg_hu_conv: SpliceLocked = new SpliceLocked(null, msg);
1280 CommonBase.add_ref_from(msg_hu_conv, this);
1281 this.msg = msg_hu_conv;
1284 /** A MessageSendEvent of type SendTxAddInput */
1285 export class MessageSendEvent_SendTxAddInput extends MessageSendEvent {
1287 * The node_id of the node which should receive this message
1289 public node_id: Uint8Array;
1291 * The message which should be sent.
1293 public msg: TxAddInput;
1295 public constructor(ptr: bigint) {
1297 const node_id: number = bindings.LDKMessageSendEvent_SendTxAddInput_get_node_id(ptr);
1298 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1299 this.node_id = node_id_conv;
1300 const msg: bigint = bindings.LDKMessageSendEvent_SendTxAddInput_get_msg(ptr);
1301 const msg_hu_conv: TxAddInput = new TxAddInput(null, msg);
1302 CommonBase.add_ref_from(msg_hu_conv, this);
1303 this.msg = msg_hu_conv;
1306 /** A MessageSendEvent of type SendTxAddOutput */
1307 export class MessageSendEvent_SendTxAddOutput extends MessageSendEvent {
1309 * The node_id of the node which should receive this message
1311 public node_id: Uint8Array;
1313 * The message which should be sent.
1315 public msg: TxAddOutput;
1317 public constructor(ptr: bigint) {
1319 const node_id: number = bindings.LDKMessageSendEvent_SendTxAddOutput_get_node_id(ptr);
1320 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1321 this.node_id = node_id_conv;
1322 const msg: bigint = bindings.LDKMessageSendEvent_SendTxAddOutput_get_msg(ptr);
1323 const msg_hu_conv: TxAddOutput = new TxAddOutput(null, msg);
1324 CommonBase.add_ref_from(msg_hu_conv, this);
1325 this.msg = msg_hu_conv;
1328 /** A MessageSendEvent of type SendTxRemoveInput */
1329 export class MessageSendEvent_SendTxRemoveInput extends MessageSendEvent {
1331 * The node_id of the node which should receive this message
1333 public node_id: Uint8Array;
1335 * The message which should be sent.
1337 public msg: TxRemoveInput;
1339 public constructor(ptr: bigint) {
1341 const node_id: number = bindings.LDKMessageSendEvent_SendTxRemoveInput_get_node_id(ptr);
1342 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1343 this.node_id = node_id_conv;
1344 const msg: bigint = bindings.LDKMessageSendEvent_SendTxRemoveInput_get_msg(ptr);
1345 const msg_hu_conv: TxRemoveInput = new TxRemoveInput(null, msg);
1346 CommonBase.add_ref_from(msg_hu_conv, this);
1347 this.msg = msg_hu_conv;
1350 /** A MessageSendEvent of type SendTxRemoveOutput */
1351 export class MessageSendEvent_SendTxRemoveOutput extends MessageSendEvent {
1353 * The node_id of the node which should receive this message
1355 public node_id: Uint8Array;
1357 * The message which should be sent.
1359 public msg: TxRemoveOutput;
1361 public constructor(ptr: bigint) {
1363 const node_id: number = bindings.LDKMessageSendEvent_SendTxRemoveOutput_get_node_id(ptr);
1364 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1365 this.node_id = node_id_conv;
1366 const msg: bigint = bindings.LDKMessageSendEvent_SendTxRemoveOutput_get_msg(ptr);
1367 const msg_hu_conv: TxRemoveOutput = new TxRemoveOutput(null, msg);
1368 CommonBase.add_ref_from(msg_hu_conv, this);
1369 this.msg = msg_hu_conv;
1372 /** A MessageSendEvent of type SendTxComplete */
1373 export class MessageSendEvent_SendTxComplete extends MessageSendEvent {
1375 * The node_id of the node which should receive this message
1377 public node_id: Uint8Array;
1379 * The message which should be sent.
1381 public msg: TxComplete;
1383 public constructor(ptr: bigint) {
1385 const node_id: number = bindings.LDKMessageSendEvent_SendTxComplete_get_node_id(ptr);
1386 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1387 this.node_id = node_id_conv;
1388 const msg: bigint = bindings.LDKMessageSendEvent_SendTxComplete_get_msg(ptr);
1389 const msg_hu_conv: TxComplete = new TxComplete(null, msg);
1390 CommonBase.add_ref_from(msg_hu_conv, this);
1391 this.msg = msg_hu_conv;
1394 /** A MessageSendEvent of type SendTxSignatures */
1395 export class MessageSendEvent_SendTxSignatures extends MessageSendEvent {
1397 * The node_id of the node which should receive this message
1399 public node_id: Uint8Array;
1401 * The message which should be sent.
1403 public msg: TxSignatures;
1405 public constructor(ptr: bigint) {
1407 const node_id: number = bindings.LDKMessageSendEvent_SendTxSignatures_get_node_id(ptr);
1408 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1409 this.node_id = node_id_conv;
1410 const msg: bigint = bindings.LDKMessageSendEvent_SendTxSignatures_get_msg(ptr);
1411 const msg_hu_conv: TxSignatures = new TxSignatures(null, msg);
1412 CommonBase.add_ref_from(msg_hu_conv, this);
1413 this.msg = msg_hu_conv;
1416 /** A MessageSendEvent of type SendTxInitRbf */
1417 export class MessageSendEvent_SendTxInitRbf extends MessageSendEvent {
1419 * The node_id of the node which should receive this message
1421 public node_id: Uint8Array;
1423 * The message which should be sent.
1425 public msg: TxInitRbf;
1427 public constructor(ptr: bigint) {
1429 const node_id: number = bindings.LDKMessageSendEvent_SendTxInitRbf_get_node_id(ptr);
1430 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1431 this.node_id = node_id_conv;
1432 const msg: bigint = bindings.LDKMessageSendEvent_SendTxInitRbf_get_msg(ptr);
1433 const msg_hu_conv: TxInitRbf = new TxInitRbf(null, msg);
1434 CommonBase.add_ref_from(msg_hu_conv, this);
1435 this.msg = msg_hu_conv;
1438 /** A MessageSendEvent of type SendTxAckRbf */
1439 export class MessageSendEvent_SendTxAckRbf extends MessageSendEvent {
1441 * The node_id of the node which should receive this message
1443 public node_id: Uint8Array;
1445 * The message which should be sent.
1447 public msg: TxAckRbf;
1449 public constructor(ptr: bigint) {
1451 const node_id: number = bindings.LDKMessageSendEvent_SendTxAckRbf_get_node_id(ptr);
1452 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1453 this.node_id = node_id_conv;
1454 const msg: bigint = bindings.LDKMessageSendEvent_SendTxAckRbf_get_msg(ptr);
1455 const msg_hu_conv: TxAckRbf = new TxAckRbf(null, msg);
1456 CommonBase.add_ref_from(msg_hu_conv, this);
1457 this.msg = msg_hu_conv;
1460 /** A MessageSendEvent of type SendTxAbort */
1461 export class MessageSendEvent_SendTxAbort extends MessageSendEvent {
1463 * The node_id of the node which should receive this message
1465 public node_id: Uint8Array;
1467 * The message which should be sent.
1469 public msg: TxAbort;
1471 public constructor(ptr: bigint) {
1473 const node_id: number = bindings.LDKMessageSendEvent_SendTxAbort_get_node_id(ptr);
1474 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1475 this.node_id = node_id_conv;
1476 const msg: bigint = bindings.LDKMessageSendEvent_SendTxAbort_get_msg(ptr);
1477 const msg_hu_conv: TxAbort = new TxAbort(null, msg);
1478 CommonBase.add_ref_from(msg_hu_conv, this);
1479 this.msg = msg_hu_conv;
1482 /** A MessageSendEvent of type SendChannelReady */
1483 export class MessageSendEvent_SendChannelReady extends MessageSendEvent {
1485 * The node_id of the node which should receive these message(s)
1487 public node_id: Uint8Array;
1489 * The channel_ready message which should be sent.
1491 public msg: ChannelReady;
1493 public constructor(ptr: bigint) {
1495 const node_id: number = bindings.LDKMessageSendEvent_SendChannelReady_get_node_id(ptr);
1496 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1497 this.node_id = node_id_conv;
1498 const msg: bigint = bindings.LDKMessageSendEvent_SendChannelReady_get_msg(ptr);
1499 const msg_hu_conv: ChannelReady = new ChannelReady(null, msg);
1500 CommonBase.add_ref_from(msg_hu_conv, this);
1501 this.msg = msg_hu_conv;
1504 /** A MessageSendEvent of type SendAnnouncementSignatures */
1505 export class MessageSendEvent_SendAnnouncementSignatures extends MessageSendEvent {
1507 * The node_id of the node which should receive these message(s)
1509 public node_id: Uint8Array;
1511 * The announcement_signatures message which should be sent.
1513 public msg: AnnouncementSignatures;
1515 public constructor(ptr: bigint) {
1517 const node_id: number = bindings.LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id(ptr);
1518 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1519 this.node_id = node_id_conv;
1520 const msg: bigint = bindings.LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(ptr);
1521 const msg_hu_conv: AnnouncementSignatures = new AnnouncementSignatures(null, msg);
1522 CommonBase.add_ref_from(msg_hu_conv, this);
1523 this.msg = msg_hu_conv;
1526 /** A MessageSendEvent of type UpdateHTLCs */
1527 export class MessageSendEvent_UpdateHTLCs extends MessageSendEvent {
1529 * The node_id of the node which should receive these message(s)
1531 public node_id: Uint8Array;
1533 * The update messages which should be sent. ALL messages in the struct should be sent!
1535 public updates: CommitmentUpdate;
1537 public constructor(ptr: bigint) {
1539 const node_id: number = bindings.LDKMessageSendEvent_UpdateHTLCs_get_node_id(ptr);
1540 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1541 this.node_id = node_id_conv;
1542 const updates: bigint = bindings.LDKMessageSendEvent_UpdateHTLCs_get_updates(ptr);
1543 const updates_hu_conv: CommitmentUpdate = new CommitmentUpdate(null, updates);
1544 CommonBase.add_ref_from(updates_hu_conv, this);
1545 this.updates = updates_hu_conv;
1548 /** A MessageSendEvent of type SendRevokeAndACK */
1549 export class MessageSendEvent_SendRevokeAndACK extends MessageSendEvent {
1551 * The node_id of the node which should receive this message
1553 public node_id: Uint8Array;
1555 * The message which should be sent.
1557 public msg: RevokeAndACK;
1559 public constructor(ptr: bigint) {
1561 const node_id: number = bindings.LDKMessageSendEvent_SendRevokeAndACK_get_node_id(ptr);
1562 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1563 this.node_id = node_id_conv;
1564 const msg: bigint = bindings.LDKMessageSendEvent_SendRevokeAndACK_get_msg(ptr);
1565 const msg_hu_conv: RevokeAndACK = new RevokeAndACK(null, msg);
1566 CommonBase.add_ref_from(msg_hu_conv, this);
1567 this.msg = msg_hu_conv;
1570 /** A MessageSendEvent of type SendClosingSigned */
1571 export class MessageSendEvent_SendClosingSigned extends MessageSendEvent {
1573 * The node_id of the node which should receive this message
1575 public node_id: Uint8Array;
1577 * The message which should be sent.
1579 public msg: ClosingSigned;
1581 public constructor(ptr: bigint) {
1583 const node_id: number = bindings.LDKMessageSendEvent_SendClosingSigned_get_node_id(ptr);
1584 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1585 this.node_id = node_id_conv;
1586 const msg: bigint = bindings.LDKMessageSendEvent_SendClosingSigned_get_msg(ptr);
1587 const msg_hu_conv: ClosingSigned = new ClosingSigned(null, msg);
1588 CommonBase.add_ref_from(msg_hu_conv, this);
1589 this.msg = msg_hu_conv;
1592 /** A MessageSendEvent of type SendShutdown */
1593 export class MessageSendEvent_SendShutdown extends MessageSendEvent {
1595 * The node_id of the node which should receive this message
1597 public node_id: Uint8Array;
1599 * The message which should be sent.
1601 public msg: Shutdown;
1603 public constructor(ptr: bigint) {
1605 const node_id: number = bindings.LDKMessageSendEvent_SendShutdown_get_node_id(ptr);
1606 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1607 this.node_id = node_id_conv;
1608 const msg: bigint = bindings.LDKMessageSendEvent_SendShutdown_get_msg(ptr);
1609 const msg_hu_conv: Shutdown = new Shutdown(null, msg);
1610 CommonBase.add_ref_from(msg_hu_conv, this);
1611 this.msg = msg_hu_conv;
1614 /** A MessageSendEvent of type SendChannelReestablish */
1615 export class MessageSendEvent_SendChannelReestablish extends MessageSendEvent {
1617 * The node_id of the node which should receive this message
1619 public node_id: Uint8Array;
1621 * The message which should be sent.
1623 public msg: ChannelReestablish;
1625 public constructor(ptr: bigint) {
1627 const node_id: number = bindings.LDKMessageSendEvent_SendChannelReestablish_get_node_id(ptr);
1628 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1629 this.node_id = node_id_conv;
1630 const msg: bigint = bindings.LDKMessageSendEvent_SendChannelReestablish_get_msg(ptr);
1631 const msg_hu_conv: ChannelReestablish = new ChannelReestablish(null, msg);
1632 CommonBase.add_ref_from(msg_hu_conv, this);
1633 this.msg = msg_hu_conv;
1636 /** A MessageSendEvent of type SendChannelAnnouncement */
1637 export class MessageSendEvent_SendChannelAnnouncement extends MessageSendEvent {
1639 * The node_id of the node which should receive this message
1641 public node_id: Uint8Array;
1643 * The channel_announcement which should be sent.
1645 public msg: ChannelAnnouncement;
1647 * The followup channel_update which should be sent.
1649 public update_msg: ChannelUpdate;
1651 public constructor(ptr: bigint) {
1653 const node_id: number = bindings.LDKMessageSendEvent_SendChannelAnnouncement_get_node_id(ptr);
1654 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1655 this.node_id = node_id_conv;
1656 const msg: bigint = bindings.LDKMessageSendEvent_SendChannelAnnouncement_get_msg(ptr);
1657 const msg_hu_conv: ChannelAnnouncement = new ChannelAnnouncement(null, msg);
1658 CommonBase.add_ref_from(msg_hu_conv, this);
1659 this.msg = msg_hu_conv;
1660 const update_msg: bigint = bindings.LDKMessageSendEvent_SendChannelAnnouncement_get_update_msg(ptr);
1661 const update_msg_hu_conv: ChannelUpdate = new ChannelUpdate(null, update_msg);
1662 CommonBase.add_ref_from(update_msg_hu_conv, this);
1663 this.update_msg = update_msg_hu_conv;
1666 /** A MessageSendEvent of type BroadcastChannelAnnouncement */
1667 export class MessageSendEvent_BroadcastChannelAnnouncement extends MessageSendEvent {
1669 * The channel_announcement which should be sent.
1671 public msg: ChannelAnnouncement;
1673 * The followup channel_update which should be sent.
1675 * Note that this (or a relevant inner pointer) may be NULL or all-0s to represent None
1677 public update_msg: ChannelUpdate;
1679 public constructor(ptr: bigint) {
1681 const msg: bigint = bindings.LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(ptr);
1682 const msg_hu_conv: ChannelAnnouncement = new ChannelAnnouncement(null, msg);
1683 CommonBase.add_ref_from(msg_hu_conv, this);
1684 this.msg = msg_hu_conv;
1685 const update_msg: bigint = bindings.LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(ptr);
1686 const update_msg_hu_conv: ChannelUpdate = new ChannelUpdate(null, update_msg);
1687 CommonBase.add_ref_from(update_msg_hu_conv, this);
1688 this.update_msg = update_msg_hu_conv;
1691 /** A MessageSendEvent of type BroadcastChannelUpdate */
1692 export class MessageSendEvent_BroadcastChannelUpdate extends MessageSendEvent {
1694 * The channel_update which should be sent.
1696 public msg: ChannelUpdate;
1698 public constructor(ptr: bigint) {
1700 const msg: bigint = bindings.LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(ptr);
1701 const msg_hu_conv: ChannelUpdate = new ChannelUpdate(null, msg);
1702 CommonBase.add_ref_from(msg_hu_conv, this);
1703 this.msg = msg_hu_conv;
1706 /** A MessageSendEvent of type BroadcastNodeAnnouncement */
1707 export class MessageSendEvent_BroadcastNodeAnnouncement extends MessageSendEvent {
1709 * The node_announcement which should be sent.
1711 public msg: NodeAnnouncement;
1713 public constructor(ptr: bigint) {
1715 const msg: bigint = bindings.LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg(ptr);
1716 const msg_hu_conv: NodeAnnouncement = new NodeAnnouncement(null, msg);
1717 CommonBase.add_ref_from(msg_hu_conv, this);
1718 this.msg = msg_hu_conv;
1721 /** A MessageSendEvent of type SendChannelUpdate */
1722 export class MessageSendEvent_SendChannelUpdate extends MessageSendEvent {
1724 * The node_id of the node which should receive this message
1726 public node_id: Uint8Array;
1728 * The channel_update which should be sent.
1730 public msg: ChannelUpdate;
1732 public constructor(ptr: bigint) {
1734 const node_id: number = bindings.LDKMessageSendEvent_SendChannelUpdate_get_node_id(ptr);
1735 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1736 this.node_id = node_id_conv;
1737 const msg: bigint = bindings.LDKMessageSendEvent_SendChannelUpdate_get_msg(ptr);
1738 const msg_hu_conv: ChannelUpdate = new ChannelUpdate(null, msg);
1739 CommonBase.add_ref_from(msg_hu_conv, this);
1740 this.msg = msg_hu_conv;
1743 /** A MessageSendEvent of type HandleError */
1744 export class MessageSendEvent_HandleError extends MessageSendEvent {
1746 * The node_id of the node which should receive this message
1748 public node_id: Uint8Array;
1750 * The action which should be taken.
1752 public action: ErrorAction;
1754 public constructor(ptr: bigint) {
1756 const node_id: number = bindings.LDKMessageSendEvent_HandleError_get_node_id(ptr);
1757 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1758 this.node_id = node_id_conv;
1759 const action: bigint = bindings.LDKMessageSendEvent_HandleError_get_action(ptr);
1760 const action_hu_conv: ErrorAction = ErrorAction.constr_from_ptr(action);
1761 CommonBase.add_ref_from(action_hu_conv, this);
1762 this.action = action_hu_conv;
1765 /** A MessageSendEvent of type SendChannelRangeQuery */
1766 export class MessageSendEvent_SendChannelRangeQuery extends MessageSendEvent {
1768 * The node_id of this message recipient
1770 public node_id: Uint8Array;
1772 * The query_channel_range which should be sent.
1774 public msg: QueryChannelRange;
1776 public constructor(ptr: bigint) {
1778 const node_id: number = bindings.LDKMessageSendEvent_SendChannelRangeQuery_get_node_id(ptr);
1779 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1780 this.node_id = node_id_conv;
1781 const msg: bigint = bindings.LDKMessageSendEvent_SendChannelRangeQuery_get_msg(ptr);
1782 const msg_hu_conv: QueryChannelRange = new QueryChannelRange(null, msg);
1783 CommonBase.add_ref_from(msg_hu_conv, this);
1784 this.msg = msg_hu_conv;
1787 /** A MessageSendEvent of type SendShortIdsQuery */
1788 export class MessageSendEvent_SendShortIdsQuery extends MessageSendEvent {
1790 * The node_id of this message recipient
1792 public node_id: Uint8Array;
1794 * The query_short_channel_ids which should be sent.
1796 public msg: QueryShortChannelIds;
1798 public constructor(ptr: bigint) {
1800 const node_id: number = bindings.LDKMessageSendEvent_SendShortIdsQuery_get_node_id(ptr);
1801 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1802 this.node_id = node_id_conv;
1803 const msg: bigint = bindings.LDKMessageSendEvent_SendShortIdsQuery_get_msg(ptr);
1804 const msg_hu_conv: QueryShortChannelIds = new QueryShortChannelIds(null, msg);
1805 CommonBase.add_ref_from(msg_hu_conv, this);
1806 this.msg = msg_hu_conv;
1809 /** A MessageSendEvent of type SendReplyChannelRange */
1810 export class MessageSendEvent_SendReplyChannelRange extends MessageSendEvent {
1812 * The node_id of this message recipient
1814 public node_id: Uint8Array;
1816 * The reply_channel_range which should be sent.
1818 public msg: ReplyChannelRange;
1820 public constructor(ptr: bigint) {
1822 const node_id: number = bindings.LDKMessageSendEvent_SendReplyChannelRange_get_node_id(ptr);
1823 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1824 this.node_id = node_id_conv;
1825 const msg: bigint = bindings.LDKMessageSendEvent_SendReplyChannelRange_get_msg(ptr);
1826 const msg_hu_conv: ReplyChannelRange = new ReplyChannelRange(null, msg);
1827 CommonBase.add_ref_from(msg_hu_conv, this);
1828 this.msg = msg_hu_conv;
1831 /** A MessageSendEvent of type SendGossipTimestampFilter */
1832 export class MessageSendEvent_SendGossipTimestampFilter extends MessageSendEvent {
1834 * The node_id of this message recipient
1836 public node_id: Uint8Array;
1838 * The gossip_timestamp_filter which should be sent.
1840 public msg: GossipTimestampFilter;
1842 public constructor(ptr: bigint) {
1844 const node_id: number = bindings.LDKMessageSendEvent_SendGossipTimestampFilter_get_node_id(ptr);
1845 const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
1846 this.node_id = node_id_conv;
1847 const msg: bigint = bindings.LDKMessageSendEvent_SendGossipTimestampFilter_get_msg(ptr);
1848 const msg_hu_conv: GossipTimestampFilter = new GossipTimestampFilter(null, msg);
1849 CommonBase.add_ref_from(msg_hu_conv, this);
1850 this.msg = msg_hu_conv;