Skip to content

Commit e2bd922

Browse files
committed
[TS] Update auto-generated TS bindings to LDK 0.0.110
1 parent 8f5edad commit e2bd922

File tree

347 files changed

+6686
-865
lines changed

Some content is hidden

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

347 files changed

+6686
-865
lines changed

ts/bindings.c

Lines changed: 1004 additions & 169 deletions
Large diffs are not rendered by default.

ts/bindings.c.body

Lines changed: 1004 additions & 169 deletions
Large diffs are not rendered by default.

ts/bindings.mts

Lines changed: 702 additions & 114 deletions
Large diffs are not rendered by default.

ts/index.mts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ export * from './structs/Result_PaymentPurposeDecodeErrorZ.mjs';
7777
export * from './structs/ClosureReason.mjs';
7878
export * from './structs/Option_ClosureReasonZ.mjs';
7979
export * from './structs/Result_COption_ClosureReasonZDecodeErrorZ.mjs';
80+
export * from './structs/HTLCDestination.mjs';
81+
export * from './structs/Option_HTLCDestinationZ.mjs';
82+
export * from './structs/Result_COption_HTLCDestinationZDecodeErrorZ.mjs';
8083
export * from './structs/ChannelUpdate.mjs';
8184
export * from './structs/NetworkUpdate.mjs';
8285
export * from './structs/Option_NetworkUpdateZ.mjs';
@@ -114,7 +117,7 @@ export * from './structs/TwoTuple_usizeTransactionZ.mjs';
114117
export * from './structs/Result_NoneChannelMonitorUpdateErrZ.mjs';
115118
export * from './structs/HTLCUpdate.mjs';
116119
export * from './structs/MonitorEvent.mjs';
117-
export * from './structs/TwoTuple_OutPointCVec_MonitorEventZZ.mjs';
120+
export * from './structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.mjs';
118121
export * from './structs/Option_C2Tuple_usizeTransactionZZ.mjs';
119122
export * from './structs/FixedPenaltyScorer.mjs';
120123
export * from './structs/Result_FixedPenaltyScorerDecodeErrorZ.mjs';
@@ -148,6 +151,7 @@ export * from './structs/ChannelInfo.mjs';
148151
export * from './structs/Result_ChannelInfoDecodeErrorZ.mjs';
149152
export * from './structs/RoutingFees.mjs';
150153
export * from './structs/Result_RoutingFeesDecodeErrorZ.mjs';
154+
export * from './structs/Hostname.mjs';
151155
export * from './structs/NetAddress.mjs';
152156
export * from './structs/NodeAnnouncementInfo.mjs';
153157
export * from './structs/Result_NodeAnnouncementInfoDecodeErrorZ.mjs';

ts/structs/APIError.mts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ import { Result_PaymentPurposeDecodeErrorZ } from '../structs/Result_PaymentPurp
6767
import { ClosureReason } from '../structs/ClosureReason.mjs';
6868
import { Option_ClosureReasonZ } from '../structs/Option_ClosureReasonZ.mjs';
6969
import { Result_COption_ClosureReasonZDecodeErrorZ } from '../structs/Result_COption_ClosureReasonZDecodeErrorZ.mjs';
70+
import { HTLCDestination } from '../structs/HTLCDestination.mjs';
71+
import { Option_HTLCDestinationZ } from '../structs/Option_HTLCDestinationZ.mjs';
72+
import { Result_COption_HTLCDestinationZDecodeErrorZ } from '../structs/Result_COption_HTLCDestinationZDecodeErrorZ.mjs';
7073
import { ChannelUpdate } from '../structs/ChannelUpdate.mjs';
7174
import { NetworkUpdate } from '../structs/NetworkUpdate.mjs';
7275
import { Option_NetworkUpdateZ } from '../structs/Option_NetworkUpdateZ.mjs';
@@ -104,7 +107,7 @@ import { TwoTuple_usizeTransactionZ } from '../structs/TwoTuple_usizeTransaction
104107
import { Result_NoneChannelMonitorUpdateErrZ } from '../structs/Result_NoneChannelMonitorUpdateErrZ.mjs';
105108
import { HTLCUpdate } from '../structs/HTLCUpdate.mjs';
106109
import { MonitorEvent } from '../structs/MonitorEvent.mjs';
107-
import { TwoTuple_OutPointCVec_MonitorEventZZ } from '../structs/TwoTuple_OutPointCVec_MonitorEventZZ.mjs';
110+
import { ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ } from '../structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.mjs';
108111
import { Option_C2Tuple_usizeTransactionZZ } from '../structs/Option_C2Tuple_usizeTransactionZZ.mjs';
109112
import { FixedPenaltyScorer } from '../structs/FixedPenaltyScorer.mjs';
110113
import { Result_FixedPenaltyScorerDecodeErrorZ } from '../structs/Result_FixedPenaltyScorerDecodeErrorZ.mjs';
@@ -138,6 +141,7 @@ import { ChannelInfo } from '../structs/ChannelInfo.mjs';
138141
import { Result_ChannelInfoDecodeErrorZ } from '../structs/Result_ChannelInfoDecodeErrorZ.mjs';
139142
import { RoutingFees } from '../structs/RoutingFees.mjs';
140143
import { Result_RoutingFeesDecodeErrorZ } from '../structs/Result_RoutingFeesDecodeErrorZ.mjs';
144+
import { Hostname } from '../structs/Hostname.mjs';
141145
import { NetAddress } from '../structs/NetAddress.mjs';
142146
import { NodeAnnouncementInfo } from '../structs/NodeAnnouncementInfo.mjs';
143147
import { Result_NodeAnnouncementInfoDecodeErrorZ } from '../structs/Result_NodeAnnouncementInfoDecodeErrorZ.mjs';

