Skip to content

Commit f04dac7

Browse files
committed
[TS] Update auto-generated bindings to LDK 0.0.118
1 parent 4c43dd4 commit f04dac7

File tree

539 files changed

+21191
-12905
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

539 files changed

+21191
-12905
lines changed

ts/bindings.c

Lines changed: 2337 additions & 1582 deletions
Large diffs are not rendered by default.

ts/bindings.c.body

Lines changed: 2337 additions & 1582 deletions
Large diffs are not rendered by default.

ts/bindings.mts

Lines changed: 1522 additions & 863 deletions
Large diffs are not rendered by default.

ts/index.mts

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ export * from './structs/Result_SpendableOutputDescriptorDecodeErrorZ.mjs';
6363
export * from './structs/Option_u32Z.mjs';
6464
export * from './structs/TwoTuple_CVec_u8ZusizeZ.mjs';
6565
export * from './structs/Result_C2Tuple_CVec_u8ZusizeZNoneZ.mjs';
66+
export * from './structs/ChannelDerivationParameters.mjs';
67+
export * from './structs/Result_ChannelDerivationParametersDecodeErrorZ.mjs';
68+
export * from './structs/HTLCDescriptor.mjs';
69+
export * from './structs/Result_HTLCDescriptorDecodeErrorZ.mjs';
6670
export * from './structs/Result_NoneNoneZ.mjs';
6771
export * from './structs/TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ.mjs';
6872
export * from './structs/Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ.mjs';
@@ -74,7 +78,6 @@ export * from './structs/Result_SchnorrSignatureNoneZ.mjs';
7478
export * from './structs/CommitmentTransaction.mjs';
7579
export * from './structs/HolderCommitmentTransaction.mjs';
7680
export * from './structs/HTLCOutputInCommitment.mjs';
77-
export * from './structs/HTLCDescriptor.mjs';
7881
export * from './structs/ClosingTransaction.mjs';
7982
export * from './structs/UnsignedChannelAnnouncement.mjs';
8083
export * from './structs/ChannelPublicKeys.mjs';
@@ -212,9 +215,6 @@ export * from './structs/NodeInfo.mjs';
212215
export * from './structs/Result_NodeInfoDecodeErrorZ.mjs';
213216
export * from './structs/Result_NetworkGraphDecodeErrorZ.mjs';
214217
export * from './structs/Option_CVec_SocketAddressZZ.mjs';
215-
export * from './structs/ChannelDerivationParameters.mjs';
216-
export * from './structs/Result_ChannelDerivationParametersDecodeErrorZ.mjs';
217-
export * from './structs/Result_HTLCDescriptorDecodeErrorZ.mjs';
218218
export * from './structs/Utxo.mjs';
219219
export * from './structs/Option_TxOutZ.mjs';
220220
export * from './structs/Input.mjs';
@@ -236,7 +236,16 @@ export * from './structs/Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSend
236236
export * from './structs/ProbeSendFailure.mjs';
237237
export * from './structs/Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ.mjs';
238238
export * from './structs/TwoTuple_ThirtyTwoBytesPublicKeyZ.mjs';
239+
export * from './structs/Option_StrZ.mjs';
240+
export * from './structs/Result_NoneBolt12SemanticErrorZ.mjs';
239241
export * from './structs/Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ.mjs';
242+
export * from './structs/InvoiceRequest.mjs';
243+
export * from './structs/Bolt12Invoice.mjs';
244+
export * from './structs/InvoiceError.mjs';
245+
export * from './structs/OffersMessage.mjs';
246+
export * from './structs/Option_OffersMessageZ.mjs';
247+
export * from './structs/Destination.mjs';
248+
export * from './structs/ThreeTuple_OffersMessageDestinationBlindedPathZ.mjs';
240249
export * from './structs/CounterpartyForwardingInfo.mjs';
241250
export * from './structs/Result_CounterpartyForwardingInfoDecodeErrorZ.mjs';
242251
export * from './structs/ChannelCounterparty.mjs';
@@ -283,14 +292,10 @@ export * from './structs/TwoTuple_ThirtyTwoBytesChannelMonitorZ.mjs';
283292
export * from './structs/Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ.mjs';
284293
export * from './structs/Type.mjs';
285294
export * from './structs/TwoTuple_PublicKeyTypeZ.mjs';
286-
export * from './structs/InvoiceRequest.mjs';
287-
export * from './structs/Bolt12Invoice.mjs';
288-
export * from './structs/InvoiceError.mjs';
289-
export * from './structs/OffersMessage.mjs';
290-
export * from './structs/Option_OffersMessageZ.mjs';
291-
export * from './structs/CustomOnionMessageContents.mjs';
292-
export * from './structs/Option_CustomOnionMessageContentsZ.mjs';
293-
export * from './structs/Result_COption_CustomOnionMessageContentsZDecodeErrorZ.mjs';
295+
export * from './structs/OnionMessageContents.mjs';
296+
export * from './structs/Option_OnionMessageContentsZ.mjs';
297+
export * from './structs/Result_COption_OnionMessageContentsZDecodeErrorZ.mjs';
298+
export * from './structs/ThreeTuple_OnionMessageContentsDestinationBlindedPathZ.mjs';
294299
export * from './structs/Option_TypeZ.mjs';
295300
export * from './structs/Result_COption_TypeZDecodeErrorZ.mjs';
296301
export * from './structs/Option_SocketAddressZ.mjs';
@@ -462,6 +467,9 @@ export * from './structs/Result_OnionMessagePathNoneZ.mjs';
462467
export * from './structs/TwoTuple_PublicKeyOnionMessageZ.mjs';
463468
export * from './structs/SendError.mjs';
464469
export * from './structs/Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ.mjs';
470+
export * from './structs/ParsedOnionMessageContents.mjs';
471+
export * from './structs/PeeledOnion.mjs';
472+
export * from './structs/Result_PeeledOnionNoneZ.mjs';
465473
export * from './structs/Result_NoneSendErrorZ.mjs';
466474
export * from './structs/Result_BlindedPathNoneZ.mjs';
467475
export * from './structs/Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ.mjs';
@@ -502,16 +510,15 @@ export * from './structs/FailureCode.mjs';
502510
export * from './structs/ChainParameters.mjs';
503511
export * from './structs/MessageSendEventsProvider.mjs';
504512
export * from './structs/ChannelMessageHandler.mjs';
513+
export * from './structs/OffersMessageHandler.mjs';
505514
export * from './structs/ChannelManagerReadArgs.mjs';
506515
export * from './structs/ExpandedKey.mjs';
507516
export * from './structs/Packet.mjs';
508517
export * from './structs/RoutingMessageHandler.mjs';
509-
export * from './structs/OnionMessageProvider.mjs';
510518
export * from './structs/OnionMessageHandler.mjs';
511519
export * from './structs/CustomMessageReader.mjs';
512520
export * from './structs/CustomMessageHandler.mjs';
513521
export * from './structs/IgnoringMessageHandler.mjs';
514-
export * from './structs/OffersMessageHandler.mjs';
515522
export * from './structs/CustomOnionMessageHandler.mjs';
516523
export * from './structs/ErroringMessageHandler.mjs';
517524
export * from './structs/MessageHandler.mjs';
@@ -538,11 +545,9 @@ export * from './structs/MultiThreadedScoreLockWrite.mjs';
538545
export * from './structs/ProbabilisticScoringDecayParameters.mjs';
539546
export * from './structs/KeysManager.mjs';
540547
export * from './structs/PhantomKeysManager.mjs';
541-
export * from './structs/Destination.mjs';
542548
export * from './structs/MessageRouter.mjs';
543549
export * from './structs/OnionMessenger.mjs';
544550
export * from './structs/DefaultMessageRouter.mjs';
545-
export * from './structs/OnionMessageContents.mjs';
546551
export * from './structs/ForwardNode.mjs';
547552
export * from './structs/ForwardTlvs.mjs';
548553
export * from './structs/CoinSelectionSource.mjs';

