Skip to content

Commit 5159eea

Browse files
authored
Merge pull request #37 from lightninglabs/2024-07-bump-version-to-v.0.3.2-alpha
lnc-core: update version to `v0.3.2-alpha`
2 parents 5d5e888 + 27ef73a commit 5159eea

File tree

39 files changed

+1874
-271
lines changed

39 files changed

+1874
-271
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ export interface AddAutopilotSessionRequest {
2929
noPrivacyMapper: boolean;
3030
/** Set to the ID of the group to link this session to, if any. */
3131
linkedGroupId: Uint8Array | string;
32+
/**
33+
* The privacy flags used by this session. If set, then privacy_flags_set must
34+
* be set.
35+
*/
36+
privacyFlags: string;
37+
/** Indicates whether privacy flags are set. */
38+
privacyFlagsSet: boolean;
3239
}
3340

3441
export interface AddAutopilotSessionRequest_FeaturesEntry {
@@ -102,6 +109,11 @@ export interface Feature {
102109
requiresUpgrade: boolean;
103110
/** The JSON-marshaled representation of a feature's default configuration. */
104111
defaultConfig: string;
112+
/**
113+
* This feature may require relaxed privacy obfuscation that can be enabled
114+
* with these flags.
115+
*/
116+
privacyFlags: string;
105117
}
106118

107119
export interface Feature_RulesEntry {

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ export interface Session {
139139
* a JSON-serialized configuration.
140140
*/
141141
featureConfigs: { [key: string]: string };
142+
/**
143+
* Privacy flags used for the session that determine how the privacy mapper
144+
* operates.
145+
*/
146+
privacyFlags: string;
142147
}
143148

144149
export interface Session_AutopilotFeatureInfoEntry {
@@ -197,6 +202,7 @@ export interface RuleValue {
197202
sendToSelf: SendToSelf | undefined;
198203
channelRestrict: ChannelRestrict | undefined;
199204
peerRestrict: PeerRestrict | undefined;
205+
channelConstraint: ChannelConstraint | undefined;
200206
}
201207

202208
export interface RateLimit {
@@ -274,6 +280,19 @@ export interface PeerRestrict {
274280
peerIds: string[];
275281
}
276282

283+
export interface ChannelConstraint {
284+
/** The minimum channel size autopilot has to set for a channel. */
285+
minCapacitySat: string;
286+
/** The maximum channel size autopilot can set for a channel. */
287+
maxCapacitySat: string;
288+
/** The maximum push amount for a channel. */
289+
maxPushSat: string;
290+
/** Indicates whether opening of private channels is allowed. */
291+
privateAllowed: boolean;
292+
/** Indicates whether opening of public channels is allowed. */
293+
publicAllowed: boolean;
294+
}
295+
277296
/**
278297
* Sessions is a service that gives access to the core functionalities of the
279298
* daemon's session system.

lib/types/proto/lnd/autopilotrpc/autopilot.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ export interface SetScoresResponse {}
5656
* that can be used when deciding where to open channels.
5757
*/
5858
export interface Autopilot {
59-
/** Status returns whether the daemon's autopilot agent is active. */
59+
/**
60+
* lncli: `autopilot status`
61+
* Status returns whether the daemon's autopilot agent is active.
62+
*/
6063
status(request?: DeepPartial<StatusRequest>): Promise<StatusResponse>;
6164
/**
6265
* ModifyStatus is used to modify the status of the autopilot agent, like
@@ -66,6 +69,7 @@ export interface Autopilot {
6669
request?: DeepPartial<ModifyStatusRequest>
6770
): Promise<ModifyStatusResponse>;
6871
/**
72+
* lncli: `autopilot query`
6973
* QueryScores queries all available autopilot heuristics, in addition to any
7074
* active combination of these heruristics, for the scores they would give to
7175
* the given nodes.

lib/types/proto/lnd/invoicesrpc/invoices.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ export interface AddHoldInvoiceResp {
8787
*/
8888
addIndex: string;
8989
/**
90-
* The payment address of the generated invoice. This value should be used
91-
* in all payments for this invoice as we require it for end to end
90+
* The payment address of the generated invoice. This is also called
91+
* the payment secret in specifications (e.g. BOLT 11). This value should
92+
* be used in all payments for this invoice as we require it for end to end
9293
* security.
9394
*/
9495
paymentAddr: Uint8Array | string;
@@ -136,6 +137,7 @@ export interface Invoices {
136137
onError?: (err: Error) => void
137138
): void;
138139
/**
140+
* lncli: `cancelinvoice`
139141
* CancelInvoice cancels a currently open invoice. If the invoice is already
140142
* canceled, this call will succeed. If the invoice is already settled, it will
141143
* fail.
@@ -144,13 +146,15 @@ export interface Invoices {
144146
request?: DeepPartial<CancelInvoiceMsg>
145147
): Promise<CancelInvoiceResp>;
146148
/**
149+
* lncli: `addholdinvoice`
147150
* AddHoldInvoice creates a hold invoice. It ties the invoice to the hash
148151
* supplied in the request.
149152
*/
150153
addHoldInvoice(
151154
request?: DeepPartial<AddHoldInvoiceRequest>
152155
): Promise<AddHoldInvoiceResp>;
153156
/**
157+
* lncli: `settleinvoice`
154158
* SettleInvoice settles an accepted invoice. If the invoice is already
155159
* settled, this call will succeed.
156160
*/

0 commit comments

Comments
 (0)