ts/structs/AcceptChannel.mts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ import { Result_PaymentPurposeDecodeErrorZ } from '../structs/Result_PaymentPurp
6767
import { ClosureReason } from '../structs/ClosureReason.mjs';
6868
import { Option_ClosureReasonZ } from '../structs/Option_ClosureReasonZ.mjs';
6969
import { Result_COption_ClosureReasonZDecodeErrorZ } from '../structs/Result_COption_ClosureReasonZDecodeErrorZ.mjs';
70+
import { HTLCDestination } from '../structs/HTLCDestination.mjs';
71+
import { Option_HTLCDestinationZ } from '../structs/Option_HTLCDestinationZ.mjs';
72+
import { Result_COption_HTLCDestinationZDecodeErrorZ } from '../structs/Result_COption_HTLCDestinationZDecodeErrorZ.mjs';
7073
import { ChannelUpdate } from '../structs/ChannelUpdate.mjs';
7174
import { NetworkUpdate } from '../structs/NetworkUpdate.mjs';
7275
import { Option_NetworkUpdateZ } from '../structs/Option_NetworkUpdateZ.mjs';
@@ -103,7 +106,7 @@ import { TwoTuple_usizeTransactionZ } from '../structs/TwoTuple_usizeTransaction
103106
import { Result_NoneChannelMonitorUpdateErrZ } from '../structs/Result_NoneChannelMonitorUpdateErrZ.mjs';
104107
import { HTLCUpdate } from '../structs/HTLCUpdate.mjs';
105108
import { MonitorEvent } from '../structs/MonitorEvent.mjs';
106-
import { TwoTuple_OutPointCVec_MonitorEventZZ } from '../structs/TwoTuple_OutPointCVec_MonitorEventZZ.mjs';
109+
import { ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ } from '../structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.mjs';
107110
import { Option_C2Tuple_usizeTransactionZZ } from '../structs/Option_C2Tuple_usizeTransactionZZ.mjs';
108111
import { FixedPenaltyScorer } from '../structs/FixedPenaltyScorer.mjs';
109112
import { Result_FixedPenaltyScorerDecodeErrorZ } from '../structs/Result_FixedPenaltyScorerDecodeErrorZ.mjs';
@@ -137,6 +140,7 @@ import { ChannelInfo } from '../structs/ChannelInfo.mjs';
137140
import { Result_ChannelInfoDecodeErrorZ } from '../structs/Result_ChannelInfoDecodeErrorZ.mjs';
138141
import { RoutingFees } from '../structs/RoutingFees.mjs';
139142
import { Result_RoutingFeesDecodeErrorZ } from '../structs/Result_RoutingFeesDecodeErrorZ.mjs';
143+
import { Hostname } from '../structs/Hostname.mjs';
140144
import { NetAddress } from '../structs/NetAddress.mjs';
141145
import { NodeAnnouncementInfo } from '../structs/NodeAnnouncementInfo.mjs';
142146
import { Result_NodeAnnouncementInfoDecodeErrorZ } from '../structs/Result_NodeAnnouncementInfoDecodeErrorZ.mjs';

