Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
140,230 changes: 74,353 additions & 65,877 deletions c_sharp/bindings.c

Large diffs are not rendered by default.

140,230 changes: 74,353 additions & 65,877 deletions c_sharp/bindings.c.body

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions c_sharp/src/org/ldk/enums/BlindedFailure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ namespace org { namespace ldk { namespace enums {/**
public enum BlindedFailure {
/**
* This HTLC is being failed backwards by the introduction node, and thus should be failed with
* [`msgs::UpdateFailHTLC`] and error code `0x8000|0x4000|24`.
* [`msgs::UpdateFailHTLC`] and error code [`LocalHTLCFailureReason::InvalidOnionBlinding`].
*/
LDKBlindedFailure_FromIntroductionNode,
/**
* This HTLC is being failed backwards by a blinded node within the path, and thus should be
* failed with [`msgs::UpdateFailMalformedHTLC`] and error code `0x8000|0x4000|24`.
* failed with [`msgs::UpdateFailMalformedHTLC`] and error code
* [`LocalHTLCFailureReason::InvalidOnionBlinding`].
*/
LDKBlindedFailure_FromBlindedNode,
}} } }
4 changes: 0 additions & 4 deletions c_sharp/src/org/ldk/enums/Bolt11SemanticError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ public enum Bolt11SemanticError {
* The invoice's features are invalid
*/
LDKBolt11SemanticError_InvalidFeatures,
/**
* The recovery id doesn't fit the signature/pub key
*/
LDKBolt11SemanticError_InvalidRecoveryId,
/**
* The invoice's signature is invalid
*/
Expand Down
4 changes: 4 additions & 0 deletions c_sharp/src/org/ldk/enums/Bolt12SemanticError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public enum Bolt12SemanticError {
* The amount exceeded the total bitcoin supply or didn't match an expected amount.
*/
LDKBolt12SemanticError_InvalidAmount,
/**
* The currency code did not contain valid ASCII uppercase letters.
*/
LDKBolt12SemanticError_InvalidCurrencyCode,
/**
* An amount was provided but was not sufficient in value.
*/
Expand Down
11 changes: 11 additions & 0 deletions c_sharp/src/org/ldk/enums/ChannelMonitorUpdateStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ public enum ChannelMonitorUpdateStatus {
*
* This includes performing any `fsync()` calls required to ensure the update is guaranteed to
* be available on restart even if the application crashes.
*
* If you return this variant, you cannot later return [`InProgress`] from the same instance of
* [`Persist`]/[`Watch`] without first restarting.
*
* [`InProgress`]: ChannelMonitorUpdateStatus::InProgress
* [`Persist`]: chainmonitor::Persist
*/
LDKChannelMonitorUpdateStatus_Completed,
/**
Expand Down Expand Up @@ -54,7 +60,12 @@ public enum ChannelMonitorUpdateStatus {
* reliable, this feature is considered beta, and a handful of edge-cases remain. Until the
* remaining cases are fixed, in rare cases, *using this feature may lead to funds loss*.
*
* If you return this variant, you cannot later return [`Completed`] from the same instance of
* [`Persist`]/[`Watch`] without first restarting.
*
* [`InProgress`]: ChannelMonitorUpdateStatus::InProgress
* [`Completed`]: ChannelMonitorUpdateStatus::Completed
* [`Persist`]: chainmonitor::Persist
*/
LDKChannelMonitorUpdateStatus_InProgress,
/**
Expand Down
7 changes: 5 additions & 2 deletions c_sharp/src/org/ldk/enums/ConfirmationTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ namespace org { namespace ldk { namespace enums {/**
*/
public enum ConfirmationTarget {
/**
* The most aggressive (i.e. highest) feerate estimate available.
* The most aggressive feerate estimate which we think is reasonable.
*
* This is used to sanity-check our counterparty's feerates and should be as conservative as
* possible to ensure that we don't confuse a peer using a very conservative estimator for one
* trying to burn channel balance to dust.
* trying to burn channel balance to dust. To ensure that this is never lower than an honest
* counterparty's feerate estimate you may wish to use a value which is higher than your
* maximum feerate estimate, for example by adding a constant few-hundred or few-thousand
* sats-per-kW.
*/
LDKConfirmationTarget_MaximumFeeEstimate,
/**
Expand Down
9 changes: 9 additions & 0 deletions c_sharp/src/org/ldk/enums/FundingLockedFlags.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace org { namespace ldk { namespace enums {/**
* Bit positions used in [`FundingLocked::retransmit_flags`] for requesting message retransmission.
*/
public enum FundingLockedFlags {
/**
* Retransmit `announcement_signatures`.
*/
LDKFundingLockedFlags_AnnouncementSignatures,
}} } }
17 changes: 0 additions & 17 deletions c_sharp/src/org/ldk/enums/LSPS1OrderState.cs

This file was deleted.

20 changes: 0 additions & 20 deletions c_sharp/src/org/ldk/enums/LSPS1PaymentState.cs

This file was deleted.

9 changes: 9 additions & 0 deletions c_sharp/src/org/ldk/enums/NextFundingFlag.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace org { namespace ldk { namespace enums {/**
* Bit positions used in [`NextFunding::retransmit_flags`] for requesting message retransmission.
*/
public enum NextFundingFlag {
/**
* Retransmit `commitment_signed`.
*/
LDKNextFundingFlag_CommitmentSigned,
}} } }
4 changes: 2 additions & 2 deletions c_sharp/src/org/ldk/enums/PaymentFailureReason.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public enum PaymentFailureReason {
*/
LDKPaymentFailureReason_RetriesExhausted,
/**
* The payment expired while retrying, based on the provided
* [`PaymentParameters::expiry_time`].
* Either the BOLT 12 invoice was expired by the time we received it or the payment expired while
* retrying based on the provided [`PaymentParameters::expiry_time`].
*
* Also used for [`InvoiceRequestExpired`] when downgrading to version prior to 0.0.124.
*
Expand Down
5 changes: 4 additions & 1 deletion c_sharp/src/org/ldk/enums/RetryableSendFailure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ namespace org { namespace ldk { namespace enums {/**
*/
public enum RetryableSendFailure {
/**
* The provided [`PaymentParameters::expiry_time`] indicated that the payment has expired.
* The provided [`PaymentParameters::expiry_time`] indicated that the payment has expired or
* the BOLT 12 invoice paid to via [`ChannelManager::send_payment_for_bolt12_invoice`] was
* expired.
*
* Note that this error is *not* caused by [`Retry::Timeout`].
*
* [`PaymentParameters::expiry_time`]: crate::routing::router::PaymentParameters::expiry_time
* [`ChannelManager::send_payment_for_bolt12_invoice`]: crate::ln::channelmanager::ChannelManager::send_payment_for_bolt12_invoice
*/
LDKRetryableSendFailure_PaymentExpired,
/**
Expand Down
Loading
Loading