Skip to content

Commit 7c9c125

Browse files
authored
Merge pull request #21 from lightninglabs/update-protos-230622
proto: update all protos to the latest releases
2 parents 9a11482 + aa039c5 commit 7c9c125

File tree

26 files changed

+373
-8
lines changed

26 files changed

+373
-8
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 {

lib/types/proto/loop/client.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,40 @@ export interface LsatToken {
559559
storageName: string;
560560
}
561561

562+
export interface LoopStats {
563+
/** Number of currently pending swaps. */
564+
pendingCount: string;
565+
/** Number of succeeded swaps. */
566+
successCount: string;
567+
/** Number failed swaps. */
568+
failCount: string;
569+
/** The sum of all pending swap amounts. */
570+
sumPendingAmt: string;
571+
/** The sum of all succeeded swap amounts. */
572+
sumSucceededAmt: string;
573+
}
574+
575+
export interface GetInfoRequest {}
576+
577+
export interface GetInfoResponse {
578+
/** The current daemon version. */
579+
version: string;
580+
/** The network the daemon is running on. */
581+
network: string;
582+
/** Host and port of the loopd grpc server. */
583+
rpcListen: string;
584+
/** Host and port of the loopd rest server. */
585+
restListen: string;
586+
/** Loop's macaroon path that clients use to talk to the daemon. */
587+
macaroonPath: string;
588+
/** Loop's tls cert path */
589+
tlsCertPath: string;
590+
/** Statistics about loop outs. */
591+
loopOutStats: LoopStats | undefined;
592+
/** Statistics about loop ins. */
593+
loopInStats: LoopStats | undefined;
594+
}
595+
562596
export interface GetLiquidityParamsRequest {}
563597

564598
export interface LiquidityParameters {
@@ -668,6 +702,19 @@ export interface LiquidityParameters {
668702
* UNIX timestamp in seconds.
669703
*/
670704
autoloopBudgetLastRefresh: string;
705+
/**
706+
* Set to true to enable easy autoloop. If set, all channel/peer rules will be
707+
* overridden and the client will automatically dispatch swaps in order to meet
708+
* the configured local balance target size. Currently only loop out is
709+
* supported, meaning that easy autoloop can only reduce the funds that are
710+
* held as balance in channels.
711+
*/
712+
easyAutoloop: boolean;
713+
/**
714+
* The local balance target size, expressed in satoshis. This is used by easy
715+
* autoloop to determine how much liquidity should be maintained in channels.
716+
*/
717+
easyAutoloopLocalTargetSat: string;
671718
}
672719

673720
export interface LiquidityRule {
@@ -821,6 +868,11 @@ export interface SwapClient {
821868
getLsatTokens(
822869
request?: DeepPartial<TokensRequest>
823870
): Promise<TokensResponse>;
871+
/**
872+
* loop: `getinfo`
873+
* GetInfo gets basic information about the loop daemon.
874+
*/
875+
getInfo(request?: DeepPartial<GetInfoRequest>): Promise<GetInfoResponse>;
824876
/**
825877
* loop: `getparams`
826878
* GetLiquidityParams gets the parameters that the daemon's liquidity manager

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"config": {
8-
"lnd_release_tag": "v0.16.0-beta",
9-
"loop_release_tag": "v0.22.0-beta",
10-
"pool_release_tag": "v0.6.2-beta",
11-
"faraday_release_tag": "v0.2.9-alpha",
8+
"lnd_release_tag": "v0.16.3-beta",
9+
"loop_release_tag": "v0.24.1-beta",
10+
"pool_release_tag": "v0.6.4-beta",
11+
"faraday_release_tag": "v0.2.11-alpha",
1212
"tapd_release_tag": "v0.2.0-lit-0",
13-
"lit_release_tag": "v0.9.0-alpha",
13+
"lit_release_tag": "v0.10.1-alpha",
1414
"protoc_version": "21.9"
1515
},
1616
"scripts": {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)