ts/structs/Access.mts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ import { Result_PaymentPurposeDecodeErrorZ } from '../structs/Result_PaymentPurp
6767
import { ClosureReason } from '../structs/ClosureReason.mjs';
6868
import { Option_ClosureReasonZ } from '../structs/Option_ClosureReasonZ.mjs';
6969
import { Result_COption_ClosureReasonZDecodeErrorZ } from '../structs/Result_COption_ClosureReasonZDecodeErrorZ.mjs';
70+
import { HTLCDestination } from '../structs/HTLCDestination.mjs';
71+
import { Option_HTLCDestinationZ } from '../structs/Option_HTLCDestinationZ.mjs';
72+
import { Result_COption_HTLCDestinationZDecodeErrorZ } from '../structs/Result_COption_HTLCDestinationZDecodeErrorZ.mjs';
7073
import { ChannelUpdate } from '../structs/ChannelUpdate.mjs';
7174
import { NetworkUpdate } from '../structs/NetworkUpdate.mjs';
7275
import { Option_NetworkUpdateZ } from '../structs/Option_NetworkUpdateZ.mjs';
@@ -104,7 +107,7 @@ import { TwoTuple_usizeTransactionZ } from '../structs/TwoTuple_usizeTransaction
104107
import { Result_NoneChannelMonitorUpdateErrZ } from '../structs/Result_NoneChannelMonitorUpdateErrZ.mjs';
105108
import { HTLCUpdate } from '../structs/HTLCUpdate.mjs';
106109
import { MonitorEvent } from '../structs/MonitorEvent.mjs';
107-
import { TwoTuple_OutPointCVec_MonitorEventZZ } from '../structs/TwoTuple_OutPointCVec_MonitorEventZZ.mjs';
110+
import { ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ } from '../structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.mjs';
108111
import { Option_C2Tuple_usizeTransactionZZ } from '../structs/Option_C2Tuple_usizeTransactionZZ.mjs';
109112
import { FixedPenaltyScorer } from '../structs/FixedPenaltyScorer.mjs';
110113
import { Result_FixedPenaltyScorerDecodeErrorZ } from '../structs/Result_FixedPenaltyScorerDecodeErrorZ.mjs';
@@ -137,6 +140,7 @@ import { ChannelInfo } from '../structs/ChannelInfo.mjs';
137140
import { Result_ChannelInfoDecodeErrorZ } from '../structs/Result_ChannelInfoDecodeErrorZ.mjs';
138141
import { RoutingFees } from '../structs/RoutingFees.mjs';
139142
import { Result_RoutingFeesDecodeErrorZ } from '../structs/Result_RoutingFeesDecodeErrorZ.mjs';
143+
import { Hostname } from '../structs/Hostname.mjs';
140144
import { NetAddress } from '../structs/NetAddress.mjs';
141145
import { NodeAnnouncementInfo } from '../structs/NodeAnnouncementInfo.mjs';
142146
import { Result_NodeAnnouncementInfoDecodeErrorZ } from '../structs/Result_NodeAnnouncementInfoDecodeErrorZ.mjs';

