Skip to content

Commit 9559614

Browse files
committed
[C#] Update auto-generated bindings
1 parent 720e2d4 commit 9559614

File tree

527 files changed

+58275
-42936
lines changed

Some content is hidden

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

527 files changed

+58275
-42936
lines changed

c_sharp/bindings.c

Lines changed: 23037 additions & 18065 deletions
Large diffs are not rendered by default.

c_sharp/bindings.c.body

Lines changed: 23037 additions & 18065 deletions
Large diffs are not rendered by default.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
namespace org { namespace ldk { namespace enums {/**
2+
* Indicates whether the balance is derived from a cooperative close, a force-close
3+
* (for holder or counterparty), or whether it is for an HTLC.
4+
*/
5+
public enum BalanceSource {
6+
/**
7+
* The channel was force closed by the holder.
8+
*/
9+
LDKBalanceSource_HolderForceClosed,
10+
/**
11+
* The channel was force closed by the counterparty.
12+
*/
13+
LDKBalanceSource_CounterpartyForceClosed,
14+
/**
15+
* The channel was cooperatively closed.
16+
*/
17+
LDKBalanceSource_CoopClose,
18+
/**
19+
* This balance is the result of an HTLC.
20+
*/
21+
LDKBalanceSource_Htlc,
22+
}} } }

c_sharp/src/org/ldk/enums/Bolt12SemanticError.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ public enum Bolt12SemanticError {
110110
* An invoice payment hash was expected but was missing.
111111
*/
112112
LDKBolt12SemanticError_MissingPaymentHash,
113+
/**
114+
* An invoice payment hash was provided but was not expected.
115+
*/
116+
LDKBolt12SemanticError_UnexpectedPaymentHash,
113117
/**
114118
* A signature was expected but was missing.
115119
*/

c_sharp/src/org/ldk/enums/ConfirmationTarget.cs

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,23 @@ namespace org { namespace ldk { namespace enums {/**
33
* estimation.
44
*/
55
public enum ConfirmationTarget {
6+
/**
7+
* The most aggressive (i.e. highest) feerate estimate available.
8+
*
9+
* This is used to sanity-check our counterparty's feerates and should be as conservative as
10+
* possible to ensure that we don't confuse a peer using a very conservative estimator for one
11+
* trying to burn channel balance to dust.
12+
*/
13+
LDKConfirmationTarget_MaximumFeeEstimate,
614
/**
715
* We have some funds available on chain which we need to spend prior to some expiry time at
8-
* which point our counterparty may be able to steal them. Generally we have in the high tens
9-
* to low hundreds of blocks to get our transaction on-chain, but we shouldn't risk too low a
10-
* fee - this should be a relatively high priority feerate.
16+
* which point our counterparty may be able to steal them.
17+
*
18+
* Generally we have in the high tens to low hundreds of blocks to get our transaction
19+
* on-chain (it doesn't have to happen in the next few blocks!), but we shouldn't risk too low
20+
* a fee - this should be a relatively high priority feerate.
1121
*/
12-
LDKConfirmationTarget_OnChainSweep,
22+
LDKConfirmationTarget_UrgentOnChainSweep,
1323
/**
1424
* This is the lowest feerate we will allow our channel counterparty to have in an anchor
1525
* channel in order to close the channel if a channel party goes away.
@@ -91,14 +101,18 @@ public enum ConfirmationTarget {
91101
*/
92102
LDKConfirmationTarget_ChannelCloseMinimum,
93103
/**
94-
* The feerate [`OutputSweeper`] will use on transactions spending
95-
* [`SpendableOutputDescriptor`]s after a channel closure.
104+
* The feerate used to claim on-chain funds when there is no particular urgency to do so.
105+
*
106+
* It is used to get commitment transactions without any HTLCs confirmed in [`ChannelMonitor`]
107+
* and by [`OutputSweeper`] on transactions spending [`SpendableOutputDescriptor`]s after a
108+
* channel closure.
96109
*
97110
* Generally spending these outputs is safe as long as they eventually confirm, so a value
98111
* (slightly above) the mempool minimum should suffice. However, as this value will influence
99112
* how long funds will be unavailable after channel closure, [`FeeEstimator`] implementors
100113
* might want to choose a higher feerate to regain control over funds faster.
101114
*
115+
* [`ChannelMonitor`]: crate::chain::channelmonitor::ChannelMonitor
102116
* [`OutputSweeper`]: crate::util::sweep::OutputSweeper
103117
* [`SpendableOutputDescriptor`]: crate::sign::SpendableOutputDescriptor
104118
*/

c_sharp/src/org/ldk/enums/CreationError.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,11 @@ public enum CreationError {
1919
*/
2020
LDKCreationError_InvalidAmount,
2121
/**
22-
* Route hints were required for this invoice and were missing. Applies to
23-
* [phantom invoices].
24-
*
25-
* [phantom invoices]: crate::utils::create_phantom_invoice
22+
* Route hints were required for this invoice and were missing.
2623
*/
2724
LDKCreationError_MissingRouteHints,
2825
/**
29-
* The provided `min_final_cltv_expiry_delta` was less than [`MIN_FINAL_CLTV_EXPIRY_DELTA`].
30-
*
31-
* [`MIN_FINAL_CLTV_EXPIRY_DELTA`]: lightning::ln::channelmanager::MIN_FINAL_CLTV_EXPIRY_DELTA
26+
* The provided `min_final_cltv_expiry_delta` was less than rust-lightning's minimum.
3227
*/
3328
LDKCreationError_MinFinalCltvExpiryDeltaTooShort,
3429
}} } }

c_sharp/src/org/ldk/enums/Direction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace org { namespace ldk { namespace enums {/**
2-
* The side of a channel that is the [`IntroductionNode`] in a [`BlindedPath`]. [BOLT 7] defines
3-
* which nodes is which in the [`ChannelAnnouncement`] message.
2+
* The side of a channel that is the [`IntroductionNode`] in a blinded path. [BOLT 7] defines which
3+
* nodes is which in the [`ChannelAnnouncement`] message.
44
*
55
* [BOLT 7]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-channel_announcement-message
66
* [`ChannelAnnouncement`]: crate::ln::msgs::ChannelAnnouncement

c_sharp/src/org/ldk/enums/PaymentFailureReason.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ namespace org { namespace ldk { namespace enums {/**
44
public enum PaymentFailureReason {
55
/**
66
* The intended recipient rejected our payment.
7+
*
8+
* Also used for [`UnknownRequiredFeatures`] and [`InvoiceRequestRejected`] when downgrading to
9+
* version prior to 0.0.124.
10+
*
11+
* [`UnknownRequiredFeatures`]: Self::UnknownRequiredFeatures
12+
* [`InvoiceRequestRejected`]: Self::InvoiceRequestRejected
713
*/
814
LDKPaymentFailureReason_RecipientRejected,
915
/**
@@ -25,7 +31,10 @@ public enum PaymentFailureReason {
2531
* The payment expired while retrying, based on the provided
2632
* [`PaymentParameters::expiry_time`].
2733
*
34+
* Also used for [`InvoiceRequestExpired`] when downgrading to version prior to 0.0.124.
35+
*
2836
* [`PaymentParameters::expiry_time`]: crate::routing::router::PaymentParameters::expiry_time
37+
* [`InvoiceRequestExpired`]: Self::InvoiceRequestExpired
2938
*/
3039
LDKPaymentFailureReason_PaymentExpired,
3140
/**
@@ -41,4 +50,18 @@ public enum PaymentFailureReason {
4150
* your router.
4251
*/
4352
LDKPaymentFailureReason_UnexpectedError,
53+
/**
54+
* An invoice was received that required unknown features.
55+
*/
56+
LDKPaymentFailureReason_UnknownRequiredFeatures,
57+
/**
58+
* A [`Bolt12Invoice`] was not received in a reasonable amount of time.
59+
*/
60+
LDKPaymentFailureReason_InvoiceRequestExpired,
61+
/**
62+
* An [`InvoiceRequest`] for the payment was rejected by the recipient.
63+
*
64+
* [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
65+
*/
66+
LDKPaymentFailureReason_InvoiceRequestRejected,
4467
}} } }

c_sharp/src/org/ldk/enums/RetryableSendFailure.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,12 @@ public enum RetryableSendFailure {
2727
* [`Event::PaymentFailed`]: crate::events::Event::PaymentFailed
2828
*/
2929
LDKRetryableSendFailure_DuplicatePayment,
30+
/**
31+
* The [`RecipientOnionFields::payment_metadata`], [`RecipientOnionFields::custom_tlvs`], or
32+
* [`BlindedPaymentPath`]s provided are too large and caused us to exceed the maximum onion
33+
* packet size of 1300 bytes.
34+
*
35+
* [`BlindedPaymentPath`]: crate::blinded_path::payment::BlindedPaymentPath
36+
*/
37+
LDKRetryableSendFailure_OnionPacketSizeExceeded,
3038
}} } }

c_sharp/src/org/ldk/enums/Secp256k1Error.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,8 @@ public enum Secp256k1Error {
4646
* The only valid parity values are 0 or 1.
4747
*/
4848
LDKSecp256k1Error_InvalidParityValue,
49+
/**
50+
* Invalid Elligator Swift Value
51+
*/
52+
LDKSecp256k1Error_InvalidEllSwift,
4953
}} } }

0 commit comments

Comments
 (0)