Skip to content

Commit b37fae6

Browse files
committed
proto: update LND protos to v0.16.3-beta
1 parent 9a11482 commit b37fae6

File tree

14 files changed

+225
-4
lines changed

14 files changed

+225
-4
lines changed

lib/types/proto/lnd/lightning.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,8 @@ export interface Channel {
993993
zeroConfConfirmedScid: string;
994994
/** The configured alias name of our peer. */
995995
peerAlias: string;
996+
/** This is the peer SCID alias. */
997+
peerScidAlias: string;
996998
}
997999

9981000
export interface ListChannelsRequest {
@@ -1600,6 +1602,12 @@ export interface OpenChannelRequest {
16001602
* capacity.
16011603
*/
16021604
remoteChanReserveSat: string;
1605+
/**
1606+
* If set, then lnd will attempt to commit all the coins under control of the
1607+
* internal wallet to open the channel, and the LocalFundingAmount field must
1608+
* be zero and is ignored.
1609+
*/
1610+
fundMax: boolean;
16031611
}
16041612

16051613
export interface OpenStatusUpdate {

lib/types/proto/lnd/walletrpc/walletkit.ts

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,67 @@ export enum WitnessType {
8686
* transaction.
8787
*/
8888
COMMITMENT_ANCHOR = 'COMMITMENT_ANCHOR',
89+
/**
90+
* COMMITMENT_NO_DELAY_TWEAKLESS - A witness type that is similar to the COMMITMENT_NO_DELAY type,
91+
* but it omits the tweak that randomizes the key we need to
92+
* spend with a channel peer supplied set of randomness.
93+
*/
94+
COMMITMENT_NO_DELAY_TWEAKLESS = 'COMMITMENT_NO_DELAY_TWEAKLESS',
95+
/**
96+
* COMMITMENT_TO_REMOTE_CONFIRMED - A witness type that allows us to spend our output on the counterparty's
97+
* commitment transaction after a confirmation.
98+
*/
99+
COMMITMENT_TO_REMOTE_CONFIRMED = 'COMMITMENT_TO_REMOTE_CONFIRMED',
100+
/**
101+
* HTLC_OFFERED_TIMEOUT_SECOND_LEVEL_INPUT_CONFIRMED - A witness type that allows us to sweep an HTLC output that we extended
102+
* to a party, but was never fulfilled. This _is_ the HTLC output directly
103+
* on our commitment transaction, and the input to the second-level HTLC
104+
* timeout transaction. It can only be spent after CLTV expiry, and
105+
* commitment confirmation.
106+
*/
107+
HTLC_OFFERED_TIMEOUT_SECOND_LEVEL_INPUT_CONFIRMED = 'HTLC_OFFERED_TIMEOUT_SECOND_LEVEL_INPUT_CONFIRMED',
108+
/**
109+
* HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL_INPUT_CONFIRMED - A witness type that allows us to sweep an HTLC output that was offered
110+
* to us, and for which we have a payment preimage. This _is_ the HTLC
111+
* output directly on our commitment transaction, and the input to the
112+
* second-level HTLC success transaction. It can only be spent after the
113+
* commitment has confirmed.
114+
*/
115+
HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL_INPUT_CONFIRMED = 'HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL_INPUT_CONFIRMED',
116+
/**
117+
* LEASE_COMMITMENT_TIME_LOCK - A witness type that allows us to spend our output on our local
118+
* commitment transaction after a relative and absolute lock-time lockout as
119+
* part of the script enforced lease commitment type.
120+
*/
121+
LEASE_COMMITMENT_TIME_LOCK = 'LEASE_COMMITMENT_TIME_LOCK',
122+
/**
123+
* LEASE_COMMITMENT_TO_REMOTE_CONFIRMED - A witness type that allows us to spend our output on the counterparty's
124+
* commitment transaction after a confirmation and absolute locktime as part
125+
* of the script enforced lease commitment type.
126+
*/
127+
LEASE_COMMITMENT_TO_REMOTE_CONFIRMED = 'LEASE_COMMITMENT_TO_REMOTE_CONFIRMED',
128+
/**
129+
* LEASE_HTLC_OFFERED_TIMEOUT_SECOND_LEVEL - A witness type that allows us to sweep an HTLC output that we extended
130+
* to a party, but was never fulfilled. This HTLC output isn't directly on
131+
* the commitment transaction, but is the result of a confirmed second-level
132+
* HTLC transaction. As a result, we can only spend this after a CSV delay
133+
* and CLTV locktime as part of the script enforced lease commitment type.
134+
*/
135+
LEASE_HTLC_OFFERED_TIMEOUT_SECOND_LEVEL = 'LEASE_HTLC_OFFERED_TIMEOUT_SECOND_LEVEL',
136+
/**
137+
* LEASE_HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL - A witness type that allows us to sweep an HTLC output that was offered
138+
* to us, and for which we have a payment preimage. This HTLC output isn't
139+
* directly on our commitment transaction, but is the result of confirmed
140+
* second-level HTLC transaction. As a result, we can only spend this after
141+
* a CSV delay and CLTV locktime as part of the script enforced lease
142+
* commitment type.
143+
*/
144+
LEASE_HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL = 'LEASE_HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL',
145+
/**
146+
* TAPROOT_PUB_KEY_SPEND - A witness type that allows us to spend a regular p2tr output that's sent
147+
* to an output which is under complete control of the backing wallet.
148+
*/
149+
TAPROOT_PUB_KEY_SPEND = 'TAPROOT_PUB_KEY_SPEND',
89150
UNRECOGNIZED = 'UNRECOGNIZED'
90151
}
91152

lib/types/proto/lnd/wtclientrpc/wtclient.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ export interface GetTowerInfoRequest {
3434
pubkey: Uint8Array | string;
3535
/** Whether we should include sessions with the watchtower in the response. */
3636
includeSessions: boolean;
37+
/**
38+
* Whether to exclude exhausted sessions in the response info. This option
39+
* is only meaningful if include_sessions is true.
40+
*/
41+
excludeExhaustedSessions: boolean;
3742
}
3843

3944
export interface TowerSession {
@@ -69,17 +74,53 @@ export interface Tower {
6974
pubkey: Uint8Array | string;
7075
/** The list of addresses the watchtower is reachable over. */
7176
addresses: string[];
77+
/**
78+
* Deprecated, use the active_session_candidate field under the
79+
* correct identifier in the client_type map.
80+
* Whether the watchtower is currently a candidate for new sessions.
81+
*
82+
* @deprecated
83+
*/
84+
activeSessionCandidate: boolean;
85+
/**
86+
* Deprecated, use the num_sessions field under the correct identifier
87+
* in the client_type map.
88+
* The number of sessions that have been negotiated with the watchtower.
89+
*
90+
* @deprecated
91+
*/
92+
numSessions: number;
93+
/**
94+
* Deprecated, use the sessions field under the correct identifier in the
95+
* client_type map.
96+
* The list of sessions that have been negotiated with the watchtower.
97+
*
98+
* @deprecated
99+
*/
100+
sessions: TowerSession[];
101+
/** A list sessions held with the tower. */
102+
sessionInfo: TowerSessionInfo[];
103+
}
104+
105+
export interface TowerSessionInfo {
72106
/** Whether the watchtower is currently a candidate for new sessions. */
73107
activeSessionCandidate: boolean;
74108
/** The number of sessions that have been negotiated with the watchtower. */
75109
numSessions: number;
76110
/** The list of sessions that have been negotiated with the watchtower. */
77111
sessions: TowerSession[];
112+
/** The session's policy type. */
113+
policyType: PolicyType;
78114
}
79115

80116
export interface ListTowersRequest {
81117
/** Whether we should include sessions with the watchtower in the response. */
82118
includeSessions: boolean;
119+
/**
120+
* Whether to exclude exhausted sessions in the response info. This option
121+
* is only meaningful if include_sessions is true.
122+
*/
123+
excludeExhaustedSessions: boolean;
83124
}
84125

85126
export interface ListTowersResponse {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"config": {
8-
"lnd_release_tag": "v0.16.0-beta",
8+
"lnd_release_tag": "v0.16.3-beta",
99
"loop_release_tag": "v0.22.0-beta",
1010
"pool_release_tag": "v0.6.2-beta",
1111
"faraday_release_tag": "v0.2.9-alpha",

protos/lnd/v0.16.0-beta/lightning.proto renamed to protos/lnd/v0.16.3-beta/lightning.proto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,6 +1542,9 @@ message Channel {
15421542

15431543
// The configured alias name of our peer.
15441544
string peer_alias = 34;
1545+
1546+
// This is the peer SCID alias.
1547+
uint64 peer_scid_alias = 35 [jstype = JS_STRING];
15451548
}
15461549

15471550
message ListChannelsRequest {
@@ -2264,6 +2267,13 @@ message OpenChannelRequest {
22642267
capacity.
22652268
*/
22662269
uint64 remote_chan_reserve_sat = 25;
2270+
2271+
/*
2272+
If set, then lnd will attempt to commit all the coins under control of the
2273+
internal wallet to open the channel, and the LocalFundingAmount field must
2274+
be zero and is ignored.
2275+
*/
2276+
bool fund_max = 26;
22672277
}
22682278
message OpenStatusUpdate {
22692279
oneof update {

0 commit comments

Comments
 (0)