ts/structs/AnnouncementSignatures.mts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ import { Result_PaymentPurposeDecodeErrorZ } from '../structs/Result_PaymentPurp
6767
import { ClosureReason } from '../structs/ClosureReason.mjs';
6868
import { Option_ClosureReasonZ } from '../structs/Option_ClosureReasonZ.mjs';
6969
import { Result_COption_ClosureReasonZDecodeErrorZ } from '../structs/Result_COption_ClosureReasonZDecodeErrorZ.mjs';
70+
import { HTLCDestination } from '../structs/HTLCDestination.mjs';
71+
import { Option_HTLCDestinationZ } from '../structs/Option_HTLCDestinationZ.mjs';
72+
import { Result_COption_HTLCDestinationZDecodeErrorZ } from '../structs/Result_COption_HTLCDestinationZDecodeErrorZ.mjs';
7073
import { ChannelUpdate } from '../structs/ChannelUpdate.mjs';
7174
import { NetworkUpdate } from '../structs/NetworkUpdate.mjs';
7275
import { Option_NetworkUpdateZ } from '../structs/Option_NetworkUpdateZ.mjs';
@@ -103,7 +106,7 @@ import { TwoTuple_usizeTransactionZ } from '../structs/TwoTuple_usizeTransaction
103106
import { Result_NoneChannelMonitorUpdateErrZ } from '../structs/Result_NoneChannelMonitorUpdateErrZ.mjs';
104107
import { HTLCUpdate } from '../structs/HTLCUpdate.mjs';
105108
import { MonitorEvent } from '../structs/MonitorEvent.mjs';
106-
import { TwoTuple_OutPointCVec_MonitorEventZZ } from '../structs/TwoTuple_OutPointCVec_MonitorEventZZ.mjs';
109+
import { ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ } from '../structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.mjs';
107110
import { Option_C2Tuple_usizeTransactionZZ } from '../structs/Option_C2Tuple_usizeTransactionZZ.mjs';
108111
import { FixedPenaltyScorer } from '../structs/FixedPenaltyScorer.mjs';
109112
import { Result_FixedPenaltyScorerDecodeErrorZ } from '../structs/Result_FixedPenaltyScorerDecodeErrorZ.mjs';
@@ -137,6 +140,7 @@ import { ChannelInfo } from '../structs/ChannelInfo.mjs';
137140
import { Result_ChannelInfoDecodeErrorZ } from '../structs/Result_ChannelInfoDecodeErrorZ.mjs';
138141
import { RoutingFees } from '../structs/RoutingFees.mjs';
139142
import { Result_RoutingFeesDecodeErrorZ } from '../structs/Result_RoutingFeesDecodeErrorZ.mjs';
143+
import { Hostname } from '../structs/Hostname.mjs';
140144
import { NetAddress } from '../structs/NetAddress.mjs';
141145
import { NodeAnnouncementInfo } from '../structs/NodeAnnouncementInfo.mjs';
142146
import { Result_NodeAnnouncementInfoDecodeErrorZ } from '../structs/Result_NodeAnnouncementInfoDecodeErrorZ.mjs';

ts/structs/Balance.mts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ import { Result_PaymentPurposeDecodeErrorZ } from '../structs/Result_PaymentPurp
6767
import { ClosureReason } from '../structs/ClosureReason.mjs';
6868
import { Option_ClosureReasonZ } from '../structs/Option_ClosureReasonZ.mjs';
6969
import { Result_COption_ClosureReasonZDecodeErrorZ } from '../structs/Result_COption_ClosureReasonZDecodeErrorZ.mjs';
70+
import { HTLCDestination } from '../structs/HTLCDestination.mjs';
71+
import { Option_HTLCDestinationZ } from '../structs/Option_HTLCDestinationZ.mjs';
72+
import { Result_COption_HTLCDestinationZDecodeErrorZ } from '../structs/Result_COption_HTLCDestinationZDecodeErrorZ.mjs';
7073
import { ChannelUpdate } from '../structs/ChannelUpdate.mjs';
7174
import { NetworkUpdate } from '../structs/NetworkUpdate.mjs';
7275
import { Option_NetworkUpdateZ } from '../structs/Option_NetworkUpdateZ.mjs';
@@ -104,7 +107,7 @@ import { TwoTuple_usizeTransactionZ } from '../structs/TwoTuple_usizeTransaction
104107
import { Result_NoneChannelMonitorUpdateErrZ } from '../structs/Result_NoneChannelMonitorUpdateErrZ.mjs';
105108
import { HTLCUpdate } from '../structs/HTLCUpdate.mjs';
106109
import { MonitorEvent } from '../structs/MonitorEvent.mjs';
107-
import { TwoTuple_OutPointCVec_MonitorEventZZ } from '../structs/TwoTuple_OutPointCVec_MonitorEventZZ.mjs';
110+
import { ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ } from '../structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.mjs';
108111
import { Option_C2Tuple_usizeTransactionZZ } from '../structs/Option_C2Tuple_usizeTransactionZZ.mjs';
109112
import { FixedPenaltyScorer } from '../structs/FixedPenaltyScorer.mjs';
110113
import { Result_FixedPenaltyScorerDecodeErrorZ } from '../structs/Result_FixedPenaltyScorerDecodeErrorZ.mjs';
@@ -138,6 +141,7 @@ import { ChannelInfo } from '../structs/ChannelInfo.mjs';
138141
import { Result_ChannelInfoDecodeErrorZ } from '../structs/Result_ChannelInfoDecodeErrorZ.mjs';
139142
import { RoutingFees } from '../structs/RoutingFees.mjs';
140143
import { Result_RoutingFeesDecodeErrorZ } from '../structs/Result_RoutingFeesDecodeErrorZ.mjs';
144+
import { Hostname } from '../structs/Hostname.mjs';
141145
import { NetAddress } from '../structs/NetAddress.mjs';
142146
import { NodeAnnouncementInfo } from '../structs/NodeAnnouncementInfo.mjs';
143147
import { Result_NodeAnnouncementInfoDecodeErrorZ } from '../structs/Result_NodeAnnouncementInfoDecodeErrorZ.mjs';

