diff --git a/core/api/src/services/bria/proto/bria.proto b/core/api/src/services/bria/proto/bria.proto index 48365bfc58..c818d94095 100644 --- a/core/api/src/services/bria/proto/bria.proto +++ b/core/api/src/services/bria/proto/bria.proto @@ -289,6 +289,8 @@ message PayoutQueueConfig { bool manual = 4; uint32 interval_secs = 5; } + optional uint32 cpfp_payouts_after_mins = 6; + optional uint32 cpfp_payouts_after_blocks = 7; } enum TxPriority { @@ -381,6 +383,7 @@ message Payout { bool cancelled = 9; string external_id = 7; optional google.protobuf.Struct metadata = 8; + optional uint32 batch_inclusion_estimated_at = 11; } message ListPayoutsResponse { diff --git a/core/api/src/services/bria/proto/bria_pb.d.ts b/core/api/src/services/bria/proto/bria_pb.d.ts index 0e3997aa32..6ddf451bbd 100644 --- a/core/api/src/services/bria/proto/bria_pb.d.ts +++ b/core/api/src/services/bria/proto/bria_pb.d.ts @@ -1192,6 +1192,16 @@ export class PayoutQueueConfig extends jspb.Message { getIntervalSecs(): number; setIntervalSecs(value: number): PayoutQueueConfig; + hasCpfpPayoutsAfterMins(): boolean; + clearCpfpPayoutsAfterMins(): void; + getCpfpPayoutsAfterMins(): number | undefined; + setCpfpPayoutsAfterMins(value: number): PayoutQueueConfig; + + hasCpfpPayoutsAfterBlocks(): boolean; + clearCpfpPayoutsAfterBlocks(): void; + getCpfpPayoutsAfterBlocks(): number | undefined; + setCpfpPayoutsAfterBlocks(value: number): PayoutQueueConfig; + getTriggerCase(): PayoutQueueConfig.TriggerCase; serializeBinary(): Uint8Array; @@ -1210,6 +1220,8 @@ export namespace PayoutQueueConfig { consolidateDeprecatedKeychains: boolean, manual: boolean, intervalSecs: number, + cpfpPayoutsAfterMins?: number, + cpfpPayoutsAfterBlocks?: number, } export enum TriggerCase { @@ -1629,6 +1641,11 @@ export class Payout extends jspb.Message { getMetadata(): google_protobuf_struct_pb.Struct | undefined; setMetadata(value?: google_protobuf_struct_pb.Struct): Payout; + hasBatchInclusionEstimatedAt(): boolean; + clearBatchInclusionEstimatedAt(): void; + getBatchInclusionEstimatedAt(): number | undefined; + setBatchInclusionEstimatedAt(value: number): Payout; + getDestinationCase(): Payout.DestinationCase; serializeBinary(): Uint8Array; @@ -1653,6 +1670,7 @@ export namespace Payout { cancelled: boolean, externalId: string, metadata?: google_protobuf_struct_pb.Struct.AsObject, + batchInclusionEstimatedAt?: number, } export enum DestinationCase { diff --git a/core/api/src/services/bria/proto/bria_pb.js b/core/api/src/services/bria/proto/bria_pb.js index fe0f21d46e..5f5a30e54c 100644 --- a/core/api/src/services/bria/proto/bria_pb.js +++ b/core/api/src/services/bria/proto/bria_pb.js @@ -10166,7 +10166,9 @@ proto.services.bria.v1.PayoutQueueConfig.toObject = function(includeInstance, ms txPriority: jspb.Message.getFieldWithDefault(msg, 1, 0), consolidateDeprecatedKeychains: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), manual: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - intervalSecs: jspb.Message.getFieldWithDefault(msg, 5, 0) + intervalSecs: jspb.Message.getFieldWithDefault(msg, 5, 0), + cpfpPayoutsAfterMins: jspb.Message.getFieldWithDefault(msg, 6, 0), + cpfpPayoutsAfterBlocks: jspb.Message.getFieldWithDefault(msg, 7, 0) }; if (includeInstance) { @@ -10219,6 +10221,14 @@ proto.services.bria.v1.PayoutQueueConfig.deserializeBinaryFromReader = function( var value = /** @type {number} */ (reader.readUint32()); msg.setIntervalSecs(value); break; + case 6: + var value = /** @type {number} */ (reader.readUint32()); + msg.setCpfpPayoutsAfterMins(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint32()); + msg.setCpfpPayoutsAfterBlocks(value); + break; default: reader.skipField(); break; @@ -10276,6 +10286,20 @@ proto.services.bria.v1.PayoutQueueConfig.serializeBinaryToWriter = function(mess f ); } + f = /** @type {number} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeUint32( + 6, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeUint32( + 7, + f + ); + } }; @@ -10387,6 +10411,78 @@ proto.services.bria.v1.PayoutQueueConfig.prototype.hasIntervalSecs = function() }; +/** + * optional uint32 cpfp_payouts_after_mins = 6; + * @return {number} + */ +proto.services.bria.v1.PayoutQueueConfig.prototype.getCpfpPayoutsAfterMins = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.services.bria.v1.PayoutQueueConfig} returns this + */ +proto.services.bria.v1.PayoutQueueConfig.prototype.setCpfpPayoutsAfterMins = function(value) { + return jspb.Message.setField(this, 6, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.bria.v1.PayoutQueueConfig} returns this + */ +proto.services.bria.v1.PayoutQueueConfig.prototype.clearCpfpPayoutsAfterMins = function() { + return jspb.Message.setField(this, 6, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.bria.v1.PayoutQueueConfig.prototype.hasCpfpPayoutsAfterMins = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional uint32 cpfp_payouts_after_blocks = 7; + * @return {number} + */ +proto.services.bria.v1.PayoutQueueConfig.prototype.getCpfpPayoutsAfterBlocks = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.services.bria.v1.PayoutQueueConfig} returns this + */ +proto.services.bria.v1.PayoutQueueConfig.prototype.setCpfpPayoutsAfterBlocks = function(value) { + return jspb.Message.setField(this, 7, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.bria.v1.PayoutQueueConfig} returns this + */ +proto.services.bria.v1.PayoutQueueConfig.prototype.clearCpfpPayoutsAfterBlocks = function() { + return jspb.Message.setField(this, 7, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.bria.v1.PayoutQueueConfig.prototype.hasCpfpPayoutsAfterBlocks = function() { + return jspb.Message.getField(this, 7) != null; +}; + + @@ -12986,7 +13082,8 @@ proto.services.bria.v1.Payout.toObject = function(includeInstance, msg) { wallet: (f = msg.getWallet()) && proto.services.bria.v1.BriaWalletDestination.toObject(includeInstance, f), cancelled: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), externalId: jspb.Message.getFieldWithDefault(msg, 7, ""), - metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + batchInclusionEstimatedAt: jspb.Message.getFieldWithDefault(msg, 11, 0) }; if (includeInstance) { @@ -13065,6 +13162,10 @@ proto.services.bria.v1.Payout.deserializeBinaryFromReader = function(msg, reader reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setMetadata(value); break; + case 11: + var value = /** @type {number} */ (reader.readUint32()); + msg.setBatchInclusionEstimatedAt(value); + break; default: reader.skipField(); break; @@ -13166,6 +13267,13 @@ proto.services.bria.v1.Payout.serializeBinaryToWriter = function(message, writer google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } + f = /** @type {number} */ (jspb.Message.getField(message, 11)); + if (f != null) { + writer.writeUint32( + 11, + f + ); + } }; @@ -13423,6 +13531,42 @@ proto.services.bria.v1.Payout.prototype.hasMetadata = function() { }; +/** + * optional uint32 batch_inclusion_estimated_at = 11; + * @return {number} + */ +proto.services.bria.v1.Payout.prototype.getBatchInclusionEstimatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.services.bria.v1.Payout} returns this + */ +proto.services.bria.v1.Payout.prototype.setBatchInclusionEstimatedAt = function(value) { + return jspb.Message.setField(this, 11, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.bria.v1.Payout} returns this + */ +proto.services.bria.v1.Payout.prototype.clearBatchInclusionEstimatedAt = function() { + return jspb.Message.setField(this, 11, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.bria.v1.Payout.prototype.hasBatchInclusionEstimatedAt = function() { + return jspb.Message.getField(this, 11) != null; +}; + + /** * List of repeated fields within this message type.