Skip to content

Commit 592c64e

Browse files
committed
[C#] Update auto-generated bindings to LDK 0.0.123
1 parent 12fdbef commit 592c64e

File tree

497 files changed

+35171
-11243
lines changed

Some content is hidden

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

497 files changed

+35171
-11243
lines changed

c_sharp/bindings.c

+10,532-3,618
Large diffs are not rendered by default.

c_sharp/bindings.c.body

+10,532-3,618
Large diffs are not rendered by default.

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

+4
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ public enum Bolt12SemanticError {
9494
* Blinded paths were expected but were missing.
9595
*/
9696
LDKBolt12SemanticError_MissingPaths,
97+
/**
98+
* Blinded paths were provided but were not expected.
99+
*/
100+
LDKBolt12SemanticError_UnexpectedPaths,
97101
/**
98102
* The blinded payinfo given does not match the number of blinded path hops.
99103
*/

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

+13
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,17 @@ public enum ConfirmationTarget {
9090
* [`ChannelManager::close_channel_with_feerate_and_script`]: crate::ln::channelmanager::ChannelManager::close_channel_with_feerate_and_script
9191
*/
9292
LDKConfirmationTarget_ChannelCloseMinimum,
93+
/**
94+
* The feerate [`OutputSweeper`] will use on transactions spending
95+
* [`SpendableOutputDescriptor`]s after a channel closure.
96+
*
97+
* Generally spending these outputs is safe as long as they eventually confirm, so a value
98+
* (slightly above) the mempool minimum should suffice. However, as this value will influence
99+
* how long funds will be unavailable after channel closure, [`FeeEstimator`] implementors
100+
* might want to choose a higher feerate to regain control over funds faster.
101+
*
102+
* [`OutputSweeper`]: crate::util::sweep::OutputSweeper
103+
* [`SpendableOutputDescriptor`]: crate::sign::SpendableOutputDescriptor
104+
*/
105+
LDKConfirmationTarget_OutputSpendingFee,
93106
}} } }
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
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.
4+
*
5+
* [BOLT 7]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-channel_announcement-message
6+
* [`ChannelAnnouncement`]: crate::ln::msgs::ChannelAnnouncement
7+
*/
8+
public enum Direction {
9+
/**
10+
* The lesser node id when compared lexicographically in ascending order.
11+
*/
12+
LDKDirection_NodeOne,
13+
/**
14+
* The greater node id when compared lexicographically in ascending order.
15+
*/
16+
LDKDirection_NodeTwo,
17+
}} } }

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

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ public enum PaymentFailureReason {
3030
LDKPaymentFailureReason_PaymentExpired,
3131
/**
3232
* We failed to find a route while retrying the payment.
33+
*
34+
* Note that this generally indicates that we've exhausted the available set of possible
35+
* routes - we tried the payment over a few routes but were not able to find any further
36+
* candidate routes beyond those.
3337
*/
3438
LDKPaymentFailureReason_RouteNotFound,
3539
/**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
namespace org { namespace ldk { namespace enums {/**
2+
* A `short_channel_id` construction error
3+
*/
4+
public enum ShortChannelIdError {
5+
/**
6+
* Block height too high
7+
*/
8+
LDKShortChannelIdError_BlockOverflow,
9+
/**
10+
* Tx index too high
11+
*/
12+
LDKShortChannelIdError_TxIndexOverflow,
13+
/**
14+
* Vout index too high
15+
*/
16+
LDKShortChannelIdError_VoutIndexOverflow,
17+
}} } }

c_sharp/src/org/ldk/impl/bindings.cs

+2,081-832
Large diffs are not rendered by default.

c_sharp/src/org/ldk/structs/APIError.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public static APIError monitor_update_in_progress() {
182182
* Utility method to constructs a new IncompatibleShutdownScript-variant APIError
183183
*/
184184
public static APIError incompatible_shutdown_script(org.ldk.structs.ShutdownScript script) {
185-
long ret = bindings.APIError_incompatible_shutdown_script(script == null ? 0 : script.ptr);
185+
long ret = bindings.APIError_incompatible_shutdown_script(script.ptr);
186186
GC.KeepAlive(script);
187187
if (ret >= 0 && ret <= 4096) { return null; }
188188
org.ldk.structs.APIError ret_hu_conv = org.ldk.structs.APIError.constr_from_ptr(ret);
@@ -196,7 +196,7 @@ public static APIError incompatible_shutdown_script(org.ldk.structs.ShutdownScri
196196
* This ignores pointers and is_owned flags and looks at the values in fields.
197197
*/
198198
public bool eq(org.ldk.structs.APIError b) {
199-
bool ret = bindings.APIError_eq(this.ptr, b == null ? 0 : b.ptr);
199+
bool ret = bindings.APIError_eq(this.ptr, b.ptr);
200200
GC.KeepAlive(this);
201201
GC.KeepAlive(b);
202202
return ret;

0 commit comments

Comments
 (0)