ts/structs/BaseSign.mts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ import { Result_PaymentPurposeDecodeErrorZ } from '../structs/Result_PaymentPurp
6767
import { ClosureReason } from '../structs/ClosureReason.mjs';
6868
import { Option_ClosureReasonZ } from '../structs/Option_ClosureReasonZ.mjs';
6969
import { Result_COption_ClosureReasonZDecodeErrorZ } from '../structs/Result_COption_ClosureReasonZDecodeErrorZ.mjs';
70+
import { HTLCDestination } from '../structs/HTLCDestination.mjs';
71+
import { Option_HTLCDestinationZ } from '../structs/Option_HTLCDestinationZ.mjs';
72+
import { Result_COption_HTLCDestinationZDecodeErrorZ } from '../structs/Result_COption_HTLCDestinationZDecodeErrorZ.mjs';
7073
import { ChannelUpdate } from '../structs/ChannelUpdate.mjs';
7174
import { NetworkUpdate } from '../structs/NetworkUpdate.mjs';
7275
import { Option_NetworkUpdateZ } from '../structs/Option_NetworkUpdateZ.mjs';
@@ -104,7 +107,7 @@ import { TwoTuple_usizeTransactionZ } from '../structs/TwoTuple_usizeTransaction
104107
import { Result_NoneChannelMonitorUpdateErrZ } from '../structs/Result_NoneChannelMonitorUpdateErrZ.mjs';
105108
import { HTLCUpdate } from '../structs/HTLCUpdate.mjs';
106109
import { MonitorEvent } from '../structs/MonitorEvent.mjs';
107-
import { TwoTuple_OutPointCVec_MonitorEventZZ } from '../structs/TwoTuple_OutPointCVec_MonitorEventZZ.mjs';
110+
import { ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ } from '../structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.mjs';
108111
import { Option_C2Tuple_usizeTransactionZZ } from '../structs/Option_C2Tuple_usizeTransactionZZ.mjs';
109112
import { FixedPenaltyScorer } from '../structs/FixedPenaltyScorer.mjs';
110113
import { Result_FixedPenaltyScorerDecodeErrorZ } from '../structs/Result_FixedPenaltyScorerDecodeErrorZ.mjs';
@@ -138,6 +141,7 @@ import { ChannelInfo } from '../structs/ChannelInfo.mjs';
138141
import { Result_ChannelInfoDecodeErrorZ } from '../structs/Result_ChannelInfoDecodeErrorZ.mjs';
139142
import { RoutingFees } from '../structs/RoutingFees.mjs';
140143
import { Result_RoutingFeesDecodeErrorZ } from '../structs/Result_RoutingFeesDecodeErrorZ.mjs';
144+
import { Hostname } from '../structs/Hostname.mjs';
141145
import { NetAddress } from '../structs/NetAddress.mjs';
142146
import { NodeAnnouncementInfo } from '../structs/NodeAnnouncementInfo.mjs';
143147
import { Result_NodeAnnouncementInfoDecodeErrorZ } from '../structs/Result_NodeAnnouncementInfoDecodeErrorZ.mjs';

0 commit comments

Comments
 (0)