ts/structs/APIError.mts

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ import { Result_SpendableOutputDescriptorDecodeErrorZ } from '../structs/Result_
5151
import { Option_u32Z } from '../structs/Option_u32Z.mjs';
5252
import { TwoTuple_CVec_u8ZusizeZ } from '../structs/TwoTuple_CVec_u8ZusizeZ.mjs';
5353
import { Result_C2Tuple_CVec_u8ZusizeZNoneZ } from '../structs/Result_C2Tuple_CVec_u8ZusizeZNoneZ.mjs';
54+
import { ChannelDerivationParameters } from '../structs/ChannelDerivationParameters.mjs';
55+
import { Result_ChannelDerivationParametersDecodeErrorZ } from '../structs/Result_ChannelDerivationParametersDecodeErrorZ.mjs';
56+
import { HTLCDescriptor } from '../structs/HTLCDescriptor.mjs';
57+
import { Result_HTLCDescriptorDecodeErrorZ } from '../structs/Result_HTLCDescriptorDecodeErrorZ.mjs';
5458
import { Result_NoneNoneZ } from '../structs/Result_NoneNoneZ.mjs';
5559
import { TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ } from '../structs/TwoTuple_ECDSASignatureCVec_ECDSASignatureZZ.mjs';
5660
import { Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ } from '../structs/Result_C2Tuple_ECDSASignatureCVec_ECDSASignatureZZNoneZ.mjs';
@@ -62,7 +66,6 @@ import { Result_SchnorrSignatureNoneZ } from '../structs/Result_SchnorrSignature
6266
import { CommitmentTransaction } from '../structs/CommitmentTransaction.mjs';
6367
import { HolderCommitmentTransaction } from '../structs/HolderCommitmentTransaction.mjs';
6468
import { HTLCOutputInCommitment } from '../structs/HTLCOutputInCommitment.mjs';
65-
import { HTLCDescriptor } from '../structs/HTLCDescriptor.mjs';
6669
import { ClosingTransaction } from '../structs/ClosingTransaction.mjs';
6770
import { UnsignedChannelAnnouncement } from '../structs/UnsignedChannelAnnouncement.mjs';
6871
import { ChannelPublicKeys } from '../structs/ChannelPublicKeys.mjs';
@@ -200,9 +203,6 @@ import { NodeInfo } from '../structs/NodeInfo.mjs';
200203
import { Result_NodeInfoDecodeErrorZ } from '../structs/Result_NodeInfoDecodeErrorZ.mjs';
201204
import { Result_NetworkGraphDecodeErrorZ } from '../structs/Result_NetworkGraphDecodeErrorZ.mjs';
202205
import { Option_CVec_SocketAddressZZ } from '../structs/Option_CVec_SocketAddressZZ.mjs';
203-
import { ChannelDerivationParameters } from '../structs/ChannelDerivationParameters.mjs';
204-
import { Result_ChannelDerivationParametersDecodeErrorZ } from '../structs/Result_ChannelDerivationParametersDecodeErrorZ.mjs';
205-
import { Result_HTLCDescriptorDecodeErrorZ } from '../structs/Result_HTLCDescriptorDecodeErrorZ.mjs';
206206
import { Utxo } from '../structs/Utxo.mjs';
207207
import { Option_TxOutZ } from '../structs/Option_TxOutZ.mjs';
208208
import { Input } from '../structs/Input.mjs';
@@ -224,7 +224,16 @@ import { Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ } from
224224
import { ProbeSendFailure } from '../structs/ProbeSendFailure.mjs';
225225
import { Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ } from '../structs/Result_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ.mjs';
226226
import { TwoTuple_ThirtyTwoBytesPublicKeyZ } from '../structs/TwoTuple_ThirtyTwoBytesPublicKeyZ.mjs';
227+
import { Option_StrZ } from '../structs/Option_StrZ.mjs';
228+
import { Result_NoneBolt12SemanticErrorZ } from '../structs/Result_NoneBolt12SemanticErrorZ.mjs';
227229
import { Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ } from '../structs/Result_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ.mjs';
230+
import { InvoiceRequest } from '../structs/InvoiceRequest.mjs';
231+
import { Bolt12Invoice } from '../structs/Bolt12Invoice.mjs';
232+
import { InvoiceError } from '../structs/InvoiceError.mjs';
233+
import { OffersMessage } from '../structs/OffersMessage.mjs';
234+
import { Option_OffersMessageZ } from '../structs/Option_OffersMessageZ.mjs';
235+
import { Destination } from '../structs/Destination.mjs';
236+
import { ThreeTuple_OffersMessageDestinationBlindedPathZ } from '../structs/ThreeTuple_OffersMessageDestinationBlindedPathZ.mjs';
228237
import { CounterpartyForwardingInfo } from '../structs/CounterpartyForwardingInfo.mjs';
229238
import { Result_CounterpartyForwardingInfoDecodeErrorZ } from '../structs/Result_CounterpartyForwardingInfoDecodeErrorZ.mjs';
230239
import { ChannelCounterparty } from '../structs/ChannelCounterparty.mjs';
@@ -271,14 +280,10 @@ import { TwoTuple_ThirtyTwoBytesChannelMonitorZ } from '../structs/TwoTuple_Thir
271280
import { Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ } from '../structs/Result_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ.mjs';
272281
import { Type, TypeInterface } from '../structs/Type.mjs';
273282
import { TwoTuple_PublicKeyTypeZ } from '../structs/TwoTuple_PublicKeyTypeZ.mjs';
274-
import { InvoiceRequest } from '../structs/InvoiceRequest.mjs';
275-
import { Bolt12Invoice } from '../structs/Bolt12Invoice.mjs';
276-
import { InvoiceError } from '../structs/InvoiceError.mjs';
277-
import { OffersMessage } from '../structs/OffersMessage.mjs';
278-
import { Option_OffersMessageZ } from '../structs/Option_OffersMessageZ.mjs';
279-
import { CustomOnionMessageContents, CustomOnionMessageContentsInterface } from '../structs/CustomOnionMessageContents.mjs';
280-
import { Option_CustomOnionMessageContentsZ } from '../structs/Option_CustomOnionMessageContentsZ.mjs';
281-
import { Result_COption_CustomOnionMessageContentsZDecodeErrorZ } from '../structs/Result_COption_CustomOnionMessageContentsZDecodeErrorZ.mjs';
283+
import { OnionMessageContents, OnionMessageContentsInterface } from '../structs/OnionMessageContents.mjs';
284+
import { Option_OnionMessageContentsZ } from '../structs/Option_OnionMessageContentsZ.mjs';
285+
import { Result_COption_OnionMessageContentsZDecodeErrorZ } from '../structs/Result_COption_OnionMessageContentsZDecodeErrorZ.mjs';
286+
import { ThreeTuple_OnionMessageContentsDestinationBlindedPathZ } from '../structs/ThreeTuple_OnionMessageContentsDestinationBlindedPathZ.mjs';
282287
import { Option_TypeZ } from '../structs/Option_TypeZ.mjs';
283288
import { Result_COption_TypeZDecodeErrorZ } from '../structs/Result_COption_TypeZDecodeErrorZ.mjs';
284289
import { Option_SocketAddressZ } from '../structs/Option_SocketAddressZ.mjs';
@@ -450,6 +455,9 @@ import { Result_OnionMessagePathNoneZ } from '../structs/Result_OnionMessagePath
450455
import { TwoTuple_PublicKeyOnionMessageZ } from '../structs/TwoTuple_PublicKeyOnionMessageZ.mjs';
451456
import { SendError } from '../structs/SendError.mjs';
452457
import { Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ } from '../structs/Result_C2Tuple_PublicKeyOnionMessageZSendErrorZ.mjs';
458+
import { ParsedOnionMessageContents } from '../structs/ParsedOnionMessageContents.mjs';
459+
import { PeeledOnion } from '../structs/PeeledOnion.mjs';
460+
import { Result_PeeledOnionNoneZ } from '../structs/Result_PeeledOnionNoneZ.mjs';
453461
import { Result_NoneSendErrorZ } from '../structs/Result_NoneSendErrorZ.mjs';
454462
import { Result_BlindedPathNoneZ } from '../structs/Result_BlindedPathNoneZ.mjs';
455463
import { Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ } from '../structs/Result_C2Tuple_BlindedPayInfoBlindedPathZNoneZ.mjs';
@@ -490,16 +498,15 @@ import { FailureCode } from '../structs/FailureCode.mjs';
490498
import { ChainParameters } from '../structs/ChainParameters.mjs';
491499
import { MessageSendEventsProvider, MessageSendEventsProviderInterface } from '../structs/MessageSendEventsProvider.mjs';
492500
import { ChannelMessageHandler, ChannelMessageHandlerInterface } from '../structs/ChannelMessageHandler.mjs';
501+
import { OffersMessageHandler, OffersMessageHandlerInterface } from '../structs/OffersMessageHandler.mjs';
493502
import { ChannelManagerReadArgs } from '../structs/ChannelManagerReadArgs.mjs';
494503
import { ExpandedKey } from '../structs/ExpandedKey.mjs';
495504
import { Packet } from '../structs/Packet.mjs';
496505
import { RoutingMessageHandler, RoutingMessageHandlerInterface } from '../structs/RoutingMessageHandler.mjs';
497-
import { OnionMessageProvider, OnionMessageProviderInterface } from '../structs/OnionMessageProvider.mjs';
498506
import { OnionMessageHandler, OnionMessageHandlerInterface } from '../structs/OnionMessageHandler.mjs';
499507
import { CustomMessageReader, CustomMessageReaderInterface } from '../structs/CustomMessageReader.mjs';
500508
import { CustomMessageHandler, CustomMessageHandlerInterface } from '../structs/CustomMessageHandler.mjs';
501509
import { IgnoringMessageHandler } from '../structs/IgnoringMessageHandler.mjs';
502-
import { OffersMessageHandler, OffersMessageHandlerInterface } from '../structs/OffersMessageHandler.mjs';
503510
import { CustomOnionMessageHandler, CustomOnionMessageHandlerInterface } from '../structs/CustomOnionMessageHandler.mjs';
504511
import { ErroringMessageHandler } from '../structs/ErroringMessageHandler.mjs';
505512
import { MessageHandler } from '../structs/MessageHandler.mjs';
@@ -526,11 +533,9 @@ import { MultiThreadedScoreLockWrite } from '../structs/MultiThreadedScoreLockWr
526533
import { ProbabilisticScoringDecayParameters } from '../structs/ProbabilisticScoringDecayParameters.mjs';
527534
import { KeysManager } from '../structs/KeysManager.mjs';
528535
import { PhantomKeysManager } from '../structs/PhantomKeysManager.mjs';
529-
import { Destination } from '../structs/Destination.mjs';
530536
import { MessageRouter, MessageRouterInterface } from '../structs/MessageRouter.mjs';
531537
import { OnionMessenger } from '../structs/OnionMessenger.mjs';
532538
import { DefaultMessageRouter } from '../structs/DefaultMessageRouter.mjs';
533-
import { OnionMessageContents } from '../structs/OnionMessageContents.mjs';
534539
import { ForwardNode } from '../structs/ForwardNode.mjs';
535540
import { ForwardTlvs } from '../structs/ForwardTlvs.mjs';
536541
import { CoinSelectionSource, CoinSelectionSourceInterface } from '../structs/CoinSelectionSource.mjs';

0 commit comments

Comments
 (0)