Skip to content

Commit 7f0994d

Browse files
committedJan 17, 2025
[Java] Update auto-generated bindings to LDK 0.1.0
1 parent 3fe8cb1 commit 7f0994d

File tree

149 files changed

+25358
-12991
lines changed

Some content is hidden

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

149 files changed

+25358
-12991
lines changed
 

‎src/main/java/org/ldk/enums/Bolt12SemanticError.java

+23-12
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
public enum Bolt12SemanticError {
77
/**
8-
* The current [`std::time::SystemTime`] is past the offer or invoice's expiration.
8+
* The current system time is past the offer or invoice's expiration.
99
*/
1010
LDKBolt12SemanticError_AlreadyExpired,
1111
/**
@@ -21,7 +21,7 @@ public enum Bolt12SemanticError {
2121
*/
2222
LDKBolt12SemanticError_MissingAmount,
2323
/**
24-
* The amount exceeded the total bitcoin supply.
24+
* The amount exceeded the total bitcoin supply or didn't match an expected amount.
2525
*/
2626
LDKBolt12SemanticError_InvalidAmount,
2727
/**
@@ -49,17 +49,13 @@ public enum Bolt12SemanticError {
4949
*/
5050
LDKBolt12SemanticError_MissingDescription,
5151
/**
52-
* A signing pubkey was not provided.
53-
*/
54-
LDKBolt12SemanticError_MissingSigningPubkey,
55-
/**
56-
* A signing pubkey was provided but a different one was expected.
52+
* An issuer's signing pubkey was not provided.
5753
*/
58-
LDKBolt12SemanticError_InvalidSigningPubkey,
54+
LDKBolt12SemanticError_MissingIssuerSigningPubkey,
5955
/**
60-
* A signing pubkey was provided but was not expected.
56+
* An issuer's signing pubkey was provided but was not expected.
6157
*/
62-
LDKBolt12SemanticError_UnexpectedSigningPubkey,
58+
LDKBolt12SemanticError_UnexpectedIssuerSigningPubkey,
6359
/**
6460
* A quantity was expected but was missing.
6561
*/
@@ -85,9 +81,9 @@ public enum Bolt12SemanticError {
8581
*/
8682
LDKBolt12SemanticError_MissingPayerMetadata,
8783
/**
88-
* A payer id was expected but was missing.
84+
* A payer signing pubkey was expected but was missing.
8985
*/
90-
LDKBolt12SemanticError_MissingPayerId,
86+
LDKBolt12SemanticError_MissingPayerSigningPubkey,
9187
/**
9288
* The payment id for a refund or request is already in use.
9389
*/
@@ -116,10 +112,25 @@ public enum Bolt12SemanticError {
116112
* An invoice payment hash was provided but was not expected.
117113
*/
118114
LDKBolt12SemanticError_UnexpectedPaymentHash,
115+
/**
116+
* A signing pubkey was not provided.
117+
*/
118+
LDKBolt12SemanticError_MissingSigningPubkey,
119+
/**
120+
* A signing pubkey was provided but a different one was expected.
121+
*/
122+
LDKBolt12SemanticError_InvalidSigningPubkey,
119123
/**
120124
* A signature was expected but was missing.
121125
*/
122126
LDKBolt12SemanticError_MissingSignature,
127+
/**
128+
* A Human Readable Name was provided but was not expected (i.e. was included in a
129+
* [`Refund`]).
130+
*
131+
* [`Refund`]: super::refund::Refund
132+
*/
133+
LDKBolt12SemanticError_UnexpectedHumanReadableName,
123134
; static native void init();
124135
static { org.ldk.impl.bindings.run_statics(); init(); }
125136
}

‎src/main/java/org/ldk/enums/PaymentFailureReason.java

+15-3
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public enum PaymentFailureReason {
2222
LDKPaymentFailureReason_UserAbandoned,
2323
/**
2424
* We exhausted all of our retry attempts while trying to send the payment, or we
25-
* exhausted the [`Retry::Timeout`] if the user set one. If at any point a retry
26-
* attempt failed while being forwarded along the path, an [`Event::PaymentPathFailed`] will
25+
* exhausted the [`Retry::Timeout`] if the user set one.
26+
* If at any point a retry attempt failed while being forwarded along the path, an [`Event::PaymentPathFailed`] will
2727
* have come before this.
2828
*
2929
* [`Retry::Timeout`]: crate::ln::channelmanager::Retry::Timeout
@@ -40,11 +40,15 @@ public enum PaymentFailureReason {
4040
*/
4141
LDKPaymentFailureReason_PaymentExpired,
4242
/**
43-
* We failed to find a route while retrying the payment.
43+
* We failed to find a route while sending or retrying the payment.
4444
*
4545
* Note that this generally indicates that we've exhausted the available set of possible
4646
* routes - we tried the payment over a few routes but were not able to find any further
4747
* candidate routes beyond those.
48+
*
49+
* Also used for [`BlindedPathCreationFailed`] when downgrading to versions prior to 0.0.124.
50+
*
51+
* [`BlindedPathCreationFailed`]: Self::BlindedPathCreationFailed
4852
*/
4953
LDKPaymentFailureReason_RouteNotFound,
5054
/**
@@ -66,6 +70,14 @@ public enum PaymentFailureReason {
6670
* [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
6771
*/
6872
LDKPaymentFailureReason_InvoiceRequestRejected,
73+
/**
74+
* Failed to create a blinded path back to ourselves.
75+
* We attempted to initiate payment to a static invoice but failed to create a reply path for our
76+
* [`HeldHtlcAvailable`] message.
77+
*
78+
* [`HeldHtlcAvailable`]: crate::onion_message::async_payments::HeldHtlcAvailable
79+
*/
80+
LDKPaymentFailureReason_BlindedPathCreationFailed,
6981
; static native void init();
7082
static { org.ldk.impl.bindings.run_statics(); init(); }
7183
}

0 commit comments

Comments
 (0)