Skip to content

Commit 200da0b

Browse files
Merge pull request #46 from lightninglabs/2025-07-bump-version-to-v.0.3.4-alpha
lnc-core: update version to v0.3.4-alpha
2 parents b04a8d0 + 48a6415 commit 200da0b

File tree

45 files changed

+1880
-147
lines changed

Some content is hidden

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

45 files changed

+1880
-147
lines changed

lib/types/proto/lit/firewall.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ export interface Action {
144144
errorReason: string;
145145
/** The ID of the session under which the action was performed. */
146146
sessionId: Uint8Array | string;
147+
/**
148+
* The 4 byte identifier of the macaroon that was used to perform the action.
149+
* This is derived from the last 4 bytes of the macaroon's root key ID.
150+
*/
151+
macaroonIdentifier: Uint8Array | string;
147152
}
148153

149154
export interface Firewall {

lib/types/proto/lit/lit-sessions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export enum SessionState {
1414
STATE_IN_USE = 'STATE_IN_USE',
1515
STATE_REVOKED = 'STATE_REVOKED',
1616
STATE_EXPIRED = 'STATE_EXPIRED',
17+
STATE_RESERVED = 'STATE_RESERVED',
1718
UNRECOGNIZED = 'UNRECOGNIZED'
1819
}
1920

lib/types/proto/lnd/lightning.ts

Lines changed: 124 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,10 @@ export interface SendCustomMessageRequest {
255255
data: Uint8Array | string;
256256
}
257257

258-
export interface SendCustomMessageResponse {}
258+
export interface SendCustomMessageResponse {
259+
/** The status of the send operation. */
260+
status: string;
261+
}
259262

260263
export interface Utxo {
261264
/** The type of address */
@@ -335,11 +338,31 @@ export interface GetTransactionsRequest {
335338
endHeight: number;
336339
/** An optional filter to only include transactions relevant to an account. */
337340
account: string;
341+
/**
342+
* The index of a transaction that will be used in a query to determine which
343+
* transaction should be returned in the response.
344+
*/
345+
indexOffset: number;
346+
/**
347+
* The maximal number of transactions returned in the response to this query.
348+
* This value should be set to 0 to return all transactions.
349+
*/
350+
maxTransactions: number;
338351
}
339352

340353
export interface TransactionDetails {
341354
/** The list of transactions relevant to the wallet. */
342355
transactions: Transaction[];
356+
/**
357+
* The index of the last item in the set of returned transactions. This can be
358+
* used to seek further, pagination style.
359+
*/
360+
lastIndex: string;
361+
/**
362+
* The index of the last item in the set of returned transactions. This can be
363+
* used to seek backwards, pagination style.
364+
*/
365+
firstIndex: string;
343366
}
344367

345368
export interface FeeLimit {
@@ -843,14 +866,20 @@ export interface ConnectPeerRequest {
843866
timeout: string;
844867
}
845868

846-
export interface ConnectPeerResponse {}
869+
export interface ConnectPeerResponse {
870+
/** The status of the connect operation. */
871+
status: string;
872+
}
847873

848874
export interface DisconnectPeerRequest {
849875
/** The pubkey of the node to disconnect from */
850876
pubKey: string;
851877
}
852878

853-
export interface DisconnectPeerResponse {}
879+
export interface DisconnectPeerResponse {
880+
/** The status of the disconnect operation. */
881+
status: string;
882+
}
854883

855884
export interface HTLC {
856885
incoming: boolean;
@@ -871,6 +900,12 @@ export interface HTLC {
871900
forwardingChannel: string;
872901
/** Index identifying the htlc on the forwarding channel. */
873902
forwardingHtlcIndex: string;
903+
/**
904+
* Whether the HTLC is locked in. An HTLC is considered locked in when the
905+
* remote party has sent us the `revoke_and_ack` to irrevocably commit this
906+
* HTLC.
907+
*/
908+
lockedIn: boolean;
874909
}
875910

876911
export interface ChannelConstraints {
@@ -1125,6 +1160,11 @@ export interface ChannelCloseSummary {
11251160
aliasScids: string[];
11261161
/** The confirmed SCID for a zero-conf channel. */
11271162
zeroConfConfirmedScid: string;
1163+
/**
1164+
* The TLV encoded custom channel data records for this output, which might
1165+
* be set for custom channels.
1166+
*/
1167+
customChannelData: Uint8Array | string;
11281168
}
11291169

11301170
export enum ChannelCloseSummary_ClosureType {
@@ -1295,8 +1335,8 @@ export interface GetInfoResponse {
12951335
/** Whether we consider ourselves synced with the public channel graph. */
12961336
syncedToGraph: boolean;
12971337
/**
1298-
* Whether the current node is connected to testnet. This field is
1299-
* deprecated and the network field should be used instead
1338+
* Whether the current node is connected to testnet or testnet4. This field is
1339+
* deprecated and the network field should be used instead.
13001340
*
13011341
* @deprecated
13021342
*/
@@ -1449,9 +1489,13 @@ export interface CloseChannelRequest {
14491489
*/
14501490
maxFeePerVbyte: string;
14511491
/**
1452-
* If true, then the rpc call will not block while it awaits a closing txid.
1453-
* Consequently this RPC call will not return a closing txid if this value
1454-
* is set.
1492+
* If true, then the rpc call will not block while it awaits a closing txid
1493+
* to be broadcasted to the mempool. To obtain the closing tx one has to
1494+
* listen to the stream for the particular updates. Moreover if a coop close
1495+
* is specified and this flag is set to true the coop closing flow will be
1496+
* initiated even if HTLCs are active on the channel. The channel will wait
1497+
* until all HTLCs are resolved and then start the coop closing process. The
1498+
* channel will be disabled in the meantime and will disallow any new HTLCs.
14551499
*/
14561500
noWait: boolean;
14571501
}
@@ -1465,9 +1509,18 @@ export interface CloseStatusUpdate {
14651509
export interface PendingUpdate {
14661510
txid: Uint8Array | string;
14671511
outputIndex: number;
1512+
feePerVbyte: string;
1513+
localCloseTx: boolean;
14681514
}
14691515

1470-
export interface InstantUpdate {}
1516+
export interface InstantUpdate {
1517+
/**
1518+
* The number of pending HTLCs that are currently active on the channel.
1519+
* These HTLCs need to be resolved before the channel can be closed
1520+
* cooperatively.
1521+
*/
1522+
numPendingHtlcs: number;
1523+
}
14711524

14721525
export interface ReadyForPsbtFunding {
14731526
/**
@@ -2753,7 +2806,10 @@ export interface NetworkInfo {
27532806

27542807
export interface StopRequest {}
27552808

2756-
export interface StopResponse {}
2809+
export interface StopResponse {
2810+
/** The status of the stop operation. */
2811+
status: string;
2812+
}
27572813

27582814
export interface GraphTopologySubscription {}
27592815

@@ -3476,9 +3532,15 @@ export interface DeleteAllPaymentsRequest {
34763532
allPayments: boolean;
34773533
}
34783534

3479-
export interface DeletePaymentResponse {}
3535+
export interface DeletePaymentResponse {
3536+
/** The status of the delete operation. */
3537+
status: string;
3538+
}
34803539

3481-
export interface DeleteAllPaymentsResponse {}
3540+
export interface DeleteAllPaymentsResponse {
3541+
/** The status of the delete operation. */
3542+
status: string;
3543+
}
34823544

34833545
export interface AbandonChannelRequest {
34843546
channelPoint: ChannelPoint | undefined;
@@ -3491,7 +3553,10 @@ export interface AbandonChannelRequest {
34913553
iKnowWhatIAmDoing: boolean;
34923554
}
34933555

3494-
export interface AbandonChannelResponse {}
3556+
export interface AbandonChannelResponse {
3557+
/** The status of the abandon operation. */
3558+
status: string;
3559+
}
34953560

34963561
export interface DebugLevelRequest {
34973562
show: boolean;
@@ -3632,6 +3697,16 @@ export interface PolicyUpdateRequest {
36323697
* retained [EXPERIMENTAL].
36333698
*/
36343699
inboundFee: InboundFee | undefined;
3700+
/**
3701+
* Under unknown circumstances a channel can exist with a missing edge in
3702+
* the graph database. This can cause an 'edge not found' error when calling
3703+
* `getchaninfo` and/or cause the default channel policy to be used during
3704+
* forwards. Setting this flag will recreate the edge if not found, allowing
3705+
* updating this channel policy and fixing the missing edge problem for this
3706+
* channel permanently. For fields not set in this command, the default
3707+
* policy will be created.
3708+
*/
3709+
createMissingEdge: boolean;
36353710
}
36363711

36373712
export interface FailedUpdate {
@@ -3798,11 +3873,16 @@ export interface RestoreChanBackupRequest {
37983873
multiChanBackup: Uint8Array | string | undefined;
37993874
}
38003875

3801-
export interface RestoreBackupResponse {}
3876+
export interface RestoreBackupResponse {
3877+
/** The number of channels successfully restored. */
3878+
numRestored: number;
3879+
}
38023880

38033881
export interface ChannelBackupSubscription {}
38043882

3805-
export interface VerifyChanBackupResponse {}
3883+
export interface VerifyChanBackupResponse {
3884+
chanPoints: string[];
3885+
}
38063886

38073887
export interface MacaroonPermission {
38083888
/** The entity a permission grants access to. */
@@ -4078,6 +4158,24 @@ export interface RPCMiddlewareRequest {
40784158
* intercept message.
40794159
*/
40804160
msgId: string;
4161+
/**
4162+
* The metadata pairs that were sent along with the original gRPC request via
4163+
* the golang context.Context using explicit [gRPC
4164+
* metadata](https://grpc.io/docs/guides/metadata/). Context values are not
4165+
* propagated via gRPC and so we send any pairs along explicitly here so that
4166+
* the interceptor can access them.
4167+
*/
4168+
metadataPairs: { [key: string]: MetadataValues };
4169+
}
4170+
4171+
export interface RPCMiddlewareRequest_MetadataPairsEntry {
4172+
key: string;
4173+
value: MetadataValues | undefined;
4174+
}
4175+
4176+
export interface MetadataValues {
4177+
/** The set of metadata values that correspond to the metadata key. */
4178+
values: string[];
40814179
}
40824180

40834181
export interface StreamAuth {
@@ -4501,10 +4599,12 @@ export interface Lightning {
45014599
onError?: (err: Error) => void
45024600
): void;
45034601
/**
4504-
* SendPaymentSync is the synchronous non-streaming version of SendPayment.
4505-
* This RPC is intended to be consumed by clients of the REST proxy.
4506-
* Additionally, this RPC expects the destination's public key and the payment
4507-
* hash (if any) to be encoded as hex strings.
4602+
* Deprecated, use routerrpc.SendPaymentV2. SendPaymentSync is the synchronous
4603+
* non-streaming version of SendPayment. This RPC is intended to be consumed by
4604+
* clients of the REST proxy. Additionally, this RPC expects the destination's
4605+
* public key and the payment hash (if any) to be encoded as hex strings.
4606+
*
4607+
* @deprecated
45084608
*/
45094609
sendPaymentSync(request?: DeepPartial<SendRequest>): Promise<SendResponse>;
45104610
/**
@@ -4523,8 +4623,11 @@ export interface Lightning {
45234623
onError?: (err: Error) => void
45244624
): void;
45254625
/**
4526-
* SendToRouteSync is a synchronous version of SendToRoute. It Will block
4527-
* until the payment either fails or succeeds.
4626+
* Deprecated, use routerrpc.SendToRouteV2. SendToRouteSync is a synchronous
4627+
* version of SendToRoute. It Will block until the payment either fails or
4628+
* succeeds.
4629+
*
4630+
* @deprecated
45284631
*/
45294632
sendToRouteSync(
45304633
request?: DeepPartial<SendToRouteRequest>

lib/types/proto/lnd/routerrpc/router.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,11 @@ export interface SendPaymentRequest {
113113
*/
114114
paymentRequest: string;
115115
/**
116-
* An upper limit on the amount of time we should spend when attempting to
117-
* fulfill the payment. This is expressed in seconds. If we cannot make a
118-
* successful payment within this time frame, an error will be returned.
119-
* This field must be non-zero.
116+
* An optional limit, expressed in seconds, on the time to wait before
117+
* attempting the first HTLC. Once HTLCs are in flight, the payment will
118+
* not be aborted until the HTLCs are either settled or failed. If the field
119+
* is not set or is explicitly set to zero, the default value of 60 seconds
120+
* will be applied.
120121
*/
121122
timeoutSeconds: number;
122123
/**
@@ -809,6 +810,10 @@ export interface ForwardHtlcInterceptResponse {
809810
* Any custom records that should be set on the p2p wire message message of
810811
* the resumed HTLC. This field is ignored if the action is not
811812
* RESUME_MODIFIED.
813+
*
814+
* This map will merge with the existing set of custom records (if any),
815+
* replacing any conflicting types. Note that there currently is no support
816+
* for deleting existing custom records (they can only be replaced).
812817
*/
813818
outWireCustomRecords: { [key: string]: Uint8Array | string };
814819
}

0 commit comments

Comments
 (0)