Skip to content

Commit

Permalink
Merge pull request #37 from lightninglabs/2024-07-bump-version-to-v.0…
Browse files Browse the repository at this point in the history
….3.2-alpha

lnc-core: update version to `v0.3.2-alpha`
  • Loading branch information
ViktorTigerstrom authored Jul 29, 2024
2 parents 5d5e888 + 27ef73a commit 5159eea
Show file tree
Hide file tree
Showing 39 changed files with 1,874 additions and 271 deletions.
12 changes: 12 additions & 0 deletions lib/types/proto/lit/lit-autopilot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ export interface AddAutopilotSessionRequest {
noPrivacyMapper: boolean;
/** Set to the ID of the group to link this session to, if any. */
linkedGroupId: Uint8Array | string;
/**
* The privacy flags used by this session. If set, then privacy_flags_set must
* be set.
*/
privacyFlags: string;
/** Indicates whether privacy flags are set. */
privacyFlagsSet: boolean;
}

export interface AddAutopilotSessionRequest_FeaturesEntry {
Expand Down Expand Up @@ -102,6 +109,11 @@ export interface Feature {
requiresUpgrade: boolean;
/** The JSON-marshaled representation of a feature's default configuration. */
defaultConfig: string;
/**
* This feature may require relaxed privacy obfuscation that can be enabled
* with these flags.
*/
privacyFlags: string;
}

export interface Feature_RulesEntry {
Expand Down
19 changes: 19 additions & 0 deletions lib/types/proto/lit/lit-sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ export interface Session {
* a JSON-serialized configuration.
*/
featureConfigs: { [key: string]: string };
/**
* Privacy flags used for the session that determine how the privacy mapper
* operates.
*/
privacyFlags: string;
}

export interface Session_AutopilotFeatureInfoEntry {
Expand Down Expand Up @@ -197,6 +202,7 @@ export interface RuleValue {
sendToSelf: SendToSelf | undefined;
channelRestrict: ChannelRestrict | undefined;
peerRestrict: PeerRestrict | undefined;
channelConstraint: ChannelConstraint | undefined;
}

export interface RateLimit {
Expand Down Expand Up @@ -274,6 +280,19 @@ export interface PeerRestrict {
peerIds: string[];
}

export interface ChannelConstraint {
/** The minimum channel size autopilot has to set for a channel. */
minCapacitySat: string;
/** The maximum channel size autopilot can set for a channel. */
maxCapacitySat: string;
/** The maximum push amount for a channel. */
maxPushSat: string;
/** Indicates whether opening of private channels is allowed. */
privateAllowed: boolean;
/** Indicates whether opening of public channels is allowed. */
publicAllowed: boolean;
}

/**
* Sessions is a service that gives access to the core functionalities of the
* daemon's session system.
Expand Down
6 changes: 5 additions & 1 deletion lib/types/proto/lnd/autopilotrpc/autopilot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ export interface SetScoresResponse {}
* that can be used when deciding where to open channels.
*/
export interface Autopilot {
/** Status returns whether the daemon's autopilot agent is active. */
/**
* lncli: `autopilot status`
* Status returns whether the daemon's autopilot agent is active.
*/
status(request?: DeepPartial<StatusRequest>): Promise<StatusResponse>;
/**
* ModifyStatus is used to modify the status of the autopilot agent, like
Expand All @@ -66,6 +69,7 @@ export interface Autopilot {
request?: DeepPartial<ModifyStatusRequest>
): Promise<ModifyStatusResponse>;
/**
* lncli: `autopilot query`
* QueryScores queries all available autopilot heuristics, in addition to any
* active combination of these heruristics, for the scores they would give to
* the given nodes.
Expand Down
8 changes: 6 additions & 2 deletions lib/types/proto/lnd/invoicesrpc/invoices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ export interface AddHoldInvoiceResp {
*/
addIndex: string;
/**
* The payment address of the generated invoice. This value should be used
* in all payments for this invoice as we require it for end to end
* The payment address of the generated invoice. This is also called
* the payment secret in specifications (e.g. BOLT 11). This value should
* be used in all payments for this invoice as we require it for end to end
* security.
*/
paymentAddr: Uint8Array | string;
Expand Down Expand Up @@ -136,6 +137,7 @@ export interface Invoices {
onError?: (err: Error) => void
): void;
/**
* lncli: `cancelinvoice`
* CancelInvoice cancels a currently open invoice. If the invoice is already
* canceled, this call will succeed. If the invoice is already settled, it will
* fail.
Expand All @@ -144,13 +146,15 @@ export interface Invoices {
request?: DeepPartial<CancelInvoiceMsg>
): Promise<CancelInvoiceResp>;
/**
* lncli: `addholdinvoice`
* AddHoldInvoice creates a hold invoice. It ties the invoice to the hash
* supplied in the request.
*/
addHoldInvoice(
request?: DeepPartial<AddHoldInvoiceRequest>
): Promise<AddHoldInvoiceResp>;
/**
* lncli: `settleinvoice`
* SettleInvoice settles an accepted invoice. If the invoice is already
* settled, this call will succeed.
*/
Expand Down
Loading

0 comments on commit 5159eea

Please sign in to comment.