mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
app+protos: make protos
This commit is contained in:
parent
f185378c42
commit
58d3184658
13 changed files with 2848 additions and 109 deletions
2
app/src/types/generated/auctioneerrpc/auctioneer_pb.d.ts
generated
vendored
2
app/src/types/generated/auctioneerrpc/auctioneer_pb.d.ts
generated
vendored
|
|
@ -2216,6 +2216,7 @@ export interface ChannelTypeMap {
|
|||
TWEAKLESS: 0;
|
||||
ANCHORS: 1;
|
||||
SCRIPT_ENFORCED_LEASE: 2;
|
||||
SIMPLE_TAPROOT: 3;
|
||||
}
|
||||
|
||||
export const ChannelType: ChannelTypeMap;
|
||||
|
|
@ -2236,6 +2237,7 @@ export interface OrderChannelTypeMap {
|
|||
ORDER_CHANNEL_TYPE_UNKNOWN: 0;
|
||||
ORDER_CHANNEL_TYPE_PEER_DEPENDENT: 1;
|
||||
ORDER_CHANNEL_TYPE_SCRIPT_ENFORCED: 2;
|
||||
ORDER_CHANNEL_TYPE_SIMPLE_TAPROOT: 3;
|
||||
}
|
||||
|
||||
export const OrderChannelType: OrderChannelTypeMap;
|
||||
|
|
|
|||
|
|
@ -16172,7 +16172,8 @@ proto.poolrpc.MarketInfoResponse.prototype.clearMarketsMap = function() {
|
|||
proto.poolrpc.ChannelType = {
|
||||
TWEAKLESS: 0,
|
||||
ANCHORS: 1,
|
||||
SCRIPT_ENFORCED_LEASE: 2
|
||||
SCRIPT_ENFORCED_LEASE: 2,
|
||||
SIMPLE_TAPROOT: 3
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -16194,7 +16195,8 @@ proto.poolrpc.AuctionAccountState = {
|
|||
proto.poolrpc.OrderChannelType = {
|
||||
ORDER_CHANNEL_TYPE_UNKNOWN: 0,
|
||||
ORDER_CHANNEL_TYPE_PEER_DEPENDENT: 1,
|
||||
ORDER_CHANNEL_TYPE_SCRIPT_ENFORCED: 2
|
||||
ORDER_CHANNEL_TYPE_SCRIPT_ENFORCED: 2,
|
||||
ORDER_CHANNEL_TYPE_SIMPLE_TAPROOT: 3
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
290
app/src/types/generated/lnd_pb.d.ts
generated
vendored
290
app/src/types/generated/lnd_pb.d.ts
generated
vendored
|
|
@ -831,6 +831,9 @@ export class EstimateFeeRequest extends jspb.Message {
|
|||
getSpendUnconfirmed(): boolean;
|
||||
setSpendUnconfirmed(value: boolean): void;
|
||||
|
||||
getCoinSelectionStrategy(): CoinSelectionStrategyMap[keyof CoinSelectionStrategyMap];
|
||||
setCoinSelectionStrategy(value: CoinSelectionStrategyMap[keyof CoinSelectionStrategyMap]): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): EstimateFeeRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: EstimateFeeRequest): EstimateFeeRequest.AsObject;
|
||||
|
|
@ -847,6 +850,7 @@ export namespace EstimateFeeRequest {
|
|||
targetConf: number,
|
||||
minConfs: number,
|
||||
spendUnconfirmed: boolean,
|
||||
coinSelectionStrategy: CoinSelectionStrategyMap[keyof CoinSelectionStrategyMap],
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -899,6 +903,9 @@ export class SendManyRequest extends jspb.Message {
|
|||
getSpendUnconfirmed(): boolean;
|
||||
setSpendUnconfirmed(value: boolean): void;
|
||||
|
||||
getCoinSelectionStrategy(): CoinSelectionStrategyMap[keyof CoinSelectionStrategyMap];
|
||||
setCoinSelectionStrategy(value: CoinSelectionStrategyMap[keyof CoinSelectionStrategyMap]): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SendManyRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SendManyRequest): SendManyRequest.AsObject;
|
||||
|
|
@ -918,6 +925,7 @@ export namespace SendManyRequest {
|
|||
label: string,
|
||||
minConfs: number,
|
||||
spendUnconfirmed: boolean,
|
||||
coinSelectionStrategy: CoinSelectionStrategyMap[keyof CoinSelectionStrategyMap],
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -969,6 +977,9 @@ export class SendCoinsRequest extends jspb.Message {
|
|||
getSpendUnconfirmed(): boolean;
|
||||
setSpendUnconfirmed(value: boolean): void;
|
||||
|
||||
getCoinSelectionStrategy(): CoinSelectionStrategyMap[keyof CoinSelectionStrategyMap];
|
||||
setCoinSelectionStrategy(value: CoinSelectionStrategyMap[keyof CoinSelectionStrategyMap]): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): SendCoinsRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: SendCoinsRequest): SendCoinsRequest.AsObject;
|
||||
|
|
@ -990,6 +1001,7 @@ export namespace SendCoinsRequest {
|
|||
label: string,
|
||||
minConfs: number,
|
||||
spendUnconfirmed: boolean,
|
||||
coinSelectionStrategy: CoinSelectionStrategyMap[keyof CoinSelectionStrategyMap],
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2170,6 +2182,47 @@ export namespace GetInfoResponse {
|
|||
}
|
||||
}
|
||||
|
||||
export class GetDebugInfoRequest extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDebugInfoRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDebugInfoRequest): GetDebugInfoRequest.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: GetDebugInfoRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDebugInfoRequest;
|
||||
static deserializeBinaryFromReader(message: GetDebugInfoRequest, reader: jspb.BinaryReader): GetDebugInfoRequest;
|
||||
}
|
||||
|
||||
export namespace GetDebugInfoRequest {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDebugInfoResponse extends jspb.Message {
|
||||
getConfigMap(): jspb.Map<string, string>;
|
||||
clearConfigMap(): void;
|
||||
clearLogList(): void;
|
||||
getLogList(): Array<string>;
|
||||
setLogList(value: Array<string>): void;
|
||||
addLog(value: string, index?: number): string;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDebugInfoResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDebugInfoResponse): GetDebugInfoResponse.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: GetDebugInfoResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDebugInfoResponse;
|
||||
static deserializeBinaryFromReader(message: GetDebugInfoResponse, reader: jspb.BinaryReader): GetDebugInfoResponse;
|
||||
}
|
||||
|
||||
export namespace GetDebugInfoResponse {
|
||||
export type AsObject = {
|
||||
configMap: Array<[string, string]>,
|
||||
logList: Array<string>,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetRecoveryInfoRequest extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetRecoveryInfoRequest.AsObject;
|
||||
|
|
@ -2340,6 +2393,9 @@ export class CloseChannelRequest extends jspb.Message {
|
|||
getMaxFeePerVbyte(): string;
|
||||
setMaxFeePerVbyte(value: string): void;
|
||||
|
||||
getNoWait(): boolean;
|
||||
setNoWait(value: boolean): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CloseChannelRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: CloseChannelRequest): CloseChannelRequest.AsObject;
|
||||
|
|
@ -2359,6 +2415,7 @@ export namespace CloseChannelRequest {
|
|||
deliveryAddress: string,
|
||||
satPerVbyte: string,
|
||||
maxFeePerVbyte: string,
|
||||
noWait: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2373,6 +2430,11 @@ export class CloseStatusUpdate extends jspb.Message {
|
|||
getChanClose(): ChannelCloseUpdate | undefined;
|
||||
setChanClose(value?: ChannelCloseUpdate): void;
|
||||
|
||||
hasCloseInstant(): boolean;
|
||||
clearCloseInstant(): void;
|
||||
getCloseInstant(): InstantUpdate | undefined;
|
||||
setCloseInstant(value?: InstantUpdate): void;
|
||||
|
||||
getUpdateCase(): CloseStatusUpdate.UpdateCase;
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CloseStatusUpdate.AsObject;
|
||||
|
|
@ -2388,12 +2450,14 @@ export namespace CloseStatusUpdate {
|
|||
export type AsObject = {
|
||||
closePending?: PendingUpdate.AsObject,
|
||||
chanClose?: ChannelCloseUpdate.AsObject,
|
||||
closeInstant?: InstantUpdate.AsObject,
|
||||
}
|
||||
|
||||
export enum UpdateCase {
|
||||
UPDATE_NOT_SET = 0,
|
||||
CLOSE_PENDING = 1,
|
||||
CHAN_CLOSE = 3,
|
||||
CLOSE_INSTANT = 4,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2423,6 +2487,22 @@ export namespace PendingUpdate {
|
|||
}
|
||||
}
|
||||
|
||||
export class InstantUpdate extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): InstantUpdate.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: InstantUpdate): InstantUpdate.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: InstantUpdate, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): InstantUpdate;
|
||||
static deserializeBinaryFromReader(message: InstantUpdate, reader: jspb.BinaryReader): InstantUpdate;
|
||||
}
|
||||
|
||||
export namespace InstantUpdate {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
export class ReadyForPsbtFunding extends jspb.Message {
|
||||
getFundingAddress(): string;
|
||||
setFundingAddress(value: string): void;
|
||||
|
|
@ -2474,6 +2554,9 @@ export class BatchOpenChannelRequest extends jspb.Message {
|
|||
getLabel(): string;
|
||||
setLabel(value: string): void;
|
||||
|
||||
getCoinSelectionStrategy(): CoinSelectionStrategyMap[keyof CoinSelectionStrategyMap];
|
||||
setCoinSelectionStrategy(value: CoinSelectionStrategyMap[keyof CoinSelectionStrategyMap]): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BatchOpenChannelRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: BatchOpenChannelRequest): BatchOpenChannelRequest.AsObject;
|
||||
|
|
@ -2492,6 +2575,7 @@ export namespace BatchOpenChannelRequest {
|
|||
minConfs: number,
|
||||
spendUnconfirmed: boolean,
|
||||
label: string,
|
||||
coinSelectionStrategy: CoinSelectionStrategyMap[keyof CoinSelectionStrategyMap],
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3164,6 +3248,9 @@ export namespace PendingHTLC {
|
|||
}
|
||||
|
||||
export class PendingChannelsRequest extends jspb.Message {
|
||||
getIncludeRawTx(): boolean;
|
||||
setIncludeRawTx(value: boolean): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PendingChannelsRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PendingChannelsRequest): PendingChannelsRequest.AsObject;
|
||||
|
|
@ -3176,6 +3263,7 @@ export class PendingChannelsRequest extends jspb.Message {
|
|||
|
||||
export namespace PendingChannelsRequest {
|
||||
export type AsObject = {
|
||||
includeRawTx: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3345,6 +3433,9 @@ export namespace PendingChannelsResponse {
|
|||
getClosingTxid(): string;
|
||||
setClosingTxid(value: string): void;
|
||||
|
||||
getClosingTxHex(): string;
|
||||
setClosingTxHex(value: string): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): WaitingCloseChannel.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: WaitingCloseChannel): WaitingCloseChannel.AsObject;
|
||||
|
|
@ -3361,6 +3452,7 @@ export namespace PendingChannelsResponse {
|
|||
limboBalance: string,
|
||||
commitments?: PendingChannelsResponse.Commitments.AsObject,
|
||||
closingTxid: string,
|
||||
closingTxHex: string,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3613,6 +3705,9 @@ export class WalletBalanceRequest extends jspb.Message {
|
|||
getAccount(): string;
|
||||
setAccount(value: string): void;
|
||||
|
||||
getMinConfs(): number;
|
||||
setMinConfs(value: number): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): WalletBalanceRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: WalletBalanceRequest): WalletBalanceRequest.AsObject;
|
||||
|
|
@ -3626,6 +3721,7 @@ export class WalletBalanceRequest extends jspb.Message {
|
|||
export namespace WalletBalanceRequest {
|
||||
export type AsObject = {
|
||||
account: string,
|
||||
minConfs: number,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3827,6 +3923,11 @@ export class QueryRoutesRequest extends jspb.Message {
|
|||
setRouteHintsList(value: Array<RouteHint>): void;
|
||||
addRouteHints(value?: RouteHint, index?: number): RouteHint;
|
||||
|
||||
clearBlindedPaymentPathsList(): void;
|
||||
getBlindedPaymentPathsList(): Array<BlindedPaymentPath>;
|
||||
setBlindedPaymentPathsList(value: Array<BlindedPaymentPath>): void;
|
||||
addBlindedPaymentPaths(value?: BlindedPaymentPath, index?: number): BlindedPaymentPath;
|
||||
|
||||
clearDestFeaturesList(): void;
|
||||
getDestFeaturesList(): Array<FeatureBitMap[keyof FeatureBitMap]>;
|
||||
setDestFeaturesList(value: Array<FeatureBitMap[keyof FeatureBitMap]>): void;
|
||||
|
|
@ -3862,6 +3963,7 @@ export namespace QueryRoutesRequest {
|
|||
outgoingChanId: string,
|
||||
lastHopPubkey: Uint8Array | string,
|
||||
routeHintsList: Array<RouteHint.AsObject>,
|
||||
blindedPaymentPathsList: Array<BlindedPaymentPath.AsObject>,
|
||||
destFeaturesList: Array<FeatureBitMap[keyof FeatureBitMap]>,
|
||||
timePref: number,
|
||||
}
|
||||
|
|
@ -3990,6 +4092,19 @@ export class Hop extends jspb.Message {
|
|||
getMetadata_asB64(): string;
|
||||
setMetadata(value: Uint8Array | string): void;
|
||||
|
||||
getBlindingPoint(): Uint8Array | string;
|
||||
getBlindingPoint_asU8(): Uint8Array;
|
||||
getBlindingPoint_asB64(): string;
|
||||
setBlindingPoint(value: Uint8Array | string): void;
|
||||
|
||||
getEncryptedData(): Uint8Array | string;
|
||||
getEncryptedData_asU8(): Uint8Array;
|
||||
getEncryptedData_asB64(): string;
|
||||
setEncryptedData(value: Uint8Array | string): void;
|
||||
|
||||
getTotalAmtMsat(): string;
|
||||
setTotalAmtMsat(value: string): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Hop.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Hop): Hop.AsObject;
|
||||
|
|
@ -4015,6 +4130,9 @@ export namespace Hop {
|
|||
ampRecord?: AMPRecord.AsObject,
|
||||
customRecordsMap: Array<[number, Uint8Array | string]>,
|
||||
metadata: Uint8Array | string,
|
||||
blindingPoint: Uint8Array | string,
|
||||
encryptedData: Uint8Array | string,
|
||||
totalAmtMsat: string,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -4270,6 +4388,12 @@ export class RoutingPolicy extends jspb.Message {
|
|||
|
||||
getCustomRecordsMap(): jspb.Map<number, Uint8Array | string>;
|
||||
clearCustomRecordsMap(): void;
|
||||
getInboundFeeBaseMsat(): number;
|
||||
setInboundFeeBaseMsat(value: number): void;
|
||||
|
||||
getInboundFeeRateMilliMsat(): number;
|
||||
setInboundFeeRateMilliMsat(value: number): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): RoutingPolicy.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: RoutingPolicy): RoutingPolicy.AsObject;
|
||||
|
|
@ -4290,6 +4414,8 @@ export namespace RoutingPolicy {
|
|||
maxHtlcMsat: string,
|
||||
lastUpdate: number,
|
||||
customRecordsMap: Array<[number, Uint8Array | string]>,
|
||||
inboundFeeBaseMsat: number,
|
||||
inboundFeeRateMilliMsat: number,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -4846,6 +4972,116 @@ export namespace RouteHint {
|
|||
}
|
||||
}
|
||||
|
||||
export class BlindedPaymentPath extends jspb.Message {
|
||||
hasBlindedPath(): boolean;
|
||||
clearBlindedPath(): void;
|
||||
getBlindedPath(): BlindedPath | undefined;
|
||||
setBlindedPath(value?: BlindedPath): void;
|
||||
|
||||
getBaseFeeMsat(): string;
|
||||
setBaseFeeMsat(value: string): void;
|
||||
|
||||
getProportionalFeeRate(): number;
|
||||
setProportionalFeeRate(value: number): void;
|
||||
|
||||
getTotalCltvDelta(): number;
|
||||
setTotalCltvDelta(value: number): void;
|
||||
|
||||
getHtlcMinMsat(): string;
|
||||
setHtlcMinMsat(value: string): void;
|
||||
|
||||
getHtlcMaxMsat(): string;
|
||||
setHtlcMaxMsat(value: string): void;
|
||||
|
||||
clearFeaturesList(): void;
|
||||
getFeaturesList(): Array<FeatureBitMap[keyof FeatureBitMap]>;
|
||||
setFeaturesList(value: Array<FeatureBitMap[keyof FeatureBitMap]>): void;
|
||||
addFeatures(value: FeatureBitMap[keyof FeatureBitMap], index?: number): FeatureBitMap[keyof FeatureBitMap];
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BlindedPaymentPath.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: BlindedPaymentPath): BlindedPaymentPath.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: BlindedPaymentPath, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): BlindedPaymentPath;
|
||||
static deserializeBinaryFromReader(message: BlindedPaymentPath, reader: jspb.BinaryReader): BlindedPaymentPath;
|
||||
}
|
||||
|
||||
export namespace BlindedPaymentPath {
|
||||
export type AsObject = {
|
||||
blindedPath?: BlindedPath.AsObject,
|
||||
baseFeeMsat: string,
|
||||
proportionalFeeRate: number,
|
||||
totalCltvDelta: number,
|
||||
htlcMinMsat: string,
|
||||
htlcMaxMsat: string,
|
||||
featuresList: Array<FeatureBitMap[keyof FeatureBitMap]>,
|
||||
}
|
||||
}
|
||||
|
||||
export class BlindedPath extends jspb.Message {
|
||||
getIntroductionNode(): Uint8Array | string;
|
||||
getIntroductionNode_asU8(): Uint8Array;
|
||||
getIntroductionNode_asB64(): string;
|
||||
setIntroductionNode(value: Uint8Array | string): void;
|
||||
|
||||
getBlindingPoint(): Uint8Array | string;
|
||||
getBlindingPoint_asU8(): Uint8Array;
|
||||
getBlindingPoint_asB64(): string;
|
||||
setBlindingPoint(value: Uint8Array | string): void;
|
||||
|
||||
clearBlindedHopsList(): void;
|
||||
getBlindedHopsList(): Array<BlindedHop>;
|
||||
setBlindedHopsList(value: Array<BlindedHop>): void;
|
||||
addBlindedHops(value?: BlindedHop, index?: number): BlindedHop;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BlindedPath.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: BlindedPath): BlindedPath.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: BlindedPath, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): BlindedPath;
|
||||
static deserializeBinaryFromReader(message: BlindedPath, reader: jspb.BinaryReader): BlindedPath;
|
||||
}
|
||||
|
||||
export namespace BlindedPath {
|
||||
export type AsObject = {
|
||||
introductionNode: Uint8Array | string,
|
||||
blindingPoint: Uint8Array | string,
|
||||
blindedHopsList: Array<BlindedHop.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class BlindedHop extends jspb.Message {
|
||||
getBlindedNode(): Uint8Array | string;
|
||||
getBlindedNode_asU8(): Uint8Array;
|
||||
getBlindedNode_asB64(): string;
|
||||
setBlindedNode(value: Uint8Array | string): void;
|
||||
|
||||
getEncryptedData(): Uint8Array | string;
|
||||
getEncryptedData_asU8(): Uint8Array;
|
||||
getEncryptedData_asB64(): string;
|
||||
setEncryptedData(value: Uint8Array | string): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): BlindedHop.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: BlindedHop): BlindedHop.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: BlindedHop, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): BlindedHop;
|
||||
static deserializeBinaryFromReader(message: BlindedHop, reader: jspb.BinaryReader): BlindedHop;
|
||||
}
|
||||
|
||||
export namespace BlindedHop {
|
||||
export type AsObject = {
|
||||
blindedNode: Uint8Array | string,
|
||||
encryptedData: Uint8Array | string,
|
||||
}
|
||||
}
|
||||
|
||||
export class AMPInvoiceState extends jspb.Message {
|
||||
getState(): InvoiceHTLCStateMap[keyof InvoiceHTLCStateMap];
|
||||
setState(value: InvoiceHTLCStateMap[keyof InvoiceHTLCStateMap]): void;
|
||||
|
|
@ -5364,6 +5600,7 @@ export namespace Payment {
|
|||
IN_FLIGHT: 1;
|
||||
SUCCEEDED: 2;
|
||||
FAILED: 3;
|
||||
INITIATED: 4;
|
||||
}
|
||||
|
||||
export const PaymentStatus: PaymentStatusMap;
|
||||
|
|
@ -5538,6 +5775,9 @@ export class DeleteAllPaymentsRequest extends jspb.Message {
|
|||
getFailedHtlcsOnly(): boolean;
|
||||
setFailedHtlcsOnly(value: boolean): void;
|
||||
|
||||
getAllPayments(): boolean;
|
||||
setAllPayments(value: boolean): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteAllPaymentsRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeleteAllPaymentsRequest): DeleteAllPaymentsRequest.AsObject;
|
||||
|
|
@ -5552,6 +5792,7 @@ export namespace DeleteAllPaymentsRequest {
|
|||
export type AsObject = {
|
||||
failedPaymentsOnly: boolean,
|
||||
failedHtlcsOnly: boolean,
|
||||
allPayments: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -5828,6 +6069,12 @@ export class ChannelFeeReport extends jspb.Message {
|
|||
getFeeRate(): number;
|
||||
setFeeRate(value: number): void;
|
||||
|
||||
getInboundBaseFeeMsat(): number;
|
||||
setInboundBaseFeeMsat(value: number): void;
|
||||
|
||||
getInboundFeePerMil(): number;
|
||||
setInboundFeePerMil(value: number): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ChannelFeeReport.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: ChannelFeeReport): ChannelFeeReport.AsObject;
|
||||
|
|
@ -5845,6 +6092,8 @@ export namespace ChannelFeeReport {
|
|||
baseFeeMsat: string,
|
||||
feePerMil: string,
|
||||
feeRate: number,
|
||||
inboundBaseFeeMsat: number,
|
||||
inboundFeePerMil: number,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -5882,6 +6131,30 @@ export namespace FeeReportResponse {
|
|||
}
|
||||
}
|
||||
|
||||
export class InboundFee extends jspb.Message {
|
||||
getBaseFeeMsat(): number;
|
||||
setBaseFeeMsat(value: number): void;
|
||||
|
||||
getFeeRatePpm(): number;
|
||||
setFeeRatePpm(value: number): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): InboundFee.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: InboundFee): InboundFee.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: InboundFee, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): InboundFee;
|
||||
static deserializeBinaryFromReader(message: InboundFee, reader: jspb.BinaryReader): InboundFee;
|
||||
}
|
||||
|
||||
export namespace InboundFee {
|
||||
export type AsObject = {
|
||||
baseFeeMsat: number,
|
||||
feeRatePpm: number,
|
||||
}
|
||||
}
|
||||
|
||||
export class PolicyUpdateRequest extends jspb.Message {
|
||||
hasGlobal(): boolean;
|
||||
clearGlobal(): void;
|
||||
|
|
@ -5914,6 +6187,11 @@ export class PolicyUpdateRequest extends jspb.Message {
|
|||
getMinHtlcMsatSpecified(): boolean;
|
||||
setMinHtlcMsatSpecified(value: boolean): void;
|
||||
|
||||
hasInboundFee(): boolean;
|
||||
clearInboundFee(): void;
|
||||
getInboundFee(): InboundFee | undefined;
|
||||
setInboundFee(value?: InboundFee): void;
|
||||
|
||||
getScopeCase(): PolicyUpdateRequest.ScopeCase;
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PolicyUpdateRequest.AsObject;
|
||||
|
|
@ -5936,6 +6214,7 @@ export namespace PolicyUpdateRequest {
|
|||
maxHtlcMsat: string,
|
||||
minHtlcMsat: string,
|
||||
minHtlcMsatSpecified: boolean,
|
||||
inboundFee?: InboundFee.AsObject,
|
||||
}
|
||||
|
||||
export enum ScopeCase {
|
||||
|
|
@ -6638,6 +6917,7 @@ export namespace Failure {
|
|||
EXPIRY_TOO_FAR: 22;
|
||||
MPP_TIMEOUT: 23;
|
||||
INVALID_ONION_PAYLOAD: 24;
|
||||
INVALID_ONION_BLINDING: 25;
|
||||
INTERNAL_FAILURE: 997;
|
||||
UNKNOWN_FAILURE: 998;
|
||||
UNREADABLE_FAILURE: 999;
|
||||
|
|
@ -7065,6 +7345,14 @@ export interface OutputScriptTypeMap {
|
|||
|
||||
export const OutputScriptType: OutputScriptTypeMap;
|
||||
|
||||
export interface CoinSelectionStrategyMap {
|
||||
STRATEGY_USE_GLOBAL_CONFIG: 0;
|
||||
STRATEGY_LARGEST: 1;
|
||||
STRATEGY_RANDOM: 2;
|
||||
}
|
||||
|
||||
export const CoinSelectionStrategy: CoinSelectionStrategyMap;
|
||||
|
||||
export interface AddressTypeMap {
|
||||
WITNESS_PUBKEY_HASH: 0;
|
||||
NESTED_PUBKEY_HASH: 1;
|
||||
|
|
@ -7167,6 +7455,8 @@ export interface FeatureBitMap {
|
|||
ANCHORS_OPT: 21;
|
||||
ANCHORS_ZERO_FEE_HTLC_REQ: 22;
|
||||
ANCHORS_ZERO_FEE_HTLC_OPT: 23;
|
||||
ROUTE_BLINDING_REQUIRED: 24;
|
||||
ROUTE_BLINDING_OPTIONAL: 25;
|
||||
AMP_REQ: 30;
|
||||
AMP_OPT: 31;
|
||||
}
|
||||
|
|
|
|||
2099
app/src/types/generated/lnd_pb.js
generated
2099
app/src/types/generated/lnd_pb.js
generated
File diff suppressed because it is too large
Load diff
19
app/src/types/generated/lnd_pb_service.d.ts
generated
vendored
19
app/src/types/generated/lnd_pb_service.d.ts
generated
vendored
|
|
@ -148,6 +148,15 @@ type LightningGetInfo = {
|
|||
readonly responseType: typeof lnd_pb.GetInfoResponse;
|
||||
};
|
||||
|
||||
type LightningGetDebugInfo = {
|
||||
readonly methodName: string;
|
||||
readonly service: typeof Lightning;
|
||||
readonly requestStream: false;
|
||||
readonly responseStream: false;
|
||||
readonly requestType: typeof lnd_pb.GetDebugInfoRequest;
|
||||
readonly responseType: typeof lnd_pb.GetDebugInfoResponse;
|
||||
};
|
||||
|
||||
type LightningGetRecoveryInfo = {
|
||||
readonly methodName: string;
|
||||
readonly service: typeof Lightning;
|
||||
|
|
@ -625,6 +634,7 @@ export class Lightning {
|
|||
static readonly ListPeers: LightningListPeers;
|
||||
static readonly SubscribePeerEvents: LightningSubscribePeerEvents;
|
||||
static readonly GetInfo: LightningGetInfo;
|
||||
static readonly GetDebugInfo: LightningGetDebugInfo;
|
||||
static readonly GetRecoveryInfo: LightningGetRecoveryInfo;
|
||||
static readonly PendingChannels: LightningPendingChannels;
|
||||
static readonly ListChannels: LightningListChannels;
|
||||
|
|
@ -838,6 +848,15 @@ export class LightningClient {
|
|||
requestMessage: lnd_pb.GetInfoRequest,
|
||||
callback: (error: ServiceError|null, responseMessage: lnd_pb.GetInfoResponse|null) => void
|
||||
): UnaryResponse;
|
||||
getDebugInfo(
|
||||
requestMessage: lnd_pb.GetDebugInfoRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: ServiceError|null, responseMessage: lnd_pb.GetDebugInfoResponse|null) => void
|
||||
): UnaryResponse;
|
||||
getDebugInfo(
|
||||
requestMessage: lnd_pb.GetDebugInfoRequest,
|
||||
callback: (error: ServiceError|null, responseMessage: lnd_pb.GetDebugInfoResponse|null) => void
|
||||
): UnaryResponse;
|
||||
getRecoveryInfo(
|
||||
requestMessage: lnd_pb.GetRecoveryInfoRequest,
|
||||
metadata: grpc.Metadata,
|
||||
|
|
|
|||
40
app/src/types/generated/lnd_pb_service.js
generated
40
app/src/types/generated/lnd_pb_service.js
generated
|
|
@ -154,6 +154,15 @@ Lightning.GetInfo = {
|
|||
responseType: lnd_pb.GetInfoResponse
|
||||
};
|
||||
|
||||
Lightning.GetDebugInfo = {
|
||||
methodName: "GetDebugInfo",
|
||||
service: Lightning,
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: lnd_pb.GetDebugInfoRequest,
|
||||
responseType: lnd_pb.GetDebugInfoResponse
|
||||
};
|
||||
|
||||
Lightning.GetRecoveryInfo = {
|
||||
methodName: "GetRecoveryInfo",
|
||||
service: Lightning,
|
||||
|
|
@ -1132,6 +1141,37 @@ LightningClient.prototype.getInfo = function getInfo(requestMessage, metadata, c
|
|||
};
|
||||
};
|
||||
|
||||
LightningClient.prototype.getDebugInfo = function getDebugInfo(requestMessage, metadata, callback) {
|
||||
if (arguments.length === 2) {
|
||||
callback = arguments[1];
|
||||
}
|
||||
var client = grpc.unary(Lightning.GetDebugInfo, {
|
||||
request: requestMessage,
|
||||
host: this.serviceHost,
|
||||
metadata: metadata,
|
||||
transport: this.options.transport,
|
||||
debug: this.options.debug,
|
||||
onEnd: function (response) {
|
||||
if (callback) {
|
||||
if (response.status !== grpc.Code.OK) {
|
||||
var err = new Error(response.statusMessage);
|
||||
err.code = response.status;
|
||||
err.metadata = response.trailers;
|
||||
callback(err, null);
|
||||
} else {
|
||||
callback(null, response.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
return {
|
||||
cancel: function () {
|
||||
callback = null;
|
||||
client.close();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
LightningClient.prototype.getRecoveryInfo = function getRecoveryInfo(requestMessage, metadata, callback) {
|
||||
if (arguments.length === 2) {
|
||||
callback = arguments[1];
|
||||
|
|
|
|||
26
app/src/types/generated/loop_pb.d.ts
generated
vendored
26
app/src/types/generated/loop_pb.d.ts
generated
vendored
|
|
@ -65,6 +65,9 @@ export class LoopOutRequest extends jspb.Message {
|
|||
setReservationIdsList(value: Array<Uint8Array | string>): void;
|
||||
addReservationIds(value: Uint8Array | string, index?: number): Uint8Array | string;
|
||||
|
||||
getPaymentTimeout(): number;
|
||||
setPaymentTimeout(value: number): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LoopOutRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LoopOutRequest): LoopOutRequest.AsObject;
|
||||
|
|
@ -95,6 +98,7 @@ export namespace LoopOutRequest {
|
|||
accountAddrType: AddressTypeMap[keyof AddressTypeMap],
|
||||
isExternalAddr: boolean,
|
||||
reservationIdsList: Array<Uint8Array | string>,
|
||||
paymentTimeout: number,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -680,9 +684,9 @@ export namespace TokensRequest {
|
|||
|
||||
export class TokensResponse extends jspb.Message {
|
||||
clearTokensList(): void;
|
||||
getTokensList(): Array<LsatToken>;
|
||||
setTokensList(value: Array<LsatToken>): void;
|
||||
addTokens(value?: LsatToken, index?: number): LsatToken;
|
||||
getTokensList(): Array<L402Token>;
|
||||
setTokensList(value: Array<L402Token>): void;
|
||||
addTokens(value?: L402Token, index?: number): L402Token;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): TokensResponse.AsObject;
|
||||
|
|
@ -696,11 +700,11 @@ export class TokensResponse extends jspb.Message {
|
|||
|
||||
export namespace TokensResponse {
|
||||
export type AsObject = {
|
||||
tokensList: Array<LsatToken.AsObject>,
|
||||
tokensList: Array<L402Token.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class LsatToken extends jspb.Message {
|
||||
export class L402Token extends jspb.Message {
|
||||
getBaseMacaroon(): Uint8Array | string;
|
||||
getBaseMacaroon_asU8(): Uint8Array;
|
||||
getBaseMacaroon_asB64(): string;
|
||||
|
|
@ -735,16 +739,16 @@ export class LsatToken extends jspb.Message {
|
|||
setId(value: string): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): LsatToken.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: LsatToken): LsatToken.AsObject;
|
||||
toObject(includeInstance?: boolean): L402Token.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: L402Token): L402Token.AsObject;
|
||||
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
||||
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
||||
static serializeBinaryToWriter(message: LsatToken, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): LsatToken;
|
||||
static deserializeBinaryFromReader(message: LsatToken, reader: jspb.BinaryReader): LsatToken;
|
||||
static serializeBinaryToWriter(message: L402Token, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): L402Token;
|
||||
static deserializeBinaryFromReader(message: L402Token, reader: jspb.BinaryReader): L402Token;
|
||||
}
|
||||
|
||||
export namespace LsatToken {
|
||||
export namespace L402Token {
|
||||
export type AsObject = {
|
||||
baseMacaroon: Uint8Array | string,
|
||||
paymentHash: Uint8Array | string,
|
||||
|
|
|
|||
139
app/src/types/generated/loop_pb.js
generated
139
app/src/types/generated/loop_pb.js
generated
|
|
@ -32,6 +32,7 @@ goog.exportSymbol('proto.looprpc.InstantOutQuoteRequest', null, global);
|
|||
goog.exportSymbol('proto.looprpc.InstantOutQuoteResponse', null, global);
|
||||
goog.exportSymbol('proto.looprpc.InstantOutRequest', null, global);
|
||||
goog.exportSymbol('proto.looprpc.InstantOutResponse', null, global);
|
||||
goog.exportSymbol('proto.looprpc.L402Token', null, global);
|
||||
goog.exportSymbol('proto.looprpc.LiquidityParameters', null, global);
|
||||
goog.exportSymbol('proto.looprpc.LiquidityRule', null, global);
|
||||
goog.exportSymbol('proto.looprpc.LiquidityRuleType', null, global);
|
||||
|
|
@ -46,7 +47,6 @@ goog.exportSymbol('proto.looprpc.ListSwapsResponse', null, global);
|
|||
goog.exportSymbol('proto.looprpc.LoopInRequest', null, global);
|
||||
goog.exportSymbol('proto.looprpc.LoopOutRequest', null, global);
|
||||
goog.exportSymbol('proto.looprpc.LoopStats', null, global);
|
||||
goog.exportSymbol('proto.looprpc.LsatToken', null, global);
|
||||
goog.exportSymbol('proto.looprpc.MonitorRequest', null, global);
|
||||
goog.exportSymbol('proto.looprpc.OutQuoteResponse', null, global);
|
||||
goog.exportSymbol('proto.looprpc.OutTermsResponse', null, global);
|
||||
|
|
@ -136,7 +136,8 @@ proto.looprpc.LoopOutRequest.toObject = function(includeInstance, msg) {
|
|||
account: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
||||
accountAddrType: jspb.Message.getFieldWithDefault(msg, 16, 0),
|
||||
isExternalAddr: jspb.Message.getFieldWithDefault(msg, 17, false),
|
||||
reservationIdsList: msg.getReservationIdsList_asB64()
|
||||
reservationIdsList: msg.getReservationIdsList_asB64(),
|
||||
paymentTimeout: jspb.Message.getFieldWithDefault(msg, 19, 0)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
|
|
@ -245,6 +246,10 @@ proto.looprpc.LoopOutRequest.deserializeBinaryFromReader = function(msg, reader)
|
|||
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||
msg.addReservationIds(value);
|
||||
break;
|
||||
case 19:
|
||||
var value = /** @type {number} */ (reader.readUint32());
|
||||
msg.setPaymentTimeout(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
|
|
@ -400,6 +405,13 @@ proto.looprpc.LoopOutRequest.serializeBinaryToWriter = function(message, writer)
|
|||
f
|
||||
);
|
||||
}
|
||||
f = message.getPaymentTimeout();
|
||||
if (f !== 0) {
|
||||
writer.writeUint32(
|
||||
19,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -727,6 +739,21 @@ proto.looprpc.LoopOutRequest.prototype.clearReservationIdsList = function() {
|
|||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional uint32 payment_timeout = 19;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.looprpc.LoopOutRequest.prototype.getPaymentTimeout = function() {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {number} value */
|
||||
proto.looprpc.LoopOutRequest.prototype.setPaymentTimeout = function(value) {
|
||||
jspb.Message.setProto3IntField(this, 19, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
|
|
@ -4948,7 +4975,7 @@ proto.looprpc.TokensResponse.prototype.toObject = function(opt_includeInstance)
|
|||
proto.looprpc.TokensResponse.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
tokensList: jspb.Message.toObjectList(msg.getTokensList(),
|
||||
proto.looprpc.LsatToken.toObject, includeInstance)
|
||||
proto.looprpc.L402Token.toObject, includeInstance)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
|
|
@ -4986,8 +5013,8 @@ proto.looprpc.TokensResponse.deserializeBinaryFromReader = function(msg, reader)
|
|||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = new proto.looprpc.LsatToken;
|
||||
reader.readMessage(value,proto.looprpc.LsatToken.deserializeBinaryFromReader);
|
||||
var value = new proto.looprpc.L402Token;
|
||||
reader.readMessage(value,proto.looprpc.L402Token.deserializeBinaryFromReader);
|
||||
msg.addTokens(value);
|
||||
break;
|
||||
default:
|
||||
|
|
@ -5024,35 +5051,35 @@ proto.looprpc.TokensResponse.serializeBinaryToWriter = function(message, writer)
|
|||
writer.writeRepeatedMessage(
|
||||
1,
|
||||
f,
|
||||
proto.looprpc.LsatToken.serializeBinaryToWriter
|
||||
proto.looprpc.L402Token.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* repeated LsatToken tokens = 1;
|
||||
* @return {!Array<!proto.looprpc.LsatToken>}
|
||||
* repeated L402Token tokens = 1;
|
||||
* @return {!Array<!proto.looprpc.L402Token>}
|
||||
*/
|
||||
proto.looprpc.TokensResponse.prototype.getTokensList = function() {
|
||||
return /** @type{!Array<!proto.looprpc.LsatToken>} */ (
|
||||
jspb.Message.getRepeatedWrapperField(this, proto.looprpc.LsatToken, 1));
|
||||
return /** @type{!Array<!proto.looprpc.L402Token>} */ (
|
||||
jspb.Message.getRepeatedWrapperField(this, proto.looprpc.L402Token, 1));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!Array<!proto.looprpc.LsatToken>} value */
|
||||
/** @param {!Array<!proto.looprpc.L402Token>} value */
|
||||
proto.looprpc.TokensResponse.prototype.setTokensList = function(value) {
|
||||
jspb.Message.setRepeatedWrapperField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.looprpc.LsatToken=} opt_value
|
||||
* @param {!proto.looprpc.L402Token=} opt_value
|
||||
* @param {number=} opt_index
|
||||
* @return {!proto.looprpc.LsatToken}
|
||||
* @return {!proto.looprpc.L402Token}
|
||||
*/
|
||||
proto.looprpc.TokensResponse.prototype.addTokens = function(opt_value, opt_index) {
|
||||
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.looprpc.LsatToken, opt_index);
|
||||
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.looprpc.L402Token, opt_index);
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -5072,12 +5099,12 @@ proto.looprpc.TokensResponse.prototype.clearTokensList = function() {
|
|||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.looprpc.LsatToken = function(opt_data) {
|
||||
proto.looprpc.L402Token = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.looprpc.LsatToken, jspb.Message);
|
||||
goog.inherits(proto.looprpc.L402Token, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.looprpc.LsatToken.displayName = 'proto.looprpc.LsatToken';
|
||||
proto.looprpc.L402Token.displayName = 'proto.looprpc.L402Token';
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -5092,8 +5119,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.looprpc.LsatToken.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.looprpc.LsatToken.toObject(opt_includeInstance, this);
|
||||
proto.looprpc.L402Token.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.looprpc.L402Token.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -5102,11 +5129,11 @@ proto.looprpc.LsatToken.prototype.toObject = function(opt_includeInstance) {
|
|||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.looprpc.LsatToken} msg The msg instance to transform.
|
||||
* @param {!proto.looprpc.L402Token} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.looprpc.LsatToken.toObject = function(includeInstance, msg) {
|
||||
proto.looprpc.L402Token.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
baseMacaroon: msg.getBaseMacaroon_asB64(),
|
||||
paymentHash: msg.getPaymentHash_asB64(),
|
||||
|
|
@ -5130,23 +5157,23 @@ proto.looprpc.LsatToken.toObject = function(includeInstance, msg) {
|
|||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.looprpc.LsatToken}
|
||||
* @return {!proto.looprpc.L402Token}
|
||||
*/
|
||||
proto.looprpc.LsatToken.deserializeBinary = function(bytes) {
|
||||
proto.looprpc.L402Token.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.looprpc.LsatToken;
|
||||
return proto.looprpc.LsatToken.deserializeBinaryFromReader(msg, reader);
|
||||
var msg = new proto.looprpc.L402Token;
|
||||
return proto.looprpc.L402Token.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.looprpc.LsatToken} msg The message object to deserialize into.
|
||||
* @param {!proto.looprpc.L402Token} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.looprpc.LsatToken}
|
||||
* @return {!proto.looprpc.L402Token}
|
||||
*/
|
||||
proto.looprpc.LsatToken.deserializeBinaryFromReader = function(msg, reader) {
|
||||
proto.looprpc.L402Token.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
|
|
@ -5202,9 +5229,9 @@ proto.looprpc.LsatToken.deserializeBinaryFromReader = function(msg, reader) {
|
|||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.looprpc.LsatToken.prototype.serializeBinary = function() {
|
||||
proto.looprpc.L402Token.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.looprpc.LsatToken.serializeBinaryToWriter(this, writer);
|
||||
proto.looprpc.L402Token.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
|
@ -5212,11 +5239,11 @@ proto.looprpc.LsatToken.prototype.serializeBinary = function() {
|
|||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.looprpc.LsatToken} message
|
||||
* @param {!proto.looprpc.L402Token} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.looprpc.LsatToken.serializeBinaryToWriter = function(message, writer) {
|
||||
proto.looprpc.L402Token.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getBaseMacaroon_asU8();
|
||||
if (f.length > 0) {
|
||||
|
|
@ -5288,7 +5315,7 @@ proto.looprpc.LsatToken.serializeBinaryToWriter = function(message, writer) {
|
|||
* optional bytes base_macaroon = 1;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.looprpc.LsatToken.prototype.getBaseMacaroon = function() {
|
||||
proto.looprpc.L402Token.prototype.getBaseMacaroon = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
|
@ -5298,7 +5325,7 @@ proto.looprpc.LsatToken.prototype.getBaseMacaroon = function() {
|
|||
* This is a type-conversion wrapper around `getBaseMacaroon()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.looprpc.LsatToken.prototype.getBaseMacaroon_asB64 = function() {
|
||||
proto.looprpc.L402Token.prototype.getBaseMacaroon_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getBaseMacaroon()));
|
||||
};
|
||||
|
|
@ -5311,14 +5338,14 @@ proto.looprpc.LsatToken.prototype.getBaseMacaroon_asB64 = function() {
|
|||
* This is a type-conversion wrapper around `getBaseMacaroon()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.looprpc.LsatToken.prototype.getBaseMacaroon_asU8 = function() {
|
||||
proto.looprpc.L402Token.prototype.getBaseMacaroon_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getBaseMacaroon()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.looprpc.LsatToken.prototype.setBaseMacaroon = function(value) {
|
||||
proto.looprpc.L402Token.prototype.setBaseMacaroon = function(value) {
|
||||
jspb.Message.setProto3BytesField(this, 1, value);
|
||||
};
|
||||
|
||||
|
|
@ -5327,7 +5354,7 @@ proto.looprpc.LsatToken.prototype.setBaseMacaroon = function(value) {
|
|||
* optional bytes payment_hash = 2;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.looprpc.LsatToken.prototype.getPaymentHash = function() {
|
||||
proto.looprpc.L402Token.prototype.getPaymentHash = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
|
@ -5337,7 +5364,7 @@ proto.looprpc.LsatToken.prototype.getPaymentHash = function() {
|
|||
* This is a type-conversion wrapper around `getPaymentHash()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.looprpc.LsatToken.prototype.getPaymentHash_asB64 = function() {
|
||||
proto.looprpc.L402Token.prototype.getPaymentHash_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getPaymentHash()));
|
||||
};
|
||||
|
|
@ -5350,14 +5377,14 @@ proto.looprpc.LsatToken.prototype.getPaymentHash_asB64 = function() {
|
|||
* This is a type-conversion wrapper around `getPaymentHash()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.looprpc.LsatToken.prototype.getPaymentHash_asU8 = function() {
|
||||
proto.looprpc.L402Token.prototype.getPaymentHash_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getPaymentHash()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.looprpc.LsatToken.prototype.setPaymentHash = function(value) {
|
||||
proto.looprpc.L402Token.prototype.setPaymentHash = function(value) {
|
||||
jspb.Message.setProto3BytesField(this, 2, value);
|
||||
};
|
||||
|
||||
|
|
@ -5366,7 +5393,7 @@ proto.looprpc.LsatToken.prototype.setPaymentHash = function(value) {
|
|||
* optional bytes payment_preimage = 3;
|
||||
* @return {!(string|Uint8Array)}
|
||||
*/
|
||||
proto.looprpc.LsatToken.prototype.getPaymentPreimage = function() {
|
||||
proto.looprpc.L402Token.prototype.getPaymentPreimage = function() {
|
||||
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||
};
|
||||
|
||||
|
|
@ -5376,7 +5403,7 @@ proto.looprpc.LsatToken.prototype.getPaymentPreimage = function() {
|
|||
* This is a type-conversion wrapper around `getPaymentPreimage()`
|
||||
* @return {string}
|
||||
*/
|
||||
proto.looprpc.LsatToken.prototype.getPaymentPreimage_asB64 = function() {
|
||||
proto.looprpc.L402Token.prototype.getPaymentPreimage_asB64 = function() {
|
||||
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||
this.getPaymentPreimage()));
|
||||
};
|
||||
|
|
@ -5389,14 +5416,14 @@ proto.looprpc.LsatToken.prototype.getPaymentPreimage_asB64 = function() {
|
|||
* This is a type-conversion wrapper around `getPaymentPreimage()`
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.looprpc.LsatToken.prototype.getPaymentPreimage_asU8 = function() {
|
||||
proto.looprpc.L402Token.prototype.getPaymentPreimage_asU8 = function() {
|
||||
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||
this.getPaymentPreimage()));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!(string|Uint8Array)} value */
|
||||
proto.looprpc.LsatToken.prototype.setPaymentPreimage = function(value) {
|
||||
proto.looprpc.L402Token.prototype.setPaymentPreimage = function(value) {
|
||||
jspb.Message.setProto3BytesField(this, 3, value);
|
||||
};
|
||||
|
||||
|
|
@ -5405,13 +5432,13 @@ proto.looprpc.LsatToken.prototype.setPaymentPreimage = function(value) {
|
|||
* optional int64 amount_paid_msat = 4;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.looprpc.LsatToken.prototype.getAmountPaidMsat = function() {
|
||||
proto.looprpc.L402Token.prototype.getAmountPaidMsat = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0"));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.looprpc.LsatToken.prototype.setAmountPaidMsat = function(value) {
|
||||
proto.looprpc.L402Token.prototype.setAmountPaidMsat = function(value) {
|
||||
jspb.Message.setProto3StringIntField(this, 4, value);
|
||||
};
|
||||
|
||||
|
|
@ -5420,13 +5447,13 @@ proto.looprpc.LsatToken.prototype.setAmountPaidMsat = function(value) {
|
|||
* optional int64 routing_fee_paid_msat = 5;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.looprpc.LsatToken.prototype.getRoutingFeePaidMsat = function() {
|
||||
proto.looprpc.L402Token.prototype.getRoutingFeePaidMsat = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0"));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.looprpc.LsatToken.prototype.setRoutingFeePaidMsat = function(value) {
|
||||
proto.looprpc.L402Token.prototype.setRoutingFeePaidMsat = function(value) {
|
||||
jspb.Message.setProto3StringIntField(this, 5, value);
|
||||
};
|
||||
|
||||
|
|
@ -5435,13 +5462,13 @@ proto.looprpc.LsatToken.prototype.setRoutingFeePaidMsat = function(value) {
|
|||
* optional int64 time_created = 6;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.looprpc.LsatToken.prototype.getTimeCreated = function() {
|
||||
proto.looprpc.L402Token.prototype.getTimeCreated = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0"));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.looprpc.LsatToken.prototype.setTimeCreated = function(value) {
|
||||
proto.looprpc.L402Token.prototype.setTimeCreated = function(value) {
|
||||
jspb.Message.setProto3StringIntField(this, 6, value);
|
||||
};
|
||||
|
||||
|
|
@ -5452,13 +5479,13 @@ proto.looprpc.LsatToken.prototype.setTimeCreated = function(value) {
|
|||
* You should avoid comparisons like {@code val === true/false} in those cases.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.looprpc.LsatToken.prototype.getExpired = function() {
|
||||
proto.looprpc.L402Token.prototype.getExpired = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 7, false));
|
||||
};
|
||||
|
||||
|
||||
/** @param {boolean} value */
|
||||
proto.looprpc.LsatToken.prototype.setExpired = function(value) {
|
||||
proto.looprpc.L402Token.prototype.setExpired = function(value) {
|
||||
jspb.Message.setProto3BooleanField(this, 7, value);
|
||||
};
|
||||
|
||||
|
|
@ -5467,13 +5494,13 @@ proto.looprpc.LsatToken.prototype.setExpired = function(value) {
|
|||
* optional string storage_name = 8;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.looprpc.LsatToken.prototype.getStorageName = function() {
|
||||
proto.looprpc.L402Token.prototype.getStorageName = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.looprpc.LsatToken.prototype.setStorageName = function(value) {
|
||||
proto.looprpc.L402Token.prototype.setStorageName = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 8, value);
|
||||
};
|
||||
|
||||
|
|
@ -5482,13 +5509,13 @@ proto.looprpc.LsatToken.prototype.setStorageName = function(value) {
|
|||
* optional string id = 9;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.looprpc.LsatToken.prototype.getId = function() {
|
||||
proto.looprpc.L402Token.prototype.getId = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.looprpc.LsatToken.prototype.setId = function(value) {
|
||||
proto.looprpc.L402Token.prototype.setId = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 9, value);
|
||||
};
|
||||
|
||||
|
|
|
|||
19
app/src/types/generated/loop_pb_service.d.ts
generated
vendored
19
app/src/types/generated/loop_pb_service.d.ts
generated
vendored
|
|
@ -103,6 +103,15 @@ type SwapClientProbe = {
|
|||
readonly responseType: typeof loop_pb.ProbeResponse;
|
||||
};
|
||||
|
||||
type SwapClientGetL402Tokens = {
|
||||
readonly methodName: string;
|
||||
readonly service: typeof SwapClient;
|
||||
readonly requestStream: false;
|
||||
readonly responseStream: false;
|
||||
readonly requestType: typeof loop_pb.TokensRequest;
|
||||
readonly responseType: typeof loop_pb.TokensResponse;
|
||||
};
|
||||
|
||||
type SwapClientGetLsatTokens = {
|
||||
readonly methodName: string;
|
||||
readonly service: typeof SwapClient;
|
||||
|
|
@ -197,6 +206,7 @@ export class SwapClient {
|
|||
static readonly GetLoopInTerms: SwapClientGetLoopInTerms;
|
||||
static readonly GetLoopInQuote: SwapClientGetLoopInQuote;
|
||||
static readonly Probe: SwapClientProbe;
|
||||
static readonly GetL402Tokens: SwapClientGetL402Tokens;
|
||||
static readonly GetLsatTokens: SwapClientGetLsatTokens;
|
||||
static readonly GetInfo: SwapClientGetInfo;
|
||||
static readonly GetLiquidityParams: SwapClientGetLiquidityParams;
|
||||
|
|
@ -331,6 +341,15 @@ export class SwapClientClient {
|
|||
requestMessage: loop_pb.ProbeRequest,
|
||||
callback: (error: ServiceError|null, responseMessage: loop_pb.ProbeResponse|null) => void
|
||||
): UnaryResponse;
|
||||
getL402Tokens(
|
||||
requestMessage: loop_pb.TokensRequest,
|
||||
metadata: grpc.Metadata,
|
||||
callback: (error: ServiceError|null, responseMessage: loop_pb.TokensResponse|null) => void
|
||||
): UnaryResponse;
|
||||
getL402Tokens(
|
||||
requestMessage: loop_pb.TokensRequest,
|
||||
callback: (error: ServiceError|null, responseMessage: loop_pb.TokensResponse|null) => void
|
||||
): UnaryResponse;
|
||||
getLsatTokens(
|
||||
requestMessage: loop_pb.TokensRequest,
|
||||
metadata: grpc.Metadata,
|
||||
|
|
|
|||
40
app/src/types/generated/loop_pb_service.js
generated
40
app/src/types/generated/loop_pb_service.js
generated
|
|
@ -109,6 +109,15 @@ SwapClient.Probe = {
|
|||
responseType: loop_pb.ProbeResponse
|
||||
};
|
||||
|
||||
SwapClient.GetL402Tokens = {
|
||||
methodName: "GetL402Tokens",
|
||||
service: SwapClient,
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
requestType: loop_pb.TokensRequest,
|
||||
responseType: loop_pb.TokensResponse
|
||||
};
|
||||
|
||||
SwapClient.GetLsatTokens = {
|
||||
methodName: "GetLsatTokens",
|
||||
service: SwapClient,
|
||||
|
|
@ -546,6 +555,37 @@ SwapClientClient.prototype.probe = function probe(requestMessage, metadata, call
|
|||
};
|
||||
};
|
||||
|
||||
SwapClientClient.prototype.getL402Tokens = function getL402Tokens(requestMessage, metadata, callback) {
|
||||
if (arguments.length === 2) {
|
||||
callback = arguments[1];
|
||||
}
|
||||
var client = grpc.unary(SwapClient.GetL402Tokens, {
|
||||
request: requestMessage,
|
||||
host: this.serviceHost,
|
||||
metadata: metadata,
|
||||
transport: this.options.transport,
|
||||
debug: this.options.debug,
|
||||
onEnd: function (response) {
|
||||
if (callback) {
|
||||
if (response.status !== grpc.Code.OK) {
|
||||
var err = new Error(response.statusMessage);
|
||||
err.code = response.status;
|
||||
err.metadata = response.trailers;
|
||||
callback(err, null);
|
||||
} else {
|
||||
callback(null, response.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
return {
|
||||
cancel: function () {
|
||||
callback = null;
|
||||
client.close();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
SwapClientClient.prototype.getLsatTokens = function getLsatTokens(requestMessage, metadata, callback) {
|
||||
if (arguments.length === 2) {
|
||||
callback = arguments[1];
|
||||
|
|
|
|||
|
|
@ -373,6 +373,11 @@ enum ChannelType {
|
|||
outputs that pay directly to the channel initiator (the seller).
|
||||
*/
|
||||
SCRIPT_ENFORCED_LEASE = 2;
|
||||
|
||||
/*
|
||||
A channel type that uses a Pay-to-Taproot output for the funding output.
|
||||
*/
|
||||
SIMPLE_TAPROOT = 3;
|
||||
}
|
||||
|
||||
message ChannelInfo {
|
||||
|
|
@ -897,6 +902,11 @@ enum OrderChannelType {
|
|||
channel initiator/seller.
|
||||
*/
|
||||
ORDER_CHANNEL_TYPE_SCRIPT_ENFORCED = 2;
|
||||
|
||||
/*
|
||||
A channel type that uses a Pay-to-Taproot output for the funding output.
|
||||
*/
|
||||
ORDER_CHANNEL_TYPE_SIMPLE_TAPROOT = 3;
|
||||
}
|
||||
|
||||
enum AuctionType {
|
||||
|
|
|
|||
245
proto/lnd.proto
245
proto/lnd.proto
|
|
@ -143,6 +143,13 @@ service Lightning {
|
|||
*/
|
||||
rpc GetInfo (GetInfoRequest) returns (GetInfoResponse);
|
||||
|
||||
/* lncli: 'getdebuginfo'
|
||||
GetDebugInfo returns debug information concerning the state of the daemon
|
||||
and its subsystems. This includes the full configuration and the latest log
|
||||
entries from the log file.
|
||||
*/
|
||||
rpc GetDebugInfo (GetDebugInfoRequest) returns (GetDebugInfoResponse);
|
||||
|
||||
/** lncli: `getrecoveryinfo`
|
||||
GetRecoveryInfo returns information concerning the recovery mode including
|
||||
whether it's in a recovery mode, whether the recovery is finished, and the
|
||||
|
|
@ -322,7 +329,7 @@ service Lightning {
|
|||
optionally specify the add_index and/or the settle_index. If the add_index
|
||||
is specified, then we'll first start by sending add invoice events for all
|
||||
invoices with an add_index greater than the specified value. If the
|
||||
settle_index is specified, the next, we'll send out all settle events for
|
||||
settle_index is specified, then next, we'll send out all settle events for
|
||||
invoices with a settle_index greater than the specified value. One or both
|
||||
of these fields can be set. If no fields are set, then we'll only send out
|
||||
the latest add/settle events.
|
||||
|
|
@ -341,13 +348,13 @@ service Lightning {
|
|||
*/
|
||||
rpc ListPayments (ListPaymentsRequest) returns (ListPaymentsResponse);
|
||||
|
||||
/*
|
||||
/* lncli: `deletepayments`
|
||||
DeletePayment deletes an outgoing payment from DB. Note that it will not
|
||||
attempt to delete an In-Flight payment, since that would be unsafe.
|
||||
*/
|
||||
rpc DeletePayment (DeletePaymentRequest) returns (DeletePaymentResponse);
|
||||
|
||||
/*
|
||||
/* lncli: `deletepayments --all`
|
||||
DeleteAllPayments deletes all outgoing payments from DB. Note that it will
|
||||
not attempt to delete In-Flight payments, since that would be unsafe.
|
||||
*/
|
||||
|
|
@ -479,7 +486,7 @@ service Lightning {
|
|||
rpc ExportAllChannelBackups (ChanBackupExportRequest)
|
||||
returns (ChanBackupSnapshot);
|
||||
|
||||
/*
|
||||
/* lncli: `verifychanbackup`
|
||||
VerifyChanBackup allows a caller to verify the integrity of a channel backup
|
||||
snapshot. This method will accept either a packed Single or a packed Multi.
|
||||
Specifying both will result in an error.
|
||||
|
|
@ -877,7 +884,8 @@ message SendRequest {
|
|||
repeated FeatureBit dest_features = 15;
|
||||
|
||||
/*
|
||||
The payment address of the generated invoice.
|
||||
The payment address of the generated invoice. This is also called
|
||||
payment secret in specifications (e.g. BOLT 11).
|
||||
*/
|
||||
bytes payment_addr = 16;
|
||||
}
|
||||
|
|
@ -1083,6 +1091,18 @@ message LightningAddress {
|
|||
string host = 2;
|
||||
}
|
||||
|
||||
enum CoinSelectionStrategy {
|
||||
// Use the coin selection strategy defined in the global configuration
|
||||
// (lnd.conf).
|
||||
STRATEGY_USE_GLOBAL_CONFIG = 0;
|
||||
|
||||
// Select the largest available coins first during coin selection.
|
||||
STRATEGY_LARGEST = 1;
|
||||
|
||||
// Randomly select the available coins during coin selection.
|
||||
STRATEGY_RANDOM = 2;
|
||||
}
|
||||
|
||||
message EstimateFeeRequest {
|
||||
// The map from addresses to amounts for the transaction.
|
||||
map<string, int64> AddrToAmount = 1;
|
||||
|
|
@ -1097,6 +1117,9 @@ message EstimateFeeRequest {
|
|||
|
||||
// Whether unconfirmed outputs should be used as inputs for the transaction.
|
||||
bool spend_unconfirmed = 4;
|
||||
|
||||
// The strategy to use for selecting coins during fees estimation.
|
||||
CoinSelectionStrategy coin_selection_strategy = 5;
|
||||
}
|
||||
|
||||
message EstimateFeeResponse {
|
||||
|
|
@ -1137,6 +1160,9 @@ message SendManyRequest {
|
|||
|
||||
// Whether unconfirmed outputs should be used as inputs for the transaction.
|
||||
bool spend_unconfirmed = 8;
|
||||
|
||||
// The strategy to use for selecting coins during sending many requests.
|
||||
CoinSelectionStrategy coin_selection_strategy = 9;
|
||||
}
|
||||
message SendManyResponse {
|
||||
// The id of the transaction
|
||||
|
|
@ -1179,6 +1205,9 @@ message SendCoinsRequest {
|
|||
|
||||
// Whether unconfirmed outputs should be used as inputs for the transaction.
|
||||
bool spend_unconfirmed = 9;
|
||||
|
||||
// The strategy to use for selecting coins.
|
||||
CoinSelectionStrategy coin_selection_strategy = 10;
|
||||
}
|
||||
message SendCoinsResponse {
|
||||
// The transaction ID of the transaction
|
||||
|
|
@ -1926,12 +1955,16 @@ message GetInfoResponse {
|
|||
/*
|
||||
Whether the current node is connected to testnet. This field is
|
||||
deprecated and the network field should be used instead
|
||||
**/
|
||||
*/
|
||||
bool testnet = 10 [deprecated = true];
|
||||
|
||||
reserved 11;
|
||||
|
||||
// A list of active chains the node is connected to
|
||||
/*
|
||||
A list of active chains the node is connected to. This will only
|
||||
ever contain a single entry since LND will only ever have a single
|
||||
chain backend during its lifetime.
|
||||
*/
|
||||
repeated Chain chains = 16;
|
||||
|
||||
// The URIs of the current node.
|
||||
|
|
@ -1952,6 +1985,14 @@ message GetInfoResponse {
|
|||
bool store_final_htlc_resolutions = 22;
|
||||
}
|
||||
|
||||
message GetDebugInfoRequest {
|
||||
}
|
||||
|
||||
message GetDebugInfoResponse {
|
||||
map<string, string> config = 1;
|
||||
repeated string log = 2;
|
||||
}
|
||||
|
||||
message GetRecoveryInfoRequest {
|
||||
}
|
||||
message GetRecoveryInfoResponse {
|
||||
|
|
@ -1966,8 +2007,9 @@ message GetRecoveryInfoResponse {
|
|||
}
|
||||
|
||||
message Chain {
|
||||
// The blockchain the node is on (eg bitcoin, litecoin)
|
||||
string chain = 1;
|
||||
// Deprecated. The chain is now always assumed to be bitcoin.
|
||||
// The blockchain the node is on (must be bitcoin)
|
||||
string chain = 1 [deprecated = true];
|
||||
|
||||
// The network the node is on (eg regtest, testnet, mainnet)
|
||||
string network = 2;
|
||||
|
|
@ -2027,12 +2069,18 @@ message CloseChannelRequest {
|
|||
//
|
||||
// NOTE: This field is only respected if we're the initiator of the channel.
|
||||
uint64 max_fee_per_vbyte = 7 [jstype = JS_STRING];
|
||||
|
||||
// If true, then the rpc call will not block while it awaits a closing txid.
|
||||
// Consequently this RPC call will not return a closing txid if this value
|
||||
// is set.
|
||||
bool no_wait = 8;
|
||||
}
|
||||
|
||||
message CloseStatusUpdate {
|
||||
oneof update {
|
||||
PendingUpdate close_pending = 1;
|
||||
ChannelCloseUpdate chan_close = 3;
|
||||
InstantUpdate close_instant = 4;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2041,6 +2089,9 @@ message PendingUpdate {
|
|||
uint32 output_index = 2;
|
||||
}
|
||||
|
||||
message InstantUpdate {
|
||||
}
|
||||
|
||||
message ReadyForPsbtFunding {
|
||||
/*
|
||||
The P2WSH address of the channel funding multisig address that the below
|
||||
|
|
@ -2085,6 +2136,9 @@ message BatchOpenChannelRequest {
|
|||
|
||||
// An optional label for the batch transaction, limited to 500 characters.
|
||||
string label = 6;
|
||||
|
||||
// The strategy to use for selecting coins during batch opening channels.
|
||||
CoinSelectionStrategy coin_selection_strategy = 7;
|
||||
}
|
||||
|
||||
message BatchOpenChannel {
|
||||
|
|
@ -2608,6 +2662,9 @@ message PendingHTLC {
|
|||
}
|
||||
|
||||
message PendingChannelsRequest {
|
||||
// Indicates whether to include the raw transaction hex for
|
||||
// waiting_close_channels.
|
||||
bool include_raw_tx = 1;
|
||||
}
|
||||
message PendingChannelsResponse {
|
||||
message PendingChannel {
|
||||
|
|
@ -2705,6 +2762,10 @@ message PendingChannelsResponse {
|
|||
|
||||
// The transaction id of the closing transaction
|
||||
string closing_txid = 4;
|
||||
|
||||
// The raw hex encoded bytes of the closing transaction. Included if
|
||||
// include_raw_tx in the request is true.
|
||||
string closing_tx_hex = 5;
|
||||
}
|
||||
|
||||
message Commitments {
|
||||
|
|
@ -2843,6 +2904,11 @@ message WalletBalanceRequest {
|
|||
// The wallet account the balance is shown for.
|
||||
// If this is not specified, the balance of the "default" account is shown.
|
||||
string account = 1;
|
||||
|
||||
// The minimum number of confirmations each one of your outputs used for the
|
||||
// funding transaction must satisfy. If this is not specified, the default
|
||||
// value of 1 is used.
|
||||
int32 min_confs = 2;
|
||||
}
|
||||
|
||||
message WalletBalanceResponse {
|
||||
|
|
@ -2928,6 +2994,9 @@ message QueryRoutesRequest {
|
|||
not add any additional block padding on top of final_ctlv_delta. This
|
||||
padding of a few blocks needs to be added manually or otherwise failures may
|
||||
happen when a block comes in while the payment is in flight.
|
||||
|
||||
Note: must not be set if making a payment to a blinded path (delta is
|
||||
set by the aggregate parameters provided by blinded_payment_paths)
|
||||
*/
|
||||
int32 final_cltv_delta = 4;
|
||||
|
||||
|
|
@ -3001,12 +3070,21 @@ message QueryRoutesRequest {
|
|||
*/
|
||||
repeated lnrpc.RouteHint route_hints = 16;
|
||||
|
||||
/*
|
||||
An optional blinded path(s) to reach the destination. Note that the
|
||||
introduction node must be provided as the first hop in the route.
|
||||
*/
|
||||
repeated BlindedPaymentPath blinded_payment_paths = 19;
|
||||
|
||||
/*
|
||||
Features assumed to be supported by the final node. All transitive feature
|
||||
dependencies must also be set properly. For a given feature bit pair, either
|
||||
optional or remote may be set, but not both. If this field is nil or empty,
|
||||
the router will try to load destination features from the graph as a
|
||||
fallback.
|
||||
|
||||
Note: must not be set if making a payment to a blinded route (features
|
||||
are provided in blinded_payment_paths).
|
||||
*/
|
||||
repeated lnrpc.FeatureBit dest_features = 17;
|
||||
|
||||
|
|
@ -3112,6 +3190,32 @@ message Hop {
|
|||
|
||||
// The payment metadata to send along with the payment to the payee.
|
||||
bytes metadata = 13;
|
||||
|
||||
/*
|
||||
Blinding point is an optional blinding point included for introduction
|
||||
nodes in blinded paths. This field is mandatory for hops that represents
|
||||
the introduction point in a blinded path.
|
||||
*/
|
||||
bytes blinding_point = 14;
|
||||
|
||||
/*
|
||||
Encrypted data is a receiver-produced blob of data that provides hops
|
||||
in a blinded route with forwarding data. As this data is encrypted by
|
||||
the recipient, we will not be able to parse it - it is essentially an
|
||||
arbitrary blob of data from our node's perspective. This field is
|
||||
mandatory for all hops in a blinded path, including the introduction
|
||||
node.
|
||||
*/
|
||||
bytes encrypted_data = 15;
|
||||
|
||||
/*
|
||||
The total amount that is sent to the recipient (possibly across multiple
|
||||
HTLCs), as specified by the sender when making a payment to a blinded path.
|
||||
This value is only set in the final hop payload of a blinded payment. This
|
||||
value is analogous to the MPPRecord that is used for regular (non-blinded)
|
||||
MPP payments.
|
||||
*/
|
||||
uint64 total_amt_msat = 16 [jstype = JS_STRING];
|
||||
}
|
||||
|
||||
message MPPRecord {
|
||||
|
|
@ -3119,7 +3223,8 @@ message MPPRecord {
|
|||
A unique, random identifier used to authenticate the sender as the intended
|
||||
payer of a multi-path payment. The payment_addr must be the same for all
|
||||
subpayments, and match the payment_addr provided in the receiver's invoice.
|
||||
The same payment_addr must be used on all subpayments.
|
||||
The same payment_addr must be used on all subpayments. This is also called
|
||||
payment secret in specifications (e.g. BOLT 11).
|
||||
*/
|
||||
bytes payment_addr = 11;
|
||||
|
||||
|
|
@ -3249,6 +3354,9 @@ message RoutingPolicy {
|
|||
|
||||
// Custom channel update tlv records.
|
||||
map<uint64, bytes> custom_records = 8;
|
||||
|
||||
int32 inbound_fee_base_msat = 9;
|
||||
int32 inbound_fee_rate_milli_msat = 10;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -3457,6 +3565,64 @@ message RouteHint {
|
|||
repeated HopHint hop_hints = 1;
|
||||
}
|
||||
|
||||
message BlindedPaymentPath {
|
||||
// The blinded path to send the payment to.
|
||||
BlindedPath blinded_path = 1;
|
||||
|
||||
// The base fee for the blinded path provided, expressed in msat.
|
||||
uint64 base_fee_msat = 2 [jstype = JS_STRING];
|
||||
|
||||
/*
|
||||
The proportional fee for the blinded path provided, expressed in parts
|
||||
per million.
|
||||
*/
|
||||
uint32 proportional_fee_rate = 3;
|
||||
|
||||
/*
|
||||
The total CLTV delta for the blinded path provided, including the
|
||||
final CLTV delta for the receiving node.
|
||||
*/
|
||||
uint32 total_cltv_delta = 4;
|
||||
|
||||
/*
|
||||
The minimum hltc size that may be sent over the blinded path, expressed
|
||||
in msat.
|
||||
*/
|
||||
uint64 htlc_min_msat = 5 [jstype = JS_STRING];
|
||||
|
||||
/*
|
||||
The maximum htlc size that may be sent over the blinded path, expressed
|
||||
in msat.
|
||||
*/
|
||||
uint64 htlc_max_msat = 6 [jstype = JS_STRING];
|
||||
|
||||
// The feature bits for the route.
|
||||
repeated FeatureBit features = 7;
|
||||
}
|
||||
|
||||
message BlindedPath {
|
||||
// The unblinded pubkey of the introduction node for the route.
|
||||
bytes introduction_node = 1;
|
||||
|
||||
// The ephemeral pubkey used by nodes in the blinded route.
|
||||
bytes blinding_point = 2;
|
||||
|
||||
/*
|
||||
A set of blinded node keys and data blobs for the blinded portion of the
|
||||
route. Note that the first hop is expected to be the introduction node,
|
||||
so the route is always expected to have at least one hop.
|
||||
*/
|
||||
repeated BlindedHop blinded_hops = 3;
|
||||
}
|
||||
|
||||
message BlindedHop {
|
||||
// The blinded public key of the node.
|
||||
bytes blinded_node = 1;
|
||||
|
||||
// An encrypted blob of data provided to the blinded node.
|
||||
bytes encrypted_data = 2;
|
||||
}
|
||||
|
||||
message AMPInvoiceState {
|
||||
// The state the HTLCs associated with this setID are in.
|
||||
InvoiceHTLCState state = 1;
|
||||
|
|
@ -3643,9 +3809,10 @@ message Invoice {
|
|||
bool is_keysend = 25;
|
||||
|
||||
/*
|
||||
The payment address of this invoice. This value will be used in MPP
|
||||
payments, and also for newer invoices that always require the MPP payload
|
||||
for added end-to-end security.
|
||||
The payment address of this invoice. This is also called payment secret in
|
||||
specifications (e.g. BOLT 11). This value will be used in MPP payments, and
|
||||
also for newer invoices that always require the MPP payload for added
|
||||
end-to-end security.
|
||||
Note: Output only, don't specify for creating an invoice.
|
||||
*/
|
||||
bytes payment_addr = 26;
|
||||
|
|
@ -3750,9 +3917,9 @@ message AddInvoiceResponse {
|
|||
uint64 add_index = 16 [jstype = JS_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
|
||||
security.
|
||||
The payment address of the generated invoice. This is also called
|
||||
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.
|
||||
*/
|
||||
bytes payment_addr = 17;
|
||||
}
|
||||
|
|
@ -3903,10 +4070,20 @@ message Payment {
|
|||
string payment_request = 9;
|
||||
|
||||
enum PaymentStatus {
|
||||
UNKNOWN = 0;
|
||||
// Deprecated. This status will never be returned.
|
||||
UNKNOWN = 0 [deprecated = true];
|
||||
|
||||
// Payment has inflight HTLCs.
|
||||
IN_FLIGHT = 1;
|
||||
|
||||
// Payment is settled.
|
||||
SUCCEEDED = 2;
|
||||
|
||||
// Payment is failed.
|
||||
FAILED = 3;
|
||||
|
||||
// Payment is created and has not attempted any HTLCs.
|
||||
INITIATED = 4;
|
||||
}
|
||||
|
||||
// The status of the payment.
|
||||
|
|
@ -4002,11 +4179,11 @@ message ListPaymentsRequest {
|
|||
*/
|
||||
bool count_total_payments = 5;
|
||||
|
||||
// If set, returns all invoices with a creation date greater than or equal
|
||||
// If set, returns all payments with a creation date greater than or equal
|
||||
// to it. Measured in seconds since the unix epoch.
|
||||
uint64 creation_date_start = 6 [jstype = JS_STRING];
|
||||
|
||||
// If set, returns all invoices with a creation date less than or equal to
|
||||
// If set, returns all payments with a creation date less than or equal to
|
||||
// it. Measured in seconds since the unix epoch.
|
||||
uint64 creation_date_end = 7 [jstype = JS_STRING];
|
||||
}
|
||||
|
|
@ -4054,6 +4231,10 @@ message DeleteAllPaymentsRequest {
|
|||
Only delete failed HTLCs from payments, not the payment itself.
|
||||
*/
|
||||
bool failed_htlcs_only = 2;
|
||||
|
||||
// Delete all payments. NOTE: Using this option requires careful
|
||||
// consideration as it is a destructive operation.
|
||||
bool all_payments = 3;
|
||||
}
|
||||
|
||||
message DeletePaymentResponse {
|
||||
|
|
@ -4130,6 +4311,8 @@ enum FeatureBit {
|
|||
ANCHORS_OPT = 21;
|
||||
ANCHORS_ZERO_FEE_HTLC_REQ = 22;
|
||||
ANCHORS_ZERO_FEE_HTLC_OPT = 23;
|
||||
ROUTE_BLINDING_REQUIRED = 24;
|
||||
ROUTE_BLINDING_OPTIONAL = 25;
|
||||
AMP_REQ = 30;
|
||||
AMP_OPT = 31;
|
||||
}
|
||||
|
|
@ -4159,7 +4342,15 @@ message ChannelFeeReport {
|
|||
// The effective fee rate in milli-satoshis. Computed by dividing the
|
||||
// fee_per_mil value by 1 million.
|
||||
double fee_rate = 4;
|
||||
|
||||
// The base fee charged regardless of the number of milli-satoshis sent.
|
||||
int32 inbound_base_fee_msat = 6;
|
||||
|
||||
// The amount charged per milli-satoshis transferred expressed in
|
||||
// millionths of a satoshi.
|
||||
int32 inbound_fee_per_mil = 7;
|
||||
}
|
||||
|
||||
message FeeReportResponse {
|
||||
// An array of channel fee reports which describes the current fee schedule
|
||||
// for each channel.
|
||||
|
|
@ -4178,6 +4369,16 @@ message FeeReportResponse {
|
|||
uint64 month_fee_sum = 4 [jstype = JS_STRING];
|
||||
}
|
||||
|
||||
message InboundFee {
|
||||
// The inbound base fee charged regardless of the number of milli-satoshis
|
||||
// received in the channel. By default, only negative values are accepted.
|
||||
int32 base_fee_msat = 1;
|
||||
|
||||
// The effective inbound fee rate in micro-satoshis (parts per million).
|
||||
// By default, only negative values are accepted.
|
||||
int32 fee_rate_ppm = 2;
|
||||
}
|
||||
|
||||
message PolicyUpdateRequest {
|
||||
oneof scope {
|
||||
// If set, then this update applies to all currently active channels.
|
||||
|
|
@ -4210,7 +4411,12 @@ message PolicyUpdateRequest {
|
|||
|
||||
// If true, min_htlc_msat is applied.
|
||||
bool min_htlc_msat_specified = 8;
|
||||
|
||||
// Optional inbound fee. If unset, the previously set value will be
|
||||
// retained [EXPERIMENTAL].
|
||||
InboundFee inbound_fee = 10;
|
||||
}
|
||||
|
||||
enum UpdateFailure {
|
||||
UPDATE_FAILURE_UNKNOWN = 0;
|
||||
UPDATE_FAILURE_PENDING = 1;
|
||||
|
|
@ -4486,6 +4692,7 @@ message Failure {
|
|||
EXPIRY_TOO_FAR = 22;
|
||||
MPP_TIMEOUT = 23;
|
||||
INVALID_ONION_PAYLOAD = 24;
|
||||
INVALID_ONION_BLINDING = 25;
|
||||
|
||||
/*
|
||||
An internal error occurred.
|
||||
|
|
|
|||
|
|
@ -76,7 +76,16 @@ service SwapClient {
|
|||
rpc Probe (ProbeRequest) returns (ProbeResponse);
|
||||
|
||||
/* loop: `listauth`
|
||||
GetLsatTokens returns all LSAT tokens the daemon ever paid for.
|
||||
GetL402Tokens returns all L402 tokens the daemon ever paid for.
|
||||
*/
|
||||
rpc GetL402Tokens (TokensRequest) returns (TokensResponse);
|
||||
|
||||
/*
|
||||
Deprecated: use GetL402Tokens.
|
||||
This API is provided to maintain backward compatibility with gRPC clients
|
||||
(e.g. `loop listauth`, Terminal Web, RTL).
|
||||
Type LsatToken used by GetLsatTokens in the past was renamed to L402Token,
|
||||
but this does not affect binary encoding, so we can use type L402Token here.
|
||||
*/
|
||||
rpc GetLsatTokens (TokensRequest) returns (TokensResponse);
|
||||
|
||||
|
|
@ -269,6 +278,13 @@ message LoopOutRequest {
|
|||
be equal to the sum of the amounts of the reservations.
|
||||
*/
|
||||
repeated bytes reservation_ids = 18;
|
||||
|
||||
/*
|
||||
The timeout in seconds to use for off-chain payments. Note that the swap
|
||||
payment is attempted multiple times where each attempt will set this value
|
||||
as the timeout for the payment.
|
||||
*/
|
||||
uint32 payment_timeout = 19;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -811,10 +827,10 @@ message TokensResponse {
|
|||
/*
|
||||
List of all tokens the daemon knows of, including old/expired tokens.
|
||||
*/
|
||||
repeated LsatToken tokens = 1;
|
||||
repeated L402Token tokens = 1;
|
||||
}
|
||||
|
||||
message LsatToken {
|
||||
message L402Token {
|
||||
/*
|
||||
The base macaroon that was baked by the auth server.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue