multi: bump to lnd/tapd/lndclient v0.18.4-beta/v0.5.0-alpha

This commit is contained in:
Oliver Gugger 2024-05-23 13:48:49 +02:00
parent 601db231f7
commit d368f8a8fe
No known key found for this signature in database
GPG key ID: 8E4256593F177720
22 changed files with 7760 additions and 1467 deletions

92
app/src/types/generated/lnd_pb.d.ts generated vendored
View file

@ -1506,6 +1506,11 @@ export class Channel extends jspb.Message {
getMemo(): string;
setMemo(value: string): void;
getCustomChannelData(): Uint8Array | string;
getCustomChannelData_asU8(): Uint8Array;
getCustomChannelData_asB64(): string;
setCustomChannelData(value: Uint8Array | string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Channel.AsObject;
static toObject(includeInstance: boolean, msg: Channel): Channel.AsObject;
@ -1554,6 +1559,7 @@ export namespace Channel {
peerAlias: string,
peerScidAlias: string,
memo: string,
customChannelData: Uint8Array | string,
}
}
@ -2349,6 +2355,42 @@ export namespace ChannelOpenUpdate {
}
}
export class CloseOutput extends jspb.Message {
getAmountSat(): string;
setAmountSat(value: string): void;
getPkScript(): Uint8Array | string;
getPkScript_asU8(): Uint8Array;
getPkScript_asB64(): string;
setPkScript(value: Uint8Array | string): void;
getIsLocal(): boolean;
setIsLocal(value: boolean): void;
getCustomChannelData(): Uint8Array | string;
getCustomChannelData_asU8(): Uint8Array;
getCustomChannelData_asB64(): string;
setCustomChannelData(value: Uint8Array | string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CloseOutput.AsObject;
static toObject(includeInstance: boolean, msg: CloseOutput): CloseOutput.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: CloseOutput, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): CloseOutput;
static deserializeBinaryFromReader(message: CloseOutput, reader: jspb.BinaryReader): CloseOutput;
}
export namespace CloseOutput {
export type AsObject = {
amountSat: string,
pkScript: Uint8Array | string,
isLocal: boolean,
customChannelData: Uint8Array | string,
}
}
export class ChannelCloseUpdate extends jspb.Message {
getClosingTxid(): Uint8Array | string;
getClosingTxid_asU8(): Uint8Array;
@ -2358,6 +2400,21 @@ export class ChannelCloseUpdate extends jspb.Message {
getSuccess(): boolean;
setSuccess(value: boolean): void;
hasLocalCloseOutput(): boolean;
clearLocalCloseOutput(): void;
getLocalCloseOutput(): CloseOutput | undefined;
setLocalCloseOutput(value?: CloseOutput): void;
hasRemoteCloseOutput(): boolean;
clearRemoteCloseOutput(): void;
getRemoteCloseOutput(): CloseOutput | undefined;
setRemoteCloseOutput(value?: CloseOutput): void;
clearAdditionalOutputsList(): void;
getAdditionalOutputsList(): Array<CloseOutput>;
setAdditionalOutputsList(value: Array<CloseOutput>): void;
addAdditionalOutputs(value?: CloseOutput, index?: number): CloseOutput;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ChannelCloseUpdate.AsObject;
static toObject(includeInstance: boolean, msg: ChannelCloseUpdate): ChannelCloseUpdate.AsObject;
@ -2372,6 +2429,9 @@ export namespace ChannelCloseUpdate {
export type AsObject = {
closingTxid: Uint8Array | string,
success: boolean,
localCloseOutput?: CloseOutput.AsObject,
remoteCloseOutput?: CloseOutput.AsObject,
additionalOutputsList: Array<CloseOutput.AsObject>,
}
}
@ -3356,6 +3416,11 @@ export namespace PendingChannelsResponse {
getMemo(): string;
setMemo(value: string): void;
getCustomChannelData(): Uint8Array | string;
getCustomChannelData_asU8(): Uint8Array;
getCustomChannelData_asB64(): string;
setCustomChannelData(value: Uint8Array | string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): PendingChannel.AsObject;
static toObject(includeInstance: boolean, msg: PendingChannel): PendingChannel.AsObject;
@ -3381,6 +3446,7 @@ export namespace PendingChannelsResponse {
chanStatusFlags: string,
pb_private: boolean,
memo: string,
customChannelData: Uint8Array | string,
}
}
@ -3847,6 +3913,11 @@ export class ChannelBalanceResponse extends jspb.Message {
getPendingOpenRemoteBalance(): Amount | undefined;
setPendingOpenRemoteBalance(value?: Amount): void;
getCustomChannelData(): Uint8Array | string;
getCustomChannelData_asU8(): Uint8Array;
getCustomChannelData_asB64(): string;
setCustomChannelData(value: Uint8Array | string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ChannelBalanceResponse.AsObject;
static toObject(includeInstance: boolean, msg: ChannelBalanceResponse): ChannelBalanceResponse.AsObject;
@ -3867,6 +3938,7 @@ export namespace ChannelBalanceResponse {
unsettledRemoteBalance?: Amount.AsObject,
pendingOpenLocalBalance?: Amount.AsObject,
pendingOpenRemoteBalance?: Amount.AsObject,
customChannelData: Uint8Array | string,
}
}
@ -4221,6 +4293,14 @@ export class Route extends jspb.Message {
getTotalAmtMsat(): string;
setTotalAmtMsat(value: string): void;
getFirstHopAmountMsat(): string;
setFirstHopAmountMsat(value: string): void;
getCustomChannelData(): Uint8Array | string;
getCustomChannelData_asU8(): Uint8Array;
getCustomChannelData_asB64(): string;
setCustomChannelData(value: Uint8Array | string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Route.AsObject;
static toObject(includeInstance: boolean, msg: Route): Route.AsObject;
@ -4239,6 +4319,8 @@ export namespace Route {
hopsList: Array<Hop.AsObject>,
totalFeesMsat: string,
totalAmtMsat: string,
firstHopAmountMsat: string,
customChannelData: Uint8Array | string,
}
}
@ -5354,6 +5436,11 @@ export class InvoiceHTLC extends jspb.Message {
getAmp(): AMP | undefined;
setAmp(value?: AMP): void;
getCustomChannelData(): Uint8Array | string;
getCustomChannelData_asU8(): Uint8Array;
getCustomChannelData_asB64(): string;
setCustomChannelData(value: Uint8Array | string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): InvoiceHTLC.AsObject;
static toObject(includeInstance: boolean, msg: InvoiceHTLC): InvoiceHTLC.AsObject;
@ -5377,6 +5464,7 @@ export namespace InvoiceHTLC {
customRecordsMap: Array<[number, Uint8Array | string]>,
mppTotalAmtMsat: string,
amp?: AMP.AsObject,
customChannelData: Uint8Array | string,
}
}
@ -5628,6 +5716,8 @@ export class Payment extends jspb.Message {
getFailureReason(): PaymentFailureReasonMap[keyof PaymentFailureReasonMap];
setFailureReason(value: PaymentFailureReasonMap[keyof PaymentFailureReasonMap]): void;
getFirstHopCustomRecordsMap(): jspb.Map<number, Uint8Array | string>;
clearFirstHopCustomRecordsMap(): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Payment.AsObject;
static toObject(includeInstance: boolean, msg: Payment): Payment.AsObject;
@ -5655,6 +5745,7 @@ export namespace Payment {
htlcsList: Array<HTLCAttempt.AsObject>,
paymentIndex: string,
failureReason: PaymentFailureReasonMap[keyof PaymentFailureReasonMap],
firstHopCustomRecordsMap: Array<[number, Uint8Array | string]>,
}
export interface PaymentStatusMap {
@ -7439,6 +7530,7 @@ export interface CommitmentTypeMap {
ANCHORS: 3;
SCRIPT_ENFORCED_LEASE: 4;
SIMPLE_TAPROOT: 5;
SIMPLE_TAPROOT_OVERLAY: 6;
}
export const CommitmentType: CommitmentTypeMap;

View file

@ -75,6 +75,7 @@ goog.exportSymbol('proto.lnrpc.ChannelUpdate', null, global);
goog.exportSymbol('proto.lnrpc.CheckMacPermRequest', null, global);
goog.exportSymbol('proto.lnrpc.CheckMacPermResponse', null, global);
goog.exportSymbol('proto.lnrpc.CloseChannelRequest', null, global);
goog.exportSymbol('proto.lnrpc.CloseOutput', null, global);
goog.exportSymbol('proto.lnrpc.CloseStatusUpdate', null, global);
goog.exportSymbol('proto.lnrpc.CloseStatusUpdate.UpdateCase', null, global);
goog.exportSymbol('proto.lnrpc.ClosedChannelUpdate', null, global);
@ -1658,9 +1659,30 @@ if (goog.DEBUG && !COMPILED) {
* @extends {jspb.Message}
* @constructor
*/
proto.lnrpc.ChannelCloseUpdate = function(opt_data) {
proto.lnrpc.CloseOutput = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.lnrpc.CloseOutput, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.lnrpc.CloseOutput.displayName = 'proto.lnrpc.CloseOutput';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.lnrpc.ChannelCloseUpdate = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.lnrpc.ChannelCloseUpdate.repeatedFields_, null);
};
goog.inherits(proto.lnrpc.ChannelCloseUpdate, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
@ -14527,7 +14549,8 @@ proto.lnrpc.Channel.toObject = function(includeInstance, msg) {
zeroConfConfirmedScid: jspb.Message.getFieldWithDefault(msg, 33, "0"),
peerAlias: jspb.Message.getFieldWithDefault(msg, 34, ""),
peerScidAlias: jspb.Message.getFieldWithDefault(msg, 35, "0"),
memo: jspb.Message.getFieldWithDefault(msg, 36, "")
memo: jspb.Message.getFieldWithDefault(msg, 36, ""),
customChannelData: msg.getCustomChannelData_asB64()
};
if (includeInstance) {
@ -14713,6 +14736,10 @@ proto.lnrpc.Channel.deserializeBinaryFromReader = function(msg, reader) {
var value = /** @type {string} */ (reader.readString());
msg.setMemo(value);
break;
case 37:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setCustomChannelData(value);
break;
default:
reader.skipField();
break;
@ -14997,6 +15024,13 @@ proto.lnrpc.Channel.serializeBinaryToWriter = function(message, writer) {
f
);
}
f = message.getCustomChannelData_asU8();
if (f.length > 0) {
writer.writeBytes(
37,
f
);
}
};
@ -15725,6 +15759,48 @@ proto.lnrpc.Channel.prototype.setMemo = function(value) {
};
/**
* optional bytes custom_channel_data = 37;
* @return {!(string|Uint8Array)}
*/
proto.lnrpc.Channel.prototype.getCustomChannelData = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 37, ""));
};
/**
* optional bytes custom_channel_data = 37;
* This is a type-conversion wrapper around `getCustomChannelData()`
* @return {string}
*/
proto.lnrpc.Channel.prototype.getCustomChannelData_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getCustomChannelData()));
};
/**
* optional bytes custom_channel_data = 37;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getCustomChannelData()`
* @return {!Uint8Array}
*/
proto.lnrpc.Channel.prototype.getCustomChannelData_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getCustomChannelData()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.lnrpc.Channel} returns this
*/
proto.lnrpc.Channel.prototype.setCustomChannelData = function(value) {
return jspb.Message.setProto3BytesField(this, 37, value);
};
@ -21233,6 +21309,281 @@ proto.lnrpc.ChannelOpenUpdate.prototype.hasChannelPoint = function() {
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.lnrpc.CloseOutput.prototype.toObject = function(opt_includeInstance) {
return proto.lnrpc.CloseOutput.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.lnrpc.CloseOutput} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.CloseOutput.toObject = function(includeInstance, msg) {
var f, obj = {
amountSat: jspb.Message.getFieldWithDefault(msg, 1, "0"),
pkScript: msg.getPkScript_asB64(),
isLocal: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
customChannelData: msg.getCustomChannelData_asB64()
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.lnrpc.CloseOutput}
*/
proto.lnrpc.CloseOutput.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.lnrpc.CloseOutput;
return proto.lnrpc.CloseOutput.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.lnrpc.CloseOutput} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.lnrpc.CloseOutput}
*/
proto.lnrpc.CloseOutput.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readInt64String());
msg.setAmountSat(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setPkScript(value);
break;
case 3:
var value = /** @type {boolean} */ (reader.readBool());
msg.setIsLocal(value);
break;
case 4:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setCustomChannelData(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.lnrpc.CloseOutput.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.lnrpc.CloseOutput.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.lnrpc.CloseOutput} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.lnrpc.CloseOutput.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAmountSat();
if (parseInt(f, 10) !== 0) {
writer.writeInt64String(
1,
f
);
}
f = message.getPkScript_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
f = message.getIsLocal();
if (f) {
writer.writeBool(
3,
f
);
}
f = message.getCustomChannelData_asU8();
if (f.length > 0) {
writer.writeBytes(
4,
f
);
}
};
/**
* optional int64 amount_sat = 1;
* @return {string}
*/
proto.lnrpc.CloseOutput.prototype.getAmountSat = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0"));
};
/**
* @param {string} value
* @return {!proto.lnrpc.CloseOutput} returns this
*/
proto.lnrpc.CloseOutput.prototype.setAmountSat = function(value) {
return jspb.Message.setProto3StringIntField(this, 1, value);
};
/**
* optional bytes pk_script = 2;
* @return {!(string|Uint8Array)}
*/
proto.lnrpc.CloseOutput.prototype.getPkScript = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes pk_script = 2;
* This is a type-conversion wrapper around `getPkScript()`
* @return {string}
*/
proto.lnrpc.CloseOutput.prototype.getPkScript_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getPkScript()));
};
/**
* optional bytes pk_script = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getPkScript()`
* @return {!Uint8Array}
*/
proto.lnrpc.CloseOutput.prototype.getPkScript_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getPkScript()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.lnrpc.CloseOutput} returns this
*/
proto.lnrpc.CloseOutput.prototype.setPkScript = function(value) {
return jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* optional bool is_local = 3;
* @return {boolean}
*/
proto.lnrpc.CloseOutput.prototype.getIsLocal = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
};
/**
* @param {boolean} value
* @return {!proto.lnrpc.CloseOutput} returns this
*/
proto.lnrpc.CloseOutput.prototype.setIsLocal = function(value) {
return jspb.Message.setProto3BooleanField(this, 3, value);
};
/**
* optional bytes custom_channel_data = 4;
* @return {!(string|Uint8Array)}
*/
proto.lnrpc.CloseOutput.prototype.getCustomChannelData = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* optional bytes custom_channel_data = 4;
* This is a type-conversion wrapper around `getCustomChannelData()`
* @return {string}
*/
proto.lnrpc.CloseOutput.prototype.getCustomChannelData_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getCustomChannelData()));
};
/**
* optional bytes custom_channel_data = 4;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getCustomChannelData()`
* @return {!Uint8Array}
*/
proto.lnrpc.CloseOutput.prototype.getCustomChannelData_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getCustomChannelData()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.lnrpc.CloseOutput} returns this
*/
proto.lnrpc.CloseOutput.prototype.setCustomChannelData = function(value) {
return jspb.Message.setProto3BytesField(this, 4, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.lnrpc.ChannelCloseUpdate.repeatedFields_ = [5];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
@ -21263,7 +21614,11 @@ proto.lnrpc.ChannelCloseUpdate.prototype.toObject = function(opt_includeInstance
proto.lnrpc.ChannelCloseUpdate.toObject = function(includeInstance, msg) {
var f, obj = {
closingTxid: msg.getClosingTxid_asB64(),
success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
localCloseOutput: (f = msg.getLocalCloseOutput()) && proto.lnrpc.CloseOutput.toObject(includeInstance, f),
remoteCloseOutput: (f = msg.getRemoteCloseOutput()) && proto.lnrpc.CloseOutput.toObject(includeInstance, f),
additionalOutputsList: jspb.Message.toObjectList(msg.getAdditionalOutputsList(),
proto.lnrpc.CloseOutput.toObject, includeInstance)
};
if (includeInstance) {
@ -21308,6 +21663,21 @@ proto.lnrpc.ChannelCloseUpdate.deserializeBinaryFromReader = function(msg, reade
var value = /** @type {boolean} */ (reader.readBool());
msg.setSuccess(value);
break;
case 3:
var value = new proto.lnrpc.CloseOutput;
reader.readMessage(value,proto.lnrpc.CloseOutput.deserializeBinaryFromReader);
msg.setLocalCloseOutput(value);
break;
case 4:
var value = new proto.lnrpc.CloseOutput;
reader.readMessage(value,proto.lnrpc.CloseOutput.deserializeBinaryFromReader);
msg.setRemoteCloseOutput(value);
break;
case 5:
var value = new proto.lnrpc.CloseOutput;
reader.readMessage(value,proto.lnrpc.CloseOutput.deserializeBinaryFromReader);
msg.addAdditionalOutputs(value);
break;
default:
reader.skipField();
break;
@ -21351,6 +21721,30 @@ proto.lnrpc.ChannelCloseUpdate.serializeBinaryToWriter = function(message, write
f
);
}
f = message.getLocalCloseOutput();
if (f != null) {
writer.writeMessage(
3,
f,
proto.lnrpc.CloseOutput.serializeBinaryToWriter
);
}
f = message.getRemoteCloseOutput();
if (f != null) {
writer.writeMessage(
4,
f,
proto.lnrpc.CloseOutput.serializeBinaryToWriter
);
}
f = message.getAdditionalOutputsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
5,
f,
proto.lnrpc.CloseOutput.serializeBinaryToWriter
);
}
};
@ -21414,6 +21808,118 @@ proto.lnrpc.ChannelCloseUpdate.prototype.setSuccess = function(value) {
};
/**
* optional CloseOutput local_close_output = 3;
* @return {?proto.lnrpc.CloseOutput}
*/
proto.lnrpc.ChannelCloseUpdate.prototype.getLocalCloseOutput = function() {
return /** @type{?proto.lnrpc.CloseOutput} */ (
jspb.Message.getWrapperField(this, proto.lnrpc.CloseOutput, 3));
};
/**
* @param {?proto.lnrpc.CloseOutput|undefined} value
* @return {!proto.lnrpc.ChannelCloseUpdate} returns this
*/
proto.lnrpc.ChannelCloseUpdate.prototype.setLocalCloseOutput = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.lnrpc.ChannelCloseUpdate} returns this
*/
proto.lnrpc.ChannelCloseUpdate.prototype.clearLocalCloseOutput = function() {
return this.setLocalCloseOutput(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.lnrpc.ChannelCloseUpdate.prototype.hasLocalCloseOutput = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional CloseOutput remote_close_output = 4;
* @return {?proto.lnrpc.CloseOutput}
*/
proto.lnrpc.ChannelCloseUpdate.prototype.getRemoteCloseOutput = function() {
return /** @type{?proto.lnrpc.CloseOutput} */ (
jspb.Message.getWrapperField(this, proto.lnrpc.CloseOutput, 4));
};
/**
* @param {?proto.lnrpc.CloseOutput|undefined} value
* @return {!proto.lnrpc.ChannelCloseUpdate} returns this
*/
proto.lnrpc.ChannelCloseUpdate.prototype.setRemoteCloseOutput = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.lnrpc.ChannelCloseUpdate} returns this
*/
proto.lnrpc.ChannelCloseUpdate.prototype.clearRemoteCloseOutput = function() {
return this.setRemoteCloseOutput(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.lnrpc.ChannelCloseUpdate.prototype.hasRemoteCloseOutput = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* repeated CloseOutput additional_outputs = 5;
* @return {!Array<!proto.lnrpc.CloseOutput>}
*/
proto.lnrpc.ChannelCloseUpdate.prototype.getAdditionalOutputsList = function() {
return /** @type{!Array<!proto.lnrpc.CloseOutput>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.lnrpc.CloseOutput, 5));
};
/**
* @param {!Array<!proto.lnrpc.CloseOutput>} value
* @return {!proto.lnrpc.ChannelCloseUpdate} returns this
*/
proto.lnrpc.ChannelCloseUpdate.prototype.setAdditionalOutputsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 5, value);
};
/**
* @param {!proto.lnrpc.CloseOutput=} opt_value
* @param {number=} opt_index
* @return {!proto.lnrpc.CloseOutput}
*/
proto.lnrpc.ChannelCloseUpdate.prototype.addAdditionalOutputs = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.lnrpc.CloseOutput, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.lnrpc.ChannelCloseUpdate} returns this
*/
proto.lnrpc.ChannelCloseUpdate.prototype.clearAdditionalOutputsList = function() {
return this.setAdditionalOutputsList([]);
};
@ -28102,7 +28608,8 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.toObject = function(includeIn
numForwardingPackages: jspb.Message.getFieldWithDefault(msg, 10, "0"),
chanStatusFlags: jspb.Message.getFieldWithDefault(msg, 11, ""),
pb_private: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
memo: jspb.Message.getFieldWithDefault(msg, 13, "")
memo: jspb.Message.getFieldWithDefault(msg, 13, ""),
customChannelData: msg.getCustomChannelData_asB64()
};
if (includeInstance) {
@ -28191,6 +28698,10 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.deserializeBinaryFromReader =
var value = /** @type {string} */ (reader.readString());
msg.setMemo(value);
break;
case 34:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setCustomChannelData(value);
break;
default:
reader.skipField();
break;
@ -28311,6 +28822,13 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.serializeBinaryToWriter = fun
f
);
}
f = message.getCustomChannelData_asU8();
if (f.length > 0) {
writer.writeBytes(
34,
f
);
}
};
@ -28548,6 +29066,48 @@ proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setMemo = function(
};
/**
* optional bytes custom_channel_data = 34;
* @return {!(string|Uint8Array)}
*/
proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getCustomChannelData = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 34, ""));
};
/**
* optional bytes custom_channel_data = 34;
* This is a type-conversion wrapper around `getCustomChannelData()`
* @return {string}
*/
proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getCustomChannelData_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getCustomChannelData()));
};
/**
* optional bytes custom_channel_data = 34;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getCustomChannelData()`
* @return {!Uint8Array}
*/
proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.getCustomChannelData_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getCustomChannelData()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.lnrpc.PendingChannelsResponse.PendingChannel} returns this
*/
proto.lnrpc.PendingChannelsResponse.PendingChannel.prototype.setCustomChannelData = function(value) {
return jspb.Message.setProto3BytesField(this, 34, value);
};
@ -31625,7 +32185,8 @@ proto.lnrpc.ChannelBalanceResponse.toObject = function(includeInstance, msg) {
unsettledLocalBalance: (f = msg.getUnsettledLocalBalance()) && proto.lnrpc.Amount.toObject(includeInstance, f),
unsettledRemoteBalance: (f = msg.getUnsettledRemoteBalance()) && proto.lnrpc.Amount.toObject(includeInstance, f),
pendingOpenLocalBalance: (f = msg.getPendingOpenLocalBalance()) && proto.lnrpc.Amount.toObject(includeInstance, f),
pendingOpenRemoteBalance: (f = msg.getPendingOpenRemoteBalance()) && proto.lnrpc.Amount.toObject(includeInstance, f)
pendingOpenRemoteBalance: (f = msg.getPendingOpenRemoteBalance()) && proto.lnrpc.Amount.toObject(includeInstance, f),
customChannelData: msg.getCustomChannelData_asB64()
};
if (includeInstance) {
@ -31700,6 +32261,10 @@ proto.lnrpc.ChannelBalanceResponse.deserializeBinaryFromReader = function(msg, r
reader.readMessage(value,proto.lnrpc.Amount.deserializeBinaryFromReader);
msg.setPendingOpenRemoteBalance(value);
break;
case 9:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setCustomChannelData(value);
break;
default:
reader.skipField();
break;
@ -31791,6 +32356,13 @@ proto.lnrpc.ChannelBalanceResponse.serializeBinaryToWriter = function(message, w
proto.lnrpc.Amount.serializeBinaryToWriter
);
}
f = message.getCustomChannelData_asU8();
if (f.length > 0) {
writer.writeBytes(
9,
f
);
}
};
@ -32052,6 +32624,48 @@ proto.lnrpc.ChannelBalanceResponse.prototype.hasPendingOpenRemoteBalance = funct
};
/**
* optional bytes custom_channel_data = 9;
* @return {!(string|Uint8Array)}
*/
proto.lnrpc.ChannelBalanceResponse.prototype.getCustomChannelData = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
};
/**
* optional bytes custom_channel_data = 9;
* This is a type-conversion wrapper around `getCustomChannelData()`
* @return {string}
*/
proto.lnrpc.ChannelBalanceResponse.prototype.getCustomChannelData_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getCustomChannelData()));
};
/**
* optional bytes custom_channel_data = 9;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getCustomChannelData()`
* @return {!Uint8Array}
*/
proto.lnrpc.ChannelBalanceResponse.prototype.getCustomChannelData_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getCustomChannelData()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.lnrpc.ChannelBalanceResponse} returns this
*/
proto.lnrpc.ChannelBalanceResponse.prototype.setCustomChannelData = function(value) {
return jspb.Message.setProto3BytesField(this, 9, value);
};
/**
* List of repeated fields within this message type.
@ -34627,7 +35241,9 @@ proto.lnrpc.Route.toObject = function(includeInstance, msg) {
hopsList: jspb.Message.toObjectList(msg.getHopsList(),
proto.lnrpc.Hop.toObject, includeInstance),
totalFeesMsat: jspb.Message.getFieldWithDefault(msg, 5, "0"),
totalAmtMsat: jspb.Message.getFieldWithDefault(msg, 6, "0")
totalAmtMsat: jspb.Message.getFieldWithDefault(msg, 6, "0"),
firstHopAmountMsat: jspb.Message.getFieldWithDefault(msg, 7, "0"),
customChannelData: msg.getCustomChannelData_asB64()
};
if (includeInstance) {
@ -34689,6 +35305,14 @@ proto.lnrpc.Route.deserializeBinaryFromReader = function(msg, reader) {
var value = /** @type {string} */ (reader.readInt64String());
msg.setTotalAmtMsat(value);
break;
case 7:
var value = /** @type {string} */ (reader.readInt64String());
msg.setFirstHopAmountMsat(value);
break;
case 8:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setCustomChannelData(value);
break;
default:
reader.skipField();
break;
@ -34761,6 +35385,20 @@ proto.lnrpc.Route.serializeBinaryToWriter = function(message, writer) {
f
);
}
f = message.getFirstHopAmountMsat();
if (parseInt(f, 10) !== 0) {
writer.writeInt64String(
7,
f
);
}
f = message.getCustomChannelData_asU8();
if (f.length > 0) {
writer.writeBytes(
8,
f
);
}
};
@ -34892,6 +35530,66 @@ proto.lnrpc.Route.prototype.setTotalAmtMsat = function(value) {
};
/**
* optional int64 first_hop_amount_msat = 7;
* @return {string}
*/
proto.lnrpc.Route.prototype.getFirstHopAmountMsat = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "0"));
};
/**
* @param {string} value
* @return {!proto.lnrpc.Route} returns this
*/
proto.lnrpc.Route.prototype.setFirstHopAmountMsat = function(value) {
return jspb.Message.setProto3StringIntField(this, 7, value);
};
/**
* optional bytes custom_channel_data = 8;
* @return {!(string|Uint8Array)}
*/
proto.lnrpc.Route.prototype.getCustomChannelData = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};
/**
* optional bytes custom_channel_data = 8;
* This is a type-conversion wrapper around `getCustomChannelData()`
* @return {string}
*/
proto.lnrpc.Route.prototype.getCustomChannelData_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getCustomChannelData()));
};
/**
* optional bytes custom_channel_data = 8;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getCustomChannelData()`
* @return {!Uint8Array}
*/
proto.lnrpc.Route.prototype.getCustomChannelData_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getCustomChannelData()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.lnrpc.Route} returns this
*/
proto.lnrpc.Route.prototype.setCustomChannelData = function(value) {
return jspb.Message.setProto3BytesField(this, 8, value);
};
@ -42799,7 +43497,8 @@ proto.lnrpc.InvoiceHTLC.toObject = function(includeInstance, msg) {
state: jspb.Message.getFieldWithDefault(msg, 8, 0),
customRecordsMap: (f = msg.getCustomRecordsMap()) ? f.toObject(includeInstance, undefined) : [],
mppTotalAmtMsat: jspb.Message.getFieldWithDefault(msg, 10, "0"),
amp: (f = msg.getAmp()) && proto.lnrpc.AMP.toObject(includeInstance, f)
amp: (f = msg.getAmp()) && proto.lnrpc.AMP.toObject(includeInstance, f),
customChannelData: msg.getCustomChannelData_asB64()
};
if (includeInstance) {
@ -42883,6 +43582,10 @@ proto.lnrpc.InvoiceHTLC.deserializeBinaryFromReader = function(msg, reader) {
reader.readMessage(value,proto.lnrpc.AMP.deserializeBinaryFromReader);
msg.setAmp(value);
break;
case 12:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setCustomChannelData(value);
break;
default:
reader.skipField();
break;
@ -42987,6 +43690,13 @@ proto.lnrpc.InvoiceHTLC.serializeBinaryToWriter = function(message, writer) {
proto.lnrpc.AMP.serializeBinaryToWriter
);
}
f = message.getCustomChannelData_asU8();
if (f.length > 0) {
writer.writeBytes(
12,
f
);
}
};
@ -43212,6 +43922,48 @@ proto.lnrpc.InvoiceHTLC.prototype.hasAmp = function() {
};
/**
* optional bytes custom_channel_data = 12;
* @return {!(string|Uint8Array)}
*/
proto.lnrpc.InvoiceHTLC.prototype.getCustomChannelData = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
};
/**
* optional bytes custom_channel_data = 12;
* This is a type-conversion wrapper around `getCustomChannelData()`
* @return {string}
*/
proto.lnrpc.InvoiceHTLC.prototype.getCustomChannelData_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getCustomChannelData()));
};
/**
* optional bytes custom_channel_data = 12;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getCustomChannelData()`
* @return {!Uint8Array}
*/
proto.lnrpc.InvoiceHTLC.prototype.getCustomChannelData_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getCustomChannelData()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.lnrpc.InvoiceHTLC} returns this
*/
proto.lnrpc.InvoiceHTLC.prototype.setCustomChannelData = function(value) {
return jspb.Message.setProto3BytesField(this, 12, value);
};
@ -44724,7 +45476,8 @@ proto.lnrpc.Payment.toObject = function(includeInstance, msg) {
htlcsList: jspb.Message.toObjectList(msg.getHtlcsList(),
proto.lnrpc.HTLCAttempt.toObject, includeInstance),
paymentIndex: jspb.Message.getFieldWithDefault(msg, 15, "0"),
failureReason: jspb.Message.getFieldWithDefault(msg, 16, 0)
failureReason: jspb.Message.getFieldWithDefault(msg, 16, 0),
firstHopCustomRecordsMap: (f = msg.getFirstHopCustomRecordsMap()) ? f.toObject(includeInstance, undefined) : []
};
if (includeInstance) {
@ -44822,6 +45575,12 @@ proto.lnrpc.Payment.deserializeBinaryFromReader = function(msg, reader) {
var value = /** @type {!proto.lnrpc.PaymentFailureReason} */ (reader.readEnum());
msg.setFailureReason(value);
break;
case 17:
var value = msg.getFirstHopCustomRecordsMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readBytes, null, 0, "");
});
break;
default:
reader.skipField();
break;
@ -44957,6 +45716,10 @@ proto.lnrpc.Payment.serializeBinaryToWriter = function(message, writer) {
f
);
}
f = message.getFirstHopCustomRecordsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(17, writer, jspb.BinaryWriter.prototype.writeUint64, jspb.BinaryWriter.prototype.writeBytes);
}
};
@ -45261,6 +46024,29 @@ proto.lnrpc.Payment.prototype.setFailureReason = function(value) {
};
/**
* map<uint64, bytes> first_hop_custom_records = 17;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<number,!(string|Uint8Array)>}
*/
proto.lnrpc.Payment.prototype.getFirstHopCustomRecordsMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<number,!(string|Uint8Array)>} */ (
jspb.Message.getMapField(this, 17, opt_noLazyCreate,
null));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.lnrpc.Payment} returns this
*/
proto.lnrpc.Payment.prototype.clearFirstHopCustomRecordsMap = function() {
this.getFirstHopCustomRecordsMap().clear();
return this;
};
@ -57257,7 +58043,8 @@ proto.lnrpc.CommitmentType = {
STATIC_REMOTE_KEY: 2,
ANCHORS: 3,
SCRIPT_ENFORCED_LEASE: 4,
SIMPLE_TAPROOT: 5
SIMPLE_TAPROOT: 5,
SIMPLE_TAPROOT_OVERLAY: 6
};
/**

635
app/src/types/generated/loop_pb.d.ts generated vendored
View file

@ -522,6 +522,11 @@ export class QuoteRequest extends jspb.Message {
getPrivate(): boolean;
setPrivate(value: boolean): void;
clearDepositOutpointsList(): void;
getDepositOutpointsList(): Array<string>;
setDepositOutpointsList(value: Array<string>): void;
addDepositOutpoints(value: string, index?: number): string;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): QuoteRequest.AsObject;
static toObject(includeInstance: boolean, msg: QuoteRequest): QuoteRequest.AsObject;
@ -541,6 +546,7 @@ export namespace QuoteRequest {
loopInLastHop: Uint8Array | string,
loopInRouteHintsList: Array<swapserverrpc_common_pb.RouteHint.AsObject>,
pb_private: boolean,
depositOutpointsList: Array<string>,
}
}
@ -704,6 +710,38 @@ export namespace TokensResponse {
}
}
export class FetchL402TokenRequest extends jspb.Message {
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): FetchL402TokenRequest.AsObject;
static toObject(includeInstance: boolean, msg: FetchL402TokenRequest): FetchL402TokenRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: FetchL402TokenRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): FetchL402TokenRequest;
static deserializeBinaryFromReader(message: FetchL402TokenRequest, reader: jspb.BinaryReader): FetchL402TokenRequest;
}
export namespace FetchL402TokenRequest {
export type AsObject = {
}
}
export class FetchL402TokenResponse extends jspb.Message {
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): FetchL402TokenResponse.AsObject;
static toObject(includeInstance: boolean, msg: FetchL402TokenResponse): FetchL402TokenResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: FetchL402TokenResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): FetchL402TokenResponse;
static deserializeBinaryFromReader(message: FetchL402TokenResponse, reader: jspb.BinaryReader): FetchL402TokenResponse;
}
export namespace FetchL402TokenResponse {
export type AsObject = {
}
}
export class L402Token extends jspb.Message {
getBaseMacaroon(): Uint8Array | string;
getBaseMacaroon_asU8(): Uint8Array;
@ -1470,6 +1508,570 @@ export namespace InstantOut {
}
}
export class NewStaticAddressRequest extends jspb.Message {
getClientKey(): Uint8Array | string;
getClientKey_asU8(): Uint8Array;
getClientKey_asB64(): string;
setClientKey(value: Uint8Array | string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): NewStaticAddressRequest.AsObject;
static toObject(includeInstance: boolean, msg: NewStaticAddressRequest): NewStaticAddressRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: NewStaticAddressRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): NewStaticAddressRequest;
static deserializeBinaryFromReader(message: NewStaticAddressRequest, reader: jspb.BinaryReader): NewStaticAddressRequest;
}
export namespace NewStaticAddressRequest {
export type AsObject = {
clientKey: Uint8Array | string,
}
}
export class NewStaticAddressResponse extends jspb.Message {
getAddress(): string;
setAddress(value: string): void;
getExpiry(): number;
setExpiry(value: number): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): NewStaticAddressResponse.AsObject;
static toObject(includeInstance: boolean, msg: NewStaticAddressResponse): NewStaticAddressResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: NewStaticAddressResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): NewStaticAddressResponse;
static deserializeBinaryFromReader(message: NewStaticAddressResponse, reader: jspb.BinaryReader): NewStaticAddressResponse;
}
export namespace NewStaticAddressResponse {
export type AsObject = {
address: string,
expiry: number,
}
}
export class ListUnspentDepositsRequest extends jspb.Message {
getMinConfs(): number;
setMinConfs(value: number): void;
getMaxConfs(): number;
setMaxConfs(value: number): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListUnspentDepositsRequest.AsObject;
static toObject(includeInstance: boolean, msg: ListUnspentDepositsRequest): ListUnspentDepositsRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ListUnspentDepositsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListUnspentDepositsRequest;
static deserializeBinaryFromReader(message: ListUnspentDepositsRequest, reader: jspb.BinaryReader): ListUnspentDepositsRequest;
}
export namespace ListUnspentDepositsRequest {
export type AsObject = {
minConfs: number,
maxConfs: number,
}
}
export class ListUnspentDepositsResponse extends jspb.Message {
clearUtxosList(): void;
getUtxosList(): Array<Utxo>;
setUtxosList(value: Array<Utxo>): void;
addUtxos(value?: Utxo, index?: number): Utxo;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListUnspentDepositsResponse.AsObject;
static toObject(includeInstance: boolean, msg: ListUnspentDepositsResponse): ListUnspentDepositsResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ListUnspentDepositsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListUnspentDepositsResponse;
static deserializeBinaryFromReader(message: ListUnspentDepositsResponse, reader: jspb.BinaryReader): ListUnspentDepositsResponse;
}
export namespace ListUnspentDepositsResponse {
export type AsObject = {
utxosList: Array<Utxo.AsObject>,
}
}
export class Utxo extends jspb.Message {
getStaticAddress(): string;
setStaticAddress(value: string): void;
getAmountSat(): string;
setAmountSat(value: string): void;
getOutpoint(): string;
setOutpoint(value: string): void;
getConfirmations(): string;
setConfirmations(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Utxo.AsObject;
static toObject(includeInstance: boolean, msg: Utxo): Utxo.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: Utxo, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): Utxo;
static deserializeBinaryFromReader(message: Utxo, reader: jspb.BinaryReader): Utxo;
}
export namespace Utxo {
export type AsObject = {
staticAddress: string,
amountSat: string,
outpoint: string,
confirmations: string,
}
}
export class WithdrawDepositsRequest extends jspb.Message {
clearOutpointsList(): void;
getOutpointsList(): Array<OutPoint>;
setOutpointsList(value: Array<OutPoint>): void;
addOutpoints(value?: OutPoint, index?: number): OutPoint;
getAll(): boolean;
setAll(value: boolean): void;
getDestAddr(): string;
setDestAddr(value: string): void;
getSatPerVbyte(): string;
setSatPerVbyte(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): WithdrawDepositsRequest.AsObject;
static toObject(includeInstance: boolean, msg: WithdrawDepositsRequest): WithdrawDepositsRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: WithdrawDepositsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): WithdrawDepositsRequest;
static deserializeBinaryFromReader(message: WithdrawDepositsRequest, reader: jspb.BinaryReader): WithdrawDepositsRequest;
}
export namespace WithdrawDepositsRequest {
export type AsObject = {
outpointsList: Array<OutPoint.AsObject>,
all: boolean,
destAddr: string,
satPerVbyte: string,
}
}
export class WithdrawDepositsResponse extends jspb.Message {
getWithdrawalTxHash(): string;
setWithdrawalTxHash(value: string): void;
getPkScript(): string;
setPkScript(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): WithdrawDepositsResponse.AsObject;
static toObject(includeInstance: boolean, msg: WithdrawDepositsResponse): WithdrawDepositsResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: WithdrawDepositsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): WithdrawDepositsResponse;
static deserializeBinaryFromReader(message: WithdrawDepositsResponse, reader: jspb.BinaryReader): WithdrawDepositsResponse;
}
export namespace WithdrawDepositsResponse {
export type AsObject = {
withdrawalTxHash: string,
pkScript: string,
}
}
export class OutPoint extends jspb.Message {
getTxidBytes(): Uint8Array | string;
getTxidBytes_asU8(): Uint8Array;
getTxidBytes_asB64(): string;
setTxidBytes(value: Uint8Array | string): void;
getTxidStr(): string;
setTxidStr(value: string): void;
getOutputIndex(): number;
setOutputIndex(value: number): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): OutPoint.AsObject;
static toObject(includeInstance: boolean, msg: OutPoint): OutPoint.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: OutPoint, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): OutPoint;
static deserializeBinaryFromReader(message: OutPoint, reader: jspb.BinaryReader): OutPoint;
}
export namespace OutPoint {
export type AsObject = {
txidBytes: Uint8Array | string,
txidStr: string,
outputIndex: number,
}
}
export class ListStaticAddressDepositsRequest extends jspb.Message {
getStateFilter(): DepositStateMap[keyof DepositStateMap];
setStateFilter(value: DepositStateMap[keyof DepositStateMap]): void;
clearOutpointsList(): void;
getOutpointsList(): Array<string>;
setOutpointsList(value: Array<string>): void;
addOutpoints(value: string, index?: number): string;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListStaticAddressDepositsRequest.AsObject;
static toObject(includeInstance: boolean, msg: ListStaticAddressDepositsRequest): ListStaticAddressDepositsRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ListStaticAddressDepositsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListStaticAddressDepositsRequest;
static deserializeBinaryFromReader(message: ListStaticAddressDepositsRequest, reader: jspb.BinaryReader): ListStaticAddressDepositsRequest;
}
export namespace ListStaticAddressDepositsRequest {
export type AsObject = {
stateFilter: DepositStateMap[keyof DepositStateMap],
outpointsList: Array<string>,
}
}
export class ListStaticAddressDepositsResponse extends jspb.Message {
clearFilteredDepositsList(): void;
getFilteredDepositsList(): Array<Deposit>;
setFilteredDepositsList(value: Array<Deposit>): void;
addFilteredDeposits(value?: Deposit, index?: number): Deposit;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListStaticAddressDepositsResponse.AsObject;
static toObject(includeInstance: boolean, msg: ListStaticAddressDepositsResponse): ListStaticAddressDepositsResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ListStaticAddressDepositsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListStaticAddressDepositsResponse;
static deserializeBinaryFromReader(message: ListStaticAddressDepositsResponse, reader: jspb.BinaryReader): ListStaticAddressDepositsResponse;
}
export namespace ListStaticAddressDepositsResponse {
export type AsObject = {
filteredDepositsList: Array<Deposit.AsObject>,
}
}
export class ListStaticAddressSwapsRequest extends jspb.Message {
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListStaticAddressSwapsRequest.AsObject;
static toObject(includeInstance: boolean, msg: ListStaticAddressSwapsRequest): ListStaticAddressSwapsRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ListStaticAddressSwapsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListStaticAddressSwapsRequest;
static deserializeBinaryFromReader(message: ListStaticAddressSwapsRequest, reader: jspb.BinaryReader): ListStaticAddressSwapsRequest;
}
export namespace ListStaticAddressSwapsRequest {
export type AsObject = {
}
}
export class ListStaticAddressSwapsResponse extends jspb.Message {
clearSwapsList(): void;
getSwapsList(): Array<StaticAddressLoopInSwap>;
setSwapsList(value: Array<StaticAddressLoopInSwap>): void;
addSwaps(value?: StaticAddressLoopInSwap, index?: number): StaticAddressLoopInSwap;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListStaticAddressSwapsResponse.AsObject;
static toObject(includeInstance: boolean, msg: ListStaticAddressSwapsResponse): ListStaticAddressSwapsResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ListStaticAddressSwapsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListStaticAddressSwapsResponse;
static deserializeBinaryFromReader(message: ListStaticAddressSwapsResponse, reader: jspb.BinaryReader): ListStaticAddressSwapsResponse;
}
export namespace ListStaticAddressSwapsResponse {
export type AsObject = {
swapsList: Array<StaticAddressLoopInSwap.AsObject>,
}
}
export class StaticAddressSummaryRequest extends jspb.Message {
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): StaticAddressSummaryRequest.AsObject;
static toObject(includeInstance: boolean, msg: StaticAddressSummaryRequest): StaticAddressSummaryRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: StaticAddressSummaryRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): StaticAddressSummaryRequest;
static deserializeBinaryFromReader(message: StaticAddressSummaryRequest, reader: jspb.BinaryReader): StaticAddressSummaryRequest;
}
export namespace StaticAddressSummaryRequest {
export type AsObject = {
}
}
export class StaticAddressSummaryResponse extends jspb.Message {
getStaticAddress(): string;
setStaticAddress(value: string): void;
getRelativeExpiryBlocks(): string;
setRelativeExpiryBlocks(value: string): void;
getTotalNumDeposits(): number;
setTotalNumDeposits(value: number): void;
getValueUnconfirmedSatoshis(): string;
setValueUnconfirmedSatoshis(value: string): void;
getValueDepositedSatoshis(): string;
setValueDepositedSatoshis(value: string): void;
getValueExpiredSatoshis(): string;
setValueExpiredSatoshis(value: string): void;
getValueWithdrawnSatoshis(): string;
setValueWithdrawnSatoshis(value: string): void;
getValueLoopedInSatoshis(): string;
setValueLoopedInSatoshis(value: string): void;
getValueHtlcTimeoutSweepsSatoshis(): string;
setValueHtlcTimeoutSweepsSatoshis(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): StaticAddressSummaryResponse.AsObject;
static toObject(includeInstance: boolean, msg: StaticAddressSummaryResponse): StaticAddressSummaryResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: StaticAddressSummaryResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): StaticAddressSummaryResponse;
static deserializeBinaryFromReader(message: StaticAddressSummaryResponse, reader: jspb.BinaryReader): StaticAddressSummaryResponse;
}
export namespace StaticAddressSummaryResponse {
export type AsObject = {
staticAddress: string,
relativeExpiryBlocks: string,
totalNumDeposits: number,
valueUnconfirmedSatoshis: string,
valueDepositedSatoshis: string,
valueExpiredSatoshis: string,
valueWithdrawnSatoshis: string,
valueLoopedInSatoshis: string,
valueHtlcTimeoutSweepsSatoshis: string,
}
}
export class Deposit extends jspb.Message {
getId(): Uint8Array | string;
getId_asU8(): Uint8Array;
getId_asB64(): string;
setId(value: Uint8Array | string): void;
getState(): DepositStateMap[keyof DepositStateMap];
setState(value: DepositStateMap[keyof DepositStateMap]): void;
getOutpoint(): string;
setOutpoint(value: string): void;
getValue(): string;
setValue(value: string): void;
getConfirmationHeight(): string;
setConfirmationHeight(value: string): void;
getBlocksUntilExpiry(): string;
setBlocksUntilExpiry(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Deposit.AsObject;
static toObject(includeInstance: boolean, msg: Deposit): Deposit.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: Deposit, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): Deposit;
static deserializeBinaryFromReader(message: Deposit, reader: jspb.BinaryReader): Deposit;
}
export namespace Deposit {
export type AsObject = {
id: Uint8Array | string,
state: DepositStateMap[keyof DepositStateMap],
outpoint: string,
value: string,
confirmationHeight: string,
blocksUntilExpiry: string,
}
}
export class StaticAddressLoopInSwap extends jspb.Message {
getSwapHash(): Uint8Array | string;
getSwapHash_asU8(): Uint8Array;
getSwapHash_asB64(): string;
setSwapHash(value: Uint8Array | string): void;
clearDepositOutpointsList(): void;
getDepositOutpointsList(): Array<string>;
setDepositOutpointsList(value: Array<string>): void;
addDepositOutpoints(value: string, index?: number): string;
getState(): StaticAddressLoopInSwapStateMap[keyof StaticAddressLoopInSwapStateMap];
setState(value: StaticAddressLoopInSwapStateMap[keyof StaticAddressLoopInSwapStateMap]): void;
getSwapAmountSatoshis(): string;
setSwapAmountSatoshis(value: string): void;
getPaymentRequestAmountSatoshis(): string;
setPaymentRequestAmountSatoshis(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): StaticAddressLoopInSwap.AsObject;
static toObject(includeInstance: boolean, msg: StaticAddressLoopInSwap): StaticAddressLoopInSwap.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: StaticAddressLoopInSwap, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): StaticAddressLoopInSwap;
static deserializeBinaryFromReader(message: StaticAddressLoopInSwap, reader: jspb.BinaryReader): StaticAddressLoopInSwap;
}
export namespace StaticAddressLoopInSwap {
export type AsObject = {
swapHash: Uint8Array | string,
depositOutpointsList: Array<string>,
state: StaticAddressLoopInSwapStateMap[keyof StaticAddressLoopInSwapStateMap],
swapAmountSatoshis: string,
paymentRequestAmountSatoshis: string,
}
}
export class StaticAddressLoopInRequest extends jspb.Message {
clearOutpointsList(): void;
getOutpointsList(): Array<string>;
setOutpointsList(value: Array<string>): void;
addOutpoints(value: string, index?: number): string;
getMaxSwapFeeSatoshis(): string;
setMaxSwapFeeSatoshis(value: string): void;
getLastHop(): Uint8Array | string;
getLastHop_asU8(): Uint8Array;
getLastHop_asB64(): string;
setLastHop(value: Uint8Array | string): void;
getLabel(): string;
setLabel(value: string): void;
getInitiator(): string;
setInitiator(value: string): void;
clearRouteHintsList(): void;
getRouteHintsList(): Array<swapserverrpc_common_pb.RouteHint>;
setRouteHintsList(value: Array<swapserverrpc_common_pb.RouteHint>): void;
addRouteHints(value?: swapserverrpc_common_pb.RouteHint, index?: number): swapserverrpc_common_pb.RouteHint;
getPrivate(): boolean;
setPrivate(value: boolean): void;
getPaymentTimeoutSeconds(): number;
setPaymentTimeoutSeconds(value: number): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): StaticAddressLoopInRequest.AsObject;
static toObject(includeInstance: boolean, msg: StaticAddressLoopInRequest): StaticAddressLoopInRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: StaticAddressLoopInRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): StaticAddressLoopInRequest;
static deserializeBinaryFromReader(message: StaticAddressLoopInRequest, reader: jspb.BinaryReader): StaticAddressLoopInRequest;
}
export namespace StaticAddressLoopInRequest {
export type AsObject = {
outpointsList: Array<string>,
maxSwapFeeSatoshis: string,
lastHop: Uint8Array | string,
label: string,
initiator: string,
routeHintsList: Array<swapserverrpc_common_pb.RouteHint.AsObject>,
pb_private: boolean,
paymentTimeoutSeconds: number,
}
}
export class StaticAddressLoopInResponse extends jspb.Message {
getSwapHash(): Uint8Array | string;
getSwapHash_asU8(): Uint8Array;
getSwapHash_asB64(): string;
setSwapHash(value: Uint8Array | string): void;
getState(): string;
setState(value: string): void;
getAmount(): string;
setAmount(value: string): void;
getHtlcCltv(): number;
setHtlcCltv(value: number): void;
getQuotedSwapFeeSatoshis(): string;
setQuotedSwapFeeSatoshis(value: string): void;
getMaxSwapFeeSatoshis(): string;
setMaxSwapFeeSatoshis(value: string): void;
getInitiationHeight(): number;
setInitiationHeight(value: number): void;
getProtocolVersion(): string;
setProtocolVersion(value: string): void;
getLabel(): string;
setLabel(value: string): void;
getInitiator(): string;
setInitiator(value: string): void;
getPaymentTimeoutSeconds(): number;
setPaymentTimeoutSeconds(value: number): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): StaticAddressLoopInResponse.AsObject;
static toObject(includeInstance: boolean, msg: StaticAddressLoopInResponse): StaticAddressLoopInResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: StaticAddressLoopInResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): StaticAddressLoopInResponse;
static deserializeBinaryFromReader(message: StaticAddressLoopInResponse, reader: jspb.BinaryReader): StaticAddressLoopInResponse;
}
export namespace StaticAddressLoopInResponse {
export type AsObject = {
swapHash: Uint8Array | string,
state: string,
amount: string,
htlcCltv: number,
quotedSwapFeeSatoshis: string,
maxSwapFeeSatoshis: string,
initiationHeight: number,
protocolVersion: string,
label: string,
initiator: string,
paymentTimeoutSeconds: number,
}
}
export interface AddressTypeMap {
ADDRESS_TYPE_UNKNOWN: 0;
TAPROOT_PUBKEY: 1;
@ -1536,3 +2138,36 @@ export interface AutoReasonMap {
export const AutoReason: AutoReasonMap;
export interface DepositStateMap {
UNKNOWN_STATE: 0;
DEPOSITED: 1;
WITHDRAWING: 2;
WITHDRAWN: 3;
LOOPING_IN: 4;
LOOPED_IN: 5;
SWEEP_HTLC_TIMEOUT: 6;
HTLC_TIMEOUT_SWEPT: 7;
PUBLISH_EXPIRED: 8;
WAIT_FOR_EXPIRY_SWEEP: 9;
EXPIRED: 10;
}
export const DepositState: DepositStateMap;
export interface StaticAddressLoopInSwapStateMap {
UNKNOWN_STATIC_ADDRESS_SWAP_STATE: 0;
INIT_HTLC: 1;
SIGN_HTLC_TX: 2;
MONITOR_INVOICE_HTLC_TX: 3;
PAYMENT_RECEIVED: 4;
SWEEP_STATIC_ADDRESS_HTLC_TIMEOUT: 5;
MONITOR_HTLC_TIMEOUT_SWEEP: 6;
HTLC_STATIC_ADDRESS_TIMEOUT_SWEPT: 7;
SUCCEEDED: 8;
SUCCEEDED_TRANSITIONING_FAILED: 9;
UNLOCK_DEPOSITS: 10;
FAILED_STATIC_ADDRESS_SWAP: 11;
}
export const StaticAddressLoopInSwapState: StaticAddressLoopInSwapStateMap;

File diff suppressed because it is too large Load diff

View file

@ -121,6 +121,15 @@ type SwapClientGetLsatTokens = {
readonly responseType: typeof loop_pb.TokensResponse;
};
type SwapClientFetchL402Token = {
readonly methodName: string;
readonly service: typeof SwapClient;
readonly requestStream: false;
readonly responseStream: false;
readonly requestType: typeof loop_pb.FetchL402TokenRequest;
readonly responseType: typeof loop_pb.FetchL402TokenResponse;
};
type SwapClientGetInfo = {
readonly methodName: string;
readonly service: typeof SwapClient;
@ -193,6 +202,69 @@ type SwapClientListInstantOuts = {
readonly responseType: typeof loop_pb.ListInstantOutsResponse;
};
type SwapClientNewStaticAddress = {
readonly methodName: string;
readonly service: typeof SwapClient;
readonly requestStream: false;
readonly responseStream: false;
readonly requestType: typeof loop_pb.NewStaticAddressRequest;
readonly responseType: typeof loop_pb.NewStaticAddressResponse;
};
type SwapClientListUnspentDeposits = {
readonly methodName: string;
readonly service: typeof SwapClient;
readonly requestStream: false;
readonly responseStream: false;
readonly requestType: typeof loop_pb.ListUnspentDepositsRequest;
readonly responseType: typeof loop_pb.ListUnspentDepositsResponse;
};
type SwapClientWithdrawDeposits = {
readonly methodName: string;
readonly service: typeof SwapClient;
readonly requestStream: false;
readonly responseStream: false;
readonly requestType: typeof loop_pb.WithdrawDepositsRequest;
readonly responseType: typeof loop_pb.WithdrawDepositsResponse;
};
type SwapClientListStaticAddressDeposits = {
readonly methodName: string;
readonly service: typeof SwapClient;
readonly requestStream: false;
readonly responseStream: false;
readonly requestType: typeof loop_pb.ListStaticAddressDepositsRequest;
readonly responseType: typeof loop_pb.ListStaticAddressDepositsResponse;
};
type SwapClientListStaticAddressSwaps = {
readonly methodName: string;
readonly service: typeof SwapClient;
readonly requestStream: false;
readonly responseStream: false;
readonly requestType: typeof loop_pb.ListStaticAddressSwapsRequest;
readonly responseType: typeof loop_pb.ListStaticAddressSwapsResponse;
};
type SwapClientGetStaticAddressSummary = {
readonly methodName: string;
readonly service: typeof SwapClient;
readonly requestStream: false;
readonly responseStream: false;
readonly requestType: typeof loop_pb.StaticAddressSummaryRequest;
readonly responseType: typeof loop_pb.StaticAddressSummaryResponse;
};
type SwapClientStaticAddressLoopIn = {
readonly methodName: string;
readonly service: typeof SwapClient;
readonly requestStream: false;
readonly responseStream: false;
readonly requestType: typeof loop_pb.StaticAddressLoopInRequest;
readonly responseType: typeof loop_pb.StaticAddressLoopInResponse;
};
export class SwapClient {
static readonly serviceName: string;
static readonly LoopOut: SwapClientLoopOut;
@ -208,6 +280,7 @@ export class SwapClient {
static readonly Probe: SwapClientProbe;
static readonly GetL402Tokens: SwapClientGetL402Tokens;
static readonly GetLsatTokens: SwapClientGetLsatTokens;
static readonly FetchL402Token: SwapClientFetchL402Token;
static readonly GetInfo: SwapClientGetInfo;
static readonly GetLiquidityParams: SwapClientGetLiquidityParams;
static readonly SetLiquidityParams: SwapClientSetLiquidityParams;
@ -216,6 +289,13 @@ export class SwapClient {
static readonly InstantOut: SwapClientInstantOut;
static readonly InstantOutQuote: SwapClientInstantOutQuote;
static readonly ListInstantOuts: SwapClientListInstantOuts;
static readonly NewStaticAddress: SwapClientNewStaticAddress;
static readonly ListUnspentDeposits: SwapClientListUnspentDeposits;
static readonly WithdrawDeposits: SwapClientWithdrawDeposits;
static readonly ListStaticAddressDeposits: SwapClientListStaticAddressDeposits;
static readonly ListStaticAddressSwaps: SwapClientListStaticAddressSwaps;
static readonly GetStaticAddressSummary: SwapClientGetStaticAddressSummary;
static readonly StaticAddressLoopIn: SwapClientStaticAddressLoopIn;
}
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
@ -359,6 +439,15 @@ export class SwapClientClient {
requestMessage: loop_pb.TokensRequest,
callback: (error: ServiceError|null, responseMessage: loop_pb.TokensResponse|null) => void
): UnaryResponse;
fetchL402Token(
requestMessage: loop_pb.FetchL402TokenRequest,
metadata: grpc.Metadata,
callback: (error: ServiceError|null, responseMessage: loop_pb.FetchL402TokenResponse|null) => void
): UnaryResponse;
fetchL402Token(
requestMessage: loop_pb.FetchL402TokenRequest,
callback: (error: ServiceError|null, responseMessage: loop_pb.FetchL402TokenResponse|null) => void
): UnaryResponse;
getInfo(
requestMessage: loop_pb.GetInfoRequest,
metadata: grpc.Metadata,
@ -431,5 +520,68 @@ export class SwapClientClient {
requestMessage: loop_pb.ListInstantOutsRequest,
callback: (error: ServiceError|null, responseMessage: loop_pb.ListInstantOutsResponse|null) => void
): UnaryResponse;
newStaticAddress(
requestMessage: loop_pb.NewStaticAddressRequest,
metadata: grpc.Metadata,
callback: (error: ServiceError|null, responseMessage: loop_pb.NewStaticAddressResponse|null) => void
): UnaryResponse;
newStaticAddress(
requestMessage: loop_pb.NewStaticAddressRequest,
callback: (error: ServiceError|null, responseMessage: loop_pb.NewStaticAddressResponse|null) => void
): UnaryResponse;
listUnspentDeposits(
requestMessage: loop_pb.ListUnspentDepositsRequest,
metadata: grpc.Metadata,
callback: (error: ServiceError|null, responseMessage: loop_pb.ListUnspentDepositsResponse|null) => void
): UnaryResponse;
listUnspentDeposits(
requestMessage: loop_pb.ListUnspentDepositsRequest,
callback: (error: ServiceError|null, responseMessage: loop_pb.ListUnspentDepositsResponse|null) => void
): UnaryResponse;
withdrawDeposits(
requestMessage: loop_pb.WithdrawDepositsRequest,
metadata: grpc.Metadata,
callback: (error: ServiceError|null, responseMessage: loop_pb.WithdrawDepositsResponse|null) => void
): UnaryResponse;
withdrawDeposits(
requestMessage: loop_pb.WithdrawDepositsRequest,
callback: (error: ServiceError|null, responseMessage: loop_pb.WithdrawDepositsResponse|null) => void
): UnaryResponse;
listStaticAddressDeposits(
requestMessage: loop_pb.ListStaticAddressDepositsRequest,
metadata: grpc.Metadata,
callback: (error: ServiceError|null, responseMessage: loop_pb.ListStaticAddressDepositsResponse|null) => void
): UnaryResponse;
listStaticAddressDeposits(
requestMessage: loop_pb.ListStaticAddressDepositsRequest,
callback: (error: ServiceError|null, responseMessage: loop_pb.ListStaticAddressDepositsResponse|null) => void
): UnaryResponse;
listStaticAddressSwaps(
requestMessage: loop_pb.ListStaticAddressSwapsRequest,
metadata: grpc.Metadata,
callback: (error: ServiceError|null, responseMessage: loop_pb.ListStaticAddressSwapsResponse|null) => void
): UnaryResponse;
listStaticAddressSwaps(
requestMessage: loop_pb.ListStaticAddressSwapsRequest,
callback: (error: ServiceError|null, responseMessage: loop_pb.ListStaticAddressSwapsResponse|null) => void
): UnaryResponse;
getStaticAddressSummary(
requestMessage: loop_pb.StaticAddressSummaryRequest,
metadata: grpc.Metadata,
callback: (error: ServiceError|null, responseMessage: loop_pb.StaticAddressSummaryResponse|null) => void
): UnaryResponse;
getStaticAddressSummary(
requestMessage: loop_pb.StaticAddressSummaryRequest,
callback: (error: ServiceError|null, responseMessage: loop_pb.StaticAddressSummaryResponse|null) => void
): UnaryResponse;
staticAddressLoopIn(
requestMessage: loop_pb.StaticAddressLoopInRequest,
metadata: grpc.Metadata,
callback: (error: ServiceError|null, responseMessage: loop_pb.StaticAddressLoopInResponse|null) => void
): UnaryResponse;
staticAddressLoopIn(
requestMessage: loop_pb.StaticAddressLoopInRequest,
callback: (error: ServiceError|null, responseMessage: loop_pb.StaticAddressLoopInResponse|null) => void
): UnaryResponse;
}

View file

@ -127,6 +127,15 @@ SwapClient.GetLsatTokens = {
responseType: loop_pb.TokensResponse
};
SwapClient.FetchL402Token = {
methodName: "FetchL402Token",
service: SwapClient,
requestStream: false,
responseStream: false,
requestType: loop_pb.FetchL402TokenRequest,
responseType: loop_pb.FetchL402TokenResponse
};
SwapClient.GetInfo = {
methodName: "GetInfo",
service: SwapClient,
@ -199,6 +208,69 @@ SwapClient.ListInstantOuts = {
responseType: loop_pb.ListInstantOutsResponse
};
SwapClient.NewStaticAddress = {
methodName: "NewStaticAddress",
service: SwapClient,
requestStream: false,
responseStream: false,
requestType: loop_pb.NewStaticAddressRequest,
responseType: loop_pb.NewStaticAddressResponse
};
SwapClient.ListUnspentDeposits = {
methodName: "ListUnspentDeposits",
service: SwapClient,
requestStream: false,
responseStream: false,
requestType: loop_pb.ListUnspentDepositsRequest,
responseType: loop_pb.ListUnspentDepositsResponse
};
SwapClient.WithdrawDeposits = {
methodName: "WithdrawDeposits",
service: SwapClient,
requestStream: false,
responseStream: false,
requestType: loop_pb.WithdrawDepositsRequest,
responseType: loop_pb.WithdrawDepositsResponse
};
SwapClient.ListStaticAddressDeposits = {
methodName: "ListStaticAddressDeposits",
service: SwapClient,
requestStream: false,
responseStream: false,
requestType: loop_pb.ListStaticAddressDepositsRequest,
responseType: loop_pb.ListStaticAddressDepositsResponse
};
SwapClient.ListStaticAddressSwaps = {
methodName: "ListStaticAddressSwaps",
service: SwapClient,
requestStream: false,
responseStream: false,
requestType: loop_pb.ListStaticAddressSwapsRequest,
responseType: loop_pb.ListStaticAddressSwapsResponse
};
SwapClient.GetStaticAddressSummary = {
methodName: "GetStaticAddressSummary",
service: SwapClient,
requestStream: false,
responseStream: false,
requestType: loop_pb.StaticAddressSummaryRequest,
responseType: loop_pb.StaticAddressSummaryResponse
};
SwapClient.StaticAddressLoopIn = {
methodName: "StaticAddressLoopIn",
service: SwapClient,
requestStream: false,
responseStream: false,
requestType: loop_pb.StaticAddressLoopInRequest,
responseType: loop_pb.StaticAddressLoopInResponse
};
exports.SwapClient = SwapClient;
function SwapClientClient(serviceHost, options) {
@ -617,6 +689,37 @@ SwapClientClient.prototype.getLsatTokens = function getLsatTokens(requestMessage
};
};
SwapClientClient.prototype.fetchL402Token = function fetchL402Token(requestMessage, metadata, callback) {
if (arguments.length === 2) {
callback = arguments[1];
}
var client = grpc.unary(SwapClient.FetchL402Token, {
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.getInfo = function getInfo(requestMessage, metadata, callback) {
if (arguments.length === 2) {
callback = arguments[1];
@ -865,5 +968,222 @@ SwapClientClient.prototype.listInstantOuts = function listInstantOuts(requestMes
};
};
SwapClientClient.prototype.newStaticAddress = function newStaticAddress(requestMessage, metadata, callback) {
if (arguments.length === 2) {
callback = arguments[1];
}
var client = grpc.unary(SwapClient.NewStaticAddress, {
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.listUnspentDeposits = function listUnspentDeposits(requestMessage, metadata, callback) {
if (arguments.length === 2) {
callback = arguments[1];
}
var client = grpc.unary(SwapClient.ListUnspentDeposits, {
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.withdrawDeposits = function withdrawDeposits(requestMessage, metadata, callback) {
if (arguments.length === 2) {
callback = arguments[1];
}
var client = grpc.unary(SwapClient.WithdrawDeposits, {
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.listStaticAddressDeposits = function listStaticAddressDeposits(requestMessage, metadata, callback) {
if (arguments.length === 2) {
callback = arguments[1];
}
var client = grpc.unary(SwapClient.ListStaticAddressDeposits, {
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.listStaticAddressSwaps = function listStaticAddressSwaps(requestMessage, metadata, callback) {
if (arguments.length === 2) {
callback = arguments[1];
}
var client = grpc.unary(SwapClient.ListStaticAddressSwaps, {
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.getStaticAddressSummary = function getStaticAddressSummary(requestMessage, metadata, callback) {
if (arguments.length === 2) {
callback = arguments[1];
}
var client = grpc.unary(SwapClient.GetStaticAddressSummary, {
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.staticAddressLoopIn = function staticAddressLoopIn(requestMessage, metadata, callback) {
if (arguments.length === 2) {
callback = arguments[1];
}
var client = grpc.unary(SwapClient.StaticAddressLoopIn, {
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();
}
};
};
exports.SwapClientClient = SwapClientClient;

View file

@ -1073,6 +1073,11 @@ export class SubscribeNotificationsResponse extends jspb.Message {
getReservationNotification(): swapserverrpc_reservation_pb.ServerReservationNotification | undefined;
setReservationNotification(value?: swapserverrpc_reservation_pb.ServerReservationNotification): void;
hasStaticLoopInSweep(): boolean;
clearStaticLoopInSweep(): void;
getStaticLoopInSweep(): ServerStaticLoopInSweepNotification | undefined;
setStaticLoopInSweep(value?: ServerStaticLoopInSweepNotification): void;
getNotificationCase(): SubscribeNotificationsResponse.NotificationCase;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): SubscribeNotificationsResponse.AsObject;
@ -1087,155 +1092,50 @@ export class SubscribeNotificationsResponse extends jspb.Message {
export namespace SubscribeNotificationsResponse {
export type AsObject = {
reservationNotification?: swapserverrpc_reservation_pb.ServerReservationNotification.AsObject,
staticLoopInSweep?: ServerStaticLoopInSweepNotification.AsObject,
}
export enum NotificationCase {
NOTIFICATION_NOT_SET = 0,
RESERVATION_NOTIFICATION = 1,
STATIC_LOOP_IN_SWEEP = 2,
}
}
export class ServerNewAddressRequest extends jspb.Message {
getProtocolVersion(): StaticAddressProtocolVersionMap[keyof StaticAddressProtocolVersionMap];
setProtocolVersion(value: StaticAddressProtocolVersionMap[keyof StaticAddressProtocolVersionMap]): void;
export class ServerStaticLoopInSweepNotification extends jspb.Message {
getSweepTxPsbt(): Uint8Array | string;
getSweepTxPsbt_asU8(): Uint8Array;
getSweepTxPsbt_asB64(): string;
setSweepTxPsbt(value: Uint8Array | string): void;
getClientKey(): Uint8Array | string;
getClientKey_asU8(): Uint8Array;
getClientKey_asB64(): string;
setClientKey(value: Uint8Array | string): void;
getSwapHash(): Uint8Array | string;
getSwapHash_asU8(): Uint8Array;
getSwapHash_asB64(): string;
setSwapHash(value: Uint8Array | string): void;
getDepositToNoncesMap(): jspb.Map<string, Uint8Array | string>;
clearDepositToNoncesMap(): void;
clearPrevoutInfoList(): void;
getPrevoutInfoList(): Array<PrevoutInfo>;
setPrevoutInfoList(value: Array<PrevoutInfo>): void;
addPrevoutInfo(value?: PrevoutInfo, index?: number): PrevoutInfo;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ServerNewAddressRequest.AsObject;
static toObject(includeInstance: boolean, msg: ServerNewAddressRequest): ServerNewAddressRequest.AsObject;
toObject(includeInstance?: boolean): ServerStaticLoopInSweepNotification.AsObject;
static toObject(includeInstance: boolean, msg: ServerStaticLoopInSweepNotification): ServerStaticLoopInSweepNotification.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ServerNewAddressRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ServerNewAddressRequest;
static deserializeBinaryFromReader(message: ServerNewAddressRequest, reader: jspb.BinaryReader): ServerNewAddressRequest;
static serializeBinaryToWriter(message: ServerStaticLoopInSweepNotification, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ServerStaticLoopInSweepNotification;
static deserializeBinaryFromReader(message: ServerStaticLoopInSweepNotification, reader: jspb.BinaryReader): ServerStaticLoopInSweepNotification;
}
export namespace ServerNewAddressRequest {
export namespace ServerStaticLoopInSweepNotification {
export type AsObject = {
protocolVersion: StaticAddressProtocolVersionMap[keyof StaticAddressProtocolVersionMap],
clientKey: Uint8Array | string,
}
}
export class ServerNewAddressResponse extends jspb.Message {
hasParams(): boolean;
clearParams(): void;
getParams(): ServerAddressParameters | undefined;
setParams(value?: ServerAddressParameters): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ServerNewAddressResponse.AsObject;
static toObject(includeInstance: boolean, msg: ServerNewAddressResponse): ServerNewAddressResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ServerNewAddressResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ServerNewAddressResponse;
static deserializeBinaryFromReader(message: ServerNewAddressResponse, reader: jspb.BinaryReader): ServerNewAddressResponse;
}
export namespace ServerNewAddressResponse {
export type AsObject = {
params?: ServerAddressParameters.AsObject,
}
}
export class ServerAddressParameters extends jspb.Message {
getServerKey(): Uint8Array | string;
getServerKey_asU8(): Uint8Array;
getServerKey_asB64(): string;
setServerKey(value: Uint8Array | string): void;
getExpiry(): number;
setExpiry(value: number): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ServerAddressParameters.AsObject;
static toObject(includeInstance: boolean, msg: ServerAddressParameters): ServerAddressParameters.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ServerAddressParameters, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ServerAddressParameters;
static deserializeBinaryFromReader(message: ServerAddressParameters, reader: jspb.BinaryReader): ServerAddressParameters;
}
export namespace ServerAddressParameters {
export type AsObject = {
serverKey: Uint8Array | string,
expiry: number,
}
}
export class ServerWithdrawRequest extends jspb.Message {
clearOutpointsList(): void;
getOutpointsList(): Array<PrevoutInfo>;
setOutpointsList(value: Array<PrevoutInfo>): void;
addOutpoints(value?: PrevoutInfo, index?: number): PrevoutInfo;
clearClientNoncesList(): void;
getClientNoncesList(): Array<Uint8Array | string>;
getClientNoncesList_asU8(): Array<Uint8Array>;
getClientNoncesList_asB64(): Array<string>;
setClientNoncesList(value: Array<Uint8Array | string>): void;
addClientNonces(value: Uint8Array | string, index?: number): Uint8Array | string;
getClientSweepAddr(): string;
setClientSweepAddr(value: string): void;
getTxFeeRate(): string;
setTxFeeRate(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ServerWithdrawRequest.AsObject;
static toObject(includeInstance: boolean, msg: ServerWithdrawRequest): ServerWithdrawRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ServerWithdrawRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ServerWithdrawRequest;
static deserializeBinaryFromReader(message: ServerWithdrawRequest, reader: jspb.BinaryReader): ServerWithdrawRequest;
}
export namespace ServerWithdrawRequest {
export type AsObject = {
outpointsList: Array<PrevoutInfo.AsObject>,
clientNoncesList: Array<Uint8Array | string>,
clientSweepAddr: string,
txFeeRate: string,
}
}
export class ServerWithdrawResponse extends jspb.Message {
clearMusig2SweepSigsList(): void;
getMusig2SweepSigsList(): Array<Uint8Array | string>;
getMusig2SweepSigsList_asU8(): Array<Uint8Array>;
getMusig2SweepSigsList_asB64(): Array<string>;
setMusig2SweepSigsList(value: Array<Uint8Array | string>): void;
addMusig2SweepSigs(value: Uint8Array | string, index?: number): Uint8Array | string;
clearServerNoncesList(): void;
getServerNoncesList(): Array<Uint8Array | string>;
getServerNoncesList_asU8(): Array<Uint8Array>;
getServerNoncesList_asB64(): Array<string>;
setServerNoncesList(value: Array<Uint8Array | string>): void;
addServerNonces(value: Uint8Array | string, index?: number): Uint8Array | string;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ServerWithdrawResponse.AsObject;
static toObject(includeInstance: boolean, msg: ServerWithdrawResponse): ServerWithdrawResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ServerWithdrawResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ServerWithdrawResponse;
static deserializeBinaryFromReader(message: ServerWithdrawResponse, reader: jspb.BinaryReader): ServerWithdrawResponse;
}
export namespace ServerWithdrawResponse {
export type AsObject = {
musig2SweepSigsList: Array<Uint8Array | string>,
serverNoncesList: Array<Uint8Array | string>,
sweepTxPsbt: Uint8Array | string,
swapHash: Uint8Array | string,
depositToNoncesMap: Array<[string, Uint8Array | string]>,
prevoutInfoList: Array<PrevoutInfo.AsObject>,
}
}
@ -1304,9 +1204,3 @@ export interface RoutingPluginMap {
export const RoutingPlugin: RoutingPluginMap;
export interface StaticAddressProtocolVersionMap {
V0: 0;
}
export const StaticAddressProtocolVersion: StaticAddressProtocolVersionMap;

File diff suppressed because it is too large Load diff

View file

@ -178,30 +178,6 @@ export class SwapServer {
static readonly SubscribeNotifications: SwapServerSubscribeNotifications;
}
type StaticAddressServerServerNewAddress = {
readonly methodName: string;
readonly service: typeof StaticAddressServer;
readonly requestStream: false;
readonly responseStream: false;
readonly requestType: typeof swapserverrpc_server_pb.ServerNewAddressRequest;
readonly responseType: typeof swapserverrpc_server_pb.ServerNewAddressResponse;
};
type StaticAddressServerServerWithdrawDeposits = {
readonly methodName: string;
readonly service: typeof StaticAddressServer;
readonly requestStream: false;
readonly responseStream: false;
readonly requestType: typeof swapserverrpc_server_pb.ServerWithdrawRequest;
readonly responseType: typeof swapserverrpc_server_pb.ServerWithdrawResponse;
};
export class StaticAddressServer {
static readonly serviceName: string;
static readonly ServerNewAddress: StaticAddressServerServerNewAddress;
static readonly ServerWithdrawDeposits: StaticAddressServerServerWithdrawDeposits;
}
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
export type Status = { details: string, code: number; metadata: grpc.Metadata }
@ -365,27 +341,3 @@ export class SwapServerClient {
subscribeNotifications(requestMessage: swapserverrpc_server_pb.SubscribeNotificationsRequest, metadata?: grpc.Metadata): ResponseStream<swapserverrpc_server_pb.SubscribeNotificationsResponse>;
}
export class StaticAddressServerClient {
readonly serviceHost: string;
constructor(serviceHost: string, options?: grpc.RpcOptions);
serverNewAddress(
requestMessage: swapserverrpc_server_pb.ServerNewAddressRequest,
metadata: grpc.Metadata,
callback: (error: ServiceError|null, responseMessage: swapserverrpc_server_pb.ServerNewAddressResponse|null) => void
): UnaryResponse;
serverNewAddress(
requestMessage: swapserverrpc_server_pb.ServerNewAddressRequest,
callback: (error: ServiceError|null, responseMessage: swapserverrpc_server_pb.ServerNewAddressResponse|null) => void
): UnaryResponse;
serverWithdrawDeposits(
requestMessage: swapserverrpc_server_pb.ServerWithdrawRequest,
metadata: grpc.Metadata,
callback: (error: ServiceError|null, responseMessage: swapserverrpc_server_pb.ServerWithdrawResponse|null) => void
): UnaryResponse;
serverWithdrawDeposits(
requestMessage: swapserverrpc_server_pb.ServerWithdrawRequest,
callback: (error: ServiceError|null, responseMessage: swapserverrpc_server_pb.ServerWithdrawResponse|null) => void
): UnaryResponse;
}

View file

@ -723,98 +723,3 @@ SwapServerClient.prototype.subscribeNotifications = function subscribeNotificati
exports.SwapServerClient = SwapServerClient;
var StaticAddressServer = (function () {
function StaticAddressServer() {}
StaticAddressServer.serviceName = "looprpc.StaticAddressServer";
return StaticAddressServer;
}());
StaticAddressServer.ServerNewAddress = {
methodName: "ServerNewAddress",
service: StaticAddressServer,
requestStream: false,
responseStream: false,
requestType: swapserverrpc_server_pb.ServerNewAddressRequest,
responseType: swapserverrpc_server_pb.ServerNewAddressResponse
};
StaticAddressServer.ServerWithdrawDeposits = {
methodName: "ServerWithdrawDeposits",
service: StaticAddressServer,
requestStream: false,
responseStream: false,
requestType: swapserverrpc_server_pb.ServerWithdrawRequest,
responseType: swapserverrpc_server_pb.ServerWithdrawResponse
};
exports.StaticAddressServer = StaticAddressServer;
function StaticAddressServerClient(serviceHost, options) {
this.serviceHost = serviceHost;
this.options = options || {};
}
StaticAddressServerClient.prototype.serverNewAddress = function serverNewAddress(requestMessage, metadata, callback) {
if (arguments.length === 2) {
callback = arguments[1];
}
var client = grpc.unary(StaticAddressServer.ServerNewAddress, {
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();
}
};
};
StaticAddressServerClient.prototype.serverWithdrawDeposits = function serverWithdrawDeposits(requestMessage, metadata, callback) {
if (arguments.length === 2) {
callback = arguments[1];
}
var client = grpc.unary(StaticAddressServer.ServerWithdrawDeposits, {
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();
}
};
};
exports.StaticAddressServerClient = StaticAddressServerClient;

View file

@ -74,6 +74,7 @@ export const lndGetNodeInfo: Required<LND.NodeInfo.AsObject> = {
export const lndChannelBalance: LND.ChannelBalanceResponse.AsObject = {
balance: '9990950',
pendingOpenBalance: '0',
customChannelData: '',
};
export const lndWalletBalance: LND.WalletBalanceResponse.AsObject = {
@ -132,6 +133,7 @@ export const lndChannel: LND.Channel.AsObject = {
peerAlias: '',
peerScidAlias: '',
memo: 'test channel',
customChannelData: '',
};
export const lndListChannelsMany: LND.ListChannelsResponse.AsObject = {
@ -172,6 +174,7 @@ export const lndPendingChannel: LND.PendingChannelsResponse.PendingChannel.AsObj
chanStatusFlags: 'ChanStatusDefault',
pb_private: false,
memo: 'test channel',
customChannelData: '',
};
export const lndPendingChannels: LND.PendingChannelsResponse.AsObject = {

58
go.mod
View file

@ -1,12 +1,12 @@
module github.com/lightninglabs/lightning-terminal
require (
github.com/btcsuite/btcd v0.24.2
github.com/btcsuite/btcd/btcec/v2 v2.3.3
github.com/btcsuite/btcd v0.24.3-0.20240921052913-67b8efd3ba53
github.com/btcsuite/btcd/btcec/v2 v2.3.4
github.com/btcsuite/btcd/btcutil v1.1.5
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f
github.com/btcsuite/btcwallet/walletdb v1.4.2
github.com/btcsuite/btclog v0.0.0-20241003133417-09c4e92e319c
github.com/btcsuite/btcwallet/walletdb v1.4.4
github.com/go-errors/errors v1.0.1
github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0
github.com/improbable-eng/grpc-web v0.12.0
@ -15,14 +15,15 @@ require (
github.com/lightninglabs/lightning-node-connect v0.3.2-alpha.0.20240822142323-ee4e7ff52f83
github.com/lightninglabs/lightning-terminal/autopilotserverrpc v0.0.1
github.com/lightninglabs/lightning-terminal/litrpc v1.0.0
github.com/lightninglabs/lndclient v0.18.0-3
github.com/lightninglabs/loop v0.28.8-beta.0.20241025130130-d5df72f56c8c
github.com/lightninglabs/loop/looprpc v1.0.0
github.com/lightninglabs/loop/swapserverrpc v1.0.10
github.com/lightninglabs/pool v0.6.5-beta.0.20240531084722-4000ec802aaa
github.com/lightninglabs/lndclient v0.18.4-9
github.com/lightninglabs/loop v0.29.0-beta
github.com/lightninglabs/loop/looprpc v1.0.2
github.com/lightninglabs/loop/swapserverrpc v1.0.11
github.com/lightninglabs/pool v0.6.5-beta.0.20241015105339-044cb451b5df
github.com/lightninglabs/pool/auctioneerrpc v1.1.2
github.com/lightninglabs/taproot-assets v0.4.2-0.20240725155459-2bf18437e945
github.com/lightningnetwork/lnd v0.18.3-beta
github.com/lightninglabs/pool/poolrpc v1.0.0
github.com/lightninglabs/taproot-assets v0.5.0
github.com/lightningnetwork/lnd v0.18.4-beta
github.com/lightningnetwork/lnd/cert v1.2.2
github.com/lightningnetwork/lnd/kvdb v1.4.10
github.com/lightningnetwork/lnd/tlv v1.2.6
@ -31,7 +32,7 @@ require (
github.com/mwitkow/grpc-proxy v0.0.0-20230212185441-f345521cb9c9
github.com/stretchr/testify v1.9.0
github.com/urfave/cli v1.22.9
go.etcd.io/bbolt v1.3.8
go.etcd.io/bbolt v1.3.11
golang.org/x/crypto v0.31.0
golang.org/x/net v0.27.0
golang.org/x/sync v0.10.0
@ -42,7 +43,7 @@ require (
)
require (
dario.cat/mergo v1.0.0 // indirect
dario.cat/mergo v1.0.1 // indirect
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/NebulousLabs/fastrand v0.0.0-20181203155948-6fb6489aac4e // indirect
@ -54,11 +55,11 @@ require (
github.com/andybalholm/brotli v1.0.4 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/btcsuite/btcd/btcutil/psbt v1.1.8 // indirect
github.com/btcsuite/btcwallet v0.16.10-0.20240718224643-db3a4a2543bd // indirect
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.4 // indirect
github.com/btcsuite/btcwallet/wallet/txrules v1.2.1 // indirect
github.com/btcsuite/btcwallet/wallet/txsizes v1.2.4 // indirect
github.com/btcsuite/btcwallet/wtxmgr v1.5.3 // indirect
github.com/btcsuite/btcwallet v0.16.10-0.20240912233857-ffb143c77cc5 // indirect
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.5 // indirect
github.com/btcsuite/btcwallet/wallet/txrules v1.2.2 // indirect
github.com/btcsuite/btcwallet/wallet/txsizes v1.2.5 // indirect
github.com/btcsuite/btcwallet/wtxmgr v1.5.4 // indirect
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd // indirect
github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 // indirect
github.com/btcsuite/winsvc v1.0.0 // indirect
@ -86,7 +87,7 @@ require (
github.com/fortytw2/leaktest v1.3.0 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-viper/mapstructure/v2 v2.0.0 // indirect
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt/v4 v4.5.1 // indirect
github.com/golang-migrate/migrate/v4 v4.17.0 // indirect
@ -120,22 +121,22 @@ require (
github.com/jackpal/go-nat-pmp v0.0.0-20170405195558-28a68d0c24ad // indirect
github.com/jedib0t/go-pretty/v6 v6.2.7 // indirect
github.com/jonboulle/clockwork v0.2.2 // indirect
github.com/jrick/logrotate v1.0.0 // indirect
github.com/jrick/logrotate v1.1.2 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/juju/loggo v1.0.0 // indirect
github.com/kkdai/bstream v1.0.0 // indirect
github.com/klauspost/compress v1.15.11 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
github.com/lib/pq v1.10.9 // indirect
github.com/libdns/libdns v0.2.1 // indirect
github.com/lightninglabs/aperture v0.3.2-beta // indirect
github.com/lightninglabs/aperture v0.3.4-beta // indirect
github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf // indirect
github.com/lightninglabs/lightning-node-connect/hashmailrpc v1.0.2 // indirect
github.com/lightninglabs/neutrino v0.16.1-0.20240425105051-602843d34ffd // indirect
github.com/lightninglabs/neutrino/cache v1.1.2 // indirect
github.com/lightningnetwork/lightning-onion v1.2.1-0.20240712235311-98bd56499dfb // indirect
github.com/lightningnetwork/lnd/clock v1.1.1 // indirect
github.com/lightningnetwork/lnd/fn v1.2.0 // indirect
github.com/lightningnetwork/lnd/fn v1.2.3 // indirect
github.com/lightningnetwork/lnd/healthcheck v1.2.5 // indirect
github.com/lightningnetwork/lnd/queue v1.1.1 // indirect
github.com/lightningnetwork/lnd/sqldb v1.0.4 // indirect
@ -158,7 +159,7 @@ require (
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.14.0 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/client_model v0.4.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
@ -189,12 +190,12 @@ require (
go.etcd.io/etcd/raft/v3 v3.5.12 // indirect
go.etcd.io/etcd/server/v3 v3.5.12 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1 // indirect
go.opentelemetry.io/otel v1.28.0 // indirect
go.opentelemetry.io/otel v1.32.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.20.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.20.0 // indirect
go.opentelemetry.io/otel/metric v1.28.0 // indirect
go.opentelemetry.io/otel/metric v1.32.0 // indirect
go.opentelemetry.io/otel/sdk v1.21.0 // indirect
go.opentelemetry.io/otel/trace v1.28.0 // indirect
go.opentelemetry.io/otel/trace v1.32.0 // indirect
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/mock v0.4.0 // indirect
@ -222,6 +223,7 @@ require (
modernc.org/strutil v1.2.0 // indirect
modernc.org/token v1.1.0 // indirect
nhooyr.io/websocket v1.8.7 // indirect
pgregory.net/rapid v1.1.0 // indirect
sigs.k8s.io/yaml v1.2.0 // indirect
)
@ -234,4 +236,4 @@ replace google.golang.org/protobuf => github.com/lightninglabs/protobuf-go-hex-d
replace github.com/lightninglabs/lightning-terminal/litrpc => ./litrpc
go 1.22.3
go 1.22.6

113
go.sum
View file

@ -596,8 +596,8 @@ cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoIS
cloud.google.com/go/workflows v1.8.0/go.mod h1:ysGhmEajwZxGn1OhGOGKsTXc5PyxOc0vfKf5Af+to4M=
cloud.google.com/go/workflows v1.9.0/go.mod h1:ZGkj1aFIOd9c8Gerkjjq7OW7I5+l6cSvT3ujaO/WwSA=
cloud.google.com/go/workflows v1.10.0/go.mod h1:fZ8LmRmZQWacon9UCX1r/g/DfAXx5VcPALq2CxzdePw=
dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk=
dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
dario.cat/mergo v1.0.1 h1:Ra4+bf83h2ztPIQYNP99R6m+Y7KfnARDfID+a+vLl4s=
dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zumjgTw83q2ge/PI+yyw8=
git.sr.ht/~sbinet/gg v0.3.1/go.mod h1:KGYtlADtqsqANL9ueOFkWymvzUvLMQllU5Ixo+8v3pc=
@ -651,12 +651,12 @@ github.com/boombuler/barcode v1.0.1/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl
github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ=
github.com/btcsuite/btcd v0.22.0-beta.0.20220111032746-97732e52810c/go.mod h1:tjmYdS6MLJ5/s0Fj4DbLgSbDHbEqLJrtnHecBFkdz5M=
github.com/btcsuite/btcd v0.23.5-0.20231215221805-96c9fd8078fd/go.mod h1:nm3Bko6zh6bWP60UxwoT5LzdGJsQJaPo6HjduXq9p6A=
github.com/btcsuite/btcd v0.24.2 h1:aLmxPguqxza+4ag8R1I2nnJjSu2iFn/kqtHTIImswcY=
github.com/btcsuite/btcd v0.24.2/go.mod h1:5C8ChTkl5ejr3WHj8tkQSCmydiMEPB0ZhQhehpq7Dgg=
github.com/btcsuite/btcd v0.24.3-0.20240921052913-67b8efd3ba53 h1:XOZ/wRGHkKv0AqxfDks5IkzaQ1Ge6fq322ZOOG5VIkU=
github.com/btcsuite/btcd v0.24.3-0.20240921052913-67b8efd3ba53/go.mod h1:zHK7t7sw8XbsCkD64WePHE3r3k9/XoGAcf6mXV14c64=
github.com/btcsuite/btcd/btcec/v2 v2.1.0/go.mod h1:2VzYrv4Gm4apmbVVsSq5bqf1Ec8v56E48Vt0Y/umPgA=
github.com/btcsuite/btcd/btcec/v2 v2.1.3/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE=
github.com/btcsuite/btcd/btcec/v2 v2.3.3 h1:6+iXlDKE8RMtKsvK0gshlXIuPbyWM/h84Ensb7o3sC0=
github.com/btcsuite/btcd/btcec/v2 v2.3.3/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04=
github.com/btcsuite/btcd/btcec/v2 v2.3.4 h1:3EJjcN70HCu/mwqlUsGK8GcNVyLVxFDlWurTXGPFfiQ=
github.com/btcsuite/btcd/btcec/v2 v2.3.4/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04=
github.com/btcsuite/btcd/btcutil v1.0.0/go.mod h1:Uoxwv0pqYWhD//tfTiipkxNfdhG9UrLwaeswfjfdF0A=
github.com/btcsuite/btcd/btcutil v1.1.0/go.mod h1:5OapHB7A2hBBWLm48mmw4MOHNJCcUBTwmWH/0Jn8VHE=
github.com/btcsuite/btcd/btcutil v1.1.5 h1:+wER79R5670vs/ZusMTF1yTcRYE5GUsFbdjdisflzM8=
@ -667,21 +667,22 @@ github.com/btcsuite/btcd/chaincfg/chainhash v1.0.0/go.mod h1:7SFka0XMvUgj3hfZtyd
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc=
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 h1:59Kx4K6lzOW5w6nFlA0v5+lk/6sjybR934QNHSJZPTQ=
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc=
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f h1:bAs4lUbRJpnnkd9VhRV3jjAVU7DJVjMaK+IsvSeZvFo=
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA=
github.com/btcsuite/btclog v0.0.0-20241003133417-09c4e92e319c h1:4HxD1lBUGUddhzgaNgrCPsFWd7cGYNpeFUgd9ZIgyM0=
github.com/btcsuite/btclog v0.0.0-20241003133417-09c4e92e319c/go.mod h1:w7xnGOhwT3lmrS4H3b/D1XAXxvh+tbhUm8xeHN2y3TQ=
github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg=
github.com/btcsuite/btcwallet v0.16.10-0.20240718224643-db3a4a2543bd h1:QDb8foTCRoXrfoZVEzSYgSde16MJh4gCtCin8OCS0kI=
github.com/btcsuite/btcwallet v0.16.10-0.20240718224643-db3a4a2543bd/go.mod h1:X2xDre+j1QphTRo54y2TikUzeSvreL1t1aMXrD8Kc5A=
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.4 h1:poyHFf7+5+RdxNp5r2T6IBRD7RyraUsYARYbp/7t4D8=
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.4/go.mod h1:GETGDQuyq+VFfH1S/+/7slLM/9aNa4l7P4ejX6dJfb0=
github.com/btcsuite/btcwallet/wallet/txrules v1.2.1 h1:UZo7YRzdHbwhK7Rhv3PO9bXgTxiOH45edK5qdsdiatk=
github.com/btcsuite/btcwallet/wallet/txrules v1.2.1/go.mod h1:MVSqRkju/IGxImXYPfBkG65FgEZYA4fXchheILMVl8g=
github.com/btcsuite/btcwallet/wallet/txsizes v1.2.4 h1:nmcKAVTv/cmYrs0A4hbiC6Qw+WTLYy/14SmTt3mLnCo=
github.com/btcsuite/btcwallet/wallet/txsizes v1.2.4/go.mod h1:YqJR8WAAHiKIPesZTr9Cx9Az4fRhRLcJ6GcxzRUZCAc=
github.com/btcsuite/btcwallet/walletdb v1.4.2 h1:zwZZ+zaHo4mK+FAN6KeK85S3oOm+92x2avsHvFAhVBE=
github.com/btcsuite/btcwallet/walletdb v1.4.2/go.mod h1:7ZQ+BvOEre90YT7eSq8bLoxTsgXidUzA/mqbRS114CQ=
github.com/btcsuite/btcwallet/wtxmgr v1.5.3 h1:QrWCio9Leh3DwkWfp+A1SURj8pYn3JuTLv3waP5uEro=
github.com/btcsuite/btcwallet/wtxmgr v1.5.3/go.mod h1:M4nQpxGTXiDlSOODKXboXX7NFthmiBNjzAKKNS7Fhjg=
github.com/btcsuite/btcwallet v0.16.10-0.20240912233857-ffb143c77cc5 h1:zYy233eUBvkF3lq2MUkybEhxhDsrRDSgiToIKN57mtk=
github.com/btcsuite/btcwallet v0.16.10-0.20240912233857-ffb143c77cc5/go.mod h1:1HJXYbjJzgumlnxOC2+ViR1U+gnHWoOn7WeK5OfY1eU=
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.5 h1:Rr0njWI3r341nhSPesKQ2JF+ugDSzdPoeckS75SeDZk=
github.com/btcsuite/btcwallet/wallet/txauthor v1.3.5/go.mod h1:+tXJ3Ym0nlQc/iHSwW1qzjmPs3ev+UVWMbGgfV1OZqU=
github.com/btcsuite/btcwallet/wallet/txrules v1.2.2 h1:YEO+Lx1ZJJAtdRrjuhXjWrYsmAk26wLTlNzxt2q0lhk=
github.com/btcsuite/btcwallet/wallet/txrules v1.2.2/go.mod h1:4v+grppsDpVn91SJv+mZT7B8hEV4nSmpREM4I8Uohws=
github.com/btcsuite/btcwallet/wallet/txsizes v1.2.5 h1:93o5Xz9dYepBP4RMFUc9RGIFXwqP2volSWRkYJFrNtI=
github.com/btcsuite/btcwallet/wallet/txsizes v1.2.5/go.mod h1:lQ+e9HxZ85QP7r3kdxItkiMSloSLg1PEGis5o5CXUQw=
github.com/btcsuite/btcwallet/walletdb v1.4.4 h1:BDel6iT/ltYSIYKs0YbjwnEDi7xR3yzABIsQxN2F1L8=
github.com/btcsuite/btcwallet/walletdb v1.4.4/go.mod h1:jk/hvpLFINF0C1kfTn0bfx2GbnFT+Nvnj6eblZALfjs=
github.com/btcsuite/btcwallet/wtxmgr v1.5.4 h1:hJjHy1h/dJwSfD9uDsCwcH21D1iOrus6OrI5gR9E/O0=
github.com/btcsuite/btcwallet/wtxmgr v1.5.4/go.mod h1:lAv0b1Vj9Ig5U8QFm0yiJ9WqPl8yGO/6l7JxdHY1PKE=
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd h1:R/opQEbFEy9JGkIguV40SvRY1uliPX8ifOvi6ICsFCw=
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg=
github.com/btcsuite/golangcrypto v0.0.0-20150304025918-53f62d9b43e8/go.mod h1:tYvUd8KLhm/oXvUeSEs2VlLghFjQt9+ZaF9ghH0JNjc=
@ -854,8 +855,8 @@ github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GO
github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE=
github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
github.com/go-viper/mapstructure/v2 v2.0.0 h1:dhn8MZ1gZ0mzeodTG3jt5Vj/o87xZKuNAprG2mQfMfc=
github.com/go-viper/mapstructure/v2 v2.0.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
github.com/go-viper/mapstructure/v2 v2.2.1 h1:ZAaOCxANMuZx5RCeg0mBdEZk7DZasvvZIxtHqx8aGss=
github.com/go-viper/mapstructure/v2 v2.2.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0=
github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo=
github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8=
@ -1081,8 +1082,9 @@ github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJS
github.com/jonboulle/clockwork v0.2.2 h1:UOGuzwb1PwsrDAObMuhUnj0p5ULPj8V/xJ7Kx9qUBdQ=
github.com/jonboulle/clockwork v0.2.2/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8=
github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
github.com/jrick/logrotate v1.0.0 h1:lQ1bL/n9mBNeIXoTUoYRlK4dHuNJVofX9oWqBtPnSzI=
github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ=
github.com/jrick/logrotate v1.1.2 h1:6ePk462NCX7TfKtNp5JJ7MbA2YIslkpfgP03TlTYMN0=
github.com/jrick/logrotate v1.1.2/go.mod h1:f9tdWggSVK3iqavGpyvegq5IhNois7KXmasU6/N96OQ=
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
@ -1115,8 +1117,8 @@ github.com/kkdai/bstream v1.0.0/go.mod h1:FDnDOHt5Yx4p3FaHcioFT0QjDOtgUpvjeZqAs+
github.com/klauspost/asmfmt v1.3.2/go.mod h1:AG8TuvYojzulgDAMCnYn50l/5QV3Bs/tp6j0HLHbNSE=
github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
github.com/klauspost/compress v1.15.9/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU=
github.com/klauspost/compress v1.15.11 h1:Lcadnb3RKGin4FYM/orgq0qde+nc15E5Cbqg4B9Sx9c=
github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM=
github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA=
github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw=
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM=
github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
@ -1145,8 +1147,8 @@ github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw=
github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/libdns/libdns v0.2.1 h1:Wu59T7wSHRgtA0cfxC+n1c/e+O3upJGWytknkmFEDis=
github.com/libdns/libdns v0.2.1/go.mod h1:yQCXzk1lEZmmCPa857bnk4TsOiqYasqpyOEeSObbb40=
github.com/lightninglabs/aperture v0.3.2-beta h1:J2GQwBmSHxpr5VOatXbgrTogF/qN2l6UWLPHfIowq10=
github.com/lightninglabs/aperture v0.3.2-beta/go.mod h1:M/5dPzHjHvuYXQuxzicqaGiCclHUvKW6N0ay1t/HGiM=
github.com/lightninglabs/aperture v0.3.4-beta h1:TiQHw1+2CdW785U88uH0BmwUmv0R7nyfvmF9neQd56o=
github.com/lightninglabs/aperture v0.3.4-beta/go.mod h1:xuusZUPdKzQN8wKT5yL2eML8To9nz+AXoRoQa/njd4Q=
github.com/lightninglabs/faraday v0.2.13-alpha h1:rpk3IM5WyyEd/wghGWpGcUyDazQhwdfkuj+D/AvDlgk=
github.com/lightninglabs/faraday v0.2.13-alpha/go.mod h1:hzuTMntsY7X3gxeBLZ6kYduZlKtXUgqtk1WnnEF0aIg=
github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf h1:HZKvJUHlcXI/f/O0Avg7t8sqkPo78HFzjmeYFl6DPnc=
@ -1155,36 +1157,38 @@ github.com/lightninglabs/lightning-node-connect v0.3.2-alpha.0.20240822142323-ee
github.com/lightninglabs/lightning-node-connect v0.3.2-alpha.0.20240822142323-ee4e7ff52f83/go.mod h1:+SasPOt0evcJdfApb/ALTaTz4x3a2/kWy5KqFoTpiX8=
github.com/lightninglabs/lightning-node-connect/hashmailrpc v1.0.2 h1:Er1miPZD2XZwcfE4xoS5AILqP1mj7kqnhbBSxW9BDxY=
github.com/lightninglabs/lightning-node-connect/hashmailrpc v1.0.2/go.mod h1:antQGRDRJiuyQF6l+k6NECCSImgCpwaZapATth2Chv4=
github.com/lightninglabs/lndclient v0.18.0-3 h1:2k5NZJgtrcJlW3KFhvtquS7CWwKwjFN9rtLNa8MlqRA=
github.com/lightninglabs/lndclient v0.18.0-3/go.mod h1:D/0qn5s0JSdB3Kelkw4vl3bqnuZ0IHHORAv9sJjYJcQ=
github.com/lightninglabs/loop v0.28.8-beta.0.20241025130130-d5df72f56c8c h1:DQqiAv0xUErCOVtUeVDXKTafJFRcN7Ce32Mu51Ah8Ew=
github.com/lightninglabs/loop v0.28.8-beta.0.20241025130130-d5df72f56c8c/go.mod h1:30wla2TOtMyJ17OhPu3XjXZOKwm9ZZr2cpjcCDvU3ko=
github.com/lightninglabs/loop/looprpc v1.0.0 h1:xry4QPCZShPww660xJm1BVcNFj8etgNeN2vMpfsv3c4=
github.com/lightninglabs/loop/looprpc v1.0.0/go.mod h1:+hPlWT2LGxEUY9mMVB2FcbV3KJmd1cmEezmZQagVUtY=
github.com/lightninglabs/loop/swapserverrpc v1.0.10 h1:ZLib2zUytlYOwCYOEyWUPJE16wyjR3UG0MmG/Kx/NUc=
github.com/lightninglabs/loop/swapserverrpc v1.0.10/go.mod h1:Ml3gMwe/iTRLvu1QGGZzXcr0DYSa9sJGwKPktLaWtwE=
github.com/lightninglabs/lndclient v0.18.4-9 h1:8PRBmJLyegs1zbqBvpN/0d8qGLiNst3MEtTdO4Wt+SA=
github.com/lightninglabs/lndclient v0.18.4-9/go.mod h1:11hKoRxXk+1IoIndEIvbmo18dwAJnTqr/lylRpYDVSU=
github.com/lightninglabs/loop v0.29.0-beta h1:YRxZ3h41LsFOLTyvisxbijmvCf5UOUx4T0YUemdi0wA=
github.com/lightninglabs/loop v0.29.0-beta/go.mod h1:Lc1qXyO0LoOHQVkzwxVlHTavybGGz0I1t5YozWH1WNo=
github.com/lightninglabs/loop/looprpc v1.0.2 h1:evL3GpceeFaYmkeqf4hzeXQXgjrHeF3fzcB5Eajh7SM=
github.com/lightninglabs/loop/looprpc v1.0.2/go.mod h1:w6zur9qV9EBY7I7bpnUYp0QGjVqNl9cjnozpPal9/XY=
github.com/lightninglabs/loop/swapserverrpc v1.0.11 h1:R/8c/bo4rpqm5/cfi944rj24oQUlZu+xXjzMhEDSkrc=
github.com/lightninglabs/loop/swapserverrpc v1.0.11/go.mod h1:Ml3gMwe/iTRLvu1QGGZzXcr0DYSa9sJGwKPktLaWtwE=
github.com/lightninglabs/neutrino v0.16.1-0.20240425105051-602843d34ffd h1:D8aRocHpoCv43hL8egXEMYyPmyOiefFHZ66338KQB2s=
github.com/lightninglabs/neutrino v0.16.1-0.20240425105051-602843d34ffd/go.mod h1:x3OmY2wsA18+Kc3TSV2QpSUewOCiscw2mKpXgZv2kZk=
github.com/lightninglabs/neutrino/cache v1.1.2 h1:C9DY/DAPaPxbFC+xNNEI/z1SJY9GS3shmlu5hIQ798g=
github.com/lightninglabs/neutrino/cache v1.1.2/go.mod h1:XJNcgdOw1LQnanGjw8Vj44CvguYA25IMKjWFZczwZuo=
github.com/lightninglabs/pool v0.6.5-beta.0.20240531084722-4000ec802aaa h1:UYqz8O8teeSU1383NLUMIADCD2QplOeJVjiB4k1xeSI=
github.com/lightninglabs/pool v0.6.5-beta.0.20240531084722-4000ec802aaa/go.mod h1:x2+mFwSvKlBqUES3z5TdoXolS2dWD1ksueRcMORyAJA=
github.com/lightninglabs/pool v0.6.5-beta.0.20241015105339-044cb451b5df h1:EdiN1GxUI+442K6xZcLg9mq/PekvRoSWUGuEKCjLDww=
github.com/lightninglabs/pool v0.6.5-beta.0.20241015105339-044cb451b5df/go.mod h1:ONyfvFj3e3D0AkhpTTZPGDuIDAcY2ODnlj86aDfs2q4=
github.com/lightninglabs/pool/auctioneerrpc v1.1.2 h1:Dbg+9Z9jXnhimR27EN37foc4aB1uQqndm/YOO+XAdMA=
github.com/lightninglabs/pool/auctioneerrpc v1.1.2/go.mod h1:1wKDzN2zEP8srOi0B9iySlEsPdoPhw6oo3Vbm1v4Mhw=
github.com/lightninglabs/pool/poolrpc v1.0.0 h1:vvosrgNx9WXF4mcHGqLjZOW8wNM0q+BLVfdn897AFLw=
github.com/lightninglabs/pool/poolrpc v1.0.0/go.mod h1:ZqpEpBFRMMBAerMmilEjh27tqauSXDwLaLR0O3jvmMA=
github.com/lightninglabs/protobuf-go-hex-display v1.34.2-hex-display h1:w7FM5LH9Z6CpKxl13mS48idsu6F+cEZf0lkyiV+Dq9g=
github.com/lightninglabs/protobuf-go-hex-display v1.34.2-hex-display/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw=
github.com/lightninglabs/taproot-assets v0.4.2-0.20240725155459-2bf18437e945 h1:vzr2NtI1M9/LQDv7malP0EmV9vVkh2ve5ZpDUcYFC6s=
github.com/lightninglabs/taproot-assets v0.4.2-0.20240725155459-2bf18437e945/go.mod h1:+mGg1ZNFzzcb55ZLd1UulW4iiq+ruzRHOTjCKHBeQ2g=
github.com/lightninglabs/taproot-assets v0.5.0 h1:aXX08DsV9ObUCm5jAbUsd0B1llcAqQHVAfrxtRu+q7Q=
github.com/lightninglabs/taproot-assets v0.5.0/go.mod h1:7XEbJ8DZ79hkYUNuZceuynT6vGqDNdAn7l20knK9DfI=
github.com/lightningnetwork/lightning-onion v1.2.1-0.20240712235311-98bd56499dfb h1:yfM05S8DXKhuCBp5qSMZdtSwvJ+GFzl94KbXMNB1JDY=
github.com/lightningnetwork/lightning-onion v1.2.1-0.20240712235311-98bd56499dfb/go.mod h1:c0kvRShutpj3l6B9WtTsNTBUtjSmjZXbJd9ZBRQOSKI=
github.com/lightningnetwork/lnd v0.18.3-beta h1:I1Mcz79HGpVGPz0U2jSdxzzqzIi2cwUF0DXtzYJS7C8=
github.com/lightningnetwork/lnd v0.18.3-beta/go.mod h1:Xamph8AYM3iWyyn9w/tx+cLG6Tx1SSnSSPRFn71zuyQ=
github.com/lightningnetwork/lnd v0.18.4-beta h1:4pGmIjIMisrs4TMDYp4fk8NeI1YFpcuqwaSiFwLcd1g=
github.com/lightningnetwork/lnd v0.18.4-beta/go.mod h1:nPRQzLla5uHPQFyyZn8r9Vgddkd23PBUDa9rggEPOfY=
github.com/lightningnetwork/lnd/cert v1.2.2 h1:71YK6hogeJtxSxw2teq3eGeuy4rHGKcFf0d0Uy4qBjI=
github.com/lightningnetwork/lnd/cert v1.2.2/go.mod h1:jQmFn/Ez4zhDgq2hnYSw8r35bqGVxViXhX6Cd7HXM6U=
github.com/lightningnetwork/lnd/clock v1.1.1 h1:OfR3/zcJd2RhH0RU+zX/77c0ZiOnIMsDIBjgjWdZgA0=
github.com/lightningnetwork/lnd/clock v1.1.1/go.mod h1:mGnAhPyjYZQJmebS7aevElXKTFDuO+uNFFfMXK1W8xQ=
github.com/lightningnetwork/lnd/fn v1.2.0 h1:YTb2m8NN5ZiJAskHeBZAmR1AiPY8SXziIYPAX1VI/ZM=
github.com/lightningnetwork/lnd/fn v1.2.0/go.mod h1:SyFohpVrARPKH3XVAJZlXdVe+IwMYc4OMAvrDY32kw0=
github.com/lightningnetwork/lnd/fn v1.2.3 h1:Q1OrgNSgQynVheBNa16CsKVov1JI5N2AR6G07x9Mles=
github.com/lightningnetwork/lnd/fn v1.2.3/go.mod h1:SyFohpVrARPKH3XVAJZlXdVe+IwMYc4OMAvrDY32kw0=
github.com/lightningnetwork/lnd/healthcheck v1.2.5 h1:aTJy5xeBpcWgRtW/PGBDe+LMQEmNm/HQewlQx2jt7OA=
github.com/lightningnetwork/lnd/healthcheck v1.2.5/go.mod h1:G7Tst2tVvWo7cx6mSBEToQC5L1XOGxzZTPB29g9Rv2I=
github.com/lightningnetwork/lnd/kvdb v1.4.10 h1:vK89IVv1oVH9ubQWU+EmoCQFeVRaC8kfmOrqHbY5zoY=
@ -1297,8 +1301,9 @@ github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/prometheus/client_model v0.3.0 h1:UBgGFHqYdG/TPFD1B1ogZywDqEkwp3fBMvqdiQ7Xew4=
github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w=
github.com/prometheus/client_model v0.4.0 h1:5lQXD3cAg1OXBf4Wq03gTrXHeaV0TQvGfUooCfx1yqY=
github.com/prometheus/client_model v0.4.0/go.mod h1:oMQmHW1/JoDwqLtg57MGgP/Fb1CJEYF2imWWhWtMkYU=
github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo=
github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc=
@ -1407,8 +1412,8 @@ github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaD
github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
gitlab.com/yawning/bsaes.git v0.0.0-20190805113838-0a714cd429ec h1:FpfFs4EhNehiVfzQttTuxanPIT43FtkkCFypIod8LHo=
gitlab.com/yawning/bsaes.git v0.0.0-20190805113838-0a714cd429ec/go.mod h1:BZ1RAoRPbCxum9Grlv5aeksu2H8BiKehBYooU2LFiOQ=
go.etcd.io/bbolt v1.3.8 h1:xs88BrvEv273UsB79e0hcVrlUWmS0a8upikMFhSyAtA=
go.etcd.io/bbolt v1.3.8/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw=
go.etcd.io/bbolt v1.3.11 h1:yGEzV1wPz2yVCLsD8ZAiGHhHVlczyC9d1rP43/VCRJ0=
go.etcd.io/bbolt v1.3.11/go.mod h1:dksAq7YMXoljX0xu6VF5DMZGbhYYoLUalEiSySYAS4I=
go.etcd.io/etcd/api/v3 v3.5.12 h1:W4sw5ZoU2Juc9gBWuLk5U6fHfNVyY1WC5g9uiXZio/c=
go.etcd.io/etcd/api/v3 v3.5.12/go.mod h1:Ot+o0SWSyT6uHhA56al1oCED0JImsRiU9Dc26+C2a+4=
go.etcd.io/etcd/client/pkg/v3 v3.5.12 h1:EYDL6pWwyOsylrQyLp2w+HkQ46ATiOvoEdMarindU2A=
@ -1433,20 +1438,20 @@ go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E=
go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1 h1:SpGay3w+nEwMpfVnbqOLH5gY52/foP8RE8UzTZ1pdSE=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1/go.mod h1:4UoMYEZOC0yN/sPGH76KPkkU7zgiEWYWL9vwmbnTJPE=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 h1:4K4tsIXefpVJtvA/8srF4V4y0akAoPHkIslgAkjixJA=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0/go.mod h1:jjdQuTGVsXV4vSs+CJ2qYDeDPf9yIJV23qlIzBm73Vg=
go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo=
go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.57.0 h1:DheMAlT6POBP+gh8RUH19EOTnQIor5QE0uSRPtzCpSw=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.57.0/go.mod h1:wZcGmeVO9nzP67aYSLDqXNWK87EZWhi7JWj1v7ZXf94=
go.opentelemetry.io/otel v1.32.0 h1:WnBN+Xjcteh0zdk01SVqV55d/m62NJLJdIyb4y/WO5U=
go.opentelemetry.io/otel v1.32.0/go.mod h1:00DCVSB0RQcnzlwyTfqtxSm+DRr9hpYrHjNGiBHVQIg=
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.20.0 h1:DeFD0VgTZ+Cj6hxravYYZE2W4GlneVH81iAOPjZkzk8=
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.20.0/go.mod h1:GijYcYmNpX1KazD5JmWGsi4P7dDTTTnfv1UbGn84MnU=
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.20.0 h1:gvmNvqrPYovvyRmCSygkUDyL8lC5Tl845MLEwqpxhEU=
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.20.0/go.mod h1:vNUq47TGFioo+ffTSnKNdob241vePmtNZnAODKapKd0=
go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q=
go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s=
go.opentelemetry.io/otel/metric v1.32.0 h1:xV2umtmNcThh2/a/aCP+h64Xx5wsj8qqnkYZktzNa0M=
go.opentelemetry.io/otel/metric v1.32.0/go.mod h1:jH7CIbbK6SH2V2wE16W05BHCtIDzauciCRLoc/SyMv8=
go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8=
go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E=
go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g=
go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI=
go.opentelemetry.io/otel/trace v1.32.0 h1:WIC9mYrXf8TmY/EXuULKc8hR17vE+Hjv2cssQDe03fM=
go.opentelemetry.io/otel/trace v1.32.0/go.mod h1:+i4rkvCraA+tG6AzwloGaCtkx53Fa+L+V8e9a7YvhT8=
go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI=
go.opentelemetry.io/proto/otlp v0.15.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U=
go.opentelemetry.io/proto/otlp v0.19.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U=
@ -2264,6 +2269,8 @@ modernc.org/token v1.1.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
modernc.org/z v1.5.1/go.mod h1:eWFB510QWW5Th9YGZT81s+LwvaAs3Q2yr4sP0rmLkv8=
nhooyr.io/websocket v1.8.7 h1:usjR2uOr/zjjkVMy0lW+PPohFok7PCow5sDjLgX4P4g=
nhooyr.io/websocket v1.8.7/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0=
pgregory.net/rapid v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw=
pgregory.net/rapid v1.1.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=

View file

@ -202,7 +202,7 @@ func testFirewallRules(ctx context.Context, net *NetworkHarness,
resp, err := net.Alice.GetInfo(ctx, &lnrpc.GetInfoRequest{})
require.NoError(t.t, err)
require.NotEmpty(t.t, resp.Alias)
require.Contains(t.t, resp.Alias, "0")
require.Contains(t.t, resp.Alias, "Alice")
// Open a channel between Alice and Bob so that we have something to
// query later.

View file

@ -478,7 +478,7 @@ func integratedTestSuite(ctx context.Context, net *NetworkHarness, t *testing.T,
resp, err := net.Alice.GetInfo(ctx, &lnrpc.GetInfoRequest{})
require.NoError(t, err)
require.NotEmpty(t, resp.Alias)
require.Contains(t, resp.Alias, "0")
require.Contains(t, resp.Alias, "Alice")
t.Run("certificate check", func(tt *testing.T) {
runCertificateCheck(tt, net.Alice)

View file

@ -150,7 +150,7 @@ func (l *litArgs) getArg(name string) (string, bool) {
}
// toArgList converts the litArgs map to an arguments string slice.
func (l *litArgs) toArgList() []string {
func (l *litArgs) toArgList(nodeName string) []string {
l.mu.Lock()
defer l.mu.Unlock()
@ -164,7 +164,7 @@ func (l *litArgs) toArgList() []string {
args = append(args, fmt.Sprintf("--%s=%s", arg, setting))
}
return args
return append([]string{"--lnd.alias=" + nodeName}, args...)
}
// LitArgOption defines the signature of a functional option that can be used
@ -197,7 +197,7 @@ func (cfg *LitNodeConfig) GenArgs(opts ...LitArgOption) []string {
cfg.ActiveArgs = args
return args.toArgList()
return args.toArgList(cfg.Name)
}
// defaultLitArgs generates the default arguments to be used with a Litd node.
@ -216,6 +216,7 @@ func (cfg *LitNodeConfig) defaultLitdArgs() *litArgs {
"enablerest": "",
"restcors": "*",
"lnd.debuglevel": "trace,GRPC=error,PEER=info",
"lndconnectinterval": "200ms",
}
)
for _, arg := range cfg.LitArgs {

View file

@ -285,11 +285,14 @@ func (n *NetworkHarness) litArgs() []string {
// NewNode initializes a new HarnessNode.
func (n *NetworkHarness) NewNode(t *testing.T, name string, extraArgs []string,
remoteMode bool, wait bool) (*HarnessNode, error) {
remoteMode bool, wait bool, additionalLitArgs ...string) (*HarnessNode,
error) {
allLitArgs := append(n.litArgs(), additionalLitArgs...)
return n.newNode(
t, name, extraArgs, n.litArgs(), false, remoteMode, nil,
wait, false,
t, name, extraArgs, allLitArgs, false, remoteMode, nil, wait,
false,
)
}
@ -1048,7 +1051,9 @@ func (n *NetworkHarness) CloseChannel(lnNode *HarnessNode,
err = wait.NoError(func() error {
closeReq := &lnrpc.CloseChannelRequest{
ChannelPoint: cp, Force: force,
ChannelPoint: cp,
Force: force,
SatPerVbyte: 5,
}
closeRespStream, err = lnNode.CloseChannel(ctx, closeReq)
if err != nil {
@ -1076,7 +1081,7 @@ func (n *NetworkHarness) CloseChannel(lnNode *HarnessNode,
return fmt.Errorf("unable to decode closeTxid: "+
"%v", err)
}
n.LNDHarness.Miner().AssertTxInMempool(closeTxid)
n.LNDHarness.Miner().AssertTxInMempool(*closeTxid)
return nil
}, wait.ChannelCloseTimeout)

View file

@ -1388,8 +1388,14 @@ enum CommitmentType {
A channel that uses musig2 for the funding output, and the new tapscript
features where relevant.
*/
// TODO(roasbeef): need script enforce mirror type for the above as well?
SIMPLE_TAPROOT = 5;
/*
Identical to the SIMPLE_TAPROOT channel type, but with extra functionality.
This channel type also commits to additional meta data in the tapscript
leaves for the scripts in a channel.
*/
SIMPLE_TAPROOT_OVERLAY = 6;
}
message ChannelConstraints {
@ -1592,6 +1598,11 @@ message Channel {
the channel's operation.
*/
string memo = 36;
/*
Custom channel data that might be populated in custom channels.
*/
bytes custom_channel_data = 37;
}
message ListChannelsRequest {
@ -2028,10 +2039,38 @@ message ChannelOpenUpdate {
ChannelPoint channel_point = 1;
}
message CloseOutput {
// The amount in satoshi of this close output. This amount is the final
// commitment balance of the channel and the actual amount paid out on chain
// might be smaller due to subtracted fees.
int64 amount_sat = 1 [jstype = JS_STRING];
// The pkScript of the close output.
bytes pk_script = 2;
// Whether this output is for the local or remote node.
bool is_local = 3;
// The TLV encoded custom channel data records for this output, which might
// be set for custom channels.
bytes custom_channel_data = 4;
}
message ChannelCloseUpdate {
bytes closing_txid = 1;
bool success = 2;
// The local channel close output. If the local channel balance was dust to
// begin with, this output will not be set.
CloseOutput local_close_output = 3;
// The remote channel close output. If the remote channel balance was dust
// to begin with, this output will not be set.
CloseOutput remote_close_output = 4;
// Any additional outputs that might be added for custom channel types.
repeated CloseOutput additional_outputs = 5;
}
message CloseChannelRequest {
@ -2709,6 +2748,11 @@ message PendingChannelsResponse {
impacts the channel's operation.
*/
string memo = 13;
/*
Custom channel data that might be populated in custom channels.
*/
bytes custom_channel_data = 34;
}
message PendingOpenChannel {
@ -2968,6 +3012,12 @@ message ChannelBalanceResponse {
// Sum of channels pending remote balances.
Amount pending_open_remote_balance = 8;
/*
Custom channel data that might be populated if there are custom channels
present.
*/
bytes custom_channel_data = 9;
}
message QueryRoutesRequest {
@ -3293,6 +3343,20 @@ message Route {
The total amount in millisatoshis.
*/
int64 total_amt_msat = 6 [jstype = JS_STRING];
/*
The actual on-chain amount that was sent out to the first hop. This value is
only different from the total_amt_msat field if this is a custom channel
payment and the value transported in the HTLC is different from the BTC
amount in the HTLC. If this value is zero, then this is an old payment that
didn't have this value yet and can be ignored.
*/
int64 first_hop_amount_msat = 7 [jstype = JS_STRING];
/*
Custom channel data that might be populated in custom channels.
*/
bytes custom_channel_data = 8;
}
message NodeInfoRequest {
@ -3922,6 +3986,11 @@ message InvoiceHTLC {
// Details relevant to AMP HTLCs, only populated if this is an AMP HTLC.
AMP amp = 11;
/*
Custom channel data that might be populated in custom channels.
*/
bytes custom_channel_data = 12;
}
// Details specific to AMP HTLCs.
@ -4162,6 +4231,12 @@ message Payment {
uint64 payment_index = 15 [jstype = JS_STRING];
PaymentFailureReason failure_reason = 16;
/*
The custom TLV records that were sent to the first hop as part of the HTLC
wire message for this payment.
*/
map<uint64, bytes> first_hop_custom_records = 17;
}
message HTLCAttempt {

View file

@ -89,6 +89,12 @@ service SwapClient {
*/
rpc GetLsatTokens (TokensRequest) returns (TokensResponse);
/* loop: `fetchl402`
FetchL402Token fetches an L402 token from the server, this is required in
order to receive reservation notifications from the server.
*/
rpc FetchL402Token (FetchL402TokenRequest) returns (FetchL402TokenResponse);
/* loop: `getinfo`
GetInfo gets basic information about the loop daemon.
*/
@ -143,6 +149,51 @@ service SwapClient {
*/
rpc ListInstantOuts (ListInstantOutsRequest)
returns (ListInstantOutsResponse);
/* loop: `static newstaticaddress`
NewStaticAddress requests a new static address for loop-ins from the server.
*/
rpc NewStaticAddress (NewStaticAddressRequest)
returns (NewStaticAddressResponse);
/* loop: `static listunspentdeposits`
ListUnspentDeposits returns a list of utxos deposited at a static address.
*/
rpc ListUnspentDeposits (ListUnspentDepositsRequest)
returns (ListUnspentDepositsResponse);
/* loop:`static withdraw`
WithdrawDeposits withdraws a selection or all deposits of a static address.
*/
rpc WithdrawDeposits (WithdrawDepositsRequest)
returns (WithdrawDepositsResponse);
/* loop:`listdeposits`
ListStaticAddressDeposits returns a list of filtered static address
deposits.
*/
rpc ListStaticAddressDeposits (ListStaticAddressDepositsRequest)
returns (ListStaticAddressDepositsResponse);
/* loop:`listswaps`
ListStaticAddressSwaps returns a list of filtered static address
swaps.
*/
rpc ListStaticAddressSwaps (ListStaticAddressSwapsRequest)
returns (ListStaticAddressSwapsResponse);
/* loop:`static summary`
GetStaticAddressSummary returns a summary of static address related
statistics.
*/
rpc GetStaticAddressSummary (StaticAddressSummaryRequest)
returns (StaticAddressSummaryResponse);
/* loop:`static`
StaticAddressLoopIn initiates a static address loop-in swap.
*/
rpc StaticAddressLoopIn (StaticAddressLoopInRequest)
returns (StaticAddressLoopInResponse);
}
message LoopOutRequest {
@ -735,6 +786,13 @@ message QuoteRequest {
probing and payment.
*/
bool private = 7;
/*
Static address deposit outpoints that will be quoted for. This option only
pertains to loop in swaps. Either this or the amt parameter can be set at
the same time.
*/
repeated string deposit_outpoints = 8;
}
message InQuoteResponse {
@ -830,6 +888,12 @@ message TokensResponse {
repeated L402Token tokens = 1;
}
message FetchL402TokenRequest {
}
message FetchL402TokenResponse {
}
message L402Token {
/*
The base macaroon that was baked by the auth server.
@ -1326,20 +1390,24 @@ message ClientReservation {
The state the reservation is in.
*/
string state = 2;
/*
The amount that the reservation is for.
The amount that the reservation is for.
*/
uint64 amount = 3 [jstype = JS_STRING];
/*
The transaction id of the reservation.
The transaction id of the reservation.
*/
string tx_id = 4;
/*
The vout of the reservation.
The vout of the reservation.
*/
uint32 vout = 5;
/*
The expiry of the reservation.
The expiry of the reservation.
*/
uint32 expiry = 6;
}
@ -1369,10 +1437,12 @@ message InstantOutResponse {
The hash of the swap preimage.
*/
bytes instant_out_hash = 1;
/*
The transaction id of the sweep transaction.
*/
string sweep_tx_id = 2;
/*
The state of the swap.
*/
@ -1440,3 +1510,493 @@ message InstantOut {
*/
string sweep_tx_id = 5;
}
message NewStaticAddressRequest {
/*
The client's public key for the 2-of-2 MuSig2 taproot static address.
*/
bytes client_key = 1;
}
message NewStaticAddressResponse {
/*
The taproot static address.
*/
string address = 1;
/*
The CSV expiry of the static address.
*/
uint32 expiry = 2;
}
message ListUnspentDepositsRequest {
/*
The number of minimum confirmations a utxo must have to be listed.
*/
int32 min_confs = 1;
/*
The number of maximum confirmations a utxo may have to be listed. A zero
value indicates that there is no maximum.
*/
int32 max_confs = 2;
}
message ListUnspentDepositsResponse {
/*
A list of utxos behind the static address.
*/
repeated Utxo utxos = 1;
}
message Utxo {
/*
The static address of the utxo.
*/
string static_address = 1;
/*
The value of the unspent coin in satoshis.
*/
int64 amount_sat = 2 [jstype = JS_STRING];
/*
The outpoint in the form txid:index.
*/
string outpoint = 3;
/*
The number of confirmations for the Utxo.
*/
int64 confirmations = 4 [jstype = JS_STRING];
}
message WithdrawDepositsRequest {
/*
The outpoints of the deposits to withdraw.
*/
repeated OutPoint outpoints = 1;
/*
If set to true, all deposits will be withdrawn.
*/
bool all = 2;
/*
The address to withdraw the funds to.
*/
string dest_addr = 3;
/*
The fee rate in sat/vbyte to use for the withdrawal transaction.
*/
int64 sat_per_vbyte = 4 [jstype = JS_STRING];
}
message WithdrawDepositsResponse {
/*
The transaction hash of the withdrawal transaction.
*/
string withdrawal_tx_hash = 1;
/*
The pkscript of the withdrawal transaction.
*/
string pk_script = 2;
}
message OutPoint {
/*
Raw bytes representing the transaction id.
*/
bytes txid_bytes = 1;
/*
Reversed, hex-encoded string representing the transaction id.
*/
string txid_str = 2;
/*
The index of the output on the transaction.
*/
uint32 output_index = 3;
}
message ListStaticAddressDepositsRequest {
/*
Filters the list of all stored deposits by deposit state.
*/
DepositState state_filter = 1;
/*
Filters the list of all stored deposits by the outpoint.
*/
repeated string outpoints = 2;
}
message ListStaticAddressDepositsResponse {
/*
A list of all deposits that match the filtered state.
*/
repeated Deposit filtered_deposits = 1;
}
message ListStaticAddressSwapsRequest {
}
message ListStaticAddressSwapsResponse {
/*
A list of all swaps known static address loop-in swaps.
*/
repeated StaticAddressLoopInSwap swaps = 1;
}
message StaticAddressSummaryRequest {
}
message StaticAddressSummaryResponse {
/*
The static address of the client.
*/
string static_address = 1;
/*
The CSV expiry of the static address.
*/
uint64 relative_expiry_blocks = 2 [jstype = JS_STRING];
/*
The total number of deposits.
*/
uint32 total_num_deposits = 3;
/*
The total value of unconfirmed deposits.
*/
int64 value_unconfirmed_satoshis = 4 [jstype = JS_STRING];
/*
The total value of confirmed deposits.
*/
int64 value_deposited_satoshis = 5 [jstype = JS_STRING];
/*
The total value of all expired deposits.
*/
int64 value_expired_satoshis = 6 [jstype = JS_STRING];
/*
The total value of all deposits that have been withdrawn.
*/
int64 value_withdrawn_satoshis = 7 [jstype = JS_STRING];
/*
The total value of all loop-ins that have been finalized.
*/
int64 value_looped_in_satoshis = 8 [jstype = JS_STRING];
/*
The total value of all htlc timeout sweeps that the client swept.
*/
int64 value_htlc_timeout_sweeps_satoshis = 9 [jstype = JS_STRING];
}
enum DepositState {
/*
UNKNOWN_STATE is the default state of a deposit.
*/
UNKNOWN_STATE = 0;
/*
DEPOSITED indicates that the deposit has been sufficiently confirmed on
chain.
*/
DEPOSITED = 1;
/*
WITHDRAWING indicates that the deposit is currently being withdrawn. It
flips to WITHDRAWN once the withdrawal transaction has been sufficiently
confirmed.
*/
WITHDRAWING = 2;
/*
WITHDRAWN indicates that the deposit has been withdrawn.
*/
WITHDRAWN = 3;
/*
LOOPING_IN indicates that the deposit is currently being used in a static
address loop-in swap.
*/
LOOPING_IN = 4;
/*
LOOPED_IN indicates that the deposit was used in a static address loop-in
swap.
*/
LOOPED_IN = 5;
/*
SWEEP_HTLC_TIMEOUT indicates that the deposit is part of an active loop-in
of which the respective htlc was published by the server and the timeout
path has opened up for the client to sweep.
*/
SWEEP_HTLC_TIMEOUT = 6;
/*
HTLC_TIMEOUT_SWEPT indicates that the timeout path of the htlc has been
swept by the client.
*/
HTLC_TIMEOUT_SWEPT = 7;
/*
PUBLISH_EXPIRED indicates that the deposit has expired and the sweep
transaction has been published.
*/
PUBLISH_EXPIRED = 8;
/*
WAIT_FOR_EXPIRY_SWEEP indicates that the deposit has expired and the sweep
transaction has not yet been sufficiently confirmed.
*/
WAIT_FOR_EXPIRY_SWEEP = 9;
/*
EXPIRED indicates that the deposit has expired and the sweep transaction
has been sufficiently confirmed.
*/
EXPIRED = 10;
}
message Deposit {
/*
The identifier of the deposit.
*/
bytes id = 1;
/*
The state of the deposit.
*/
DepositState state = 2;
/*
The outpoint of the deposit in format txid:index.
*/
string outpoint = 3;
/*
The value of the deposit in satoshis.
*/
int64 value = 4 [jstype = JS_STRING];
/*
The block height at which the deposit was confirmed.
*/
int64 confirmation_height = 5 [jstype = JS_STRING];
/*
The number of blocks that are left until the deposit cannot be used for a
loop-in swap anymore.
*/
int64 blocks_until_expiry = 6 [jstype = JS_STRING];
}
message StaticAddressLoopInSwap {
/*
The swap hash of the swap. It represents the unique identifier of the swap.
*/
bytes swap_hash = 1;
/*
*/
repeated string deposit_outpoints = 2;
/*
*/
StaticAddressLoopInSwapState state = 3;
/*
The swap amount of the swap. It is the sum of the values of the deposit
outpoints that were used for this swap.
*/
int64 swap_amount_satoshis = 4 [jstype = JS_STRING];
/*
The invoiced swap amount. It is the swap amount minus the quoted server
fees.
*/
int64 payment_request_amount_satoshis = 5 [jstype = JS_STRING];
}
enum StaticAddressLoopInSwapState {
/*
*/
UNKNOWN_STATIC_ADDRESS_SWAP_STATE = 0;
/*
*/
INIT_HTLC = 1;
/*
*/
SIGN_HTLC_TX = 2;
/*
*/
MONITOR_INVOICE_HTLC_TX = 3;
/*
*/
PAYMENT_RECEIVED = 4;
/*
*/
SWEEP_STATIC_ADDRESS_HTLC_TIMEOUT = 5;
/*
*/
MONITOR_HTLC_TIMEOUT_SWEEP = 6;
/*
*/
HTLC_STATIC_ADDRESS_TIMEOUT_SWEPT = 7;
/*
*/
SUCCEEDED = 8;
/*
*/
SUCCEEDED_TRANSITIONING_FAILED = 9;
/*
*/
UNLOCK_DEPOSITS = 10;
/*
*/
FAILED_STATIC_ADDRESS_SWAP = 11;
}
message StaticAddressLoopInRequest {
/*
The outpoints of the deposits to loop-in.
*/
repeated string outpoints = 1;
/*
Maximum satoshis we are willing to pay the server for the swap. This value
is not disclosed in the swap initiation call, but if the server asks for a
higher fee, we abort the swap. Typically this value is taken from the
response of the GetQuote call.
*/
int64 max_swap_fee_satoshis = 2 [jstype = JS_STRING];
/*
Optionally the client can specify the last hop pubkey when requesting a
loop-in quote. This is useful to get better off-chain routing fee from the
server.
*/
bytes last_hop = 3;
/*
An optional label for this swap. This field is limited to 500 characters and
may not be one of the reserved values in loop/labels Reserved list.
*/
string label = 4;
/*
An optional identification string that will be appended to the user agent
string sent to the server to give information about the usage of loop. This
initiator part is meant for user interfaces to add their name to give the
full picture of the binary used (loopd, LiT) and the method used for
triggering the swap (loop CLI, autolooper, LiT UI, other 3rd party UI).
*/
string initiator = 5;
/*
Optional route hints to reach the destination through private channels.
*/
repeated looprpc.RouteHint route_hints = 6;
/*
Private indicates whether the destination node should be considered private.
In which case, loop will generate hop hints to assist with probing and
payment.
*/
bool private = 7;
/*
The swap payment timeout allows the user to specify an upper limit for the
amount of time the server is allowed to take to fulfill the off-chain swap
payment. If the timeout is reached the swap will be aborted on the server
side and the client can retry the swap with different parameters.
*/
uint32 payment_timeout_seconds = 8;
}
message StaticAddressLoopInResponse {
/*
The swap hash that identifies this swap.
*/
bytes swap_hash = 1;
/*
The state the swap is in.
*/
string state = 2;
/*
The amount of the swap.
*/
uint64 amount = 3 [jstype = JS_STRING];
/*
The htlc cltv expiry height of the swap.
*/
int32 htlc_cltv = 4;
/*
The quoted swap fee in satoshis.
*/
int64 quoted_swap_fee_satoshis = 5 [jstype = JS_STRING];
/*
The maximum total swap fee the client is willing to pay for the swap.
*/
int64 max_swap_fee_satoshis = 6 [jstype = JS_STRING];
/*
The block height at which the swap was initiated.
*/
uint32 initiation_height = 7;
/*
The static address protocol version.
*/
string protocol_version = 8;
/*
An optional label for this swap.
*/
string label = 9;
/*
An optional identification string that will be appended to the user agent
string sent to the server to give information about the usage of loop. This
initiator part is meant for user interfaces to add their name to give the
full picture of the binary used (loopd, LiT) and the method used for
triggering the swap (loop CLI, autolooper, LiT UI, other 3rd party UI).
*/
string initiator = 10;
/*
The swap payment timeout allows the user to specify an upper limit for the
amount of time the server is allowed to take to fulfill the off-chain swap
payment. If the timeout is reached the swap will be aborted on the server
side and the client can retry the swap with different parameters.
*/
uint32 payment_timeout_seconds = 11;
}

View file

@ -289,11 +289,10 @@ message ServerLoopInQuoteRequest {
// litd/v0.2.0-alpha/commit=326d754
string user_agent = 6;
// If this is a quote request for a static address loop in, this value
// defines the number of static address deposits that the client wants to
// quote for. The amount of the quote reflects the sum of all deposits. The
// number of deposits here is taken into consideration for the total swap
// fee.
// The number of static address deposits the client wants to quote for.
// If the number of deposits exceeds one the server will apply a per-input
// service fee. This is to cover for the increased on-chain fee the server
// has to pay when the sweeping transaction is broadcast.
uint32 num_static_address_deposits = 7;
}
@ -668,69 +667,23 @@ message SubscribeNotificationsRequest {
message SubscribeNotificationsResponse {
oneof notification {
ServerReservationNotification reservation_notification = 1;
ServerStaticLoopInSweepNotification static_loop_in_sweep = 2;
}
}
// StaticAddressProtocolVersion represents the static address protocol version
// the client adheres to.
enum StaticAddressProtocolVersion {
// V0 is the initially released static address protocol version.
V0 = 0;
}
service StaticAddressServer {
// ServerNewAddress generates a new static address for the client to use.
// The server will generate the address and return the server key and the
// address's CSV expiry.
rpc ServerNewAddress (ServerNewAddressRequest)
returns (ServerNewAddressResponse);
// ServerWithdrawDeposits allows to cooperatively sweep deposits that
// haven't timed out yet to the client's wallet. The server will generate
// the partial sigs for the client's selected deposits.
rpc ServerWithdrawDeposits (ServerWithdrawRequest)
returns (ServerWithdrawResponse);
}
message ServerNewAddressRequest {
// The protocol version that the client adheres to.
StaticAddressProtocolVersion protocol_version = 1;
// The client key for the MuSig2 static address output.
bytes client_key = 2;
}
message ServerNewAddressResponse {
ServerAddressParameters params = 1;
}
message ServerAddressParameters {
// The server key for the MuSig2 static address output.
bytes server_key = 1;
// The CSV expiry of the static address output.
uint32 expiry = 2;
}
message ServerWithdrawRequest {
// The deposit outpoints the client wishes to close.
repeated PrevoutInfo outpoints = 1;
// The nonces that the client used to generate the coop close tx sigs.
repeated bytes client_nonces = 2;
// The address that the client wants to sweep the static address deposits
// to.
string client_sweep_addr = 3;
// The fee rate in sat/kw that the client wants to use for the sweep.
uint64 tx_fee_rate = 4 [jstype = JS_STRING];
}
message ServerWithdrawResponse {
// The sweep sigs that the server generated for the htlc.
repeated bytes musig2_sweep_sigs = 1;
// The nonces that the server used to generate the sweepless sweep sigs.
repeated bytes server_nonces = 2;
// ServerStaticLoopInSweepNotification is a request from the server to the
// client to cosign a transaction that contains deposits from a finished static
// loop ins.
message ServerStaticLoopInSweepNotification {
// The psbt of the sweep transaction.
bytes sweep_tx_psbt = 1;
// The swap hash the deposits are associated with.
bytes swap_hash = 2;
// The map of deposit txid:idx to the nonce used by the server.
map<string, bytes> deposit_to_nonces = 3;
// The prevout information of the sweep txn.
repeated PrevoutInfo prevout_info = 4;
}

View file

@ -103,9 +103,10 @@ func (t *taprootAssetsSubServer) Start(_ lnrpc.LightningClient,
return err
}
// The taproot asset channel feature is still experimental, so we
// disable it for now.
const enableChannelFeatures = false
// If we're being called here, it means tapd is running in integrated
// mode. But we can only offer Taproot Asset channel functionality if
// lnd is also running in integrated mode.
enableChannelFeatures := !t.lndRemote
err = tapcfg.ConfigureSubServer(
t.Server, t.cfg, log, &lndGrpc.LndServices,

View file

@ -1284,14 +1284,15 @@ func (g *LightningTerminal) Permissions() map[string][]bakery.Op {
//
// NOTE: This is part of the lnd.WalletConfigBuilder interface.
func (g *LightningTerminal) BuildWalletConfig(ctx context.Context,
dbs *lnd.DatabaseInstances, interceptorChain *rpcperms.InterceptorChain,
dbs *lnd.DatabaseInstances, auxComponents *lnd.AuxComponents,
interceptorChain *rpcperms.InterceptorChain,
grpcListeners []*lnd.ListenerWithSignal) (*chainreg.PartialChainControl,
*btcwallet.Config, func(), error) {
g.lndInterceptorChain = interceptorChain
return g.defaultImplCfg.WalletConfigBuilder.BuildWalletConfig(
ctx, dbs, interceptorChain, grpcListeners,
ctx, dbs, auxComponents, interceptorChain, grpcListeners,
)
}