diff --git a/js/protos/escrow/escrow_pb.js b/js/protos/escrow/escrow_pb.js index 13f85b23..8483c903 100644 --- a/js/protos/escrow/escrow_pb.js +++ b/js/protos/escrow/escrow_pb.js @@ -28,6 +28,7 @@ goog.exportSymbol('proto.escrow.Escrow', null, global); goog.exportSymbol('proto.escrow.EscrowContract', null, global); goog.exportSymbol('proto.escrow.EscrowContractRequest', null, global); goog.exportSymbol('proto.escrow.EscrowStatus', null, global); +goog.exportSymbol('proto.escrow.OperationType', null, global); goog.exportSymbol('proto.escrow.PayinRequest', null, global); goog.exportSymbol('proto.escrow.PayinResult', null, global); goog.exportSymbol('proto.escrow.PayinStatus', null, global); @@ -50,11 +51,22 @@ goog.exportSymbol('proto.escrow.SignedPaymentResult', null, global); goog.exportSymbol('proto.escrow.SignedPayoutAddress', null, global); goog.exportSymbol('proto.escrow.SignedPayoutStatus', null, global); goog.exportSymbol('proto.escrow.SignedPayoutStatusBatch', null, global); +goog.exportSymbol('proto.escrow.SignedStakePenaltyRequest', null, global); +goog.exportSymbol('proto.escrow.SignedStakePenaltyResult', null, global); +goog.exportSymbol('proto.escrow.SignedStakeRequest', null, global); +goog.exportSymbol('proto.escrow.SignedStakeResult', null, global); goog.exportSymbol('proto.escrow.SignedStartEscrowResult', null, global); goog.exportSymbol('proto.escrow.SignedSubmitContractResult', null, global); +goog.exportSymbol('proto.escrow.StakeLedger', null, global); +goog.exportSymbol('proto.escrow.StakePenaltyRequest', null, global); +goog.exportSymbol('proto.escrow.StakePenaltyResult', null, global); +goog.exportSymbol('proto.escrow.StakeRequest', null, global); +goog.exportSymbol('proto.escrow.StakeResult', null, global); +goog.exportSymbol('proto.escrow.StakeStatus', null, global); goog.exportSymbol('proto.escrow.StartEscrowResult', null, global); goog.exportSymbol('proto.escrow.SubmitContractResult', null, global); goog.exportSymbol('proto.escrow.TokenType', null, global); +goog.exportSymbol('proto.escrow.UnfinishStakeLedger', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -748,6 +760,216 @@ if (goog.DEBUG && !COMPILED) { */ proto.escrow.SignedBalanceResult.displayName = 'proto.escrow.SignedBalanceResult'; } +/** + * 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.escrow.SignedStakeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.escrow.SignedStakeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.escrow.SignedStakeRequest.displayName = 'proto.escrow.SignedStakeRequest'; +} +/** + * 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.escrow.StakeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.escrow.StakeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.escrow.StakeRequest.displayName = 'proto.escrow.StakeRequest'; +} +/** + * 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.escrow.StakeResult = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.escrow.StakeResult.repeatedFields_, null); +}; +goog.inherits(proto.escrow.StakeResult, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.escrow.StakeResult.displayName = 'proto.escrow.StakeResult'; +} +/** + * 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.escrow.SignedStakeResult = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.escrow.SignedStakeResult, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.escrow.SignedStakeResult.displayName = 'proto.escrow.SignedStakeResult'; +} +/** + * 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.escrow.StakeLedger = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.escrow.StakeLedger, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.escrow.StakeLedger.displayName = 'proto.escrow.StakeLedger'; +} +/** + * 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.escrow.UnfinishStakeLedger = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.escrow.UnfinishStakeLedger, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.escrow.UnfinishStakeLedger.displayName = 'proto.escrow.UnfinishStakeLedger'; +} +/** + * 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.escrow.SignedStakePenaltyRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.escrow.SignedStakePenaltyRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.escrow.SignedStakePenaltyRequest.displayName = 'proto.escrow.SignedStakePenaltyRequest'; +} +/** + * 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.escrow.StakePenaltyRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.escrow.StakePenaltyRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.escrow.StakePenaltyRequest.displayName = 'proto.escrow.StakePenaltyRequest'; +} +/** + * 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.escrow.StakePenaltyResult = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.escrow.StakePenaltyResult, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.escrow.StakePenaltyResult.displayName = 'proto.escrow.StakePenaltyResult'; +} +/** + * 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.escrow.SignedStakePenaltyResult = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.escrow.SignedStakePenaltyResult, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.escrow.SignedStakePenaltyResult.displayName = 'proto.escrow.SignedStakePenaltyResult'; +} @@ -9690,42 +9912,2720 @@ proto.escrow.SignedBalanceResult.prototype.setEscrowSignature = function(value) }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * @enum {number} + * 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_, 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.escrow.TokenType = { - BTT: 0 +proto.escrow.SignedStakeRequest.prototype.toObject = function(opt_includeInstance) { + return proto.escrow.SignedStakeRequest.toObject(opt_includeInstance, this); }; + /** - * @enum {number} + * 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.escrow.SignedStakeRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.escrow.Schedule = { - MONTHLY: 0, - QUARTERLY: 1, - ANNUALLY: 2, - CUSTOMIZED: 3 +proto.escrow.SignedStakeRequest.toObject = function(includeInstance, msg) { + var f, obj = { + data: (f = msg.getData()) && proto.escrow.StakeRequest.toObject(includeInstance, f), + signature: msg.getSignature_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} + /** - * @enum {number} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.escrow.SignedStakeRequest} */ -proto.escrow.ContractType = { - REGULAR: 0, - PLAN: 1, - REVISE: 2 +proto.escrow.SignedStakeRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.escrow.SignedStakeRequest; + return proto.escrow.SignedStakeRequest.deserializeBinaryFromReader(msg, reader); }; + /** - * @enum {number} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.escrow.SignedStakeRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.escrow.SignedStakeRequest} */ -proto.escrow.EscrowStatus = { - INITIATED: 0, - ACTIVE: 1, - CANCELED: 2, - CLOSED: 3, - NOTSTART: 4, - NOTSTART_PAID: 5 +proto.escrow.SignedStakeRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.escrow.StakeRequest; + reader.readMessage(value,proto.escrow.StakeRequest.deserializeBinaryFromReader); + msg.setData(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSignature(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.escrow.SignedStakeRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.escrow.SignedStakeRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.escrow.SignedStakeRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.SignedStakeRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getData(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.escrow.StakeRequest.serializeBinaryToWriter + ); + } + f = message.getSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional StakeRequest data = 1; + * @return {?proto.escrow.StakeRequest} + */ +proto.escrow.SignedStakeRequest.prototype.getData = function() { + return /** @type{?proto.escrow.StakeRequest} */ ( + jspb.Message.getWrapperField(this, proto.escrow.StakeRequest, 1)); +}; + + +/** + * @param {?proto.escrow.StakeRequest|undefined} value + * @return {!proto.escrow.SignedStakeRequest} returns this +*/ +proto.escrow.SignedStakeRequest.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.escrow.SignedStakeRequest} returns this + */ +proto.escrow.SignedStakeRequest.prototype.clearData = function() { + return this.setData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.escrow.SignedStakeRequest.prototype.hasData = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bytes signature = 2; + * @return {!(string|Uint8Array)} + */ +proto.escrow.SignedStakeRequest.prototype.getSignature = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes signature = 2; + * This is a type-conversion wrapper around `getSignature()` + * @return {string} + */ +proto.escrow.SignedStakeRequest.prototype.getSignature_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSignature())); +}; + + +/** + * optional bytes signature = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSignature()` + * @return {!Uint8Array} + */ +proto.escrow.SignedStakeRequest.prototype.getSignature_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSignature())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.escrow.SignedStakeRequest} returns this + */ +proto.escrow.SignedStakeRequest.prototype.setSignature = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + + + + +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_, 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.escrow.StakeRequest.prototype.toObject = function(opt_includeInstance) { + return proto.escrow.StakeRequest.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.escrow.StakeRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.StakeRequest.toObject = function(includeInstance, msg) { + var f, obj = { + stakerId: jspb.Message.getFieldWithDefault(msg, 1, ""), + stakeAmount: jspb.Message.getFieldWithDefault(msg, 2, 0), + transferRequest: (f = msg.getTransferRequest()) && protos_ledger_ledger_pb.SignedTransferRequest.toObject(includeInstance, f), + requestTime: (f = msg.getRequestTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.escrow.StakeRequest} + */ +proto.escrow.StakeRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.escrow.StakeRequest; + return proto.escrow.StakeRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.escrow.StakeRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.escrow.StakeRequest} + */ +proto.escrow.StakeRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setStakerId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setStakeAmount(value); + break; + case 3: + var value = new protos_ledger_ledger_pb.SignedTransferRequest; + reader.readMessage(value,protos_ledger_ledger_pb.SignedTransferRequest.deserializeBinaryFromReader); + msg.setTransferRequest(value); + break; + case 4: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setRequestTime(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.escrow.StakeRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.escrow.StakeRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.escrow.StakeRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.StakeRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStakerId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getStakeAmount(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getTransferRequest(); + if (f != null) { + writer.writeMessage( + 3, + f, + protos_ledger_ledger_pb.SignedTransferRequest.serializeBinaryToWriter + ); + } + f = message.getRequestTime(); + if (f != null) { + writer.writeMessage( + 4, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string staker_id = 1; + * @return {string} + */ +proto.escrow.StakeRequest.prototype.getStakerId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.escrow.StakeRequest} returns this + */ +proto.escrow.StakeRequest.prototype.setStakerId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int64 stake_amount = 2; + * @return {number} + */ +proto.escrow.StakeRequest.prototype.getStakeAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.escrow.StakeRequest} returns this + */ +proto.escrow.StakeRequest.prototype.setStakeAmount = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional ledger.SignedTransferRequest transfer_request = 3; + * @return {?proto.ledger.SignedTransferRequest} + */ +proto.escrow.StakeRequest.prototype.getTransferRequest = function() { + return /** @type{?proto.ledger.SignedTransferRequest} */ ( + jspb.Message.getWrapperField(this, protos_ledger_ledger_pb.SignedTransferRequest, 3)); +}; + + +/** + * @param {?proto.ledger.SignedTransferRequest|undefined} value + * @return {!proto.escrow.StakeRequest} returns this +*/ +proto.escrow.StakeRequest.prototype.setTransferRequest = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.escrow.StakeRequest} returns this + */ +proto.escrow.StakeRequest.prototype.clearTransferRequest = function() { + return this.setTransferRequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.escrow.StakeRequest.prototype.hasTransferRequest = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional google.protobuf.Timestamp request_time = 4; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.escrow.StakeRequest.prototype.getRequestTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.escrow.StakeRequest} returns this +*/ +proto.escrow.StakeRequest.prototype.setRequestTime = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.escrow.StakeRequest} returns this + */ +proto.escrow.StakeRequest.prototype.clearRequestTime = function() { + return this.setRequestTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.escrow.StakeRequest.prototype.hasRequestTime = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.escrow.StakeResult.repeatedFields_ = [5,6]; + + + +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_, 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.escrow.StakeResult.prototype.toObject = function(opt_includeInstance) { + return proto.escrow.StakeResult.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.escrow.StakeResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.StakeResult.toObject = function(includeInstance, msg) { + var f, obj = { + stakerId: jspb.Message.getFieldWithDefault(msg, 1, ""), + balance: jspb.Message.getFieldWithDefault(msg, 2, 0), + matureAmount: jspb.Message.getFieldWithDefault(msg, 3, 0), + pendingAmount: jspb.Message.getFieldWithDefault(msg, 4, 0), + ledgersList: jspb.Message.toObjectList(msg.getLedgersList(), + proto.escrow.StakeLedger.toObject, includeInstance), + unfinishLedgersList: jspb.Message.toObjectList(msg.getUnfinishLedgersList(), + proto.escrow.UnfinishStakeLedger.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.escrow.StakeResult} + */ +proto.escrow.StakeResult.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.escrow.StakeResult; + return proto.escrow.StakeResult.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.escrow.StakeResult} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.escrow.StakeResult} + */ +proto.escrow.StakeResult.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setStakerId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setBalance(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setMatureAmount(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setPendingAmount(value); + break; + case 5: + var value = new proto.escrow.StakeLedger; + reader.readMessage(value,proto.escrow.StakeLedger.deserializeBinaryFromReader); + msg.addLedgers(value); + break; + case 6: + var value = new proto.escrow.UnfinishStakeLedger; + reader.readMessage(value,proto.escrow.UnfinishStakeLedger.deserializeBinaryFromReader); + msg.addUnfinishLedgers(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.escrow.StakeResult.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.escrow.StakeResult.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.escrow.StakeResult} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.StakeResult.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStakerId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getBalance(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getMatureAmount(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } + f = message.getPendingAmount(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } + f = message.getLedgersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + proto.escrow.StakeLedger.serializeBinaryToWriter + ); + } + f = message.getUnfinishLedgersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + proto.escrow.UnfinishStakeLedger.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string staker_id = 1; + * @return {string} + */ +proto.escrow.StakeResult.prototype.getStakerId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.escrow.StakeResult} returns this + */ +proto.escrow.StakeResult.prototype.setStakerId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int64 balance = 2; + * @return {number} + */ +proto.escrow.StakeResult.prototype.getBalance = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.escrow.StakeResult} returns this + */ +proto.escrow.StakeResult.prototype.setBalance = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int64 mature_amount = 3; + * @return {number} + */ +proto.escrow.StakeResult.prototype.getMatureAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.escrow.StakeResult} returns this + */ +proto.escrow.StakeResult.prototype.setMatureAmount = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional int64 pending_amount = 4; + * @return {number} + */ +proto.escrow.StakeResult.prototype.getPendingAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.escrow.StakeResult} returns this + */ +proto.escrow.StakeResult.prototype.setPendingAmount = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * repeated StakeLedger ledgers = 5; + * @return {!Array} + */ +proto.escrow.StakeResult.prototype.getLedgersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.escrow.StakeLedger, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.escrow.StakeResult} returns this +*/ +proto.escrow.StakeResult.prototype.setLedgersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + + +/** + * @param {!proto.escrow.StakeLedger=} opt_value + * @param {number=} opt_index + * @return {!proto.escrow.StakeLedger} + */ +proto.escrow.StakeResult.prototype.addLedgers = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.escrow.StakeLedger, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.escrow.StakeResult} returns this + */ +proto.escrow.StakeResult.prototype.clearLedgersList = function() { + return this.setLedgersList([]); +}; + + +/** + * repeated UnfinishStakeLedger unfinish_ledgers = 6; + * @return {!Array} + */ +proto.escrow.StakeResult.prototype.getUnfinishLedgersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.escrow.UnfinishStakeLedger, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.escrow.StakeResult} returns this +*/ +proto.escrow.StakeResult.prototype.setUnfinishLedgersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); +}; + + +/** + * @param {!proto.escrow.UnfinishStakeLedger=} opt_value + * @param {number=} opt_index + * @return {!proto.escrow.UnfinishStakeLedger} + */ +proto.escrow.StakeResult.prototype.addUnfinishLedgers = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.escrow.UnfinishStakeLedger, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.escrow.StakeResult} returns this + */ +proto.escrow.StakeResult.prototype.clearUnfinishLedgersList = function() { + return this.setUnfinishLedgersList([]); +}; + + + + + +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_, 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.escrow.SignedStakeResult.prototype.toObject = function(opt_includeInstance) { + return proto.escrow.SignedStakeResult.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.escrow.SignedStakeResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.SignedStakeResult.toObject = function(includeInstance, msg) { + var f, obj = { + data: (f = msg.getData()) && proto.escrow.StakeResult.toObject(includeInstance, f), + signature: msg.getSignature_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.escrow.SignedStakeResult} + */ +proto.escrow.SignedStakeResult.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.escrow.SignedStakeResult; + return proto.escrow.SignedStakeResult.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.escrow.SignedStakeResult} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.escrow.SignedStakeResult} + */ +proto.escrow.SignedStakeResult.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.escrow.StakeResult; + reader.readMessage(value,proto.escrow.StakeResult.deserializeBinaryFromReader); + msg.setData(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSignature(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.escrow.SignedStakeResult.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.escrow.SignedStakeResult.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.escrow.SignedStakeResult} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.SignedStakeResult.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getData(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.escrow.StakeResult.serializeBinaryToWriter + ); + } + f = message.getSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional StakeResult data = 1; + * @return {?proto.escrow.StakeResult} + */ +proto.escrow.SignedStakeResult.prototype.getData = function() { + return /** @type{?proto.escrow.StakeResult} */ ( + jspb.Message.getWrapperField(this, proto.escrow.StakeResult, 1)); +}; + + +/** + * @param {?proto.escrow.StakeResult|undefined} value + * @return {!proto.escrow.SignedStakeResult} returns this +*/ +proto.escrow.SignedStakeResult.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.escrow.SignedStakeResult} returns this + */ +proto.escrow.SignedStakeResult.prototype.clearData = function() { + return this.setData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.escrow.SignedStakeResult.prototype.hasData = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bytes signature = 2; + * @return {!(string|Uint8Array)} + */ +proto.escrow.SignedStakeResult.prototype.getSignature = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes signature = 2; + * This is a type-conversion wrapper around `getSignature()` + * @return {string} + */ +proto.escrow.SignedStakeResult.prototype.getSignature_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSignature())); +}; + + +/** + * optional bytes signature = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSignature()` + * @return {!Uint8Array} + */ +proto.escrow.SignedStakeResult.prototype.getSignature_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSignature())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.escrow.SignedStakeResult} returns this + */ +proto.escrow.SignedStakeResult.prototype.setSignature = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + + + + +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_, 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.escrow.StakeLedger.prototype.toObject = function(opt_includeInstance) { + return proto.escrow.StakeLedger.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.escrow.StakeLedger} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.StakeLedger.toObject = function(includeInstance, msg) { + var f, obj = { + stakerId: jspb.Message.getFieldWithDefault(msg, 1, ""), + amount: jspb.Message.getFieldWithDefault(msg, 2, 0), + startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + matureTime: (f = msg.getMatureTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + operatorId: jspb.Message.getFieldWithDefault(msg, 5, ""), + type: jspb.Message.getFieldWithDefault(msg, 6, 0), + operationLog: jspb.Message.getFieldWithDefault(msg, 7, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.escrow.StakeLedger} + */ +proto.escrow.StakeLedger.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.escrow.StakeLedger; + return proto.escrow.StakeLedger.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.escrow.StakeLedger} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.escrow.StakeLedger} + */ +proto.escrow.StakeLedger.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setStakerId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setAmount(value); + break; + case 3: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setStartTime(value); + break; + case 4: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setMatureTime(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setOperatorId(value); + break; + case 6: + var value = /** @type {!proto.escrow.OperationType} */ (reader.readEnum()); + msg.setType(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setOperationLog(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.escrow.StakeLedger.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.escrow.StakeLedger.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.escrow.StakeLedger} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.StakeLedger.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStakerId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAmount(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getStartTime(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getMatureTime(); + if (f != null) { + writer.writeMessage( + 4, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getOperatorId(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getType(); + if (f !== 0.0) { + writer.writeEnum( + 6, + f + ); + } + f = message.getOperationLog(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } +}; + + +/** + * optional string staker_id = 1; + * @return {string} + */ +proto.escrow.StakeLedger.prototype.getStakerId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.escrow.StakeLedger} returns this + */ +proto.escrow.StakeLedger.prototype.setStakerId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int64 amount = 2; + * @return {number} + */ +proto.escrow.StakeLedger.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.escrow.StakeLedger} returns this + */ +proto.escrow.StakeLedger.prototype.setAmount = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional google.protobuf.Timestamp start_time = 3; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.escrow.StakeLedger.prototype.getStartTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.escrow.StakeLedger} returns this +*/ +proto.escrow.StakeLedger.prototype.setStartTime = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.escrow.StakeLedger} returns this + */ +proto.escrow.StakeLedger.prototype.clearStartTime = function() { + return this.setStartTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.escrow.StakeLedger.prototype.hasStartTime = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional google.protobuf.Timestamp mature_time = 4; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.escrow.StakeLedger.prototype.getMatureTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.escrow.StakeLedger} returns this +*/ +proto.escrow.StakeLedger.prototype.setMatureTime = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.escrow.StakeLedger} returns this + */ +proto.escrow.StakeLedger.prototype.clearMatureTime = function() { + return this.setMatureTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.escrow.StakeLedger.prototype.hasMatureTime = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional string operator_id = 5; + * @return {string} + */ +proto.escrow.StakeLedger.prototype.getOperatorId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.escrow.StakeLedger} returns this + */ +proto.escrow.StakeLedger.prototype.setOperatorId = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional OperationType type = 6; + * @return {!proto.escrow.OperationType} + */ +proto.escrow.StakeLedger.prototype.getType = function() { + return /** @type {!proto.escrow.OperationType} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {!proto.escrow.OperationType} value + * @return {!proto.escrow.StakeLedger} returns this + */ +proto.escrow.StakeLedger.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 6, value); +}; + + +/** + * optional string operation_log = 7; + * @return {string} + */ +proto.escrow.StakeLedger.prototype.getOperationLog = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.escrow.StakeLedger} returns this + */ +proto.escrow.StakeLedger.prototype.setOperationLog = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + + + + +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_, 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.escrow.UnfinishStakeLedger.prototype.toObject = function(opt_includeInstance) { + return proto.escrow.UnfinishStakeLedger.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.escrow.UnfinishStakeLedger} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.UnfinishStakeLedger.toObject = function(includeInstance, msg) { + var f, obj = { + stakerId: jspb.Message.getFieldWithDefault(msg, 1, ""), + amount: jspb.Message.getFieldWithDefault(msg, 2, 0), + status: jspb.Message.getFieldWithDefault(msg, 3, 0), + failReason: jspb.Message.getFieldWithDefault(msg, 4, ""), + submitTime: (f = msg.getSubmitTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + failTime: (f = msg.getFailTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.escrow.UnfinishStakeLedger} + */ +proto.escrow.UnfinishStakeLedger.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.escrow.UnfinishStakeLedger; + return proto.escrow.UnfinishStakeLedger.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.escrow.UnfinishStakeLedger} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.escrow.UnfinishStakeLedger} + */ +proto.escrow.UnfinishStakeLedger.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setStakerId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setAmount(value); + break; + case 3: + var value = /** @type {!proto.escrow.StakeStatus} */ (reader.readEnum()); + msg.setStatus(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setFailReason(value); + break; + case 5: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setSubmitTime(value); + break; + case 6: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setFailTime(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.escrow.UnfinishStakeLedger.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.escrow.UnfinishStakeLedger.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.escrow.UnfinishStakeLedger} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.UnfinishStakeLedger.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStakerId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAmount(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } + f = message.getFailReason(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getSubmitTime(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getFailTime(); + if (f != null) { + writer.writeMessage( + 6, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string staker_id = 1; + * @return {string} + */ +proto.escrow.UnfinishStakeLedger.prototype.getStakerId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.escrow.UnfinishStakeLedger} returns this + */ +proto.escrow.UnfinishStakeLedger.prototype.setStakerId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int64 amount = 2; + * @return {number} + */ +proto.escrow.UnfinishStakeLedger.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.escrow.UnfinishStakeLedger} returns this + */ +proto.escrow.UnfinishStakeLedger.prototype.setAmount = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional StakeStatus status = 3; + * @return {!proto.escrow.StakeStatus} + */ +proto.escrow.UnfinishStakeLedger.prototype.getStatus = function() { + return /** @type {!proto.escrow.StakeStatus} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.escrow.StakeStatus} value + * @return {!proto.escrow.UnfinishStakeLedger} returns this + */ +proto.escrow.UnfinishStakeLedger.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + +/** + * optional string fail_reason = 4; + * @return {string} + */ +proto.escrow.UnfinishStakeLedger.prototype.getFailReason = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.escrow.UnfinishStakeLedger} returns this + */ +proto.escrow.UnfinishStakeLedger.prototype.setFailReason = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional google.protobuf.Timestamp submit_time = 5; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.escrow.UnfinishStakeLedger.prototype.getSubmitTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.escrow.UnfinishStakeLedger} returns this +*/ +proto.escrow.UnfinishStakeLedger.prototype.setSubmitTime = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.escrow.UnfinishStakeLedger} returns this + */ +proto.escrow.UnfinishStakeLedger.prototype.clearSubmitTime = function() { + return this.setSubmitTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.escrow.UnfinishStakeLedger.prototype.hasSubmitTime = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional google.protobuf.Timestamp fail_time = 6; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.escrow.UnfinishStakeLedger.prototype.getFailTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.escrow.UnfinishStakeLedger} returns this +*/ +proto.escrow.UnfinishStakeLedger.prototype.setFailTime = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.escrow.UnfinishStakeLedger} returns this + */ +proto.escrow.UnfinishStakeLedger.prototype.clearFailTime = function() { + return this.setFailTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.escrow.UnfinishStakeLedger.prototype.hasFailTime = function() { + return jspb.Message.getField(this, 6) != null; +}; + + + + + +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_, 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.escrow.SignedStakePenaltyRequest.prototype.toObject = function(opt_includeInstance) { + return proto.escrow.SignedStakePenaltyRequest.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.escrow.SignedStakePenaltyRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.SignedStakePenaltyRequest.toObject = function(includeInstance, msg) { + var f, obj = { + data: (f = msg.getData()) && proto.escrow.StakePenaltyRequest.toObject(includeInstance, f), + signature: msg.getSignature_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.escrow.SignedStakePenaltyRequest} + */ +proto.escrow.SignedStakePenaltyRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.escrow.SignedStakePenaltyRequest; + return proto.escrow.SignedStakePenaltyRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.escrow.SignedStakePenaltyRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.escrow.SignedStakePenaltyRequest} + */ +proto.escrow.SignedStakePenaltyRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.escrow.StakePenaltyRequest; + reader.readMessage(value,proto.escrow.StakePenaltyRequest.deserializeBinaryFromReader); + msg.setData(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSignature(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.escrow.SignedStakePenaltyRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.escrow.SignedStakePenaltyRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.escrow.SignedStakePenaltyRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.SignedStakePenaltyRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getData(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.escrow.StakePenaltyRequest.serializeBinaryToWriter + ); + } + f = message.getSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional StakePenaltyRequest data = 1; + * @return {?proto.escrow.StakePenaltyRequest} + */ +proto.escrow.SignedStakePenaltyRequest.prototype.getData = function() { + return /** @type{?proto.escrow.StakePenaltyRequest} */ ( + jspb.Message.getWrapperField(this, proto.escrow.StakePenaltyRequest, 1)); +}; + + +/** + * @param {?proto.escrow.StakePenaltyRequest|undefined} value + * @return {!proto.escrow.SignedStakePenaltyRequest} returns this +*/ +proto.escrow.SignedStakePenaltyRequest.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.escrow.SignedStakePenaltyRequest} returns this + */ +proto.escrow.SignedStakePenaltyRequest.prototype.clearData = function() { + return this.setData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.escrow.SignedStakePenaltyRequest.prototype.hasData = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bytes signature = 2; + * @return {!(string|Uint8Array)} + */ +proto.escrow.SignedStakePenaltyRequest.prototype.getSignature = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes signature = 2; + * This is a type-conversion wrapper around `getSignature()` + * @return {string} + */ +proto.escrow.SignedStakePenaltyRequest.prototype.getSignature_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSignature())); +}; + + +/** + * optional bytes signature = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSignature()` + * @return {!Uint8Array} + */ +proto.escrow.SignedStakePenaltyRequest.prototype.getSignature_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSignature())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.escrow.SignedStakePenaltyRequest} returns this + */ +proto.escrow.SignedStakePenaltyRequest.prototype.setSignature = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + + + + +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_, 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.escrow.StakePenaltyRequest.prototype.toObject = function(opt_includeInstance) { + return proto.escrow.StakePenaltyRequest.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.escrow.StakePenaltyRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.StakePenaltyRequest.toObject = function(includeInstance, msg) { + var f, obj = { + stakerId: jspb.Message.getFieldWithDefault(msg, 1, ""), + operatorId: jspb.Message.getFieldWithDefault(msg, 2, ""), + reason: jspb.Message.getFieldWithDefault(msg, 3, 0), + operationLog: jspb.Message.getFieldWithDefault(msg, 4, ""), + amount: jspb.Message.getFieldWithDefault(msg, 5, 0), + submitTime: (f = msg.getSubmitTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.escrow.StakePenaltyRequest} + */ +proto.escrow.StakePenaltyRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.escrow.StakePenaltyRequest; + return proto.escrow.StakePenaltyRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.escrow.StakePenaltyRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.escrow.StakePenaltyRequest} + */ +proto.escrow.StakePenaltyRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setStakerId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setOperatorId(value); + break; + case 3: + var value = /** @type {!proto.escrow.OperationType} */ (reader.readEnum()); + msg.setReason(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setOperationLog(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt64()); + msg.setAmount(value); + break; + case 6: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setSubmitTime(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.escrow.StakePenaltyRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.escrow.StakePenaltyRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.escrow.StakePenaltyRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.StakePenaltyRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStakerId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getOperatorId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getReason(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } + f = message.getOperationLog(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getAmount(); + if (f !== 0) { + writer.writeInt64( + 5, + f + ); + } + f = message.getSubmitTime(); + if (f != null) { + writer.writeMessage( + 6, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string staker_id = 1; + * @return {string} + */ +proto.escrow.StakePenaltyRequest.prototype.getStakerId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.escrow.StakePenaltyRequest} returns this + */ +proto.escrow.StakePenaltyRequest.prototype.setStakerId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string operator_id = 2; + * @return {string} + */ +proto.escrow.StakePenaltyRequest.prototype.getOperatorId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.escrow.StakePenaltyRequest} returns this + */ +proto.escrow.StakePenaltyRequest.prototype.setOperatorId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional OperationType reason = 3; + * @return {!proto.escrow.OperationType} + */ +proto.escrow.StakePenaltyRequest.prototype.getReason = function() { + return /** @type {!proto.escrow.OperationType} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.escrow.OperationType} value + * @return {!proto.escrow.StakePenaltyRequest} returns this + */ +proto.escrow.StakePenaltyRequest.prototype.setReason = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + +/** + * optional string operation_log = 4; + * @return {string} + */ +proto.escrow.StakePenaltyRequest.prototype.getOperationLog = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.escrow.StakePenaltyRequest} returns this + */ +proto.escrow.StakePenaltyRequest.prototype.setOperationLog = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional int64 amount = 5; + * @return {number} + */ +proto.escrow.StakePenaltyRequest.prototype.getAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.escrow.StakePenaltyRequest} returns this + */ +proto.escrow.StakePenaltyRequest.prototype.setAmount = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional google.protobuf.Timestamp submit_time = 6; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.escrow.StakePenaltyRequest.prototype.getSubmitTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.escrow.StakePenaltyRequest} returns this +*/ +proto.escrow.StakePenaltyRequest.prototype.setSubmitTime = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.escrow.StakePenaltyRequest} returns this + */ +proto.escrow.StakePenaltyRequest.prototype.clearSubmitTime = function() { + return this.setSubmitTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.escrow.StakePenaltyRequest.prototype.hasSubmitTime = function() { + return jspb.Message.getField(this, 6) != null; +}; + + + + + +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_, 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.escrow.StakePenaltyResult.prototype.toObject = function(opt_includeInstance) { + return proto.escrow.StakePenaltyResult.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.escrow.StakePenaltyResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.StakePenaltyResult.toObject = function(includeInstance, msg) { + var f, obj = { + stakerId: jspb.Message.getFieldWithDefault(msg, 1, ""), + requestPenaltyAmount: jspb.Message.getFieldWithDefault(msg, 2, 0), + operatePenaltyAmount: jspb.Message.getFieldWithDefault(msg, 3, 0), + operatorId: jspb.Message.getFieldWithDefault(msg, 4, ""), + receiveTime: (f = msg.getReceiveTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.escrow.StakePenaltyResult} + */ +proto.escrow.StakePenaltyResult.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.escrow.StakePenaltyResult; + return proto.escrow.StakePenaltyResult.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.escrow.StakePenaltyResult} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.escrow.StakePenaltyResult} + */ +proto.escrow.StakePenaltyResult.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setStakerId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setRequestPenaltyAmount(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setOperatePenaltyAmount(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setOperatorId(value); + break; + case 5: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setReceiveTime(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.escrow.StakePenaltyResult.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.escrow.StakePenaltyResult.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.escrow.StakePenaltyResult} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.StakePenaltyResult.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStakerId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getRequestPenaltyAmount(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getOperatePenaltyAmount(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } + f = message.getOperatorId(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getReceiveTime(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string staker_id = 1; + * @return {string} + */ +proto.escrow.StakePenaltyResult.prototype.getStakerId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.escrow.StakePenaltyResult} returns this + */ +proto.escrow.StakePenaltyResult.prototype.setStakerId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int64 request_penalty_amount = 2; + * @return {number} + */ +proto.escrow.StakePenaltyResult.prototype.getRequestPenaltyAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.escrow.StakePenaltyResult} returns this + */ +proto.escrow.StakePenaltyResult.prototype.setRequestPenaltyAmount = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int64 operate_penalty_amount = 3; + * @return {number} + */ +proto.escrow.StakePenaltyResult.prototype.getOperatePenaltyAmount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.escrow.StakePenaltyResult} returns this + */ +proto.escrow.StakePenaltyResult.prototype.setOperatePenaltyAmount = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional string operator_id = 4; + * @return {string} + */ +proto.escrow.StakePenaltyResult.prototype.getOperatorId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.escrow.StakePenaltyResult} returns this + */ +proto.escrow.StakePenaltyResult.prototype.setOperatorId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional google.protobuf.Timestamp receive_time = 5; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.escrow.StakePenaltyResult.prototype.getReceiveTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.escrow.StakePenaltyResult} returns this +*/ +proto.escrow.StakePenaltyResult.prototype.setReceiveTime = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.escrow.StakePenaltyResult} returns this + */ +proto.escrow.StakePenaltyResult.prototype.clearReceiveTime = function() { + return this.setReceiveTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.escrow.StakePenaltyResult.prototype.hasReceiveTime = function() { + return jspb.Message.getField(this, 5) != null; +}; + + + + + +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_, 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.escrow.SignedStakePenaltyResult.prototype.toObject = function(opt_includeInstance) { + return proto.escrow.SignedStakePenaltyResult.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.escrow.SignedStakePenaltyResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.SignedStakePenaltyResult.toObject = function(includeInstance, msg) { + var f, obj = { + data: (f = msg.getData()) && proto.escrow.StakePenaltyResult.toObject(includeInstance, f), + signature: msg.getSignature_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.escrow.SignedStakePenaltyResult} + */ +proto.escrow.SignedStakePenaltyResult.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.escrow.SignedStakePenaltyResult; + return proto.escrow.SignedStakePenaltyResult.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.escrow.SignedStakePenaltyResult} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.escrow.SignedStakePenaltyResult} + */ +proto.escrow.SignedStakePenaltyResult.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.escrow.StakePenaltyResult; + reader.readMessage(value,proto.escrow.StakePenaltyResult.deserializeBinaryFromReader); + msg.setData(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSignature(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.escrow.SignedStakePenaltyResult.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.escrow.SignedStakePenaltyResult.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.escrow.SignedStakePenaltyResult} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.escrow.SignedStakePenaltyResult.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getData(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.escrow.StakePenaltyResult.serializeBinaryToWriter + ); + } + f = message.getSignature_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional StakePenaltyResult data = 1; + * @return {?proto.escrow.StakePenaltyResult} + */ +proto.escrow.SignedStakePenaltyResult.prototype.getData = function() { + return /** @type{?proto.escrow.StakePenaltyResult} */ ( + jspb.Message.getWrapperField(this, proto.escrow.StakePenaltyResult, 1)); +}; + + +/** + * @param {?proto.escrow.StakePenaltyResult|undefined} value + * @return {!proto.escrow.SignedStakePenaltyResult} returns this +*/ +proto.escrow.SignedStakePenaltyResult.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.escrow.SignedStakePenaltyResult} returns this + */ +proto.escrow.SignedStakePenaltyResult.prototype.clearData = function() { + return this.setData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.escrow.SignedStakePenaltyResult.prototype.hasData = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bytes signature = 2; + * @return {!(string|Uint8Array)} + */ +proto.escrow.SignedStakePenaltyResult.prototype.getSignature = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes signature = 2; + * This is a type-conversion wrapper around `getSignature()` + * @return {string} + */ +proto.escrow.SignedStakePenaltyResult.prototype.getSignature_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSignature())); +}; + + +/** + * optional bytes signature = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSignature()` + * @return {!Uint8Array} + */ +proto.escrow.SignedStakePenaltyResult.prototype.getSignature_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSignature())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.escrow.SignedStakePenaltyResult} returns this + */ +proto.escrow.SignedStakePenaltyResult.prototype.setSignature = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * @enum {number} + */ +proto.escrow.TokenType = { + BTT: 0 +}; + +/** + * @enum {number} + */ +proto.escrow.Schedule = { + MONTHLY: 0, + QUARTERLY: 1, + ANNUALLY: 2, + CUSTOMIZED: 3 +}; + +/** + * @enum {number} + */ +proto.escrow.ContractType = { + REGULAR: 0, + PLAN: 1, + REVISE: 2 +}; + +/** + * @enum {number} + */ +proto.escrow.EscrowStatus = { + INITIATED: 0, + ACTIVE: 1, + CANCELED: 2, + CLOSED: 3, + NOTSTART: 4, + NOTSTART_PAID: 5 +}; + +/** + * @enum {number} + */ +proto.escrow.StakeStatus = { + PROCEEDING: 0, + FAIL: 1 +}; + +/** + * @enum {number} + */ +proto.escrow.OperationType = { + STAKE: 0, + CHEAT_PENALTY: 1, + LOST_SHARD_PENALTY: 2 }; goog.object.extend(exports, proto.escrow); diff --git a/js/protos/guard/guard_pb.js b/js/protos/guard/guard_pb.js index b170439f..7a470c44 100644 --- a/js/protos/guard/guard_pb.js +++ b/js/protos/guard/guard_pb.js @@ -1129,7 +1129,9 @@ proto.guard.DailySummary.toObject = function(includeInstance, msg) { newContracts: jspb.Message.getFieldWithDefault(msg, 6, 0), newContractsHost: jspb.Message.getFieldWithDefault(msg, 7, 0), newContractsRenter: jspb.Message.getFieldWithDefault(msg, 8, 0), - newContractsAveragePrice: jspb.Message.getFieldWithDefault(msg, 9, 0) + newContractsAveragePrice: jspb.Message.getFieldWithDefault(msg, 9, 0), + newFiles: jspb.Message.getFieldWithDefault(msg, 10, 0), + newShardsSize: jspb.Message.getFieldWithDefault(msg, 11, 0) }; if (includeInstance) { @@ -1204,6 +1206,14 @@ proto.guard.DailySummary.deserializeBinaryFromReader = function(msg, reader) { var value = /** @type {number} */ (reader.readInt64()); msg.setNewContractsAveragePrice(value); break; + case 10: + var value = /** @type {number} */ (reader.readInt64()); + msg.setNewFiles(value); + break; + case 11: + var value = /** @type {number} */ (reader.readInt64()); + msg.setNewShardsSize(value); + break; default: reader.skipField(); break; @@ -1298,6 +1308,20 @@ proto.guard.DailySummary.serializeBinaryToWriter = function(message, writer) { f ); } + f = message.getNewFiles(); + if (f !== 0) { + writer.writeInt64( + 10, + f + ); + } + f = message.getNewShardsSize(); + if (f !== 0) { + writer.writeInt64( + 11, + f + ); + } }; @@ -1525,6 +1549,42 @@ proto.guard.DailySummary.prototype.setNewContractsAveragePrice = function(value) }; +/** + * optional int64 new_files = 10; + * @return {number} + */ +proto.guard.DailySummary.prototype.getNewFiles = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.guard.DailySummary} returns this + */ +proto.guard.DailySummary.prototype.setNewFiles = function(value) { + return jspb.Message.setProto3IntField(this, 10, value); +}; + + +/** + * optional int64 new_shards_size = 11; + * @return {number} + */ +proto.guard.DailySummary.prototype.getNewShardsSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.guard.DailySummary} returns this + */ +proto.guard.DailySummary.prototype.setNewShardsSize = function(value) { + return jspb.Message.setProto3IntField(this, 11, value); +}; + + /** * List of repeated fields within this message type. diff --git a/protos/escrow/escrow.pb.go b/protos/escrow/escrow.pb.go index 1910c11e..494fcaa8 100644 --- a/protos/escrow/escrow.pb.go +++ b/protos/escrow/escrow.pb.go @@ -152,6 +152,59 @@ func (EscrowStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptor_92a6463c7f7e20b5, []int{3} } +type StakeStatus int32 + +const ( + StakeStatus_PROCEEDING StakeStatus = 0 + StakeStatus_FAIL StakeStatus = 1 +) + +var StakeStatus_name = map[int32]string{ + 0: "PROCEEDING", + 1: "FAIL", +} + +var StakeStatus_value = map[string]int32{ + "PROCEEDING": 0, + "FAIL": 1, +} + +func (x StakeStatus) String() string { + return proto.EnumName(StakeStatus_name, int32(x)) +} + +func (StakeStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_92a6463c7f7e20b5, []int{4} +} + +type OperationType int32 + +const ( + OperationType_STAKE OperationType = 0 + OperationType_CHEAT_PENALTY OperationType = 1 + OperationType_LOST_SHARD_PENALTY OperationType = 2 +) + +var OperationType_name = map[int32]string{ + 0: "STAKE", + 1: "CHEAT_PENALTY", + 2: "LOST_SHARD_PENALTY", +} + +var OperationType_value = map[string]int32{ + "STAKE": 0, + "CHEAT_PENALTY": 1, + "LOST_SHARD_PENALTY": 2, +} + +func (x OperationType) String() string { + return proto.EnumName(OperationType_name, int32(x)) +} + +func (OperationType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_92a6463c7f7e20b5, []int{5} +} + type ContractID struct { ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty" pg:"contract_id"` Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" pg:"address"` @@ -2586,1666 +2639,1666 @@ func (m *SignedBalanceResult) GetEscrowSignature() []byte { func (*SignedBalanceResult) XXX_MessageName() string { return "escrow.SignedBalanceResult" } -func init() { - proto.RegisterEnum("escrow.TokenType", TokenType_name, TokenType_value) - golang_proto.RegisterEnum("escrow.TokenType", TokenType_name, TokenType_value) - proto.RegisterEnum("escrow.Schedule", Schedule_name, Schedule_value) - golang_proto.RegisterEnum("escrow.Schedule", Schedule_name, Schedule_value) - proto.RegisterEnum("escrow.ContractType", ContractType_name, ContractType_value) - golang_proto.RegisterEnum("escrow.ContractType", ContractType_name, ContractType_value) - proto.RegisterEnum("escrow.EscrowStatus", EscrowStatus_name, EscrowStatus_value) - golang_proto.RegisterEnum("escrow.EscrowStatus", EscrowStatus_name, EscrowStatus_value) - proto.RegisterType((*ContractID)(nil), "escrow.ContractID") - golang_proto.RegisterType((*ContractID)(nil), "escrow.ContractID") - proto.RegisterType((*ContractIDBatch)(nil), "escrow.ContractIDBatch") - golang_proto.RegisterType((*ContractIDBatch)(nil), "escrow.ContractIDBatch") - proto.RegisterType((*SignedContractID)(nil), "escrow.SignedContractID") - golang_proto.RegisterType((*SignedContractID)(nil), "escrow.SignedContractID") - proto.RegisterType((*SignedContractIDBatch)(nil), "escrow.SignedContractIDBatch") - golang_proto.RegisterType((*SignedContractIDBatch)(nil), "escrow.SignedContractIDBatch") - proto.RegisterType((*SignedModifyContractIDBatch)(nil), "escrow.SignedModifyContractIDBatch") - golang_proto.RegisterType((*SignedModifyContractIDBatch)(nil), "escrow.SignedModifyContractIDBatch") - proto.RegisterType((*EscrowContract)(nil), "escrow.EscrowContract") - golang_proto.RegisterType((*EscrowContract)(nil), "escrow.EscrowContract") - proto.RegisterType((*SignedEscrowContract)(nil), "escrow.SignedEscrowContract") - golang_proto.RegisterType((*SignedEscrowContract)(nil), "escrow.SignedEscrowContract") - proto.RegisterType((*EscrowContractRequest)(nil), "escrow.EscrowContractRequest") - golang_proto.RegisterType((*EscrowContractRequest)(nil), "escrow.EscrowContractRequest") - proto.RegisterType((*Escrow)(nil), "escrow.Escrow") - golang_proto.RegisterType((*Escrow)(nil), "escrow.Escrow") - proto.RegisterType((*SubmitContractResult)(nil), "escrow.SubmitContractResult") - golang_proto.RegisterType((*SubmitContractResult)(nil), "escrow.SubmitContractResult") - proto.RegisterType((*SignedSubmitContractResult)(nil), "escrow.SignedSubmitContractResult") - golang_proto.RegisterType((*SignedSubmitContractResult)(nil), "escrow.SignedSubmitContractResult") - proto.RegisterType((*StartEscrowResult)(nil), "escrow.StartEscrowResult") - golang_proto.RegisterType((*StartEscrowResult)(nil), "escrow.StartEscrowResult") - proto.RegisterType((*SignedStartEscrowResult)(nil), "escrow.SignedStartEscrowResult") - golang_proto.RegisterType((*SignedStartEscrowResult)(nil), "escrow.SignedStartEscrowResult") - proto.RegisterType((*PayinRequest)(nil), "escrow.PayinRequest") - golang_proto.RegisterType((*PayinRequest)(nil), "escrow.PayinRequest") - proto.RegisterType((*SignedPayinRequest)(nil), "escrow.SignedPayinRequest") - golang_proto.RegisterType((*SignedPayinRequest)(nil), "escrow.SignedPayinRequest") - proto.RegisterType((*PayinResult)(nil), "escrow.PayinResult") - golang_proto.RegisterType((*PayinResult)(nil), "escrow.PayinResult") - proto.RegisterType((*SignedPayinResult)(nil), "escrow.SignedPayinResult") - golang_proto.RegisterType((*SignedPayinResult)(nil), "escrow.SignedPayinResult") - proto.RegisterType((*PayinStatus)(nil), "escrow.PayinStatus") - golang_proto.RegisterType((*PayinStatus)(nil), "escrow.PayinStatus") - proto.RegisterType((*SignedPayinStatus)(nil), "escrow.SignedPayinStatus") - golang_proto.RegisterType((*SignedPayinStatus)(nil), "escrow.SignedPayinStatus") - proto.RegisterType((*PayoutStatus)(nil), "escrow.PayoutStatus") - golang_proto.RegisterType((*PayoutStatus)(nil), "escrow.PayoutStatus") - proto.RegisterType((*SignedPayoutStatus)(nil), "escrow.SignedPayoutStatus") - golang_proto.RegisterType((*SignedPayoutStatus)(nil), "escrow.SignedPayoutStatus") - proto.RegisterType((*SignedPayoutStatusBatch)(nil), "escrow.SignedPayoutStatusBatch") - golang_proto.RegisterType((*SignedPayoutStatusBatch)(nil), "escrow.SignedPayoutStatusBatch") - proto.RegisterType((*CancelContractRequest)(nil), "escrow.CancelContractRequest") - golang_proto.RegisterType((*CancelContractRequest)(nil), "escrow.CancelContractRequest") - proto.RegisterType((*SignedCancelRequest)(nil), "escrow.SignedCancelRequest") - golang_proto.RegisterType((*SignedCancelRequest)(nil), "escrow.SignedCancelRequest") - proto.RegisterType((*CancelContractResult)(nil), "escrow.CancelContractResult") - golang_proto.RegisterType((*CancelContractResult)(nil), "escrow.CancelContractResult") - proto.RegisterType((*SignedCancelContractResult)(nil), "escrow.SignedCancelContractResult") - golang_proto.RegisterType((*SignedCancelContractResult)(nil), "escrow.SignedCancelContractResult") - proto.RegisterType((*PayoutAddress)(nil), "escrow.PayoutAddress") - golang_proto.RegisterType((*PayoutAddress)(nil), "escrow.PayoutAddress") - proto.RegisterType((*SignedPayoutAddress)(nil), "escrow.SignedPayoutAddress") - golang_proto.RegisterType((*SignedPayoutAddress)(nil), "escrow.SignedPayoutAddress") - proto.RegisterType((*Payment)(nil), "escrow.Payment") - golang_proto.RegisterType((*Payment)(nil), "escrow.Payment") - proto.RegisterType((*PaymentResult)(nil), "escrow.PaymentResult") - golang_proto.RegisterType((*PaymentResult)(nil), "escrow.PaymentResult") - proto.RegisterType((*SignedPaymentResult)(nil), "escrow.SignedPaymentResult") - golang_proto.RegisterType((*SignedPaymentResult)(nil), "escrow.SignedPaymentResult") - proto.RegisterType((*BalanceResult)(nil), "escrow.BalanceResult") - golang_proto.RegisterType((*BalanceResult)(nil), "escrow.BalanceResult") - proto.RegisterType((*SignedBalanceResult)(nil), "escrow.SignedBalanceResult") - golang_proto.RegisterType((*SignedBalanceResult)(nil), "escrow.SignedBalanceResult") -} - -func init() { proto.RegisterFile("protos/escrow/escrow.proto", fileDescriptor_92a6463c7f7e20b5) } -func init() { golang_proto.RegisterFile("protos/escrow/escrow.proto", fileDescriptor_92a6463c7f7e20b5) } -var fileDescriptor_92a6463c7f7e20b5 = []byte{ - // 2068 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x19, 0x49, 0x6f, 0x23, 0x59, - 0x39, 0xe5, 0xdd, 0x9f, 0xb7, 0xca, 0xeb, 0x64, 0xda, 0xed, 0x4c, 0x16, 0x3c, 0x9a, 0x21, 0x74, - 0xcf, 0x38, 0x33, 0x01, 0xb1, 0x48, 0xc0, 0xe0, 0x38, 0x56, 0x30, 0x72, 0x1c, 0x53, 0x76, 0xb7, - 0xe8, 0xb9, 0x58, 0x65, 0xd7, 0xb3, 0x53, 0x1a, 0xbb, 0x2a, 0xd4, 0x42, 0x8f, 0x91, 0xf8, 0x0f, - 0x20, 0x2e, 0x88, 0x03, 0xe2, 0xc0, 0x8d, 0xf3, 0x00, 0x12, 0x17, 0x8e, 0xcd, 0x6d, 0xce, 0x1c, - 0x00, 0x75, 0xff, 0x11, 0xf4, 0xb6, 0xda, 0x5c, 0xe9, 0x24, 0xee, 0x11, 0x3d, 0x27, 0xd7, 0xfb, - 0xde, 0xb7, 0xbd, 0x6f, 0x7f, 0xcf, 0x50, 0xbb, 0xb2, 0x4c, 0xc7, 0xb4, 0x8f, 0xb0, 0x3d, 0xb1, - 0xcc, 0x67, 0xfc, 0xa7, 0x41, 0x81, 0x28, 0xc3, 0x56, 0xb5, 0x0f, 0x67, 0xba, 0x73, 0xe9, 0x8e, - 0x1b, 0x13, 0x73, 0x71, 0xe4, 0x58, 0xa6, 0xf1, 0x81, 0x6b, 0x1f, 0x51, 0x8c, 0xb1, 0x3b, 0x3d, - 0x9a, 0x99, 0x33, 0x93, 0x2e, 0xe8, 0x17, 0xa3, 0xac, 0xed, 0xcf, 0x4c, 0x73, 0x36, 0xc7, 0x3e, - 0x96, 0xa3,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0x50, 0xbb, 0x0a, 0x07, 0xd2, 0x61, 0x5a, 0x01, 0xc3, 0x5d, 0xf4, 0x19, 0x84, 0x38, 0xcf, 0xc2, - 0x53, 0x6c, 0x61, 0x63, 0x82, 0xab, 0x05, 0xe6, 0x3c, 0x0f, 0x80, 0xbe, 0x0d, 0xf7, 0x27, 0xae, - 0xed, 0x98, 0x0b, 0xfd, 0x97, 0x98, 0x33, 0x19, 0x5d, 0x61, 0x4b, 0x37, 0xb5, 0x6a, 0x91, 0xb2, - 0xda, 0xf6, 0xb6, 0x19, 0xc3, 0x3e, 0xdd, 0x44, 0x87, 0x90, 0xa2, 0xa7, 0x2b, 0x51, 0x35, 0xb7, - 0xa2, 0xf1, 0x48, 0x0f, 0x48, 0x31, 0x98, 0x8d, 0x0d, 0x47, 0x37, 0x66, 0xd8, 0x70, 0x84, 0xe1, - 0xca, 0xc2, 0xc6, 0x62, 0x83, 0x99, 0xae, 0xfe, 0x07, 0x09, 0xb6, 0x58, 0x1a, 0x44, 0x22, 0xea, - 0x18, 0x72, 0x22, 0x7c, 0x78, 0x0e, 0xbc, 0x25, 0x64, 0x86, 0x31, 0x15, 0x0f, 0x8f, 0x38, 0x8c, - 0x05, 0x59, 0x34, 0xef, 0xca, 0x14, 0x3c, 0x10, 0x50, 0xf4, 0x0d, 0x90, 0x79, 0xa0, 0x45, 0xc3, - 0xbc, 0xc2, 0xe0, 0x1e, 0x6a, 0xfd, 0xb7, 0x12, 0x6c, 0x47, 0x04, 0xe2, 0x9f, 0xbb, 0xd8, 0x76, - 0xd0, 0x77, 0x43, 0x1a, 0x26, 0x0f, 0x0b, 0xc7, 0x6f, 0x7b, 0xce, 0x8b, 0x39, 0x51, 0x40, 0xcf, - 0x1f, 0x89, 0x64, 0x98, 0x5c, 0xaa, 0x86, 0x81, 0xe7, 0x3c, 0x57, 0x77, 0x1a, 0xbc, 0xec, 0xf2, - 0xe2, 0xc3, 0x36, 0x5b, 0xe6, 0x62, 0xa1, 0x3b, 0x3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 0x14, 0x5b, 0xe2, 0x18, 0x6f, 0x89, 0x6d, 0x7f, 0x83, 0x9c, 0xe0, - 0xe4, 0xe3, 0xe7, 0x2f, 0xf6, 0xa4, 0x2f, 0x5e, 0xec, 0x49, 0xff, 0x7d, 0xb1, 0x27, 0xfd, 0xee, - 0xe5, 0x9e, 0xf4, 0x8f, 0x97, 0x7b, 0xd2, 0xf3, 0x97, 0x7b, 0x12, 0x94, 0x75, 0xb3, 0x31, 0x76, - 0xa6, 0x36, 0x3f, 0xff, 0x49, 0x81, 0xa5, 0x59, 0x9f, 0xd4, 0xea, 0xbe, 0xf4, 0x09, 0x7f, 0x7a, - 0x1c, 0x67, 0x68, 0xf1, 0xfe, 0xe6, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x87, 0x9c, 0x26, 0x5f, - 0x9d, 0x1d, 0x00, 0x00, +type SignedStakeRequest struct { + Data *StakeRequest `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty" pg:"data"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"` + XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"` + XXX_unrecognized []byte `json:"-" pg:"-"` + XXX_sizecache int32 `json:"-" pg:"-"` } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn +func (m *SignedStakeRequest) Reset() { *m = SignedStakeRequest{} } +func (m *SignedStakeRequest) String() string { return proto.CompactTextString(m) } +func (*SignedStakeRequest) ProtoMessage() {} +func (*SignedStakeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_92a6463c7f7e20b5, []int{33} +} +func (m *SignedStakeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SignedStakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SignedStakeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SignedStakeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignedStakeRequest.Merge(m, src) +} +func (m *SignedStakeRequest) XXX_Size() int { + return m.Size() +} +func (m *SignedStakeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SignedStakeRequest.DiscardUnknown(m) +} -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +var xxx_messageInfo_SignedStakeRequest proto.InternalMessageInfo -// EscrowServiceClient is the client API for EscrowService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type EscrowServiceClient interface { - // buyer submit contracts to escrow after buyer and seller agreed contract - // one contract is one buyer to one seller, and is one escrow in escrow service - // buyer can submit multiple contracts in one request - // return same number of results as request contracts - SubmitContracts(ctx context.Context, in *EscrowContractRequest, opts ...grpc.CallOption) (*SignedSubmitContractResult, error) - StartEscrow(ctx context.Context, in *EscrowContractRequest, opts ...grpc.CallOption) (*SignedStartEscrowResult, error) - // after submit contract, buyer request to pay in - // escrow will transfer contract amount from buyer wallet to escrow wallet - PayIn(ctx context.Context, in *SignedPayinRequest, opts ...grpc.CallOption) (*SignedPayinResult, error) - // seller use this to check if a contract is paid in - IsPaid(ctx context.Context, in *SignedContractID, opts ...grpc.CallOption) (*SignedPayinStatus, error) - // check escrow pay out to seller status of a contract - GetPayOutStatus(ctx context.Context, in *SignedContractID, opts ...grpc.CallOption) (*SignedPayoutStatus, error) - //get the payout status in batch - GetPayOutStatusBatch(ctx context.Context, in *SignedContractIDBatch, opts ...grpc.CallOption) (*SignedPayoutStatusBatch, error) - //get the modified payout status in batch - GetModifyPayOutStatusBatch(ctx context.Context, in *SignedModifyContractIDBatch, opts ...grpc.CallOption) (*SignedPayoutStatusBatch, error) - // auth request to cancel the contract - // escrow will cancel the left payments to seller - CancelContracts(ctx context.Context, in *SignedCancelRequest, opts ...grpc.CallOption) (*SignedCancelContractResult, error) - // seller query what new payments to receive - MyPayment(ctx context.Context, in *SignedPayoutAddress, opts ...grpc.CallOption) (*SignedPaymentResult, error) - // query balance and create account if account not exist - BalanceOf(ctx context.Context, in *ledger.SignedCreateAccountRequest, opts ...grpc.CallOption) (*SignedBalanceResult, error) - // Creates a channel on the ledger and returns the ID of the ledger - CreateChannel(ctx context.Context, in *ledger.SignedChannelCommit, opts ...grpc.CallOption) (*ledger.ChannelID, error) - // Closes a channel on the ledger. - CloseChannel(ctx context.Context, in *ledger.SignedChannelState, opts ...grpc.CallOption) (*ledger.ChannelClosed, error) - //use escrow as proxy to do the payment - Pay(ctx context.Context, in *ledger.SignedTransferRequest, opts ...grpc.CallOption) (*ledger.TransferResult, error) +func (m *SignedStakeRequest) GetData() *StakeRequest { + if m != nil { + return m.Data + } + return nil } -type escrowServiceClient struct { - cc *grpc.ClientConn +func (m *SignedStakeRequest) GetSignature() []byte { + if m != nil { + return m.Signature + } + return nil } -func NewEscrowServiceClient(cc *grpc.ClientConn) EscrowServiceClient { - return &escrowServiceClient{cc} +func (*SignedStakeRequest) XXX_MessageName() string { + return "escrow.SignedStakeRequest" } -func (c *escrowServiceClient) SubmitContracts(ctx context.Context, in *EscrowContractRequest, opts ...grpc.CallOption) (*SignedSubmitContractResult, error) { - out := new(SignedSubmitContractResult) - err := c.cc.Invoke(ctx, "/escrow.EscrowService/SubmitContracts", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type StakeRequest struct { + StakerId string `protobuf:"bytes,1,opt,name=staker_id,json=stakerId,proto3" json:"staker_id,omitempty" pg:"staker_id"` + StakeAmount int64 `protobuf:"varint,2,opt,name=stake_amount,json=stakeAmount,proto3" json:"stake_amount,omitempty" pg:"stake_amount"` + TransferRequest *ledger.SignedTransferRequest `protobuf:"bytes,3,opt,name=transfer_request,json=transferRequest,proto3" json:"transfer_request,omitempty" pg:"transfer_request"` + RequestTime time.Time `protobuf:"bytes,4,opt,name=request_time,json=requestTime,proto3,stdtime" json:"request_time" pg:"request_time"` + XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"` + XXX_unrecognized []byte `json:"-" pg:"-"` + XXX_sizecache int32 `json:"-" pg:"-"` } -func (c *escrowServiceClient) StartEscrow(ctx context.Context, in *EscrowContractRequest, opts ...grpc.CallOption) (*SignedStartEscrowResult, error) { - out := new(SignedStartEscrowResult) - err := c.cc.Invoke(ctx, "/escrow.EscrowService/StartEscrow", in, out, opts...) - if err != nil { - return nil, err +func (m *StakeRequest) Reset() { *m = StakeRequest{} } +func (m *StakeRequest) String() string { return proto.CompactTextString(m) } +func (*StakeRequest) ProtoMessage() {} +func (*StakeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_92a6463c7f7e20b5, []int{34} +} +func (m *StakeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StakeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *StakeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StakeRequest.Merge(m, src) +} +func (m *StakeRequest) XXX_Size() int { + return m.Size() +} +func (m *StakeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StakeRequest.DiscardUnknown(m) } -func (c *escrowServiceClient) PayIn(ctx context.Context, in *SignedPayinRequest, opts ...grpc.CallOption) (*SignedPayinResult, error) { - out := new(SignedPayinResult) - err := c.cc.Invoke(ctx, "/escrow.EscrowService/PayIn", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_StakeRequest proto.InternalMessageInfo + +func (m *StakeRequest) GetStakerId() string { + if m != nil { + return m.StakerId } - return out, nil + return "" } -func (c *escrowServiceClient) IsPaid(ctx context.Context, in *SignedContractID, opts ...grpc.CallOption) (*SignedPayinStatus, error) { - out := new(SignedPayinStatus) - err := c.cc.Invoke(ctx, "/escrow.EscrowService/IsPaid", in, out, opts...) - if err != nil { - return nil, err +func (m *StakeRequest) GetStakeAmount() int64 { + if m != nil { + return m.StakeAmount } - return out, nil + return 0 } -func (c *escrowServiceClient) GetPayOutStatus(ctx context.Context, in *SignedContractID, opts ...grpc.CallOption) (*SignedPayoutStatus, error) { - out := new(SignedPayoutStatus) - err := c.cc.Invoke(ctx, "/escrow.EscrowService/GetPayOutStatus", in, out, opts...) - if err != nil { - return nil, err +func (m *StakeRequest) GetTransferRequest() *ledger.SignedTransferRequest { + if m != nil { + return m.TransferRequest } - return out, nil + return nil } -func (c *escrowServiceClient) GetPayOutStatusBatch(ctx context.Context, in *SignedContractIDBatch, opts ...grpc.CallOption) (*SignedPayoutStatusBatch, error) { - out := new(SignedPayoutStatusBatch) - err := c.cc.Invoke(ctx, "/escrow.EscrowService/GetPayOutStatusBatch", in, out, opts...) - if err != nil { - return nil, err +func (m *StakeRequest) GetRequestTime() time.Time { + if m != nil { + return m.RequestTime } - return out, nil + return time.Time{} } -func (c *escrowServiceClient) GetModifyPayOutStatusBatch(ctx context.Context, in *SignedModifyContractIDBatch, opts ...grpc.CallOption) (*SignedPayoutStatusBatch, error) { - out := new(SignedPayoutStatusBatch) - err := c.cc.Invoke(ctx, "/escrow.EscrowService/GetModifyPayOutStatusBatch", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (*StakeRequest) XXX_MessageName() string { + return "escrow.StakeRequest" } -func (c *escrowServiceClient) CancelContracts(ctx context.Context, in *SignedCancelRequest, opts ...grpc.CallOption) (*SignedCancelContractResult, error) { - out := new(SignedCancelContractResult) - err := c.cc.Invoke(ctx, "/escrow.EscrowService/CancelContracts", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type StakeResult struct { + StakerId string `protobuf:"bytes,1,opt,name=staker_id,json=stakerId,proto3" json:"staker_id,omitempty" pg:"staker_id"` + Balance int64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty" pg:"balance"` + MatureAmount int64 `protobuf:"varint,3,opt,name=mature_amount,json=matureAmount,proto3" json:"mature_amount,omitempty" pg:"mature_amount"` + PendingAmount int64 `protobuf:"varint,4,opt,name=pending_amount,json=pendingAmount,proto3" json:"pending_amount,omitempty" pg:"pending_amount"` + Ledgers []*StakeLedger `protobuf:"bytes,5,rep,name=ledgers,proto3" json:"ledgers,omitempty" pg:"ledgers"` + UnfinishLedgers []*UnfinishStakeLedger `protobuf:"bytes,6,rep,name=unfinish_ledgers,json=unfinishLedgers,proto3" json:"unfinish_ledgers,omitempty" pg:"unfinish_ledgers"` + XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"` + XXX_unrecognized []byte `json:"-" pg:"-"` + XXX_sizecache int32 `json:"-" pg:"-"` } -func (c *escrowServiceClient) MyPayment(ctx context.Context, in *SignedPayoutAddress, opts ...grpc.CallOption) (*SignedPaymentResult, error) { - out := new(SignedPaymentResult) - err := c.cc.Invoke(ctx, "/escrow.EscrowService/MyPayment", in, out, opts...) - if err != nil { - return nil, err +func (m *StakeResult) Reset() { *m = StakeResult{} } +func (m *StakeResult) String() string { return proto.CompactTextString(m) } +func (*StakeResult) ProtoMessage() {} +func (*StakeResult) Descriptor() ([]byte, []int) { + return fileDescriptor_92a6463c7f7e20b5, []int{35} +} +func (m *StakeResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StakeResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StakeResult.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return out, nil +} +func (m *StakeResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_StakeResult.Merge(m, src) +} +func (m *StakeResult) XXX_Size() int { + return m.Size() +} +func (m *StakeResult) XXX_DiscardUnknown() { + xxx_messageInfo_StakeResult.DiscardUnknown(m) } -func (c *escrowServiceClient) BalanceOf(ctx context.Context, in *ledger.SignedCreateAccountRequest, opts ...grpc.CallOption) (*SignedBalanceResult, error) { - out := new(SignedBalanceResult) - err := c.cc.Invoke(ctx, "/escrow.EscrowService/BalanceOf", in, out, opts...) - if err != nil { - return nil, err +var xxx_messageInfo_StakeResult proto.InternalMessageInfo + +func (m *StakeResult) GetStakerId() string { + if m != nil { + return m.StakerId } - return out, nil + return "" } -func (c *escrowServiceClient) CreateChannel(ctx context.Context, in *ledger.SignedChannelCommit, opts ...grpc.CallOption) (*ledger.ChannelID, error) { - out := new(ledger.ChannelID) - err := c.cc.Invoke(ctx, "/escrow.EscrowService/CreateChannel", in, out, opts...) - if err != nil { - return nil, err +func (m *StakeResult) GetBalance() int64 { + if m != nil { + return m.Balance } - return out, nil + return 0 } -func (c *escrowServiceClient) CloseChannel(ctx context.Context, in *ledger.SignedChannelState, opts ...grpc.CallOption) (*ledger.ChannelClosed, error) { - out := new(ledger.ChannelClosed) - err := c.cc.Invoke(ctx, "/escrow.EscrowService/CloseChannel", in, out, opts...) - if err != nil { - return nil, err +func (m *StakeResult) GetMatureAmount() int64 { + if m != nil { + return m.MatureAmount } - return out, nil + return 0 } -func (c *escrowServiceClient) Pay(ctx context.Context, in *ledger.SignedTransferRequest, opts ...grpc.CallOption) (*ledger.TransferResult, error) { - out := new(ledger.TransferResult) - err := c.cc.Invoke(ctx, "/escrow.EscrowService/Pay", in, out, opts...) - if err != nil { - return nil, err +func (m *StakeResult) GetPendingAmount() int64 { + if m != nil { + return m.PendingAmount } - return out, nil + return 0 } -// EscrowServiceServer is the server API for EscrowService service. -type EscrowServiceServer interface { - // buyer submit contracts to escrow after buyer and seller agreed contract - // one contract is one buyer to one seller, and is one escrow in escrow service - // buyer can submit multiple contracts in one request - // return same number of results as request contracts - SubmitContracts(context.Context, *EscrowContractRequest) (*SignedSubmitContractResult, error) - StartEscrow(context.Context, *EscrowContractRequest) (*SignedStartEscrowResult, error) - // after submit contract, buyer request to pay in - // escrow will transfer contract amount from buyer wallet to escrow wallet - PayIn(context.Context, *SignedPayinRequest) (*SignedPayinResult, error) - // seller use this to check if a contract is paid in - IsPaid(context.Context, *SignedContractID) (*SignedPayinStatus, error) - // check escrow pay out to seller status of a contract - GetPayOutStatus(context.Context, *SignedContractID) (*SignedPayoutStatus, error) - //get the payout status in batch - GetPayOutStatusBatch(context.Context, *SignedContractIDBatch) (*SignedPayoutStatusBatch, error) - //get the modified payout status in batch - GetModifyPayOutStatusBatch(context.Context, *SignedModifyContractIDBatch) (*SignedPayoutStatusBatch, error) - // auth request to cancel the contract - // escrow will cancel the left payments to seller - CancelContracts(context.Context, *SignedCancelRequest) (*SignedCancelContractResult, error) - // seller query what new payments to receive - MyPayment(context.Context, *SignedPayoutAddress) (*SignedPaymentResult, error) - // query balance and create account if account not exist - BalanceOf(context.Context, *ledger.SignedCreateAccountRequest) (*SignedBalanceResult, error) - // Creates a channel on the ledger and returns the ID of the ledger - CreateChannel(context.Context, *ledger.SignedChannelCommit) (*ledger.ChannelID, error) - // Closes a channel on the ledger. - CloseChannel(context.Context, *ledger.SignedChannelState) (*ledger.ChannelClosed, error) - //use escrow as proxy to do the payment - Pay(context.Context, *ledger.SignedTransferRequest) (*ledger.TransferResult, error) +func (m *StakeResult) GetLedgers() []*StakeLedger { + if m != nil { + return m.Ledgers + } + return nil } -// UnimplementedEscrowServiceServer can be embedded to have forward compatible implementations. -type UnimplementedEscrowServiceServer struct { +func (m *StakeResult) GetUnfinishLedgers() []*UnfinishStakeLedger { + if m != nil { + return m.UnfinishLedgers + } + return nil } -func (*UnimplementedEscrowServiceServer) SubmitContracts(ctx context.Context, req *EscrowContractRequest) (*SignedSubmitContractResult, error) { - return nil, status.Errorf(codes.Unimplemented, "method SubmitContracts not implemented") -} -func (*UnimplementedEscrowServiceServer) StartEscrow(ctx context.Context, req *EscrowContractRequest) (*SignedStartEscrowResult, error) { - return nil, status.Errorf(codes.Unimplemented, "method StartEscrow not implemented") +func (*StakeResult) XXX_MessageName() string { + return "escrow.StakeResult" } -func (*UnimplementedEscrowServiceServer) PayIn(ctx context.Context, req *SignedPayinRequest) (*SignedPayinResult, error) { - return nil, status.Errorf(codes.Unimplemented, "method PayIn not implemented") -} -func (*UnimplementedEscrowServiceServer) IsPaid(ctx context.Context, req *SignedContractID) (*SignedPayinStatus, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsPaid not implemented") + +type SignedStakeResult struct { + Data *StakeResult `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty" pg:"data"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"` + XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"` + XXX_unrecognized []byte `json:"-" pg:"-"` + XXX_sizecache int32 `json:"-" pg:"-"` } -func (*UnimplementedEscrowServiceServer) GetPayOutStatus(ctx context.Context, req *SignedContractID) (*SignedPayoutStatus, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPayOutStatus not implemented") + +func (m *SignedStakeResult) Reset() { *m = SignedStakeResult{} } +func (m *SignedStakeResult) String() string { return proto.CompactTextString(m) } +func (*SignedStakeResult) ProtoMessage() {} +func (*SignedStakeResult) Descriptor() ([]byte, []int) { + return fileDescriptor_92a6463c7f7e20b5, []int{36} } -func (*UnimplementedEscrowServiceServer) GetPayOutStatusBatch(ctx context.Context, req *SignedContractIDBatch) (*SignedPayoutStatusBatch, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPayOutStatusBatch not implemented") +func (m *SignedStakeResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } -func (*UnimplementedEscrowServiceServer) GetModifyPayOutStatusBatch(ctx context.Context, req *SignedModifyContractIDBatch) (*SignedPayoutStatusBatch, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetModifyPayOutStatusBatch not implemented") +func (m *SignedStakeResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SignedStakeResult.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } } -func (*UnimplementedEscrowServiceServer) CancelContracts(ctx context.Context, req *SignedCancelRequest) (*SignedCancelContractResult, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelContracts not implemented") +func (m *SignedStakeResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignedStakeResult.Merge(m, src) } -func (*UnimplementedEscrowServiceServer) MyPayment(ctx context.Context, req *SignedPayoutAddress) (*SignedPaymentResult, error) { - return nil, status.Errorf(codes.Unimplemented, "method MyPayment not implemented") +func (m *SignedStakeResult) XXX_Size() int { + return m.Size() } -func (*UnimplementedEscrowServiceServer) BalanceOf(ctx context.Context, req *ledger.SignedCreateAccountRequest) (*SignedBalanceResult, error) { - return nil, status.Errorf(codes.Unimplemented, "method BalanceOf not implemented") +func (m *SignedStakeResult) XXX_DiscardUnknown() { + xxx_messageInfo_SignedStakeResult.DiscardUnknown(m) } -func (*UnimplementedEscrowServiceServer) CreateChannel(ctx context.Context, req *ledger.SignedChannelCommit) (*ledger.ChannelID, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateChannel not implemented") + +var xxx_messageInfo_SignedStakeResult proto.InternalMessageInfo + +func (m *SignedStakeResult) GetData() *StakeResult { + if m != nil { + return m.Data + } + return nil } -func (*UnimplementedEscrowServiceServer) CloseChannel(ctx context.Context, req *ledger.SignedChannelState) (*ledger.ChannelClosed, error) { - return nil, status.Errorf(codes.Unimplemented, "method CloseChannel not implemented") + +func (m *SignedStakeResult) GetSignature() []byte { + if m != nil { + return m.Signature + } + return nil } -func (*UnimplementedEscrowServiceServer) Pay(ctx context.Context, req *ledger.SignedTransferRequest) (*ledger.TransferResult, error) { - return nil, status.Errorf(codes.Unimplemented, "method Pay not implemented") + +func (*SignedStakeResult) XXX_MessageName() string { + return "escrow.SignedStakeResult" } -func RegisterEscrowServiceServer(s *grpc.Server, srv EscrowServiceServer) { - s.RegisterService(&_EscrowService_serviceDesc, srv) +type StakeLedger struct { + StakerId string `protobuf:"bytes,1,opt,name=staker_id,json=stakerId,proto3" json:"staker_id,omitempty" pg:"staker_id"` + Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty" pg:"amount"` + StartTime time.Time `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" pg:"start_time"` + MatureTime time.Time `protobuf:"bytes,4,opt,name=mature_time,json=matureTime,proto3,stdtime" json:"mature_time" pg:"mature_time"` + OperatorId string `protobuf:"bytes,5,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty" pg:"operator_id"` + Type OperationType `protobuf:"varint,6,opt,name=type,proto3,enum=escrow.OperationType" json:"type,omitempty" pg:"type"` + OperationLog string `protobuf:"bytes,7,opt,name=operation_log,json=operationLog,proto3" json:"operation_log,omitempty" pg:"operation_log"` + XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"` + XXX_unrecognized []byte `json:"-" pg:"-"` + XXX_sizecache int32 `json:"-" pg:"-"` } -func _EscrowService_SubmitContracts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EscrowContractRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(EscrowServiceServer).SubmitContracts(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/escrow.EscrowService/SubmitContracts", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EscrowServiceServer).SubmitContracts(ctx, req.(*EscrowContractRequest)) +func (m *StakeLedger) Reset() { *m = StakeLedger{} } +func (m *StakeLedger) String() string { return proto.CompactTextString(m) } +func (*StakeLedger) ProtoMessage() {} +func (*StakeLedger) Descriptor() ([]byte, []int) { + return fileDescriptor_92a6463c7f7e20b5, []int{37} +} +func (m *StakeLedger) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StakeLedger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StakeLedger.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *StakeLedger) XXX_Merge(src proto.Message) { + xxx_messageInfo_StakeLedger.Merge(m, src) +} +func (m *StakeLedger) XXX_Size() int { + return m.Size() +} +func (m *StakeLedger) XXX_DiscardUnknown() { + xxx_messageInfo_StakeLedger.DiscardUnknown(m) } -func _EscrowService_StartEscrow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(EscrowContractRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(EscrowServiceServer).StartEscrow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/escrow.EscrowService/StartEscrow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EscrowServiceServer).StartEscrow(ctx, req.(*EscrowContractRequest)) +var xxx_messageInfo_StakeLedger proto.InternalMessageInfo + +func (m *StakeLedger) GetStakerId() string { + if m != nil { + return m.StakerId } - return interceptor(ctx, in, info, handler) + return "" } -func _EscrowService_PayIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SignedPayinRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(EscrowServiceServer).PayIn(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/escrow.EscrowService/PayIn", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EscrowServiceServer).PayIn(ctx, req.(*SignedPayinRequest)) +func (m *StakeLedger) GetAmount() int64 { + if m != nil { + return m.Amount } - return interceptor(ctx, in, info, handler) + return 0 } -func _EscrowService_IsPaid_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SignedContractID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(EscrowServiceServer).IsPaid(ctx, in) +func (m *StakeLedger) GetStartTime() time.Time { + if m != nil { + return m.StartTime } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/escrow.EscrowService/IsPaid", + return time.Time{} +} + +func (m *StakeLedger) GetMatureTime() time.Time { + if m != nil { + return m.MatureTime } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EscrowServiceServer).IsPaid(ctx, req.(*SignedContractID)) + return time.Time{} +} + +func (m *StakeLedger) GetOperatorId() string { + if m != nil { + return m.OperatorId } - return interceptor(ctx, in, info, handler) + return "" } -func _EscrowService_GetPayOutStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SignedContractID) - if err := dec(in); err != nil { - return nil, err +func (m *StakeLedger) GetType() OperationType { + if m != nil { + return m.Type } - if interceptor == nil { - return srv.(EscrowServiceServer).GetPayOutStatus(ctx, in) + return OperationType_STAKE +} + +func (m *StakeLedger) GetOperationLog() string { + if m != nil { + return m.OperationLog } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/escrow.EscrowService/GetPayOutStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EscrowServiceServer).GetPayOutStatus(ctx, req.(*SignedContractID)) - } - return interceptor(ctx, in, info, handler) + return "" } -func _EscrowService_GetPayOutStatusBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SignedContractIDBatch) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(EscrowServiceServer).GetPayOutStatusBatch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/escrow.EscrowService/GetPayOutStatusBatch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EscrowServiceServer).GetPayOutStatusBatch(ctx, req.(*SignedContractIDBatch)) - } - return interceptor(ctx, in, info, handler) +func (*StakeLedger) XXX_MessageName() string { + return "escrow.StakeLedger" } -func _EscrowService_GetModifyPayOutStatusBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SignedModifyContractIDBatch) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(EscrowServiceServer).GetModifyPayOutStatusBatch(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/escrow.EscrowService/GetModifyPayOutStatusBatch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EscrowServiceServer).GetModifyPayOutStatusBatch(ctx, req.(*SignedModifyContractIDBatch)) - } - return interceptor(ctx, in, info, handler) +type UnfinishStakeLedger struct { + StakerId string `protobuf:"bytes,1,opt,name=staker_id,json=stakerId,proto3" json:"staker_id,omitempty" pg:"staker_id"` + Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty" pg:"amount"` + Status StakeStatus `protobuf:"varint,3,opt,name=status,proto3,enum=escrow.StakeStatus" json:"status,omitempty" pg:"status"` + FailReason string `protobuf:"bytes,4,opt,name=fail_reason,json=failReason,proto3" json:"fail_reason,omitempty" pg:"fail_reason"` + SubmitTime time.Time `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3,stdtime" json:"submit_time" pg:"submit_time"` + FailTime time.Time `protobuf:"bytes,6,opt,name=fail_time,json=failTime,proto3,stdtime" json:"fail_time" pg:"fail_time"` + XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"` + XXX_unrecognized []byte `json:"-" pg:"-"` + XXX_sizecache int32 `json:"-" pg:"-"` } -func _EscrowService_CancelContracts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SignedCancelRequest) - if err := dec(in); err != nil { - return nil, err +func (m *UnfinishStakeLedger) Reset() { *m = UnfinishStakeLedger{} } +func (m *UnfinishStakeLedger) String() string { return proto.CompactTextString(m) } +func (*UnfinishStakeLedger) ProtoMessage() {} +func (*UnfinishStakeLedger) Descriptor() ([]byte, []int) { + return fileDescriptor_92a6463c7f7e20b5, []int{38} +} +func (m *UnfinishStakeLedger) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UnfinishStakeLedger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UnfinishStakeLedger.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - if interceptor == nil { - return srv.(EscrowServiceServer).CancelContracts(ctx, in) +} +func (m *UnfinishStakeLedger) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnfinishStakeLedger.Merge(m, src) +} +func (m *UnfinishStakeLedger) XXX_Size() int { + return m.Size() +} +func (m *UnfinishStakeLedger) XXX_DiscardUnknown() { + xxx_messageInfo_UnfinishStakeLedger.DiscardUnknown(m) +} + +var xxx_messageInfo_UnfinishStakeLedger proto.InternalMessageInfo + +func (m *UnfinishStakeLedger) GetStakerId() string { + if m != nil { + return m.StakerId } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/escrow.EscrowService/CancelContracts", + return "" +} + +func (m *UnfinishStakeLedger) GetAmount() int64 { + if m != nil { + return m.Amount } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EscrowServiceServer).CancelContracts(ctx, req.(*SignedCancelRequest)) + return 0 +} + +func (m *UnfinishStakeLedger) GetStatus() StakeStatus { + if m != nil { + return m.Status } - return interceptor(ctx, in, info, handler) + return StakeStatus_PROCEEDING } -func _EscrowService_MyPayment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SignedPayoutAddress) - if err := dec(in); err != nil { - return nil, err +func (m *UnfinishStakeLedger) GetFailReason() string { + if m != nil { + return m.FailReason } - if interceptor == nil { - return srv.(EscrowServiceServer).MyPayment(ctx, in) + return "" +} + +func (m *UnfinishStakeLedger) GetSubmitTime() time.Time { + if m != nil { + return m.SubmitTime } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/escrow.EscrowService/MyPayment", + return time.Time{} +} + +func (m *UnfinishStakeLedger) GetFailTime() time.Time { + if m != nil { + return m.FailTime } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EscrowServiceServer).MyPayment(ctx, req.(*SignedPayoutAddress)) + return time.Time{} +} + +func (*UnfinishStakeLedger) XXX_MessageName() string { + return "escrow.UnfinishStakeLedger" +} + +type SignedStakePenaltyRequest struct { + Data *StakePenaltyRequest `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty" pg:"data"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"` + XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"` + XXX_unrecognized []byte `json:"-" pg:"-"` + XXX_sizecache int32 `json:"-" pg:"-"` +} + +func (m *SignedStakePenaltyRequest) Reset() { *m = SignedStakePenaltyRequest{} } +func (m *SignedStakePenaltyRequest) String() string { return proto.CompactTextString(m) } +func (*SignedStakePenaltyRequest) ProtoMessage() {} +func (*SignedStakePenaltyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_92a6463c7f7e20b5, []int{39} +} +func (m *SignedStakePenaltyRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SignedStakePenaltyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SignedStakePenaltyRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - return interceptor(ctx, in, info, handler) +} +func (m *SignedStakePenaltyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignedStakePenaltyRequest.Merge(m, src) +} +func (m *SignedStakePenaltyRequest) XXX_Size() int { + return m.Size() +} +func (m *SignedStakePenaltyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SignedStakePenaltyRequest.DiscardUnknown(m) } -func _EscrowService_BalanceOf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ledger.SignedCreateAccountRequest) - if err := dec(in); err != nil { - return nil, err +var xxx_messageInfo_SignedStakePenaltyRequest proto.InternalMessageInfo + +func (m *SignedStakePenaltyRequest) GetData() *StakePenaltyRequest { + if m != nil { + return m.Data } - if interceptor == nil { - return srv.(EscrowServiceServer).BalanceOf(ctx, in) + return nil +} + +func (m *SignedStakePenaltyRequest) GetSignature() []byte { + if m != nil { + return m.Signature } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/escrow.EscrowService/BalanceOf", + return nil +} + +func (*SignedStakePenaltyRequest) XXX_MessageName() string { + return "escrow.SignedStakePenaltyRequest" +} + +type StakePenaltyRequest struct { + StakerId string `protobuf:"bytes,1,opt,name=staker_id,json=stakerId,proto3" json:"staker_id,omitempty" pg:"staker_id"` + OperatorId string `protobuf:"bytes,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty" pg:"operator_id"` + Reason OperationType `protobuf:"varint,3,opt,name=reason,proto3,enum=escrow.OperationType" json:"reason,omitempty" pg:"reason"` + OperationLog string `protobuf:"bytes,4,opt,name=operation_log,json=operationLog,proto3" json:"operation_log,omitempty" pg:"operation_log"` + Amount int64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty" pg:"amount"` + SubmitTime time.Time `protobuf:"bytes,6,opt,name=submit_time,json=submitTime,proto3,stdtime" json:"submit_time" pg:"submit_time"` + XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"` + XXX_unrecognized []byte `json:"-" pg:"-"` + XXX_sizecache int32 `json:"-" pg:"-"` +} + +func (m *StakePenaltyRequest) Reset() { *m = StakePenaltyRequest{} } +func (m *StakePenaltyRequest) String() string { return proto.CompactTextString(m) } +func (*StakePenaltyRequest) ProtoMessage() {} +func (*StakePenaltyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_92a6463c7f7e20b5, []int{40} +} +func (m *StakePenaltyRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StakePenaltyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StakePenaltyRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EscrowServiceServer).BalanceOf(ctx, req.(*ledger.SignedCreateAccountRequest)) +} +func (m *StakePenaltyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StakePenaltyRequest.Merge(m, src) +} +func (m *StakePenaltyRequest) XXX_Size() int { + return m.Size() +} +func (m *StakePenaltyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StakePenaltyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StakePenaltyRequest proto.InternalMessageInfo + +func (m *StakePenaltyRequest) GetStakerId() string { + if m != nil { + return m.StakerId } - return interceptor(ctx, in, info, handler) + return "" } -func _EscrowService_CreateChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ledger.SignedChannelCommit) - if err := dec(in); err != nil { - return nil, err +func (m *StakePenaltyRequest) GetOperatorId() string { + if m != nil { + return m.OperatorId } - if interceptor == nil { - return srv.(EscrowServiceServer).CreateChannel(ctx, in) + return "" +} + +func (m *StakePenaltyRequest) GetReason() OperationType { + if m != nil { + return m.Reason } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/escrow.EscrowService/CreateChannel", + return OperationType_STAKE +} + +func (m *StakePenaltyRequest) GetOperationLog() string { + if m != nil { + return m.OperationLog } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EscrowServiceServer).CreateChannel(ctx, req.(*ledger.SignedChannelCommit)) + return "" +} + +func (m *StakePenaltyRequest) GetAmount() int64 { + if m != nil { + return m.Amount } - return interceptor(ctx, in, info, handler) + return 0 } -func _EscrowService_CloseChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ledger.SignedChannelState) - if err := dec(in); err != nil { - return nil, err +func (m *StakePenaltyRequest) GetSubmitTime() time.Time { + if m != nil { + return m.SubmitTime } - if interceptor == nil { - return srv.(EscrowServiceServer).CloseChannel(ctx, in) + return time.Time{} +} + +func (*StakePenaltyRequest) XXX_MessageName() string { + return "escrow.StakePenaltyRequest" +} + +type StakePenaltyResult struct { + StakerId string `protobuf:"bytes,1,opt,name=staker_id,json=stakerId,proto3" json:"staker_id,omitempty" pg:"staker_id"` + RequestPenaltyAmount int64 `protobuf:"varint,2,opt,name=request_penalty_amount,json=requestPenaltyAmount,proto3" json:"request_penalty_amount,omitempty" pg:"request_penalty_amount"` + OperatePenaltyAmount int64 `protobuf:"varint,3,opt,name=operate_penalty_amount,json=operatePenaltyAmount,proto3" json:"operate_penalty_amount,omitempty" pg:"operate_penalty_amount"` + OperatorId string `protobuf:"bytes,4,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty" pg:"operator_id"` + ReceiveTime time.Time `protobuf:"bytes,5,opt,name=receive_time,json=receiveTime,proto3,stdtime" json:"receive_time" pg:"receive_time"` + XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"` + XXX_unrecognized []byte `json:"-" pg:"-"` + XXX_sizecache int32 `json:"-" pg:"-"` +} + +func (m *StakePenaltyResult) Reset() { *m = StakePenaltyResult{} } +func (m *StakePenaltyResult) String() string { return proto.CompactTextString(m) } +func (*StakePenaltyResult) ProtoMessage() {} +func (*StakePenaltyResult) Descriptor() ([]byte, []int) { + return fileDescriptor_92a6463c7f7e20b5, []int{41} +} +func (m *StakePenaltyResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *StakePenaltyResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_StakePenaltyResult.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/escrow.EscrowService/CloseChannel", +} +func (m *StakePenaltyResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_StakePenaltyResult.Merge(m, src) +} +func (m *StakePenaltyResult) XXX_Size() int { + return m.Size() +} +func (m *StakePenaltyResult) XXX_DiscardUnknown() { + xxx_messageInfo_StakePenaltyResult.DiscardUnknown(m) +} + +var xxx_messageInfo_StakePenaltyResult proto.InternalMessageInfo + +func (m *StakePenaltyResult) GetStakerId() string { + if m != nil { + return m.StakerId } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EscrowServiceServer).CloseChannel(ctx, req.(*ledger.SignedChannelState)) + return "" +} + +func (m *StakePenaltyResult) GetRequestPenaltyAmount() int64 { + if m != nil { + return m.RequestPenaltyAmount } - return interceptor(ctx, in, info, handler) + return 0 } -func _EscrowService_Pay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ledger.SignedTransferRequest) - if err := dec(in); err != nil { - return nil, err +func (m *StakePenaltyResult) GetOperatePenaltyAmount() int64 { + if m != nil { + return m.OperatePenaltyAmount } - if interceptor == nil { - return srv.(EscrowServiceServer).Pay(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/escrow.EscrowService/Pay", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(EscrowServiceServer).Pay(ctx, req.(*ledger.SignedTransferRequest)) - } - return interceptor(ctx, in, info, handler) + return 0 } -var _EscrowService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "escrow.EscrowService", - HandlerType: (*EscrowServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "SubmitContracts", - Handler: _EscrowService_SubmitContracts_Handler, - }, - { - MethodName: "StartEscrow", - Handler: _EscrowService_StartEscrow_Handler, - }, - { - MethodName: "PayIn", - Handler: _EscrowService_PayIn_Handler, - }, - { - MethodName: "IsPaid", - Handler: _EscrowService_IsPaid_Handler, - }, - { - MethodName: "GetPayOutStatus", - Handler: _EscrowService_GetPayOutStatus_Handler, - }, - { - MethodName: "GetPayOutStatusBatch", - Handler: _EscrowService_GetPayOutStatusBatch_Handler, - }, - { - MethodName: "GetModifyPayOutStatusBatch", - Handler: _EscrowService_GetModifyPayOutStatusBatch_Handler, - }, - { - MethodName: "CancelContracts", - Handler: _EscrowService_CancelContracts_Handler, - }, - { - MethodName: "MyPayment", - Handler: _EscrowService_MyPayment_Handler, - }, - { - MethodName: "BalanceOf", - Handler: _EscrowService_BalanceOf_Handler, - }, - { - MethodName: "CreateChannel", - Handler: _EscrowService_CreateChannel_Handler, - }, - { - MethodName: "CloseChannel", - Handler: _EscrowService_CloseChannel_Handler, - }, - { - MethodName: "Pay", - Handler: _EscrowService_Pay_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "protos/escrow/escrow.proto", +func (m *StakePenaltyResult) GetOperatorId() string { + if m != nil { + return m.OperatorId + } + return "" } -func (m *ContractID) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *StakePenaltyResult) GetReceiveTime() time.Time { + if m != nil { + return m.ReceiveTime } - return dAtA[:n], nil + return time.Time{} } -func (m *ContractID) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (*StakePenaltyResult) XXX_MessageName() string { + return "escrow.StakePenaltyResult" } -func (m *ContractID) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +type SignedStakePenaltyResult struct { + Data *StakePenaltyResult `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty" pg:"data"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"` + XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"` + XXX_unrecognized []byte `json:"-" pg:"-"` + XXX_sizecache int32 `json:"-" pg:"-"` } -func (m *ContractIDBatch) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (m *SignedStakePenaltyResult) Reset() { *m = SignedStakePenaltyResult{} } +func (m *SignedStakePenaltyResult) String() string { return proto.CompactTextString(m) } +func (*SignedStakePenaltyResult) ProtoMessage() {} +func (*SignedStakePenaltyResult) Descriptor() ([]byte, []int) { + return fileDescriptor_92a6463c7f7e20b5, []int{42} } - -func (m *ContractIDBatch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *SignedStakePenaltyResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (m *ContractIDBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContractId) > 0 { - for iNdEx := len(m.ContractId) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ContractId[iNdEx]) - copy(dAtA[i:], m.ContractId[iNdEx]) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.ContractId[iNdEx]))) - i-- - dAtA[i] = 0xa +func (m *SignedStakePenaltyResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SignedStakePenaltyResult.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - return len(dAtA) - i, nil -} - -func (m *SignedContractID) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil } - -func (m *SignedContractID) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *SignedStakePenaltyResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_SignedStakePenaltyResult.Merge(m, src) } - -func (m *SignedContractID) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Signature) > 0 { - i -= len(m.Signature) - copy(dAtA[i:], m.Signature) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.Signature))) - i-- - dAtA[i] = 0x12 - } - if m.Data != nil { - { - size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEscrow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (m *SignedStakePenaltyResult) XXX_Size() int { + return m.Size() } - -func (m *SignedContractIDBatch) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (m *SignedStakePenaltyResult) XXX_DiscardUnknown() { + xxx_messageInfo_SignedStakePenaltyResult.DiscardUnknown(m) } -func (m *SignedContractIDBatch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +var xxx_messageInfo_SignedStakePenaltyResult proto.InternalMessageInfo -func (m *SignedContractIDBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Signature) > 0 { - i -= len(m.Signature) - copy(dAtA[i:], m.Signature) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.Signature))) - i-- - dAtA[i] = 0x12 - } - if m.Data != nil { - { - size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEscrow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (m *SignedStakePenaltyResult) GetData() *StakePenaltyResult { + if m != nil { + return m.Data } - return len(dAtA) - i, nil + return nil } -func (m *SignedModifyContractIDBatch) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *SignedStakePenaltyResult) GetSignature() []byte { + if m != nil { + return m.Signature } - return dAtA[:n], nil + return nil } -func (m *SignedModifyContractIDBatch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (*SignedStakePenaltyResult) XXX_MessageName() string { + return "escrow.SignedStakePenaltyResult" +} +func init() { + proto.RegisterEnum("escrow.TokenType", TokenType_name, TokenType_value) + golang_proto.RegisterEnum("escrow.TokenType", TokenType_name, TokenType_value) + proto.RegisterEnum("escrow.Schedule", Schedule_name, Schedule_value) + golang_proto.RegisterEnum("escrow.Schedule", Schedule_name, Schedule_value) + proto.RegisterEnum("escrow.ContractType", ContractType_name, ContractType_value) + golang_proto.RegisterEnum("escrow.ContractType", ContractType_name, ContractType_value) + proto.RegisterEnum("escrow.EscrowStatus", EscrowStatus_name, EscrowStatus_value) + golang_proto.RegisterEnum("escrow.EscrowStatus", EscrowStatus_name, EscrowStatus_value) + proto.RegisterEnum("escrow.StakeStatus", StakeStatus_name, StakeStatus_value) + golang_proto.RegisterEnum("escrow.StakeStatus", StakeStatus_name, StakeStatus_value) + proto.RegisterEnum("escrow.OperationType", OperationType_name, OperationType_value) + golang_proto.RegisterEnum("escrow.OperationType", OperationType_name, OperationType_value) + proto.RegisterType((*ContractID)(nil), "escrow.ContractID") + golang_proto.RegisterType((*ContractID)(nil), "escrow.ContractID") + proto.RegisterType((*ContractIDBatch)(nil), "escrow.ContractIDBatch") + golang_proto.RegisterType((*ContractIDBatch)(nil), "escrow.ContractIDBatch") + proto.RegisterType((*SignedContractID)(nil), "escrow.SignedContractID") + golang_proto.RegisterType((*SignedContractID)(nil), "escrow.SignedContractID") + proto.RegisterType((*SignedContractIDBatch)(nil), "escrow.SignedContractIDBatch") + golang_proto.RegisterType((*SignedContractIDBatch)(nil), "escrow.SignedContractIDBatch") + proto.RegisterType((*SignedModifyContractIDBatch)(nil), "escrow.SignedModifyContractIDBatch") + golang_proto.RegisterType((*SignedModifyContractIDBatch)(nil), "escrow.SignedModifyContractIDBatch") + proto.RegisterType((*EscrowContract)(nil), "escrow.EscrowContract") + golang_proto.RegisterType((*EscrowContract)(nil), "escrow.EscrowContract") + proto.RegisterType((*SignedEscrowContract)(nil), "escrow.SignedEscrowContract") + golang_proto.RegisterType((*SignedEscrowContract)(nil), "escrow.SignedEscrowContract") + proto.RegisterType((*EscrowContractRequest)(nil), "escrow.EscrowContractRequest") + golang_proto.RegisterType((*EscrowContractRequest)(nil), "escrow.EscrowContractRequest") + proto.RegisterType((*Escrow)(nil), "escrow.Escrow") + golang_proto.RegisterType((*Escrow)(nil), "escrow.Escrow") + proto.RegisterType((*SubmitContractResult)(nil), "escrow.SubmitContractResult") + golang_proto.RegisterType((*SubmitContractResult)(nil), "escrow.SubmitContractResult") + proto.RegisterType((*SignedSubmitContractResult)(nil), "escrow.SignedSubmitContractResult") + golang_proto.RegisterType((*SignedSubmitContractResult)(nil), "escrow.SignedSubmitContractResult") + proto.RegisterType((*StartEscrowResult)(nil), "escrow.StartEscrowResult") + golang_proto.RegisterType((*StartEscrowResult)(nil), "escrow.StartEscrowResult") + proto.RegisterType((*SignedStartEscrowResult)(nil), "escrow.SignedStartEscrowResult") + golang_proto.RegisterType((*SignedStartEscrowResult)(nil), "escrow.SignedStartEscrowResult") + proto.RegisterType((*PayinRequest)(nil), "escrow.PayinRequest") + golang_proto.RegisterType((*PayinRequest)(nil), "escrow.PayinRequest") + proto.RegisterType((*SignedPayinRequest)(nil), "escrow.SignedPayinRequest") + golang_proto.RegisterType((*SignedPayinRequest)(nil), "escrow.SignedPayinRequest") + proto.RegisterType((*PayinResult)(nil), "escrow.PayinResult") + golang_proto.RegisterType((*PayinResult)(nil), "escrow.PayinResult") + proto.RegisterType((*SignedPayinResult)(nil), "escrow.SignedPayinResult") + golang_proto.RegisterType((*SignedPayinResult)(nil), "escrow.SignedPayinResult") + proto.RegisterType((*PayinStatus)(nil), "escrow.PayinStatus") + golang_proto.RegisterType((*PayinStatus)(nil), "escrow.PayinStatus") + proto.RegisterType((*SignedPayinStatus)(nil), "escrow.SignedPayinStatus") + golang_proto.RegisterType((*SignedPayinStatus)(nil), "escrow.SignedPayinStatus") + proto.RegisterType((*PayoutStatus)(nil), "escrow.PayoutStatus") + golang_proto.RegisterType((*PayoutStatus)(nil), "escrow.PayoutStatus") + proto.RegisterType((*SignedPayoutStatus)(nil), "escrow.SignedPayoutStatus") + golang_proto.RegisterType((*SignedPayoutStatus)(nil), "escrow.SignedPayoutStatus") + proto.RegisterType((*SignedPayoutStatusBatch)(nil), "escrow.SignedPayoutStatusBatch") + golang_proto.RegisterType((*SignedPayoutStatusBatch)(nil), "escrow.SignedPayoutStatusBatch") + proto.RegisterType((*CancelContractRequest)(nil), "escrow.CancelContractRequest") + golang_proto.RegisterType((*CancelContractRequest)(nil), "escrow.CancelContractRequest") + proto.RegisterType((*SignedCancelRequest)(nil), "escrow.SignedCancelRequest") + golang_proto.RegisterType((*SignedCancelRequest)(nil), "escrow.SignedCancelRequest") + proto.RegisterType((*CancelContractResult)(nil), "escrow.CancelContractResult") + golang_proto.RegisterType((*CancelContractResult)(nil), "escrow.CancelContractResult") + proto.RegisterType((*SignedCancelContractResult)(nil), "escrow.SignedCancelContractResult") + golang_proto.RegisterType((*SignedCancelContractResult)(nil), "escrow.SignedCancelContractResult") + proto.RegisterType((*PayoutAddress)(nil), "escrow.PayoutAddress") + golang_proto.RegisterType((*PayoutAddress)(nil), "escrow.PayoutAddress") + proto.RegisterType((*SignedPayoutAddress)(nil), "escrow.SignedPayoutAddress") + golang_proto.RegisterType((*SignedPayoutAddress)(nil), "escrow.SignedPayoutAddress") + proto.RegisterType((*Payment)(nil), "escrow.Payment") + golang_proto.RegisterType((*Payment)(nil), "escrow.Payment") + proto.RegisterType((*PaymentResult)(nil), "escrow.PaymentResult") + golang_proto.RegisterType((*PaymentResult)(nil), "escrow.PaymentResult") + proto.RegisterType((*SignedPaymentResult)(nil), "escrow.SignedPaymentResult") + golang_proto.RegisterType((*SignedPaymentResult)(nil), "escrow.SignedPaymentResult") + proto.RegisterType((*BalanceResult)(nil), "escrow.BalanceResult") + golang_proto.RegisterType((*BalanceResult)(nil), "escrow.BalanceResult") + proto.RegisterType((*SignedBalanceResult)(nil), "escrow.SignedBalanceResult") + golang_proto.RegisterType((*SignedBalanceResult)(nil), "escrow.SignedBalanceResult") + proto.RegisterType((*SignedStakeRequest)(nil), "escrow.SignedStakeRequest") + golang_proto.RegisterType((*SignedStakeRequest)(nil), "escrow.SignedStakeRequest") + proto.RegisterType((*StakeRequest)(nil), "escrow.StakeRequest") + golang_proto.RegisterType((*StakeRequest)(nil), "escrow.StakeRequest") + proto.RegisterType((*StakeResult)(nil), "escrow.StakeResult") + golang_proto.RegisterType((*StakeResult)(nil), "escrow.StakeResult") + proto.RegisterType((*SignedStakeResult)(nil), "escrow.SignedStakeResult") + golang_proto.RegisterType((*SignedStakeResult)(nil), "escrow.SignedStakeResult") + proto.RegisterType((*StakeLedger)(nil), "escrow.StakeLedger") + golang_proto.RegisterType((*StakeLedger)(nil), "escrow.StakeLedger") + proto.RegisterType((*UnfinishStakeLedger)(nil), "escrow.UnfinishStakeLedger") + golang_proto.RegisterType((*UnfinishStakeLedger)(nil), "escrow.UnfinishStakeLedger") + proto.RegisterType((*SignedStakePenaltyRequest)(nil), "escrow.SignedStakePenaltyRequest") + golang_proto.RegisterType((*SignedStakePenaltyRequest)(nil), "escrow.SignedStakePenaltyRequest") + proto.RegisterType((*StakePenaltyRequest)(nil), "escrow.StakePenaltyRequest") + golang_proto.RegisterType((*StakePenaltyRequest)(nil), "escrow.StakePenaltyRequest") + proto.RegisterType((*StakePenaltyResult)(nil), "escrow.StakePenaltyResult") + golang_proto.RegisterType((*StakePenaltyResult)(nil), "escrow.StakePenaltyResult") + proto.RegisterType((*SignedStakePenaltyResult)(nil), "escrow.SignedStakePenaltyResult") + golang_proto.RegisterType((*SignedStakePenaltyResult)(nil), "escrow.SignedStakePenaltyResult") } -func (m *SignedModifyContractIDBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func init() { proto.RegisterFile("protos/escrow/escrow.proto", fileDescriptor_92a6463c7f7e20b5) } +func init() { golang_proto.RegisterFile("protos/escrow/escrow.proto", fileDescriptor_92a6463c7f7e20b5) } + +var fileDescriptor_92a6463c7f7e20b5 = []byte{ + // 2661 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x3a, 0xcb, 0x6f, 0x33, 0x57, + 0xf5, 0x19, 0xbf, 0x7d, 0xfc, 0x9a, 0x4c, 0x1e, 0xf5, 0xe7, 0x34, 0x8f, 0xfa, 0x53, 0xdb, 0x34, + 0x5f, 0x9b, 0xb4, 0xf9, 0x55, 0x3f, 0x40, 0x02, 0x8a, 0xe3, 0xb8, 0xf9, 0x0c, 0x8e, 0x63, 0xc6, + 0xfe, 0x2a, 0x5a, 0x21, 0x59, 0x13, 0xcf, 0x8d, 0x33, 0xd4, 0x9e, 0x09, 0x33, 0xe3, 0xb6, 0x46, + 0x62, 0x0b, 0x5b, 0x10, 0x1b, 0xc4, 0x02, 0x21, 0xc4, 0x8e, 0x75, 0x01, 0x89, 0x05, 0x2c, 0xcb, + 0xae, 0x6b, 0x16, 0x3c, 0xda, 0x7f, 0x82, 0x25, 0xba, 0xe7, 0xde, 0x3b, 0x2f, 0x3b, 0x0f, 0xe7, + 0xab, 0xf8, 0xba, 0x8a, 0xe7, 0xdc, 0x73, 0xce, 0x3d, 0xf7, 0xbc, 0xcf, 0xbd, 0x81, 0xca, 0x95, + 0x6d, 0xb9, 0x96, 0x73, 0x40, 0x9c, 0x81, 0x6d, 0x7d, 0xc8, 0xff, 0xec, 0x23, 0x50, 0x49, 0xb1, + 0xaf, 0xca, 0xeb, 0x43, 0xc3, 0xbd, 0x9c, 0x9c, 0xef, 0x0f, 0xac, 0xf1, 0x81, 0x6b, 0x5b, 0xe6, + 0x6b, 0x13, 0xe7, 0x00, 0x31, 0xce, 0x27, 0x17, 0x07, 0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 0x96, 0x08, 0x86, 0xc1, + 0xa5, 0x66, 0x9a, 0x64, 0xc4, 0x63, 0x75, 0x63, 0x9f, 0xa7, 0x5d, 0x9e, 0x7c, 0xd8, 0x62, 0xdd, + 0x1a, 0x8f, 0x0d, 0x97, 0x47, 0x0a, 0x87, 0x55, 0x7f, 0x1e, 0x83, 0x14, 0x63, 0x7f, 0x7b, 0xe8, + 0x6d, 0x40, 0x96, 0x89, 0x45, 0x97, 0x63, 0x68, 0x87, 0x0c, 0x03, 0x34, 0x75, 0x1a, 0x4b, 0x17, + 0xb6, 0x35, 0x8e, 0x04, 0x5c, 0x8e, 0xc2, 0x44, 0x2c, 0x6d, 0x52, 0xef, 0x8e, 0x04, 0x5b, 0xd6, + 0xb5, 0xbe, 0xd0, 0x50, 0xdb, 0x04, 0x20, 0xb6, 0x6d, 0xd9, 0xfd, 0x81, 0xa5, 0x13, 0x8c, 0xb2, + 0xa4, 0x9a, 0x45, 0x48, 0xdd, 0xd2, 0x09, 0xcd, 0x1e, 0x6c, 0x79, 0x4c, 0x1c, 0x47, 0x1b, 0xb2, + 0x18, 0xcb, 0xaa, 0x79, 0x04, 0x9e, 0x32, 0x58, 0xf5, 0x37, 0x31, 0x58, 0xed, 0x4e, 0xce, 0xc7, + 0x86, 0xeb, 0x5b, 0xca, 0x99, 0x8c, 0x5c, 0xe5, 0x01, 0x64, 0xae, 0xb4, 0xa9, 0x61, 0xfa, 0xea, + 0x49, 0xe3, 0x77, 0x53, 0x57, 0x5e, 0x02, 0x5e, 0x53, 0xcb, 0x31, 0xb4, 0x60, 0x31, 0xec, 0x63, + 0x2a, 0x5f, 0xa5, 0x99, 0x89, 0xeb, 0x30, 0x92, 0x99, 0x18, 0x54, 0xe8, 0x42, 0x05, 0x85, 0xa3, + 0x39, 0x68, 0x42, 0x96, 0x89, 0x13, 0x0b, 0x64, 0x62, 0x99, 0xd1, 0x33, 0x0f, 0xc0, 0x5c, 0xfc, + 0x6d, 0x58, 0x09, 0x39, 0x4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, 0x7d, 0xc2, 0x39, 0xc5, 0x73, 0x89, 0x77, 0x87, 0xdb, 0x38, + 0x6e, 0x47, 0x38, 0xce, 0x3c, 0x6e, 0x7c, 0x13, 0x92, 0x1d, 0x6d, 0xda, 0x34, 0x95, 0x4a, 0x18, + 0x33, 0x78, 0x93, 0x5f, 0x79, 0x30, 0x77, 0x0d, 0xe9, 0xbf, 0x01, 0xa9, 0xa6, 0x83, 0xb7, 0x7a, + 0xe5, 0x30, 0x92, 0xff, 0x6f, 0x0c, 0x73, 0xc9, 0xb9, 0x59, 0x4e, 0xa0, 0x74, 0x42, 0xdc, 0x8e, + 0x36, 0x3d, 0xf3, 0xae, 0x89, 0xae, 0xe7, 0x33, 0x2b, 0xa2, 0x7f, 0xb9, 0xf4, 0x0e, 0xac, 0x46, + 0x18, 0xb1, 0x0b, 0xa0, 0xcd, 0xeb, 0xb8, 0xe1, 0x72, 0x54, 0x3f, 0xb3, 0x17, 0x48, 0xe7, 0x50, + 0x39, 0x21, 0xfc, 0x6e, 0x6b, 0x96, 0xfb, 0xc3, 0x30, 0xf9, 0xdc, 0xff, 0xf3, 0xb8, 0x7d, 0x0f, + 0x15, 0x4a, 0xe1, 0xd1, 0xdd, 0x51, 0x36, 0x22, 0x62, 0x07, 0xaf, 0x6d, 0xa2, 0x6e, 0x32, 0xf7, + 0x92, 0xa0, 0x01, 0xd9, 0xd3, 0xa9, 0x98, 0x73, 0x37, 0xe6, 0x49, 0xc0, 0x47, 0x9b, 0xca, 0xec, + 0x62, 0x60, 0x48, 0x6b, 0x41, 0x96, 0x8f, 0x1d, 0x67, 0x17, 0x4a, 0x35, 0xf2, 0x78, 0x64, 0x13, + 0xcd, 0x25, 0xb5, 0xc1, 0x80, 0x26, 0x4e, 0x21, 0x5b, 0x84, 0x5b, 0x78, 0xb4, 0x79, 0x0b, 0x0a, + 0x8c, 0x88, 0x3f, 0x32, 0x29, 0x37, 0xbd, 0x87, 0x57, 0x96, 0xc5, 0x22, 0x07, 0x37, 0x8f, 0x95, + 0x1a, 0xe4, 0xeb, 0x23, 0xcb, 0xf1, 0xe8, 0x6f, 0x78, 0xce, 0xaa, 0xac, 0x45, 0xc8, 0x91, 0x50, + 0x57, 0xbe, 0x0e, 0xf1, 0x8e, 0x36, 0x55, 0x6e, 0x1e, 0x21, 0x2a, 0xeb, 0x62, 0xd9, 0x5f, 0x10, + 0xe1, 0x82, 0x59, 0x25, 0x1a, 0x2e, 0xc1, 0xc1, 0x27, 0xea, 0xef, 0xc1, 0x0e, 0xb9, 0xcb, 0x67, + 0x24, 0x9e, 0xc4, 0x95, 0x17, 0xe6, 0xa0, 0x86, 0x5b, 0x84, 0xca, 0xce, 0x4d, 0x28, 0x94, 0xe9, + 0xd1, 0x5b, 0x9f, 0x7c, 0xb6, 0x25, 0x7d, 0xfa, 0xd9, 0x96, 0xf4, 0xaf, 0xcf, 0xb6, 0xa4, 0x5f, + 0x7e, 0xbe, 0x25, 0xfd, 0xf5, 0xf3, 0x2d, 0xe9, 0x93, 0xcf, 0xb7, 0x24, 0x28, 0x1a, 0xd6, 0xfe, + 0xb9, 0x7b, 0xe1, 0x70, 0x16, 0x47, 0x39, 0x16, 0xfb, 0x1d, 0x5a, 0xa4, 0x3a, 0xd2, 0x7b, 0xfc, + 0xdd, 0xf5, 0x3c, 0x85, 0x55, 0xeb, 0xff, 0xfe, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x18, 0x90, 0x1c, + 0xbe, 0x9a, 0x26, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// EscrowServiceClient is the client API for EscrowService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type EscrowServiceClient interface { + // buyer submit contracts to escrow after buyer and seller agreed contract + // one contract is one buyer to one seller, and is one escrow in escrow service + // buyer can submit multiple contracts in one request + // return same number of results as request contracts + SubmitContracts(ctx context.Context, in *EscrowContractRequest, opts ...grpc.CallOption) (*SignedSubmitContractResult, error) + StartEscrow(ctx context.Context, in *EscrowContractRequest, opts ...grpc.CallOption) (*SignedStartEscrowResult, error) + // after submit contract, buyer request to pay in + // escrow will transfer contract amount from buyer wallet to escrow wallet + PayIn(ctx context.Context, in *SignedPayinRequest, opts ...grpc.CallOption) (*SignedPayinResult, error) + // seller use this to check if a contract is paid in + IsPaid(ctx context.Context, in *SignedContractID, opts ...grpc.CallOption) (*SignedPayinStatus, error) + // check escrow pay out to seller status of a contract + GetPayOutStatus(ctx context.Context, in *SignedContractID, opts ...grpc.CallOption) (*SignedPayoutStatus, error) + //get the payout status in batch + GetPayOutStatusBatch(ctx context.Context, in *SignedContractIDBatch, opts ...grpc.CallOption) (*SignedPayoutStatusBatch, error) + //get the modified payout status in batch + GetModifyPayOutStatusBatch(ctx context.Context, in *SignedModifyContractIDBatch, opts ...grpc.CallOption) (*SignedPayoutStatusBatch, error) + // auth request to cancel the contract + // escrow will cancel the left payments to seller + CancelContracts(ctx context.Context, in *SignedCancelRequest, opts ...grpc.CallOption) (*SignedCancelContractResult, error) + // seller query what new payments to receive + MyPayment(ctx context.Context, in *SignedPayoutAddress, opts ...grpc.CallOption) (*SignedPaymentResult, error) + // query balance and create account if account not exist + BalanceOf(ctx context.Context, in *ledger.SignedCreateAccountRequest, opts ...grpc.CallOption) (*SignedBalanceResult, error) + // Creates a channel on the ledger and returns the ID of the ledger + CreateChannel(ctx context.Context, in *ledger.SignedChannelCommit, opts ...grpc.CallOption) (*ledger.ChannelID, error) + // Closes a channel on the ledger. + CloseChannel(ctx context.Context, in *ledger.SignedChannelState, opts ...grpc.CallOption) (*ledger.ChannelClosed, error) + //use escrow as proxy to do the payment + Pay(ctx context.Context, in *ledger.SignedTransferRequest, opts ...grpc.CallOption) (*ledger.TransferResult, error) + Stake(ctx context.Context, in *SignedStakeRequest, opts ...grpc.CallOption) (*SignedStakeResult, error) + StakePenalty(ctx context.Context, in *SignedStakePenaltyRequest, opts ...grpc.CallOption) (*SignedStakePenaltyResult, error) +} + +type escrowServiceClient struct { + cc *grpc.ClientConn +} + +func NewEscrowServiceClient(cc *grpc.ClientConn) EscrowServiceClient { + return &escrowServiceClient{cc} +} + +func (c *escrowServiceClient) SubmitContracts(ctx context.Context, in *EscrowContractRequest, opts ...grpc.CallOption) (*SignedSubmitContractResult, error) { + out := new(SignedSubmitContractResult) + err := c.cc.Invoke(ctx, "/escrow.EscrowService/SubmitContracts", in, out, opts...) + if err != nil { + return nil, err } - if len(m.Signature) > 0 { - i -= len(m.Signature) - copy(dAtA[i:], m.Signature) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.Signature))) - i-- - dAtA[i] = 0x1a + return out, nil +} + +func (c *escrowServiceClient) StartEscrow(ctx context.Context, in *EscrowContractRequest, opts ...grpc.CallOption) (*SignedStartEscrowResult, error) { + out := new(SignedStartEscrowResult) + err := c.cc.Invoke(ctx, "/escrow.EscrowService/StartEscrow", in, out, opts...) + if err != nil { + return nil, err } - n3, err3 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.LastModifyTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.LastModifyTime):]) - if err3 != nil { - return 0, err3 + return out, nil +} + +func (c *escrowServiceClient) PayIn(ctx context.Context, in *SignedPayinRequest, opts ...grpc.CallOption) (*SignedPayinResult, error) { + out := new(SignedPayinResult) + err := c.cc.Invoke(ctx, "/escrow.EscrowService/PayIn", in, out, opts...) + if err != nil { + return nil, err } - i -= n3 - i = encodeVarintEscrow(dAtA, i, uint64(n3)) - i-- - dAtA[i] = 0x12 - if m.Data != nil { - { - size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEscrow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + return out, nil +} + +func (c *escrowServiceClient) IsPaid(ctx context.Context, in *SignedContractID, opts ...grpc.CallOption) (*SignedPayinStatus, error) { + out := new(SignedPayinStatus) + err := c.cc.Invoke(ctx, "/escrow.EscrowService/IsPaid", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *EscrowContract) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *escrowServiceClient) GetPayOutStatus(ctx context.Context, in *SignedContractID, opts ...grpc.CallOption) (*SignedPayoutStatus, error) { + out := new(SignedPayoutStatus) + err := c.cc.Invoke(ctx, "/escrow.EscrowService/GetPayOutStatus", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *EscrowContract) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *escrowServiceClient) GetPayOutStatusBatch(ctx context.Context, in *SignedContractIDBatch, opts ...grpc.CallOption) (*SignedPayoutStatusBatch, error) { + out := new(SignedPayoutStatusBatch) + err := c.cc.Invoke(ctx, "/escrow.EscrowService/GetPayOutStatusBatch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *EscrowContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (c *escrowServiceClient) GetModifyPayOutStatusBatch(ctx context.Context, in *SignedModifyContractIDBatch, opts ...grpc.CallOption) (*SignedPayoutStatusBatch, error) { + out := new(SignedPayoutStatusBatch) + err := c.cc.Invoke(ctx, "/escrow.EscrowService/GetModifyPayOutStatusBatch", in, out, opts...) + if err != nil { + return nil, err } - if m.ContingentAmount != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.ContingentAmount)) - i-- - dAtA[i] = 0x70 + return out, nil +} + +func (c *escrowServiceClient) CancelContracts(ctx context.Context, in *SignedCancelRequest, opts ...grpc.CallOption) (*SignedCancelContractResult, error) { + out := new(SignedCancelContractResult) + err := c.cc.Invoke(ctx, "/escrow.EscrowService/CancelContracts", in, out, opts...) + if err != nil { + return nil, err } - if m.Type != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x68 + return out, nil +} + +func (c *escrowServiceClient) MyPayment(ctx context.Context, in *SignedPayoutAddress, opts ...grpc.CallOption) (*SignedPaymentResult, error) { + out := new(SignedPaymentResult) + err := c.cc.Invoke(ctx, "/escrow.EscrowService/MyPayment", in, out, opts...) + if err != nil { + return nil, err } - if m.CustomizePayoutPeriod != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.CustomizePayoutPeriod)) - i-- - dAtA[i] = 0x60 - } - if len(m.Reference) > 0 { - i -= len(m.Reference) - copy(dAtA[i:], m.Reference) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.Reference))) - i-- - dAtA[i] = 0x5a - } - if m.NumPayouts != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.NumPayouts)) - i-- - dAtA[i] = 0x50 - } - if m.PayoutSchedule != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.PayoutSchedule)) - i-- - dAtA[i] = 0x48 - } - if m.TokenType != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.TokenType)) - i-- - dAtA[i] = 0x40 - } - if m.WithholdAmount != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.WithholdAmount)) - i-- - dAtA[i] = 0x38 - } - if m.CollateralAmount != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.CollateralAmount)) - i-- - dAtA[i] = 0x30 - } - if m.Amount != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.Amount)) - i-- - dAtA[i] = 0x28 - } - if len(m.AuthAddress) > 0 { - i -= len(m.AuthAddress) - copy(dAtA[i:], m.AuthAddress) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.AuthAddress))) - i-- - dAtA[i] = 0x22 - } - if len(m.SellerAddress) > 0 { - i -= len(m.SellerAddress) - copy(dAtA[i:], m.SellerAddress) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.SellerAddress))) - i-- - dAtA[i] = 0x1a - } - if len(m.BuyerAddress) > 0 { - i -= len(m.BuyerAddress) - copy(dAtA[i:], m.BuyerAddress) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.BuyerAddress))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return out, nil } -func (m *SignedEscrowContract) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *escrowServiceClient) BalanceOf(ctx context.Context, in *ledger.SignedCreateAccountRequest, opts ...grpc.CallOption) (*SignedBalanceResult, error) { + out := new(SignedBalanceResult) + err := c.cc.Invoke(ctx, "/escrow.EscrowService/BalanceOf", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *SignedEscrowContract) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return out, nil } -func (m *SignedEscrowContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.SellerSignature) > 0 { - i -= len(m.SellerSignature) - copy(dAtA[i:], m.SellerSignature) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.SellerSignature))) - i-- - dAtA[i] = 0x1a - } - if len(m.BuyerSignature) > 0 { - i -= len(m.BuyerSignature) - copy(dAtA[i:], m.BuyerSignature) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.BuyerSignature))) - i-- - dAtA[i] = 0x12 - } - if m.Contract != nil { - { - size, err := m.Contract.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEscrow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (c *escrowServiceClient) CreateChannel(ctx context.Context, in *ledger.SignedChannelCommit, opts ...grpc.CallOption) (*ledger.ChannelID, error) { + out := new(ledger.ChannelID) + err := c.cc.Invoke(ctx, "/escrow.EscrowService/CreateChannel", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *EscrowContractRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *escrowServiceClient) CloseChannel(ctx context.Context, in *ledger.SignedChannelState, opts ...grpc.CallOption) (*ledger.ChannelClosed, error) { + out := new(ledger.ChannelClosed) + err := c.cc.Invoke(ctx, "/escrow.EscrowService/CloseChannel", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *EscrowContractRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (c *escrowServiceClient) Pay(ctx context.Context, in *ledger.SignedTransferRequest, opts ...grpc.CallOption) (*ledger.TransferResult, error) { + out := new(ledger.TransferResult) + err := c.cc.Invoke(ctx, "/escrow.EscrowService/Pay", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (m *EscrowContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.BuyerChannel != nil { - { - size, err := m.BuyerChannel.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEscrow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Contract) > 0 { - for iNdEx := len(m.Contract) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Contract[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEscrow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } +func (c *escrowServiceClient) Stake(ctx context.Context, in *SignedStakeRequest, opts ...grpc.CallOption) (*SignedStakeResult, error) { + out := new(SignedStakeResult) + err := c.cc.Invoke(ctx, "/escrow.EscrowService/Stake", in, out, opts...) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return out, nil } -func (m *Escrow) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) +func (c *escrowServiceClient) StakePenalty(ctx context.Context, in *SignedStakePenaltyRequest, opts ...grpc.CallOption) (*SignedStakePenaltyResult, error) { + out := new(SignedStakePenaltyResult) + err := c.cc.Invoke(ctx, "/escrow.EscrowService/StakePenalty", in, out, opts...) if err != nil { return nil, err } - return dAtA[:n], nil + return out, nil } -func (m *Escrow) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// EscrowServiceServer is the server API for EscrowService service. +type EscrowServiceServer interface { + // buyer submit contracts to escrow after buyer and seller agreed contract + // one contract is one buyer to one seller, and is one escrow in escrow service + // buyer can submit multiple contracts in one request + // return same number of results as request contracts + SubmitContracts(context.Context, *EscrowContractRequest) (*SignedSubmitContractResult, error) + StartEscrow(context.Context, *EscrowContractRequest) (*SignedStartEscrowResult, error) + // after submit contract, buyer request to pay in + // escrow will transfer contract amount from buyer wallet to escrow wallet + PayIn(context.Context, *SignedPayinRequest) (*SignedPayinResult, error) + // seller use this to check if a contract is paid in + IsPaid(context.Context, *SignedContractID) (*SignedPayinStatus, error) + // check escrow pay out to seller status of a contract + GetPayOutStatus(context.Context, *SignedContractID) (*SignedPayoutStatus, error) + //get the payout status in batch + GetPayOutStatusBatch(context.Context, *SignedContractIDBatch) (*SignedPayoutStatusBatch, error) + //get the modified payout status in batch + GetModifyPayOutStatusBatch(context.Context, *SignedModifyContractIDBatch) (*SignedPayoutStatusBatch, error) + // auth request to cancel the contract + // escrow will cancel the left payments to seller + CancelContracts(context.Context, *SignedCancelRequest) (*SignedCancelContractResult, error) + // seller query what new payments to receive + MyPayment(context.Context, *SignedPayoutAddress) (*SignedPaymentResult, error) + // query balance and create account if account not exist + BalanceOf(context.Context, *ledger.SignedCreateAccountRequest) (*SignedBalanceResult, error) + // Creates a channel on the ledger and returns the ID of the ledger + CreateChannel(context.Context, *ledger.SignedChannelCommit) (*ledger.ChannelID, error) + // Closes a channel on the ledger. + CloseChannel(context.Context, *ledger.SignedChannelState) (*ledger.ChannelClosed, error) + //use escrow as proxy to do the payment + Pay(context.Context, *ledger.SignedTransferRequest) (*ledger.TransferResult, error) + Stake(context.Context, *SignedStakeRequest) (*SignedStakeResult, error) + StakePenalty(context.Context, *SignedStakePenaltyRequest) (*SignedStakePenaltyResult, error) } -func (m *Escrow) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ErrorMessage) > 0 { - i -= len(m.ErrorMessage) - copy(dAtA[i:], m.ErrorMessage) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.ErrorMessage))) - i-- - dAtA[i] = 0x42 - } - if m.ErrorCode != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.ErrorCode)) - i-- - dAtA[i] = 0x38 - } - if m.CollateralAmount != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.CollateralAmount)) - i-- - dAtA[i] = 0x30 - } - if m.Amount != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.Amount)) - i-- - dAtA[i] = 0x28 - } - if len(m.ToAddress) > 0 { - i -= len(m.ToAddress) - copy(dAtA[i:], m.ToAddress) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.ToAddress))) - i-- - dAtA[i] = 0x22 - } - if len(m.FromAddress) > 0 { - i -= len(m.FromAddress) - copy(dAtA[i:], m.FromAddress) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.FromAddress))) - i-- - dAtA[i] = 0x1a - } - if m.EscrowId != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.EscrowId)) - i-- - dAtA[i] = 0x10 - } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.ContractId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +// UnimplementedEscrowServiceServer can be embedded to have forward compatible implementations. +type UnimplementedEscrowServiceServer struct { } -func (m *SubmitContractResult) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (*UnimplementedEscrowServiceServer) SubmitContracts(ctx context.Context, req *EscrowContractRequest) (*SignedSubmitContractResult, error) { + return nil, status.Errorf(codes.Unimplemented, "method SubmitContracts not implemented") +} +func (*UnimplementedEscrowServiceServer) StartEscrow(ctx context.Context, req *EscrowContractRequest) (*SignedStartEscrowResult, error) { + return nil, status.Errorf(codes.Unimplemented, "method StartEscrow not implemented") +} +func (*UnimplementedEscrowServiceServer) PayIn(ctx context.Context, req *SignedPayinRequest) (*SignedPayinResult, error) { + return nil, status.Errorf(codes.Unimplemented, "method PayIn not implemented") +} +func (*UnimplementedEscrowServiceServer) IsPaid(ctx context.Context, req *SignedContractID) (*SignedPayinStatus, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsPaid not implemented") +} +func (*UnimplementedEscrowServiceServer) GetPayOutStatus(ctx context.Context, req *SignedContractID) (*SignedPayoutStatus, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPayOutStatus not implemented") +} +func (*UnimplementedEscrowServiceServer) GetPayOutStatusBatch(ctx context.Context, req *SignedContractIDBatch) (*SignedPayoutStatusBatch, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPayOutStatusBatch not implemented") +} +func (*UnimplementedEscrowServiceServer) GetModifyPayOutStatusBatch(ctx context.Context, req *SignedModifyContractIDBatch) (*SignedPayoutStatusBatch, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetModifyPayOutStatusBatch not implemented") +} +func (*UnimplementedEscrowServiceServer) CancelContracts(ctx context.Context, req *SignedCancelRequest) (*SignedCancelContractResult, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelContracts not implemented") +} +func (*UnimplementedEscrowServiceServer) MyPayment(ctx context.Context, req *SignedPayoutAddress) (*SignedPaymentResult, error) { + return nil, status.Errorf(codes.Unimplemented, "method MyPayment not implemented") +} +func (*UnimplementedEscrowServiceServer) BalanceOf(ctx context.Context, req *ledger.SignedCreateAccountRequest) (*SignedBalanceResult, error) { + return nil, status.Errorf(codes.Unimplemented, "method BalanceOf not implemented") +} +func (*UnimplementedEscrowServiceServer) CreateChannel(ctx context.Context, req *ledger.SignedChannelCommit) (*ledger.ChannelID, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateChannel not implemented") +} +func (*UnimplementedEscrowServiceServer) CloseChannel(ctx context.Context, req *ledger.SignedChannelState) (*ledger.ChannelClosed, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloseChannel not implemented") +} +func (*UnimplementedEscrowServiceServer) Pay(ctx context.Context, req *ledger.SignedTransferRequest) (*ledger.TransferResult, error) { + return nil, status.Errorf(codes.Unimplemented, "method Pay not implemented") +} +func (*UnimplementedEscrowServiceServer) Stake(ctx context.Context, req *SignedStakeRequest) (*SignedStakeResult, error) { + return nil, status.Errorf(codes.Unimplemented, "method Stake not implemented") +} +func (*UnimplementedEscrowServiceServer) StakePenalty(ctx context.Context, req *SignedStakePenaltyRequest) (*SignedStakePenaltyResult, error) { + return nil, status.Errorf(codes.Unimplemented, "method StakePenalty not implemented") } -func (m *SubmitContractResult) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func RegisterEscrowServiceServer(s *grpc.Server, srv EscrowServiceServer) { + s.RegisterService(&_EscrowService_serviceDesc, srv) } -func (m *SubmitContractResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.BuyerChannelState != nil { - { - size, err := m.BuyerChannelState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEscrow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - n8, err8 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.EscrowSignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime):]) - if err8 != nil { - return 0, err8 +func _EscrowService_SubmitContracts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EscrowContractRequest) + if err := dec(in); err != nil { + return nil, err } - i -= n8 - i = encodeVarintEscrow(dAtA, i, uint64(n8)) - i-- - dAtA[i] = 0x22 - if len(m.EscrowAddress) > 0 { - i -= len(m.EscrowAddress) - copy(dAtA[i:], m.EscrowAddress) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowAddress))) - i-- - dAtA[i] = 0x1a + if interceptor == nil { + return srv.(EscrowServiceServer).SubmitContracts(ctx, in) } - if len(m.Escrow) > 0 { - for iNdEx := len(m.Escrow) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Escrow[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEscrow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/escrow.EscrowService/SubmitContracts", } - if len(m.PayinId) > 0 { - i -= len(m.PayinId) - copy(dAtA[i:], m.PayinId) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.PayinId))) - i-- - dAtA[i] = 0xa + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EscrowServiceServer).SubmitContracts(ctx, req.(*EscrowContractRequest)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *SignedSubmitContractResult) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _EscrowService_StartEscrow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EscrowContractRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *SignedSubmitContractResult) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SignedSubmitContractResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if interceptor == nil { + return srv.(EscrowServiceServer).StartEscrow(ctx, in) } - if len(m.EscrowSignature) > 0 { - i -= len(m.EscrowSignature) - copy(dAtA[i:], m.EscrowSignature) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowSignature))) - i-- - dAtA[i] = 0x12 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/escrow.EscrowService/StartEscrow", } - if m.Result != nil { - { - size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEscrow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EscrowServiceServer).StartEscrow(ctx, req.(*EscrowContractRequest)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *StartEscrowResult) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _EscrowService_PayIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignedPayinRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil + if interceptor == nil { + return srv.(EscrowServiceServer).PayIn(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/escrow.EscrowService/PayIn", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EscrowServiceServer).PayIn(ctx, req.(*SignedPayinRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *StartEscrowResult) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func _EscrowService_IsPaid_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignedContractID) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EscrowServiceServer).IsPaid(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/escrow.EscrowService/IsPaid", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EscrowServiceServer).IsPaid(ctx, req.(*SignedContractID)) + } + return interceptor(ctx, in, info, handler) } -func (m *StartEscrowResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func _EscrowService_GetPayOutStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignedContractID) + if err := dec(in); err != nil { + return nil, err } - n10, err10 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.EscrowSignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime):]) - if err10 != nil { - return 0, err10 + if interceptor == nil { + return srv.(EscrowServiceServer).GetPayOutStatus(ctx, in) } - i -= n10 - i = encodeVarintEscrow(dAtA, i, uint64(n10)) - i-- - dAtA[i] = 0x1a - if len(m.EscrowAddress) > 0 { - i -= len(m.EscrowAddress) - copy(dAtA[i:], m.EscrowAddress) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowAddress))) - i-- - dAtA[i] = 0x12 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/escrow.EscrowService/GetPayOutStatus", } - if len(m.Escrow) > 0 { - for iNdEx := len(m.Escrow) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Escrow[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEscrow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EscrowServiceServer).GetPayOutStatus(ctx, req.(*SignedContractID)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *SignedStartEscrowResult) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _EscrowService_GetPayOutStatusBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignedContractIDBatch) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *SignedStartEscrowResult) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SignedStartEscrowResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if interceptor == nil { + return srv.(EscrowServiceServer).GetPayOutStatusBatch(ctx, in) } - if len(m.EscrowSignature) > 0 { - i -= len(m.EscrowSignature) - copy(dAtA[i:], m.EscrowSignature) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowSignature))) - i-- - dAtA[i] = 0x12 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/escrow.EscrowService/GetPayOutStatusBatch", } - if m.Result != nil { - { - size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEscrow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EscrowServiceServer).GetPayOutStatusBatch(ctx, req.(*SignedContractIDBatch)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *PayinRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _EscrowService_GetModifyPayOutStatusBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignedModifyContractIDBatch) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *PayinRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + if interceptor == nil { + return srv.(EscrowServiceServer).GetModifyPayOutStatusBatch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/escrow.EscrowService/GetModifyPayOutStatusBatch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EscrowServiceServer).GetModifyPayOutStatusBatch(ctx, req.(*SignedModifyContractIDBatch)) + } + return interceptor(ctx, in, info, handler) } -func (m *PayinRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func _EscrowService_CancelContracts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignedCancelRequest) + if err := dec(in); err != nil { + return nil, err } - if m.BuyerChannelState != nil { - { - size, err := m.BuyerChannelState.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEscrow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a + if interceptor == nil { + return srv.(EscrowServiceServer).CancelContracts(ctx, in) } - if len(m.BuyerAddress) > 0 { - i -= len(m.BuyerAddress) - copy(dAtA[i:], m.BuyerAddress) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.BuyerAddress))) - i-- - dAtA[i] = 0x12 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/escrow.EscrowService/CancelContracts", } - if len(m.PayinId) > 0 { - i -= len(m.PayinId) - copy(dAtA[i:], m.PayinId) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.PayinId))) - i-- - dAtA[i] = 0xa + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EscrowServiceServer).CancelContracts(ctx, req.(*SignedCancelRequest)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *SignedPayinRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _EscrowService_MyPayment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignedPayoutAddress) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *SignedPayinRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SignedPayinRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) + if interceptor == nil { + return srv.(EscrowServiceServer).MyPayment(ctx, in) } - if len(m.BuyerSignature) > 0 { - i -= len(m.BuyerSignature) - copy(dAtA[i:], m.BuyerSignature) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.BuyerSignature))) - i-- - dAtA[i] = 0x12 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/escrow.EscrowService/MyPayment", } - if m.Request != nil { - { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEscrow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EscrowServiceServer).MyPayment(ctx, req.(*SignedPayoutAddress)) } - return len(dAtA) - i, nil + return interceptor(ctx, in, info, handler) } -func (m *PayinResult) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func _EscrowService_BalanceOf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ledger.SignedCreateAccountRequest) + if err := dec(in); err != nil { return nil, err } - return dAtA[:n], nil -} - -func (m *PayinResult) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + if interceptor == nil { + return srv.(EscrowServiceServer).BalanceOf(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/escrow.EscrowService/BalanceOf", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EscrowServiceServer).BalanceOf(ctx, req.(*ledger.SignedCreateAccountRequest)) + } + return interceptor(ctx, in, info, handler) } -func (m *PayinResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func _EscrowService_CreateChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ledger.SignedChannelCommit) + if err := dec(in); err != nil { + return nil, err } - n14, err14 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.EscrowSignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime):]) - if err14 != nil { - return 0, err14 + if interceptor == nil { + return srv.(EscrowServiceServer).CreateChannel(ctx, in) } - i -= n14 - i = encodeVarintEscrow(dAtA, i, uint64(n14)) - i-- - dAtA[i] = 0x2a - if len(m.EscrowAddress) > 0 { - i -= len(m.EscrowAddress) - copy(dAtA[i:], m.EscrowAddress) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowAddress))) - i-- - dAtA[i] = 0x22 + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/escrow.EscrowService/CreateChannel", } - if m.ChannelId != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.ChannelId)) - i-- - dAtA[i] = 0x18 + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EscrowServiceServer).CreateChannel(ctx, req.(*ledger.SignedChannelCommit)) } - if m.Amount != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.Amount)) - i-- - dAtA[i] = 0x10 + return interceptor(ctx, in, info, handler) +} + +func _EscrowService_CloseChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ledger.SignedChannelState) + if err := dec(in); err != nil { + return nil, err } - if len(m.PayinId) > 0 { - i -= len(m.PayinId) - copy(dAtA[i:], m.PayinId) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.PayinId))) - i-- - dAtA[i] = 0xa + if interceptor == nil { + return srv.(EscrowServiceServer).CloseChannel(ctx, in) } - return len(dAtA) - i, nil + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/escrow.EscrowService/CloseChannel", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EscrowServiceServer).CloseChannel(ctx, req.(*ledger.SignedChannelState)) + } + return interceptor(ctx, in, info, handler) } -func (m *SignedPayinResult) Marshal() (dAtA []byte, err error) { +func _EscrowService_Pay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ledger.SignedTransferRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EscrowServiceServer).Pay(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/escrow.EscrowService/Pay", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EscrowServiceServer).Pay(ctx, req.(*ledger.SignedTransferRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _EscrowService_Stake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignedStakeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EscrowServiceServer).Stake(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/escrow.EscrowService/Stake", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EscrowServiceServer).Stake(ctx, req.(*SignedStakeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _EscrowService_StakePenalty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignedStakePenaltyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EscrowServiceServer).StakePenalty(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/escrow.EscrowService/StakePenalty", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EscrowServiceServer).StakePenalty(ctx, req.(*SignedStakePenaltyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _EscrowService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "escrow.EscrowService", + HandlerType: (*EscrowServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "SubmitContracts", + Handler: _EscrowService_SubmitContracts_Handler, + }, + { + MethodName: "StartEscrow", + Handler: _EscrowService_StartEscrow_Handler, + }, + { + MethodName: "PayIn", + Handler: _EscrowService_PayIn_Handler, + }, + { + MethodName: "IsPaid", + Handler: _EscrowService_IsPaid_Handler, + }, + { + MethodName: "GetPayOutStatus", + Handler: _EscrowService_GetPayOutStatus_Handler, + }, + { + MethodName: "GetPayOutStatusBatch", + Handler: _EscrowService_GetPayOutStatusBatch_Handler, + }, + { + MethodName: "GetModifyPayOutStatusBatch", + Handler: _EscrowService_GetModifyPayOutStatusBatch_Handler, + }, + { + MethodName: "CancelContracts", + Handler: _EscrowService_CancelContracts_Handler, + }, + { + MethodName: "MyPayment", + Handler: _EscrowService_MyPayment_Handler, + }, + { + MethodName: "BalanceOf", + Handler: _EscrowService_BalanceOf_Handler, + }, + { + MethodName: "CreateChannel", + Handler: _EscrowService_CreateChannel_Handler, + }, + { + MethodName: "CloseChannel", + Handler: _EscrowService_CloseChannel_Handler, + }, + { + MethodName: "Pay", + Handler: _EscrowService_Pay_Handler, + }, + { + MethodName: "Stake", + Handler: _EscrowService_Stake_Handler, + }, + { + MethodName: "StakePenalty", + Handler: _EscrowService_StakePenalty_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "protos/escrow/escrow.proto", +} + +func (m *ContractID) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4255,12 +4308,12 @@ func (m *SignedPayinResult) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SignedPayinResult) MarshalTo(dAtA []byte) (int, error) { +func (m *ContractID) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SignedPayinResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ContractID) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4269,29 +4322,24 @@ func (m *SignedPayinResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.EscrowSignature) > 0 { - i -= len(m.EscrowSignature) - copy(dAtA[i:], m.EscrowSignature) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowSignature))) + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0x12 } - if m.Result != nil { - { - size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEscrow(dAtA, i, uint64(size)) - } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.ContractId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *PayinStatus) Marshal() (dAtA []byte, err error) { +func (m *ContractIDBatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4301,12 +4349,12 @@ func (m *PayinStatus) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PayinStatus) MarshalTo(dAtA []byte) (int, error) { +func (m *ContractIDBatch) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PayinStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ContractIDBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4315,40 +4363,26 @@ func (m *PayinStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - n16, err16 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.EscrowSignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime):]) - if err16 != nil { - return 0, err16 - } - i -= n16 - i = encodeVarintEscrow(dAtA, i, uint64(n16)) - i-- - dAtA[i] = 0x22 - if len(m.EscrowAddress) > 0 { - i -= len(m.EscrowAddress) - copy(dAtA[i:], m.EscrowAddress) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowAddress))) - i-- - dAtA[i] = 0x1a - } - if m.ChannelId != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.ChannelId)) + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.Address))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } - if m.Paid { - i-- - if m.Paid { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.ContractId) > 0 { + for iNdEx := len(m.ContractId) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ContractId[iNdEx]) + copy(dAtA[i:], m.ContractId[iNdEx]) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.ContractId[iNdEx]))) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *SignedPayinStatus) Marshal() (dAtA []byte, err error) { +func (m *SignedContractID) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4358,12 +4392,12 @@ func (m *SignedPayinStatus) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SignedPayinStatus) MarshalTo(dAtA []byte) (int, error) { +func (m *SignedContractID) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SignedPayinStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SignedContractID) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4372,16 +4406,16 @@ func (m *SignedPayinStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.EscrowSignature) > 0 { - i -= len(m.EscrowSignature) - copy(dAtA[i:], m.EscrowSignature) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowSignature))) + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.Signature))) i-- dAtA[i] = 0x12 } - if m.Status != nil { + if m.Data != nil { { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -4394,7 +4428,7 @@ func (m *SignedPayinStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *PayoutStatus) Marshal() (dAtA []byte, err error) { +func (m *SignedContractIDBatch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4404,12 +4438,12 @@ func (m *PayoutStatus) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PayoutStatus) MarshalTo(dAtA []byte) (int, error) { +func (m *SignedContractIDBatch) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PayoutStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SignedContractIDBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4418,132 +4452,178 @@ func (m *PayoutStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - n18, err18 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.LastModifyTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.LastModifyTime):]) - if err18 != nil { - return 0, err18 - } - i -= n18 - i = encodeVarintEscrow(dAtA, i, uint64(n18)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 - if len(m.ErrorMsg) > 0 { - i -= len(m.ErrorMsg) - copy(dAtA[i:], m.ErrorMsg) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.ErrorMsg))) - i-- - dAtA[i] = 0x1 + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.Signature))) i-- - dAtA[i] = 0x9a + dAtA[i] = 0x12 } - n19, err19 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.EscrowSignTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignTime):]) - if err19 != nil { - return 0, err19 - } - i -= n19 - i = encodeVarintEscrow(dAtA, i, uint64(n19)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - if len(m.EscrowAddress) > 0 { - i -= len(m.EscrowAddress) - copy(dAtA[i:], m.EscrowAddress) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowAddress))) + if m.Data != nil { + { + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x1 + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SignedModifyContractIDBatch) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SignedModifyContractIDBatch) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SignedModifyContractIDBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.Signature))) i-- - dAtA[i] = 0x8a + dAtA[i] = 0x1a } - n20, err20 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.NextPayoutTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.NextPayoutTime):]) - if err20 != nil { - return 0, err20 + n3, err3 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.LastModifyTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.LastModifyTime):]) + if err3 != nil { + return 0, err3 } - i -= n20 - i = encodeVarintEscrow(dAtA, i, uint64(n20)) - i-- - dAtA[i] = 0x1 + i -= n3 + i = encodeVarintEscrow(dAtA, i, uint64(n3)) i-- - dAtA[i] = 0x82 - n21, err21 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.LastPayoutTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.LastPayoutTime):]) - if err21 != nil { - return 0, err21 + dAtA[i] = 0x12 + if m.Data != nil { + { + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - i -= n21 - i = encodeVarintEscrow(dAtA, i, uint64(n21)) - i-- - dAtA[i] = 0x7a - if m.NextAmount != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.NextAmount)) + return len(dAtA) - i, nil +} + +func (m *EscrowContract) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EscrowContract) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EscrowContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if m.ContingentAmount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.ContingentAmount)) i-- dAtA[i] = 0x70 } - if m.NumLeft != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.NumLeft)) + if m.Type != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.Type)) i-- dAtA[i] = 0x68 } - if m.LeftAmount != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.LeftAmount)) + if m.CustomizePayoutPeriod != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.CustomizePayoutPeriod)) i-- dAtA[i] = 0x60 } - if m.NumPaid != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.NumPaid)) + if len(m.Reference) > 0 { + i -= len(m.Reference) + copy(dAtA[i:], m.Reference) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.Reference))) i-- - dAtA[i] = 0x58 + dAtA[i] = 0x5a } - if m.PaidAmount != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.PaidAmount)) + if m.NumPayouts != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.NumPayouts)) i-- dAtA[i] = 0x50 } - if m.Withhold != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.Withhold)) + if m.PayoutSchedule != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.PayoutSchedule)) i-- dAtA[i] = 0x48 } - if m.Collateral != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.Collateral)) + if m.TokenType != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.TokenType)) i-- dAtA[i] = 0x40 } - if m.Amount != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.Amount)) + if m.WithholdAmount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.WithholdAmount)) i-- dAtA[i] = 0x38 } - if m.Status != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.Status)) + if m.CollateralAmount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.CollateralAmount)) i-- dAtA[i] = 0x30 } + if m.Amount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.Amount)) + i-- + dAtA[i] = 0x28 + } if len(m.AuthAddress) > 0 { i -= len(m.AuthAddress) copy(dAtA[i:], m.AuthAddress) i = encodeVarintEscrow(dAtA, i, uint64(len(m.AuthAddress))) i-- - dAtA[i] = 0x2a - } - if len(m.ToAddress) > 0 { - i -= len(m.ToAddress) - copy(dAtA[i:], m.ToAddress) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.ToAddress))) - i-- dAtA[i] = 0x22 } - if len(m.FromAddress) > 0 { - i -= len(m.FromAddress) - copy(dAtA[i:], m.FromAddress) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.FromAddress))) + if len(m.SellerAddress) > 0 { + i -= len(m.SellerAddress) + copy(dAtA[i:], m.SellerAddress) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.SellerAddress))) i-- dAtA[i] = 0x1a } - if m.EscrowId != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.EscrowId)) + if len(m.BuyerAddress) > 0 { + i -= len(m.BuyerAddress) + copy(dAtA[i:], m.BuyerAddress) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.BuyerAddress))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } if len(m.ContractId) > 0 { i -= len(m.ContractId) @@ -4555,7 +4635,7 @@ func (m *PayoutStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *SignedPayoutStatus) Marshal() (dAtA []byte, err error) { +func (m *SignedEscrowContract) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4565,12 +4645,12 @@ func (m *SignedPayoutStatus) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SignedPayoutStatus) MarshalTo(dAtA []byte) (int, error) { +func (m *SignedEscrowContract) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SignedPayoutStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SignedEscrowContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4579,16 +4659,23 @@ func (m *SignedPayoutStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.EscrowSignature) > 0 { - i -= len(m.EscrowSignature) - copy(dAtA[i:], m.EscrowSignature) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowSignature))) + if len(m.SellerSignature) > 0 { + i -= len(m.SellerSignature) + copy(dAtA[i:], m.SellerSignature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.SellerSignature))) + i-- + dAtA[i] = 0x1a + } + if len(m.BuyerSignature) > 0 { + i -= len(m.BuyerSignature) + copy(dAtA[i:], m.BuyerSignature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.BuyerSignature))) i-- dAtA[i] = 0x12 } - if m.Status != nil { + if m.Contract != nil { { - size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Contract.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -4601,7 +4688,7 @@ func (m *SignedPayoutStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *SignedPayoutStatusBatch) Marshal() (dAtA []byte, err error) { +func (m *EscrowContractRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4611,12 +4698,12 @@ func (m *SignedPayoutStatusBatch) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SignedPayoutStatusBatch) MarshalTo(dAtA []byte) (int, error) { +func (m *EscrowContractRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SignedPayoutStatusBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EscrowContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4625,17 +4712,22 @@ func (m *SignedPayoutStatusBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.EscrowSignature) > 0 { - i -= len(m.EscrowSignature) - copy(dAtA[i:], m.EscrowSignature) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowSignature))) + if m.BuyerChannel != nil { + { + size, err := m.BuyerChannel.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0x12 } - if len(m.Status) > 0 { - for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { + if len(m.Contract) > 0 { + for iNdEx := len(m.Contract) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Contract[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -4649,7 +4741,7 @@ func (m *SignedPayoutStatusBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *CancelContractRequest) Marshal() (dAtA []byte, err error) { +func (m *Escrow) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4659,12 +4751,12 @@ func (m *CancelContractRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *CancelContractRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *Escrow) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *CancelContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Escrow) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4673,20 +4765,46 @@ func (m *CancelContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - n23, err23 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.AuthSignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.AuthSignedTime):]) - if err23 != nil { - return 0, err23 - } - i -= n23 - i = encodeVarintEscrow(dAtA, i, uint64(n23)) - i-- - dAtA[i] = 0x1a - if len(m.AuthAddress) > 0 { - i -= len(m.AuthAddress) - copy(dAtA[i:], m.AuthAddress) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.AuthAddress))) + if len(m.ErrorMessage) > 0 { + i -= len(m.ErrorMessage) + copy(dAtA[i:], m.ErrorMessage) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.ErrorMessage))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x42 + } + if m.ErrorCode != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.ErrorCode)) + i-- + dAtA[i] = 0x38 + } + if m.CollateralAmount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.CollateralAmount)) + i-- + dAtA[i] = 0x30 + } + if m.Amount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.Amount)) + i-- + dAtA[i] = 0x28 + } + if len(m.ToAddress) > 0 { + i -= len(m.ToAddress) + copy(dAtA[i:], m.ToAddress) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.ToAddress))) + i-- + dAtA[i] = 0x22 + } + if len(m.FromAddress) > 0 { + i -= len(m.FromAddress) + copy(dAtA[i:], m.FromAddress) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.FromAddress))) + i-- + dAtA[i] = 0x1a + } + if m.EscrowId != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.EscrowId)) + i-- + dAtA[i] = 0x10 } if len(m.ContractId) > 0 { i -= len(m.ContractId) @@ -4698,7 +4816,7 @@ func (m *CancelContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *SignedCancelRequest) Marshal() (dAtA []byte, err error) { +func (m *SubmitContractResult) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4708,12 +4826,12 @@ func (m *SignedCancelRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SignedCancelRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *SubmitContractResult) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SignedCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SubmitContractResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4722,16 +4840,9 @@ func (m *SignedCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.AuthSignature) > 0 { - i -= len(m.AuthSignature) - copy(dAtA[i:], m.AuthSignature) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.AuthSignature))) - i-- - dAtA[i] = 0x12 - } - if m.Request != nil { + if m.BuyerChannelState != nil { { - size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.BuyerChannelState.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -4739,98 +4850,48 @@ func (m *SignedCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintEscrow(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CancelContractResult) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CancelContractResult) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CancelContractResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Reference) > 0 { - i -= len(m.Reference) - copy(dAtA[i:], m.Reference) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.Reference))) - i-- - dAtA[i] = 0x42 - } - if m.Paid { - i-- - if m.Paid { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x38 - } - if m.Amount != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.Amount)) - i-- - dAtA[i] = 0x30 + dAtA[i] = 0x2a } - n25, err25 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.EscrowSignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime):]) - if err25 != nil { - return 0, err25 + n8, err8 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.EscrowSignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime):]) + if err8 != nil { + return 0, err8 } - i -= n25 - i = encodeVarintEscrow(dAtA, i, uint64(n25)) + i -= n8 + i = encodeVarintEscrow(dAtA, i, uint64(n8)) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 if len(m.EscrowAddress) > 0 { i -= len(m.EscrowAddress) copy(dAtA[i:], m.EscrowAddress) i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowAddress))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } - if m.Canceled { - i-- - if m.Canceled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Escrow) > 0 { + for iNdEx := len(m.Escrow) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Escrow[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - i-- - dAtA[i] = 0x18 - } - if m.EscrowId != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.EscrowId)) - i-- - dAtA[i] = 0x10 } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.ContractId))) + if len(m.PayinId) > 0 { + i -= len(m.PayinId) + copy(dAtA[i:], m.PayinId) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.PayinId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *SignedCancelContractResult) Marshal() (dAtA []byte, err error) { +func (m *SignedSubmitContractResult) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4840,12 +4901,12 @@ func (m *SignedCancelContractResult) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SignedCancelContractResult) MarshalTo(dAtA []byte) (int, error) { +func (m *SignedSubmitContractResult) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SignedCancelContractResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SignedSubmitContractResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4876,7 +4937,7 @@ func (m *SignedCancelContractResult) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *PayoutAddress) Marshal() (dAtA []byte, err error) { +func (m *StartEscrowResult) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4886,12 +4947,12 @@ func (m *PayoutAddress) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PayoutAddress) MarshalTo(dAtA []byte) (int, error) { +func (m *StartEscrowResult) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PayoutAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *StartEscrowResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4900,25 +4961,39 @@ func (m *PayoutAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - n27, err27 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.SignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.SignedTime):]) - if err27 != nil { - return 0, err27 + n10, err10 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.EscrowSignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime):]) + if err10 != nil { + return 0, err10 } - i -= n27 - i = encodeVarintEscrow(dAtA, i, uint64(n27)) + i -= n10 + i = encodeVarintEscrow(dAtA, i, uint64(n10)) i-- - dAtA[i] = 0x12 - if len(m.ToAddress) > 0 { - i -= len(m.ToAddress) - copy(dAtA[i:], m.ToAddress) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.ToAddress))) + dAtA[i] = 0x1a + if len(m.EscrowAddress) > 0 { + i -= len(m.EscrowAddress) + copy(dAtA[i:], m.EscrowAddress) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowAddress))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if len(m.Escrow) > 0 { + for iNdEx := len(m.Escrow) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Escrow[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *SignedPayoutAddress) Marshal() (dAtA []byte, err error) { +func (m *SignedStartEscrowResult) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4928,12 +5003,12 @@ func (m *SignedPayoutAddress) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SignedPayoutAddress) MarshalTo(dAtA []byte) (int, error) { +func (m *SignedStartEscrowResult) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SignedPayoutAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SignedStartEscrowResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4942,16 +5017,16 @@ func (m *SignedPayoutAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - if len(m.Signature) > 0 { - i -= len(m.Signature) - copy(dAtA[i:], m.Signature) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.Signature))) + if len(m.EscrowSignature) > 0 { + i -= len(m.EscrowSignature) + copy(dAtA[i:], m.EscrowSignature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowSignature))) i-- dAtA[i] = 0x12 } - if m.Address != nil { + if m.Result != nil { { - size, err := m.Address.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -4964,7 +5039,7 @@ func (m *SignedPayoutAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *Payment) Marshal() (dAtA []byte, err error) { +func (m *PayinRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4974,12 +5049,12 @@ func (m *Payment) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *Payment) MarshalTo(dAtA []byte) (int, error) { +func (m *PayinRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *Payment) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PayinRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -4988,46 +5063,82 @@ func (m *Payment) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - if m.Index != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.Index)) + if m.BuyerChannelState != nil { + { + size, err := m.BuyerChannelState.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x30 + dAtA[i] = 0x1a } - if m.Amount != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.Amount)) + if len(m.BuyerAddress) > 0 { + i -= len(m.BuyerAddress) + copy(dAtA[i:], m.BuyerAddress) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.BuyerAddress))) i-- - dAtA[i] = 0x28 + dAtA[i] = 0x12 } - if len(m.ToAddress) > 0 { - i -= len(m.ToAddress) - copy(dAtA[i:], m.ToAddress) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.ToAddress))) + if len(m.PayinId) > 0 { + i -= len(m.PayinId) + copy(dAtA[i:], m.PayinId) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.PayinId))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0xa } - if len(m.FromAddress) > 0 { - i -= len(m.FromAddress) - copy(dAtA[i:], m.FromAddress) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.FromAddress))) - i-- - dAtA[i] = 0x1a + return len(dAtA) - i, nil +} + +func (m *SignedPayinRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - if m.EscrowId != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.EscrowId)) + return dAtA[:n], nil +} + +func (m *SignedPayinRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SignedPayinRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.BuyerSignature) > 0 { + i -= len(m.BuyerSignature) + copy(dAtA[i:], m.BuyerSignature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.BuyerSignature))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } - if len(m.ContractId) > 0 { - i -= len(m.ContractId) - copy(dAtA[i:], m.ContractId) - i = encodeVarintEscrow(dAtA, i, uint64(len(m.ContractId))) + if m.Request != nil { + { + size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *PaymentResult) Marshal() (dAtA []byte, err error) { +func (m *PayinResult) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5037,12 +5148,12 @@ func (m *PaymentResult) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PaymentResult) MarshalTo(dAtA []byte) (int, error) { +func (m *PayinResult) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PaymentResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PayinResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5051,39 +5162,42 @@ func (m *PaymentResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - n29, err29 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.EscrowSignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime):]) - if err29 != nil { - return 0, err29 + n14, err14 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.EscrowSignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime):]) + if err14 != nil { + return 0, err14 } - i -= n29 - i = encodeVarintEscrow(dAtA, i, uint64(n29)) + i -= n14 + i = encodeVarintEscrow(dAtA, i, uint64(n14)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x2a if len(m.EscrowAddress) > 0 { i -= len(m.EscrowAddress) copy(dAtA[i:], m.EscrowAddress) i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowAddress))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x22 } - if len(m.Payment) > 0 { - for iNdEx := len(m.Payment) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Payment[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintEscrow(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + if m.ChannelId != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.ChannelId)) + i-- + dAtA[i] = 0x18 + } + if m.Amount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.Amount)) + i-- + dAtA[i] = 0x10 + } + if len(m.PayinId) > 0 { + i -= len(m.PayinId) + copy(dAtA[i:], m.PayinId) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.PayinId))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *SignedPaymentResult) Marshal() (dAtA []byte, err error) { +func (m *SignedPayinResult) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5093,12 +5207,12 @@ func (m *SignedPaymentResult) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SignedPaymentResult) MarshalTo(dAtA []byte) (int, error) { +func (m *SignedPayinResult) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SignedPaymentResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SignedPayinResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5129,7 +5243,7 @@ func (m *SignedPaymentResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *BalanceResult) Marshal() (dAtA []byte, err error) { +func (m *PayinStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5139,12 +5253,12 @@ func (m *BalanceResult) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *BalanceResult) MarshalTo(dAtA []byte) (int, error) { +func (m *PayinStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *BalanceResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PayinStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5153,30 +5267,40 @@ func (m *BalanceResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - n31, err31 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.EscrowSignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime):]) - if err31 != nil { - return 0, err31 + n16, err16 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.EscrowSignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime):]) + if err16 != nil { + return 0, err16 } - i -= n31 - i = encodeVarintEscrow(dAtA, i, uint64(n31)) + i -= n16 + i = encodeVarintEscrow(dAtA, i, uint64(n16)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x22 if len(m.EscrowAddress) > 0 { i -= len(m.EscrowAddress) copy(dAtA[i:], m.EscrowAddress) i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowAddress))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } - if m.Balance != 0 { - i = encodeVarintEscrow(dAtA, i, uint64(m.Balance)) + if m.ChannelId != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.ChannelId)) + i-- + dAtA[i] = 0x10 + } + if m.Paid { + i-- + if m.Paid { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *SignedBalanceResult) Marshal() (dAtA []byte, err error) { +func (m *SignedPayinStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -5186,12 +5310,12 @@ func (m *SignedBalanceResult) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *SignedBalanceResult) MarshalTo(dAtA []byte) (int, error) { +func (m *SignedPayinStatus) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SignedBalanceResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SignedPayinStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -5207,9 +5331,9 @@ func (m *SignedBalanceResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Result != nil { + if m.Status != nil { { - size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -5222,877 +5346,4139 @@ func (m *SignedBalanceResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintEscrow(dAtA []byte, offset int, v uint64) int { - offset -= sovEscrow(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ContractID) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (m *PayoutStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *ContractIDBatch) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ContractId) > 0 { - for _, s := range m.ContractId { - l = len(s) - n += 1 + l + sovEscrow(uint64(l)) - } - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (m *PayoutStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SignedContractID) Size() (n int) { - if m == nil { - return 0 - } +func (m *PayoutStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Data != nil { - l = m.Data.Size() - n += 1 + l + sovEscrow(uint64(l)) - } - l = len(m.Signature) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n -} - -func (m *SignedContractIDBatch) Size() (n int) { - if m == nil { - return 0 + n18, err18 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.LastModifyTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.LastModifyTime):]) + if err18 != nil { + return 0, err18 } - var l int - _ = l - if m.Data != nil { - l = m.Data.Size() - n += 1 + l + sovEscrow(uint64(l)) + i -= n18 + i = encodeVarintEscrow(dAtA, i, uint64(n18)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + if len(m.ErrorMsg) > 0 { + i -= len(m.ErrorMsg) + copy(dAtA[i:], m.ErrorMsg) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.ErrorMsg))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a } - l = len(m.Signature) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + n19, err19 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.EscrowSignTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignTime):]) + if err19 != nil { + return 0, err19 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= n19 + i = encodeVarintEscrow(dAtA, i, uint64(n19)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + if len(m.EscrowAddress) > 0 { + i -= len(m.EscrowAddress) + copy(dAtA[i:], m.EscrowAddress) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowAddress))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a } - return n -} - -func (m *SignedModifyContractIDBatch) Size() (n int) { - if m == nil { - return 0 + n20, err20 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.NextPayoutTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.NextPayoutTime):]) + if err20 != nil { + return 0, err20 } - var l int - _ = l - if m.Data != nil { - l = m.Data.Size() - n += 1 + l + sovEscrow(uint64(l)) + i -= n20 + i = encodeVarintEscrow(dAtA, i, uint64(n20)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + n21, err21 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.LastPayoutTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.LastPayoutTime):]) + if err21 != nil { + return 0, err21 } - l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.LastModifyTime) - n += 1 + l + sovEscrow(uint64(l)) - l = len(m.Signature) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + i -= n21 + i = encodeVarintEscrow(dAtA, i, uint64(n21)) + i-- + dAtA[i] = 0x7a + if m.NextAmount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.NextAmount)) + i-- + dAtA[i] = 0x70 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if m.NumLeft != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.NumLeft)) + i-- + dAtA[i] = 0x68 } - return n -} - -func (m *EscrowContract) Size() (n int) { - if m == nil { - return 0 + if m.LeftAmount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.LeftAmount)) + i-- + dAtA[i] = 0x60 } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if m.NumPaid != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.NumPaid)) + i-- + dAtA[i] = 0x58 } - l = len(m.BuyerAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if m.PaidAmount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.PaidAmount)) + i-- + dAtA[i] = 0x50 } - l = len(m.SellerAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if m.Withhold != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.Withhold)) + i-- + dAtA[i] = 0x48 } - l = len(m.AuthAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if m.Collateral != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.Collateral)) + i-- + dAtA[i] = 0x40 } if m.Amount != 0 { - n += 1 + sovEscrow(uint64(m.Amount)) - } - if m.CollateralAmount != 0 { - n += 1 + sovEscrow(uint64(m.CollateralAmount)) - } - if m.WithholdAmount != 0 { - n += 1 + sovEscrow(uint64(m.WithholdAmount)) - } - if m.TokenType != 0 { - n += 1 + sovEscrow(uint64(m.TokenType)) - } - if m.PayoutSchedule != 0 { - n += 1 + sovEscrow(uint64(m.PayoutSchedule)) + i = encodeVarintEscrow(dAtA, i, uint64(m.Amount)) + i-- + dAtA[i] = 0x38 } - if m.NumPayouts != 0 { - n += 1 + sovEscrow(uint64(m.NumPayouts)) + if m.Status != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x30 } - l = len(m.Reference) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if len(m.AuthAddress) > 0 { + i -= len(m.AuthAddress) + copy(dAtA[i:], m.AuthAddress) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.AuthAddress))) + i-- + dAtA[i] = 0x2a } - if m.CustomizePayoutPeriod != 0 { - n += 1 + sovEscrow(uint64(m.CustomizePayoutPeriod)) + if len(m.ToAddress) > 0 { + i -= len(m.ToAddress) + copy(dAtA[i:], m.ToAddress) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.ToAddress))) + i-- + dAtA[i] = 0x22 } - if m.Type != 0 { - n += 1 + sovEscrow(uint64(m.Type)) + if len(m.FromAddress) > 0 { + i -= len(m.FromAddress) + copy(dAtA[i:], m.FromAddress) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.FromAddress))) + i-- + dAtA[i] = 0x1a } - if m.ContingentAmount != 0 { - n += 1 + sovEscrow(uint64(m.ContingentAmount)) + if m.EscrowId != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.EscrowId)) + i-- + dAtA[i] = 0x10 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *SignedEscrowContract) Size() (n int) { - if m == nil { - return 0 +func (m *SignedPayoutStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *SignedPayoutStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SignedPayoutStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Contract != nil { - l = m.Contract.Size() - n += 1 + l + sovEscrow(uint64(l)) - } - l = len(m.BuyerSignature) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - l = len(m.SellerSignature) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if len(m.EscrowSignature) > 0 { + i -= len(m.EscrowSignature) + copy(dAtA[i:], m.EscrowSignature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowSignature))) + i-- + dAtA[i] = 0x12 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if m.Status != nil { + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *EscrowContractRequest) Size() (n int) { - if m == nil { - return 0 +func (m *SignedPayoutStatusBatch) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *SignedPayoutStatusBatch) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SignedPayoutStatusBatch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.Contract) > 0 { - for _, e := range m.Contract { - l = e.Size() - n += 1 + l + sovEscrow(uint64(l)) - } - } - if m.BuyerChannel != nil { - l = m.BuyerChannel.Size() - n += 1 + l + sovEscrow(uint64(l)) - } if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n -} - -func (m *Escrow) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - if m.EscrowId != 0 { - n += 1 + sovEscrow(uint64(m.EscrowId)) - } - l = len(m.FromAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - l = len(m.ToAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - if m.Amount != 0 { - n += 1 + sovEscrow(uint64(m.Amount)) - } - if m.CollateralAmount != 0 { - n += 1 + sovEscrow(uint64(m.CollateralAmount)) - } - if m.ErrorCode != 0 { - n += 1 + sovEscrow(uint64(m.ErrorCode)) - } - l = len(m.ErrorMessage) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if len(m.EscrowSignature) > 0 { + i -= len(m.EscrowSignature) + copy(dAtA[i:], m.EscrowSignature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowSignature))) + i-- + dAtA[i] = 0x12 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if len(m.Status) > 0 { + for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - return n + return len(dAtA) - i, nil } -func (m *SubmitContractResult) Size() (n int) { - if m == nil { - return 0 +func (m *CancelContractRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *CancelContractRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CancelContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.PayinId) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - if len(m.Escrow) > 0 { - for _, e := range m.Escrow { - l = e.Size() - n += 1 + l + sovEscrow(uint64(l)) - } + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - l = len(m.EscrowAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + n23, err23 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.AuthSignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.AuthSignedTime):]) + if err23 != nil { + return 0, err23 } - l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime) - n += 1 + l + sovEscrow(uint64(l)) - if m.BuyerChannelState != nil { - l = m.BuyerChannelState.Size() - n += 1 + l + sovEscrow(uint64(l)) + i -= n23 + i = encodeVarintEscrow(dAtA, i, uint64(n23)) + i-- + dAtA[i] = 0x1a + if len(m.AuthAddress) > 0 { + i -= len(m.AuthAddress) + copy(dAtA[i:], m.AuthAddress) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.AuthAddress))) + i-- + dAtA[i] = 0x12 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *SignedSubmitContractResult) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Result != nil { - l = m.Result.Size() - n += 1 + l + sovEscrow(uint64(l)) - } - l = len(m.EscrowSignature) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (m *SignedCancelRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *StartEscrowResult) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Escrow) > 0 { - for _, e := range m.Escrow { - l = e.Size() - n += 1 + l + sovEscrow(uint64(l)) - } - } - l = len(m.EscrowAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime) - n += 1 + l + sovEscrow(uint64(l)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (m *SignedCancelRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SignedStartEscrowResult) Size() (n int) { - if m == nil { - return 0 - } +func (m *SignedCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Result != nil { - l = m.Result.Size() - n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - l = len(m.EscrowSignature) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if len(m.AuthSignature) > 0 { + i -= len(m.AuthSignature) + copy(dAtA[i:], m.AuthSignature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.AuthSignature))) + i-- + dAtA[i] = 0x12 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if m.Request != nil { + { + size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *PayinRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PayinId) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - l = len(m.BuyerAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - if m.BuyerChannelState != nil { - l = m.BuyerChannelState.Size() - n += 1 + l + sovEscrow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (m *CancelContractResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *SignedPayinRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *CancelContractResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CancelContractResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovEscrow(uint64(l)) - } - l = len(m.BuyerSignature) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n -} - -func (m *PayinResult) Size() (n int) { - if m == nil { - return 0 + if len(m.Reference) > 0 { + i -= len(m.Reference) + copy(dAtA[i:], m.Reference) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.Reference))) + i-- + dAtA[i] = 0x42 } - var l int - _ = l - l = len(m.PayinId) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if m.Paid { + i-- + if m.Paid { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x38 } if m.Amount != 0 { - n += 1 + sovEscrow(uint64(m.Amount)) + i = encodeVarintEscrow(dAtA, i, uint64(m.Amount)) + i-- + dAtA[i] = 0x30 } - if m.ChannelId != 0 { - n += 1 + sovEscrow(uint64(m.ChannelId)) + n25, err25 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.EscrowSignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime):]) + if err25 != nil { + return 0, err25 } - l = len(m.EscrowAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + i -= n25 + i = encodeVarintEscrow(dAtA, i, uint64(n25)) + i-- + dAtA[i] = 0x2a + if len(m.EscrowAddress) > 0 { + i -= len(m.EscrowAddress) + copy(dAtA[i:], m.EscrowAddress) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowAddress))) + i-- + dAtA[i] = 0x22 } - l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime) - n += 1 + l + sovEscrow(uint64(l)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if m.Canceled { + i-- + if m.Canceled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 } - return n + if m.EscrowId != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.EscrowId)) + i-- + dAtA[i] = 0x10 + } + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *SignedPayinResult) Size() (n int) { - if m == nil { - return 0 +func (m *SignedCancelContractResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *SignedCancelContractResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SignedCancelContractResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Result != nil { - l = m.Result.Size() - n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - l = len(m.EscrowSignature) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if len(m.EscrowSignature) > 0 { + i -= len(m.EscrowSignature) + copy(dAtA[i:], m.EscrowSignature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowSignature))) + i-- + dAtA[i] = 0x12 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if m.Result != nil { + { + size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *PayinStatus) Size() (n int) { - if m == nil { - return 0 +func (m *PayoutAddress) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *PayoutAddress) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PayoutAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Paid { - n += 2 - } - if m.ChannelId != 0 { - n += 1 + sovEscrow(uint64(m.ChannelId)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - l = len(m.EscrowAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + n27, err27 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.SignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.SignedTime):]) + if err27 != nil { + return 0, err27 } - l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime) - n += 1 + l + sovEscrow(uint64(l)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= n27 + i = encodeVarintEscrow(dAtA, i, uint64(n27)) + i-- + dAtA[i] = 0x12 + if len(m.ToAddress) > 0 { + i -= len(m.ToAddress) + copy(dAtA[i:], m.ToAddress) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.ToAddress))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *SignedPayinStatus) Size() (n int) { - if m == nil { - return 0 +func (m *SignedPayoutAddress) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *SignedPayoutAddress) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SignedPayoutAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - l = len(m.EscrowSignature) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x12 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if m.Address != nil { + { + size, err := m.Address.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *PayoutStatus) Size() (n int) { - if m == nil { - return 0 +func (m *Payment) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *Payment) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Payment) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.EscrowId != 0 { - n += 1 + sovEscrow(uint64(m.EscrowId)) - } - l = len(m.FromAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - l = len(m.ToAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - l = len(m.AuthAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - if m.Status != 0 { - n += 1 + sovEscrow(uint64(m.Status)) + if m.Index != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x30 } if m.Amount != 0 { - n += 1 + sovEscrow(uint64(m.Amount)) - } - if m.Collateral != 0 { - n += 1 + sovEscrow(uint64(m.Collateral)) - } - if m.Withhold != 0 { - n += 1 + sovEscrow(uint64(m.Withhold)) - } - if m.PaidAmount != 0 { - n += 1 + sovEscrow(uint64(m.PaidAmount)) - } - if m.NumPaid != 0 { - n += 1 + sovEscrow(uint64(m.NumPaid)) - } - if m.LeftAmount != 0 { - n += 1 + sovEscrow(uint64(m.LeftAmount)) - } - if m.NumLeft != 0 { - n += 1 + sovEscrow(uint64(m.NumLeft)) + i = encodeVarintEscrow(dAtA, i, uint64(m.Amount)) + i-- + dAtA[i] = 0x28 } - if m.NextAmount != 0 { - n += 1 + sovEscrow(uint64(m.NextAmount)) + if len(m.ToAddress) > 0 { + i -= len(m.ToAddress) + copy(dAtA[i:], m.ToAddress) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.ToAddress))) + i-- + dAtA[i] = 0x22 } - l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.LastPayoutTime) - n += 1 + l + sovEscrow(uint64(l)) - l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.NextPayoutTime) - n += 2 + l + sovEscrow(uint64(l)) - l = len(m.EscrowAddress) - if l > 0 { - n += 2 + l + sovEscrow(uint64(l)) + if len(m.FromAddress) > 0 { + i -= len(m.FromAddress) + copy(dAtA[i:], m.FromAddress) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.FromAddress))) + i-- + dAtA[i] = 0x1a } - l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignTime) - n += 2 + l + sovEscrow(uint64(l)) - l = len(m.ErrorMsg) - if l > 0 { - n += 2 + l + sovEscrow(uint64(l)) + if m.EscrowId != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.EscrowId)) + i-- + dAtA[i] = 0x10 } - l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.LastModifyTime) - n += 2 + l + sovEscrow(uint64(l)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if len(m.ContractId) > 0 { + i -= len(m.ContractId) + copy(dAtA[i:], m.ContractId) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.ContractId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *SignedPayoutStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Status != nil { - l = m.Status.Size() - n += 1 + l + sovEscrow(uint64(l)) - } - l = len(m.EscrowSignature) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (m *PaymentResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *SignedPayoutStatusBatch) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Status) > 0 { - for _, e := range m.Status { - l = e.Size() - n += 1 + l + sovEscrow(uint64(l)) - } - } - l = len(m.EscrowSignature) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (m *PaymentResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *CancelContractRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *PaymentResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - l = len(m.AuthAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + n29, err29 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.EscrowSignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime):]) + if err29 != nil { + return 0, err29 } - l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.AuthSignedTime) - n += 1 + l + sovEscrow(uint64(l)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= n29 + i = encodeVarintEscrow(dAtA, i, uint64(n29)) + i-- + dAtA[i] = 0x1a + if len(m.EscrowAddress) > 0 { + i -= len(m.EscrowAddress) + copy(dAtA[i:], m.EscrowAddress) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowAddress))) + i-- + dAtA[i] = 0x12 } - return n + if len(m.Payment) > 0 { + for iNdEx := len(m.Payment) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Payment[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil } -func (m *SignedCancelRequest) Size() (n int) { - if m == nil { - return 0 +func (m *SignedPaymentResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *SignedPaymentResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SignedPaymentResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Request != nil { - l = m.Request.Size() - n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - l = len(m.AuthSignature) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if len(m.EscrowSignature) > 0 { + i -= len(m.EscrowSignature) + copy(dAtA[i:], m.EscrowSignature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowSignature))) + i-- + dAtA[i] = 0x12 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if m.Result != nil { + { + size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *CancelContractResult) Size() (n int) { - if m == nil { - return 0 +func (m *BalanceResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *BalanceResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BalanceResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.EscrowId != 0 { - n += 1 + sovEscrow(uint64(m.EscrowId)) + n31, err31 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.EscrowSignedTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime):]) + if err31 != nil { + return 0, err31 } - if m.Canceled { - n += 2 - } - l = len(m.EscrowAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime) - n += 1 + l + sovEscrow(uint64(l)) - if m.Amount != 0 { - n += 1 + sovEscrow(uint64(m.Amount)) - } - if m.Paid { - n += 2 - } - l = len(m.Reference) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + i -= n31 + i = encodeVarintEscrow(dAtA, i, uint64(n31)) + i-- + dAtA[i] = 0x1a + if len(m.EscrowAddress) > 0 { + i -= len(m.EscrowAddress) + copy(dAtA[i:], m.EscrowAddress) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowAddress))) + i-- + dAtA[i] = 0x12 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if m.Balance != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.Balance)) + i-- + dAtA[i] = 0x8 } - return n + return len(dAtA) - i, nil } -func (m *SignedCancelContractResult) Size() (n int) { - if m == nil { - return 0 +func (m *SignedBalanceResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *SignedBalanceResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SignedBalanceResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Result != nil { - l = m.Result.Size() - n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - l = len(m.EscrowSignature) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if len(m.EscrowSignature) > 0 { + i -= len(m.EscrowSignature) + copy(dAtA[i:], m.EscrowSignature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.EscrowSignature))) + i-- + dAtA[i] = 0x12 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if m.Result != nil { + { + size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *PayoutAddress) Size() (n int) { - if m == nil { - return 0 +func (m *SignedStakeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *SignedStakeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SignedStakeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.ToAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.SignedTime) - n += 1 + l + sovEscrow(uint64(l)) if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - return n + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x12 + } + if m.Data != nil { + { + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *SignedPayoutAddress) Size() (n int) { - if m == nil { - return 0 +func (m *StakeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *StakeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StakeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Address != nil { - l = m.Address.Size() - n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - l = len(m.Signature) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + n34, err34 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.RequestTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.RequestTime):]) + if err34 != nil { + return 0, err34 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + i -= n34 + i = encodeVarintEscrow(dAtA, i, uint64(n34)) + i-- + dAtA[i] = 0x22 + if m.TransferRequest != nil { + { + size, err := m.TransferRequest.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - return n + if m.StakeAmount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.StakeAmount)) + i-- + dAtA[i] = 0x10 + } + if len(m.StakerId) > 0 { + i -= len(m.StakerId) + copy(dAtA[i:], m.StakerId) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.StakerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *Payment) Size() (n int) { - if m == nil { - return 0 +func (m *StakeResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *StakeResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StakeResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.ContractId) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) } - if m.EscrowId != 0 { - n += 1 + sovEscrow(uint64(m.EscrowId)) + if len(m.UnfinishLedgers) > 0 { + for iNdEx := len(m.UnfinishLedgers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UnfinishLedgers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } } - l = len(m.FromAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if len(m.Ledgers) > 0 { + for iNdEx := len(m.Ledgers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Ledgers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } } - l = len(m.ToAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) + if m.PendingAmount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.PendingAmount)) + i-- + dAtA[i] = 0x20 } - if m.Amount != 0 { - n += 1 + sovEscrow(uint64(m.Amount)) + if m.MatureAmount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.MatureAmount)) + i-- + dAtA[i] = 0x18 } - if m.Index != 0 { - n += 1 + sovEscrow(uint64(m.Index)) + if m.Balance != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.Balance)) + i-- + dAtA[i] = 0x10 } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if len(m.StakerId) > 0 { + i -= len(m.StakerId) + copy(dAtA[i:], m.StakerId) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.StakerId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *PaymentResult) Size() (n int) { - if m == nil { - return 0 +func (m *SignedStakeResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l + return dAtA[:n], nil +} + +func (m *SignedStakeResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SignedStakeResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x12 + } + if m.Data != nil { + { + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *StakeLedger) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StakeLedger) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StakeLedger) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.OperationLog) > 0 { + i -= len(m.OperationLog) + copy(dAtA[i:], m.OperationLog) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.OperationLog))) + i-- + dAtA[i] = 0x3a + } + if m.Type != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x30 + } + if len(m.OperatorId) > 0 { + i -= len(m.OperatorId) + copy(dAtA[i:], m.OperatorId) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.OperatorId))) + i-- + dAtA[i] = 0x2a + } + n37, err37 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.MatureTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.MatureTime):]) + if err37 != nil { + return 0, err37 + } + i -= n37 + i = encodeVarintEscrow(dAtA, i, uint64(n37)) + i-- + dAtA[i] = 0x22 + n38, err38 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.StartTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.StartTime):]) + if err38 != nil { + return 0, err38 + } + i -= n38 + i = encodeVarintEscrow(dAtA, i, uint64(n38)) + i-- + dAtA[i] = 0x1a + if m.Amount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.Amount)) + i-- + dAtA[i] = 0x10 + } + if len(m.StakerId) > 0 { + i -= len(m.StakerId) + copy(dAtA[i:], m.StakerId) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.StakerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *UnfinishStakeLedger) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UnfinishStakeLedger) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UnfinishStakeLedger) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + n39, err39 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.FailTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.FailTime):]) + if err39 != nil { + return 0, err39 + } + i -= n39 + i = encodeVarintEscrow(dAtA, i, uint64(n39)) + i-- + dAtA[i] = 0x32 + n40, err40 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.SubmitTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.SubmitTime):]) + if err40 != nil { + return 0, err40 + } + i -= n40 + i = encodeVarintEscrow(dAtA, i, uint64(n40)) + i-- + dAtA[i] = 0x2a + if len(m.FailReason) > 0 { + i -= len(m.FailReason) + copy(dAtA[i:], m.FailReason) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.FailReason))) + i-- + dAtA[i] = 0x22 + } + if m.Status != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.Status)) + i-- + dAtA[i] = 0x18 + } + if m.Amount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.Amount)) + i-- + dAtA[i] = 0x10 + } + if len(m.StakerId) > 0 { + i -= len(m.StakerId) + copy(dAtA[i:], m.StakerId) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.StakerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SignedStakePenaltyRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SignedStakePenaltyRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SignedStakePenaltyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x12 + } + if m.Data != nil { + { + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *StakePenaltyRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StakePenaltyRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StakePenaltyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + n42, err42 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.SubmitTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.SubmitTime):]) + if err42 != nil { + return 0, err42 + } + i -= n42 + i = encodeVarintEscrow(dAtA, i, uint64(n42)) + i-- + dAtA[i] = 0x32 + if m.Amount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.Amount)) + i-- + dAtA[i] = 0x28 + } + if len(m.OperationLog) > 0 { + i -= len(m.OperationLog) + copy(dAtA[i:], m.OperationLog) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.OperationLog))) + i-- + dAtA[i] = 0x22 + } + if m.Reason != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.Reason)) + i-- + dAtA[i] = 0x18 + } + if len(m.OperatorId) > 0 { + i -= len(m.OperatorId) + copy(dAtA[i:], m.OperatorId) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.OperatorId))) + i-- + dAtA[i] = 0x12 + } + if len(m.StakerId) > 0 { + i -= len(m.StakerId) + copy(dAtA[i:], m.StakerId) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.StakerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *StakePenaltyResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *StakePenaltyResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StakePenaltyResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + n43, err43 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.ReceiveTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.ReceiveTime):]) + if err43 != nil { + return 0, err43 + } + i -= n43 + i = encodeVarintEscrow(dAtA, i, uint64(n43)) + i-- + dAtA[i] = 0x2a + if len(m.OperatorId) > 0 { + i -= len(m.OperatorId) + copy(dAtA[i:], m.OperatorId) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.OperatorId))) + i-- + dAtA[i] = 0x22 + } + if m.OperatePenaltyAmount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.OperatePenaltyAmount)) + i-- + dAtA[i] = 0x18 + } + if m.RequestPenaltyAmount != 0 { + i = encodeVarintEscrow(dAtA, i, uint64(m.RequestPenaltyAmount)) + i-- + dAtA[i] = 0x10 + } + if len(m.StakerId) > 0 { + i -= len(m.StakerId) + copy(dAtA[i:], m.StakerId) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.StakerId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SignedStakePenaltyResult) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SignedStakePenaltyResult) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SignedStakePenaltyResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintEscrow(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x12 + } + if m.Data != nil { + { + size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEscrow(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintEscrow(dAtA []byte, offset int, v uint64) int { + offset -= sovEscrow(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ContractID) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *ContractIDBatch) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ContractId) > 0 { + for _, s := range m.ContractId { + l = len(s) + n += 1 + l + sovEscrow(uint64(l)) + } + } + l = len(m.Address) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedContractID) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Data != nil { + l = m.Data.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedContractIDBatch) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Data != nil { + l = m.Data.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedModifyContractIDBatch) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Data != nil { + l = m.Data.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.LastModifyTime) + n += 1 + l + sovEscrow(uint64(l)) + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *EscrowContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.BuyerAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.SellerAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.AuthAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.Amount != 0 { + n += 1 + sovEscrow(uint64(m.Amount)) + } + if m.CollateralAmount != 0 { + n += 1 + sovEscrow(uint64(m.CollateralAmount)) + } + if m.WithholdAmount != 0 { + n += 1 + sovEscrow(uint64(m.WithholdAmount)) + } + if m.TokenType != 0 { + n += 1 + sovEscrow(uint64(m.TokenType)) + } + if m.PayoutSchedule != 0 { + n += 1 + sovEscrow(uint64(m.PayoutSchedule)) + } + if m.NumPayouts != 0 { + n += 1 + sovEscrow(uint64(m.NumPayouts)) + } + l = len(m.Reference) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.CustomizePayoutPeriod != 0 { + n += 1 + sovEscrow(uint64(m.CustomizePayoutPeriod)) + } + if m.Type != 0 { + n += 1 + sovEscrow(uint64(m.Type)) + } + if m.ContingentAmount != 0 { + n += 1 + sovEscrow(uint64(m.ContingentAmount)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedEscrowContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Contract != nil { + l = m.Contract.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.BuyerSignature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.SellerSignature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *EscrowContractRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Contract) > 0 { + for _, e := range m.Contract { + l = e.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + } + if m.BuyerChannel != nil { + l = m.BuyerChannel.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Escrow) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.EscrowId != 0 { + n += 1 + sovEscrow(uint64(m.EscrowId)) + } + l = len(m.FromAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.ToAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.Amount != 0 { + n += 1 + sovEscrow(uint64(m.Amount)) + } + if m.CollateralAmount != 0 { + n += 1 + sovEscrow(uint64(m.CollateralAmount)) + } + if m.ErrorCode != 0 { + n += 1 + sovEscrow(uint64(m.ErrorCode)) + } + l = len(m.ErrorMessage) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SubmitContractResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PayinId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if len(m.Escrow) > 0 { + for _, e := range m.Escrow { + l = e.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + } + l = len(m.EscrowAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime) + n += 1 + l + sovEscrow(uint64(l)) + if m.BuyerChannelState != nil { + l = m.BuyerChannelState.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedSubmitContractResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Result != nil { + l = m.Result.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.EscrowSignature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *StartEscrowResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Escrow) > 0 { + for _, e := range m.Escrow { + l = e.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + } + l = len(m.EscrowAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime) + n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedStartEscrowResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Result != nil { + l = m.Result.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.EscrowSignature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PayinRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PayinId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.BuyerAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.BuyerChannelState != nil { + l = m.BuyerChannelState.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedPayinRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Request != nil { + l = m.Request.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.BuyerSignature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PayinResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PayinId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.Amount != 0 { + n += 1 + sovEscrow(uint64(m.Amount)) + } + if m.ChannelId != 0 { + n += 1 + sovEscrow(uint64(m.ChannelId)) + } + l = len(m.EscrowAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime) + n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedPayinResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Result != nil { + l = m.Result.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.EscrowSignature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PayinStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Paid { + n += 2 + } + if m.ChannelId != 0 { + n += 1 + sovEscrow(uint64(m.ChannelId)) + } + l = len(m.EscrowAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime) + n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedPayinStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.EscrowSignature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PayoutStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.EscrowId != 0 { + n += 1 + sovEscrow(uint64(m.EscrowId)) + } + l = len(m.FromAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.ToAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.AuthAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.Status != 0 { + n += 1 + sovEscrow(uint64(m.Status)) + } + if m.Amount != 0 { + n += 1 + sovEscrow(uint64(m.Amount)) + } + if m.Collateral != 0 { + n += 1 + sovEscrow(uint64(m.Collateral)) + } + if m.Withhold != 0 { + n += 1 + sovEscrow(uint64(m.Withhold)) + } + if m.PaidAmount != 0 { + n += 1 + sovEscrow(uint64(m.PaidAmount)) + } + if m.NumPaid != 0 { + n += 1 + sovEscrow(uint64(m.NumPaid)) + } + if m.LeftAmount != 0 { + n += 1 + sovEscrow(uint64(m.LeftAmount)) + } + if m.NumLeft != 0 { + n += 1 + sovEscrow(uint64(m.NumLeft)) + } + if m.NextAmount != 0 { + n += 1 + sovEscrow(uint64(m.NextAmount)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.LastPayoutTime) + n += 1 + l + sovEscrow(uint64(l)) + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.NextPayoutTime) + n += 2 + l + sovEscrow(uint64(l)) + l = len(m.EscrowAddress) + if l > 0 { + n += 2 + l + sovEscrow(uint64(l)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignTime) + n += 2 + l + sovEscrow(uint64(l)) + l = len(m.ErrorMsg) + if l > 0 { + n += 2 + l + sovEscrow(uint64(l)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.LastModifyTime) + n += 2 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedPayoutStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Status != nil { + l = m.Status.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.EscrowSignature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedPayoutStatusBatch) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Status) > 0 { + for _, e := range m.Status { + l = e.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + } + l = len(m.EscrowSignature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CancelContractRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.AuthAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.AuthSignedTime) + n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedCancelRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Request != nil { + l = m.Request.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.AuthSignature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *CancelContractResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.EscrowId != 0 { + n += 1 + sovEscrow(uint64(m.EscrowId)) + } + if m.Canceled { + n += 2 + } + l = len(m.EscrowAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime) + n += 1 + l + sovEscrow(uint64(l)) + if m.Amount != 0 { + n += 1 + sovEscrow(uint64(m.Amount)) + } + if m.Paid { + n += 2 + } + l = len(m.Reference) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedCancelContractResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Result != nil { + l = m.Result.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.EscrowSignature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PayoutAddress) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ToAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.SignedTime) + n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedPayoutAddress) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Address != nil { + l = m.Address.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *Payment) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.EscrowId != 0 { + n += 1 + sovEscrow(uint64(m.EscrowId)) + } + l = len(m.FromAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.ToAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.Amount != 0 { + n += 1 + sovEscrow(uint64(m.Amount)) + } + if m.Index != 0 { + n += 1 + sovEscrow(uint64(m.Index)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *PaymentResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l if len(m.Payment) > 0 { for _, e := range m.Payment { l = e.Size() n += 1 + l + sovEscrow(uint64(l)) } } - l = len(m.EscrowAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime) - n += 1 + l + sovEscrow(uint64(l)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SignedPaymentResult) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Result != nil { - l = m.Result.Size() - n += 1 + l + sovEscrow(uint64(l)) - } - l = len(m.EscrowSignature) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *BalanceResult) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Balance != 0 { - n += 1 + sovEscrow(uint64(m.Balance)) - } - l = len(m.EscrowAddress) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime) - n += 1 + l + sovEscrow(uint64(l)) - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} + l = len(m.EscrowAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime) + n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedPaymentResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Result != nil { + l = m.Result.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.EscrowSignature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *BalanceResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Balance != 0 { + n += 1 + sovEscrow(uint64(m.Balance)) + } + l = len(m.EscrowAddress) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.EscrowSignedTime) + n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedBalanceResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Result != nil { + l = m.Result.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.EscrowSignature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedStakeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Data != nil { + l = m.Data.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *StakeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StakerId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.StakeAmount != 0 { + n += 1 + sovEscrow(uint64(m.StakeAmount)) + } + if m.TransferRequest != nil { + l = m.TransferRequest.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.RequestTime) + n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *StakeResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StakerId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.Balance != 0 { + n += 1 + sovEscrow(uint64(m.Balance)) + } + if m.MatureAmount != 0 { + n += 1 + sovEscrow(uint64(m.MatureAmount)) + } + if m.PendingAmount != 0 { + n += 1 + sovEscrow(uint64(m.PendingAmount)) + } + if len(m.Ledgers) > 0 { + for _, e := range m.Ledgers { + l = e.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + } + if len(m.UnfinishLedgers) > 0 { + for _, e := range m.UnfinishLedgers { + l = e.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedStakeResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Data != nil { + l = m.Data.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *StakeLedger) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StakerId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.Amount != 0 { + n += 1 + sovEscrow(uint64(m.Amount)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.StartTime) + n += 1 + l + sovEscrow(uint64(l)) + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.MatureTime) + n += 1 + l + sovEscrow(uint64(l)) + l = len(m.OperatorId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.Type != 0 { + n += 1 + sovEscrow(uint64(m.Type)) + } + l = len(m.OperationLog) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *UnfinishStakeLedger) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StakerId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.Amount != 0 { + n += 1 + sovEscrow(uint64(m.Amount)) + } + if m.Status != 0 { + n += 1 + sovEscrow(uint64(m.Status)) + } + l = len(m.FailReason) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.SubmitTime) + n += 1 + l + sovEscrow(uint64(l)) + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.FailTime) + n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedStakePenaltyRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Data != nil { + l = m.Data.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *StakePenaltyRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StakerId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.OperatorId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.Reason != 0 { + n += 1 + sovEscrow(uint64(m.Reason)) + } + l = len(m.OperationLog) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.Amount != 0 { + n += 1 + sovEscrow(uint64(m.Amount)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.SubmitTime) + n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *StakePenaltyResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.StakerId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.RequestPenaltyAmount != 0 { + n += 1 + sovEscrow(uint64(m.RequestPenaltyAmount)) + } + if m.OperatePenaltyAmount != 0 { + n += 1 + sovEscrow(uint64(m.OperatePenaltyAmount)) + } + l = len(m.OperatorId) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.ReceiveTime) + n += 1 + l + sovEscrow(uint64(l)) + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *SignedStakePenaltyResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Data != nil { + l = m.Data.Size() + n += 1 + l + sovEscrow(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovEscrow(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovEscrow(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozEscrow(x uint64) (n int) { + return sovEscrow(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ContractID) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractID: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractID: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEscrow(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContractIDBatch) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContractIDBatch: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContractIDBatch: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = append(m.ContractId, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) + if m.Address == nil { + m.Address = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEscrow(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SignedContractID) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SignedContractID: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SignedContractID: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Data == nil { + m.Data = &ContractID{} + } + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEscrow(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SignedContractIDBatch) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SignedContractIDBatch: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SignedContractIDBatch: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Data == nil { + m.Data = &ContractIDBatch{} + } + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEscrow(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SignedModifyContractIDBatch) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SignedModifyContractIDBatch: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SignedModifyContractIDBatch: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Data == nil { + m.Data = &ContractIDBatch{} + } + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastModifyTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.LastModifyTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEscrow(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EscrowContract) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EscrowContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EscrowContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BuyerAddress", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BuyerAddress = append(m.BuyerAddress[:0], dAtA[iNdEx:postIndex]...) + if m.BuyerAddress == nil { + m.BuyerAddress = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SellerAddress", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SellerAddress = append(m.SellerAddress[:0], dAtA[iNdEx:postIndex]...) + if m.SellerAddress == nil { + m.SellerAddress = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthAddress", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AuthAddress = append(m.AuthAddress[:0], dAtA[iNdEx:postIndex]...) + if m.AuthAddress == nil { + m.AuthAddress = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + m.Amount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Amount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CollateralAmount", wireType) + } + m.CollateralAmount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CollateralAmount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WithholdAmount", wireType) + } + m.WithholdAmount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.WithholdAmount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + } + m.TokenType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TokenType |= TokenType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PayoutSchedule", wireType) + } + m.PayoutSchedule = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PayoutSchedule |= Schedule(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumPayouts", wireType) + } + m.NumPayouts = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumPayouts |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reference", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reference = append(m.Reference[:0], dAtA[iNdEx:postIndex]...) + if m.Reference == nil { + m.Reference = []byte{} + } + iNdEx = postIndex + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CustomizePayoutPeriod", wireType) + } + m.CustomizePayoutPeriod = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CustomizePayoutPeriod |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= ContractType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ContingentAmount", wireType) + } + m.ContingentAmount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ContingentAmount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEscrow(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SignedEscrowContract) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SignedEscrowContract: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SignedEscrowContract: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Contract == nil { + m.Contract = &EscrowContract{} + } + if err := m.Contract.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BuyerSignature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BuyerSignature = append(m.BuyerSignature[:0], dAtA[iNdEx:postIndex]...) + if m.BuyerSignature == nil { + m.BuyerSignature = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SellerSignature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SellerSignature = append(m.SellerSignature[:0], dAtA[iNdEx:postIndex]...) + if m.SellerSignature == nil { + m.SellerSignature = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEscrow(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EscrowContractRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EscrowContractRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EscrowContractRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Contract = append(m.Contract, &SignedEscrowContract{}) + if err := m.Contract[len(m.Contract)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BuyerChannel", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.BuyerChannel == nil { + m.BuyerChannel = &ledger.SignedChannelCommit{} + } + if err := m.BuyerChannel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEscrow(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Escrow) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Escrow: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Escrow: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EscrowId", wireType) + } + m.EscrowId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EscrowId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FromAddress", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FromAddress = append(m.FromAddress[:0], dAtA[iNdEx:postIndex]...) + if m.FromAddress == nil { + m.FromAddress = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ToAddress", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ToAddress = append(m.ToAddress[:0], dAtA[iNdEx:postIndex]...) + if m.ToAddress == nil { + m.ToAddress = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + m.Amount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Amount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CollateralAmount", wireType) + } + m.CollateralAmount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CollateralAmount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ErrorCode", wireType) + } + m.ErrorCode = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ErrorCode |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ErrorMessage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ErrorMessage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEscrow(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } -func (m *SignedBalanceResult) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Result != nil { - l = m.Result.Size() - n += 1 + l + sovEscrow(uint64(l)) - } - l = len(m.EscrowSignature) - if l > 0 { - n += 1 + l + sovEscrow(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) + if iNdEx > l { + return io.ErrUnexpectedEOF } - return n -} - -func sovEscrow(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozEscrow(x uint64) (n int) { - return sovEscrow(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + return nil } -func (m *ContractID) Unmarshal(dAtA []byte) error { +func (m *SubmitContractResult) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6115,15 +9501,15 @@ func (m *ContractID) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ContractID: wiretype end group for non-group") + return fmt.Errorf("proto: SubmitContractResult: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ContractID: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SubmitContractResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PayinId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6151,11 +9537,45 @@ func (m *ContractID) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ContractId = string(dAtA[iNdEx:postIndex]) + m.PayinId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Escrow", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Escrow = append(m.Escrow, &Escrow{}) + if err := m.Escrow[len(m.Escrow)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EscrowAddress", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -6175,16 +9595,85 @@ func (m *ContractID) Unmarshal(dAtA []byte) error { if byteLen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + byteLen + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EscrowAddress = append(m.EscrowAddress[:0], dAtA[iNdEx:postIndex]...) + if m.EscrowAddress == nil { + m.EscrowAddress = []byte{} + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignedTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.EscrowSignedTime, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BuyerChannelState", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) - if m.Address == nil { - m.Address = []byte{} + if m.BuyerChannelState == nil { + m.BuyerChannelState = &ledger.SignedChannelState{} + } + if err := m.BuyerChannelState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -6212,7 +9701,7 @@ func (m *ContractID) Unmarshal(dAtA []byte) error { } return nil } -func (m *ContractIDBatch) Unmarshal(dAtA []byte) error { +func (m *SignedSubmitContractResult) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6235,17 +9724,17 @@ func (m *ContractIDBatch) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ContractIDBatch: wiretype end group for non-group") + return fmt.Errorf("proto: SignedSubmitContractResult: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ContractIDBatch: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SignedSubmitContractResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -6255,27 +9744,31 @@ func (m *ContractIDBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.ContractId = append(m.ContractId, string(dAtA[iNdEx:postIndex])) + if m.Result == nil { + m.Result = &SubmitContractResult{} + } + if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignature", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -6302,9 +9795,9 @@ func (m *ContractIDBatch) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = append(m.Address[:0], dAtA[iNdEx:postIndex]...) - if m.Address == nil { - m.Address = []byte{} + m.EscrowSignature = append(m.EscrowSignature[:0], dAtA[iNdEx:postIndex]...) + if m.EscrowSignature == nil { + m.EscrowSignature = []byte{} } iNdEx = postIndex default: @@ -6332,7 +9825,7 @@ func (m *ContractIDBatch) Unmarshal(dAtA []byte) error { } return nil } -func (m *SignedContractID) Unmarshal(dAtA []byte) error { +func (m *StartEscrowResult) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6355,15 +9848,15 @@ func (m *SignedContractID) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SignedContractID: wiretype end group for non-group") + return fmt.Errorf("proto: StartEscrowResult: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SignedContractID: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StartEscrowResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Escrow", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6390,16 +9883,14 @@ func (m *SignedContractID) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Data == nil { - m.Data = &ContractID{} - } - if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Escrow = append(m.Escrow, &Escrow{}) + if err := m.Escrow[len(m.Escrow)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EscrowAddress", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -6426,9 +9917,42 @@ func (m *SignedContractID) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) - if m.Signature == nil { - m.Signature = []byte{} + m.EscrowAddress = append(m.EscrowAddress[:0], dAtA[iNdEx:postIndex]...) + if m.EscrowAddress == nil { + m.EscrowAddress = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignedTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.EscrowSignedTime, dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -6456,7 +9980,7 @@ func (m *SignedContractID) Unmarshal(dAtA []byte) error { } return nil } -func (m *SignedContractIDBatch) Unmarshal(dAtA []byte) error { +func (m *SignedStartEscrowResult) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6479,15 +10003,15 @@ func (m *SignedContractIDBatch) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SignedContractIDBatch: wiretype end group for non-group") + return fmt.Errorf("proto: SignedStartEscrowResult: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SignedContractIDBatch: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SignedStartEscrowResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6514,16 +10038,16 @@ func (m *SignedContractIDBatch) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Data == nil { - m.Data = &ContractIDBatch{} + if m.Result == nil { + m.Result = &StartEscrowResult{} } - if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignature", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -6550,9 +10074,9 @@ func (m *SignedContractIDBatch) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) - if m.Signature == nil { - m.Signature = []byte{} + m.EscrowSignature = append(m.EscrowSignature[:0], dAtA[iNdEx:postIndex]...) + if m.EscrowSignature == nil { + m.EscrowSignature = []byte{} } iNdEx = postIndex default: @@ -6580,7 +10104,7 @@ func (m *SignedContractIDBatch) Unmarshal(dAtA []byte) error { } return nil } -func (m *SignedModifyContractIDBatch) Unmarshal(dAtA []byte) error { +func (m *PayinRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6603,17 +10127,17 @@ func (m *SignedModifyContractIDBatch) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SignedModifyContractIDBatch: wiretype end group for non-group") + return fmt.Errorf("proto: PayinRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SignedModifyContractIDBatch: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PayinRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PayinId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -6623,33 +10147,29 @@ func (m *SignedModifyContractIDBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Data == nil { - m.Data = &ContractIDBatch{} - } - if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.PayinId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastModifyTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BuyerAddress", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -6659,30 +10179,31 @@ func (m *SignedModifyContractIDBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.LastModifyTime, dAtA[iNdEx:postIndex]); err != nil { - return err + m.BuyerAddress = append(m.BuyerAddress[:0], dAtA[iNdEx:postIndex]...) + if m.BuyerAddress == nil { + m.BuyerAddress = []byte{} } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BuyerChannelState", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -6692,24 +10213,26 @@ func (m *SignedModifyContractIDBatch) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) - if m.Signature == nil { - m.Signature = []byte{} + if m.BuyerChannelState == nil { + m.BuyerChannelState = &ledger.SignedChannelState{} + } + if err := m.BuyerChannelState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -6737,7 +10260,7 @@ func (m *SignedModifyContractIDBatch) Unmarshal(dAtA []byte) error { } return nil } -func (m *EscrowContract) Unmarshal(dAtA []byte) error { +func (m *SignedPayinRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -6760,17 +10283,17 @@ func (m *EscrowContract) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EscrowContract: wiretype end group for non-group") + return fmt.Errorf("proto: SignedPayinRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EscrowContract: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SignedPayinRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -6780,27 +10303,31 @@ func (m *EscrowContract) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.ContractId = string(dAtA[iNdEx:postIndex]) + if m.Request == nil { + m.Request = &PayinRequest{} + } + if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BuyerAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BuyerSignature", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -6827,50 +10354,70 @@ func (m *EscrowContract) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BuyerAddress = append(m.BuyerAddress[:0], dAtA[iNdEx:postIndex]...) - if m.BuyerAddress == nil { - m.BuyerAddress = []byte{} + m.BuyerSignature = append(m.BuyerSignature[:0], dAtA[iNdEx:postIndex]...) + if m.BuyerSignature == nil { + m.BuyerSignature = []byte{} } iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SellerAddress", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := skipEscrow(dAtA[iNdEx:]) + if err != nil { + return err } - if byteLen < 0 { + if skippy < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + byteLen - if postIndex < 0 { + if (iNdEx + skippy) < 0 { return ErrInvalidLengthEscrow } - if postIndex > l { + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PayinResult) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.SellerAddress = append(m.SellerAddress[:0], dAtA[iNdEx:postIndex]...) - if m.SellerAddress == nil { - m.SellerAddress = []byte{} + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 4: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PayinResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PayinResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PayinId", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -6880,27 +10427,25 @@ func (m *EscrowContract) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.AuthAddress = append(m.AuthAddress[:0], dAtA[iNdEx:postIndex]...) - if m.AuthAddress == nil { - m.AuthAddress = []byte{} - } + m.PayinId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } @@ -6919,30 +10464,11 @@ func (m *EscrowContract) Unmarshal(dAtA []byte) error { break } } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CollateralAmount", wireType) - } - m.CollateralAmount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CollateralAmount |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WithholdAmount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) } - m.WithholdAmount = 0 + m.ChannelId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -6952,16 +10478,16 @@ func (m *EscrowContract) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.WithholdAmount |= int64(b&0x7F) << shift + m.ChannelId |= int64(b&0x7F) << shift if b < 0x80 { break } } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EscrowAddress", wireType) } - m.TokenType = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -6971,54 +10497,31 @@ func (m *EscrowContract) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TokenType |= TokenType(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PayoutSchedule", wireType) + if byteLen < 0 { + return ErrInvalidLengthEscrow } - m.PayoutSchedule = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PayoutSchedule |= Schedule(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow } - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumPayouts", wireType) + if postIndex > l { + return io.ErrUnexpectedEOF } - m.NumPayouts = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumPayouts |= int32(b&0x7F) << shift - if b < 0x80 { - break - } + m.EscrowAddress = append(m.EscrowAddress[:0], dAtA[iNdEx:postIndex]...) + if m.EscrowAddress == nil { + m.EscrowAddress = []byte{} } - case 11: + iNdEx = postIndex + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reference", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignedTime", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -7028,50 +10531,84 @@ func (m *EscrowContract) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.Reference = append(m.Reference[:0], dAtA[iNdEx:postIndex]...) - if m.Reference == nil { - m.Reference = []byte{} + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.EscrowSignedTime, dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CustomizePayoutPeriod", wireType) + default: + iNdEx = preIndex + skippy, err := skipEscrow(dAtA[iNdEx:]) + if err != nil { + return err } - m.CustomizePayoutPeriod = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CustomizePayoutPeriod |= int32(b&0x7F) << shift - if b < 0x80 { - break - } + if skippy < 0 { + return ErrInvalidLengthEscrow } - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEscrow } - m.Type = 0 + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SignedPayinResult) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SignedPayinResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SignedPayinResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -7081,16 +10618,33 @@ func (m *EscrowContract) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= ContractType(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ContingentAmount", wireType) + if msglen < 0 { + return ErrInvalidLengthEscrow } - m.ContingentAmount = 0 + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Result == nil { + m.Result = &PayinResult{} + } + if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignature", wireType) + } + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -7100,11 +10654,26 @@ func (m *EscrowContract) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ContingentAmount |= int64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } + if byteLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EscrowSignature = append(m.EscrowSignature[:0], dAtA[iNdEx:postIndex]...) + if m.EscrowSignature == nil { + m.EscrowSignature = []byte{} + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEscrow(dAtA[iNdEx:]) @@ -7130,7 +10699,7 @@ func (m *EscrowContract) Unmarshal(dAtA []byte) error { } return nil } -func (m *SignedEscrowContract) Unmarshal(dAtA []byte) error { +func (m *PayinStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7153,17 +10722,17 @@ func (m *SignedEscrowContract) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SignedEscrowContract: wiretype end group for non-group") + return fmt.Errorf("proto: PayinStatus: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SignedEscrowContract: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PayinStatus: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Paid", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -7173,31 +10742,34 @@ func (m *SignedEscrowContract) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthEscrow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEscrow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Contract == nil { - m.Contract = &EscrowContract{} + m.Paid = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) } - if err := m.Contract.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.ChannelId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ChannelId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BuyerSignature", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EscrowAddress", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -7224,16 +10796,16 @@ func (m *SignedEscrowContract) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BuyerSignature = append(m.BuyerSignature[:0], dAtA[iNdEx:postIndex]...) - if m.BuyerSignature == nil { - m.BuyerSignature = []byte{} + m.EscrowAddress = append(m.EscrowAddress[:0], dAtA[iNdEx:postIndex]...) + if m.EscrowAddress == nil { + m.EscrowAddress = []byte{} } iNdEx = postIndex - case 3: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SellerSignature", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignedTime", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -7243,24 +10815,23 @@ func (m *SignedEscrowContract) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.SellerSignature = append(m.SellerSignature[:0], dAtA[iNdEx:postIndex]...) - if m.SellerSignature == nil { - m.SellerSignature = []byte{} + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.EscrowSignedTime, dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -7288,7 +10859,7 @@ func (m *SignedEscrowContract) Unmarshal(dAtA []byte) error { } return nil } -func (m *EscrowContractRequest) Unmarshal(dAtA []byte) error { +func (m *SignedPayinStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7311,15 +10882,15 @@ func (m *EscrowContractRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EscrowContractRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SignedPayinStatus: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EscrowContractRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SignedPayinStatus: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Contract", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7346,16 +10917,18 @@ func (m *EscrowContractRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Contract = append(m.Contract, &SignedEscrowContract{}) - if err := m.Contract[len(m.Contract)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Status == nil { + m.Status = &PayinStatus{} + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BuyerChannel", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignature", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -7365,26 +10938,24 @@ func (m *EscrowContractRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - if m.BuyerChannel == nil { - m.BuyerChannel = &ledger.SignedChannelCommit{} - } - if err := m.BuyerChannel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.EscrowSignature = append(m.EscrowSignature[:0], dAtA[iNdEx:postIndex]...) + if m.EscrowSignature == nil { + m.EscrowSignature = []byte{} } iNdEx = postIndex default: @@ -7412,7 +10983,7 @@ func (m *EscrowContractRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *Escrow) Unmarshal(dAtA []byte) error { +func (m *PayoutStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7435,10 +11006,10 @@ func (m *Escrow) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Escrow: wiretype end group for non-group") + return fmt.Errorf("proto: PayoutStatus: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Escrow: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PayoutStatus: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7561,10 +11132,10 @@ func (m *Escrow) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AuthAddress", wireType) } - m.Amount = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -7574,16 +11145,31 @@ func (m *Escrow) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Amount |= int64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } + if byteLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AuthAddress = append(m.AuthAddress[:0], dAtA[iNdEx:postIndex]...) + if m.AuthAddress == nil { + m.AuthAddress = []byte{} + } + iNdEx = postIndex case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CollateralAmount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } - m.CollateralAmount = 0 + m.Status = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -7593,16 +11179,16 @@ func (m *Escrow) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CollateralAmount |= int64(b&0x7F) << shift + m.Status |= EscrowStatus(b&0x7F) << shift if b < 0x80 { break } } case 7: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ErrorCode", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - m.ErrorCode = 0 + m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -7612,16 +11198,16 @@ func (m *Escrow) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ErrorCode |= int32(b&0x7F) << shift + m.Amount |= int64(b&0x7F) << shift if b < 0x80 { break } } case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ErrorMessage", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Collateral", wireType) } - var stringLen uint64 + m.Collateral = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -7631,83 +11217,92 @@ func (m *Escrow) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.Collateral |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEscrow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEscrow - } - if postIndex > l { - return io.ErrUnexpectedEOF + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Withhold", wireType) } - m.ErrorMessage = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEscrow(dAtA[iNdEx:]) - if err != nil { - return err + m.Withhold = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Withhold |= int64(b&0x7F) << shift + if b < 0x80 { + break + } } - if skippy < 0 { - return ErrInvalidLengthEscrow + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PaidAmount", wireType) } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthEscrow + m.PaidAmount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PaidAmount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumPaid", wireType) } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SubmitContractResult) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow + m.NumPaid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumPaid |= int32(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field LeftAmount", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.LeftAmount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.LeftAmount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SubmitContractResult: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SubmitContractResult: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PayinId", wireType) + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumLeft", wireType) } - var stringLen uint64 + m.NumLeft = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -7717,27 +11312,33 @@ func (m *SubmitContractResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.NumLeft |= int32(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEscrow - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEscrow + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NextAmount", wireType) } - if postIndex > l { - return io.ErrUnexpectedEOF + m.NextAmount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NextAmount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } } - m.PayinId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: + case 15: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Escrow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LastPayoutTime", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7764,16 +11365,15 @@ func (m *SubmitContractResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Escrow = append(m.Escrow, &Escrow{}) - if err := m.Escrow[len(m.Escrow)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.LastPayoutTime, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: + case 16: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NextPayoutTime", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -7783,31 +11383,30 @@ func (m *SubmitContractResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.EscrowAddress = append(m.EscrowAddress[:0], dAtA[iNdEx:postIndex]...) - if m.EscrowAddress == nil { - m.EscrowAddress = []byte{} + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.NextPayoutTime, dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex - case 4: + case 17: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignedTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EscrowAddress", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -7817,28 +11416,29 @@ func (m *SubmitContractResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.EscrowSignedTime, dAtA[iNdEx:postIndex]); err != nil { - return err + m.EscrowAddress = append(m.EscrowAddress[:0], dAtA[iNdEx:postIndex]...) + if m.EscrowAddress == nil { + m.EscrowAddress = []byte{} } iNdEx = postIndex - case 5: + case 18: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BuyerChannelState", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignTime", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7865,72 +11465,15 @@ func (m *SubmitContractResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.BuyerChannelState == nil { - m.BuyerChannelState = &ledger.SignedChannelState{} - } - if err := m.BuyerChannelState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.EscrowSignTime, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEscrow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthEscrow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthEscrow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignedSubmitContractResult) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignedSubmitContractResult: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignedSubmitContractResult: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 19: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ErrorMsg", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -7940,33 +11483,29 @@ func (m *SignedSubmitContractResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Result == nil { - m.Result = &SubmitContractResult{} - } - if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ErrorMsg = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 20: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignature", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LastModifyTime", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -7976,24 +11515,23 @@ func (m *SignedSubmitContractResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.EscrowSignature = append(m.EscrowSignature[:0], dAtA[iNdEx:postIndex]...) - if m.EscrowSignature == nil { - m.EscrowSignature = []byte{} + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.LastModifyTime, dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -8021,7 +11559,7 @@ func (m *SignedSubmitContractResult) Unmarshal(dAtA []byte) error { } return nil } -func (m *StartEscrowResult) Unmarshal(dAtA []byte) error { +func (m *SignedPayoutStatus) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8044,51 +11582,17 @@ func (m *StartEscrowResult) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: StartEscrowResult: wiretype end group for non-group") + return fmt.Errorf("proto: SignedPayoutStatus: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: StartEscrowResult: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Escrow", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEscrow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEscrow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Escrow = append(m.Escrow, &Escrow{}) - if err := m.Escrow[len(m.Escrow)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: + return fmt.Errorf("proto: SignedPayoutStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -8098,31 +11602,33 @@ func (m *StartEscrowResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.EscrowAddress = append(m.EscrowAddress[:0], dAtA[iNdEx:postIndex]...) - if m.EscrowAddress == nil { - m.EscrowAddress = []byte{} + if m.Status == nil { + m.Status = &PayoutStatus{} + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignedTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignature", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -8132,23 +11638,24 @@ func (m *StartEscrowResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.EscrowSignedTime, dAtA[iNdEx:postIndex]); err != nil { - return err + m.EscrowSignature = append(m.EscrowSignature[:0], dAtA[iNdEx:postIndex]...) + if m.EscrowSignature == nil { + m.EscrowSignature = []byte{} } iNdEx = postIndex default: @@ -8176,7 +11683,7 @@ func (m *StartEscrowResult) Unmarshal(dAtA []byte) error { } return nil } -func (m *SignedStartEscrowResult) Unmarshal(dAtA []byte) error { +func (m *SignedPayoutStatusBatch) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8199,15 +11706,15 @@ func (m *SignedStartEscrowResult) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SignedStartEscrowResult: wiretype end group for non-group") + return fmt.Errorf("proto: SignedPayoutStatusBatch: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SignedStartEscrowResult: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SignedPayoutStatusBatch: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8234,10 +11741,8 @@ func (m *SignedStartEscrowResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Result == nil { - m.Result = &StartEscrowResult{} - } - if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Status = append(m.Status, &PayoutStatus{}) + if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8300,7 +11805,7 @@ func (m *SignedStartEscrowResult) Unmarshal(dAtA []byte) error { } return nil } -func (m *PayinRequest) Unmarshal(dAtA []byte) error { +func (m *CancelContractRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8323,15 +11828,15 @@ func (m *PayinRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PayinRequest: wiretype end group for non-group") + return fmt.Errorf("proto: CancelContractRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PayinRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CancelContractRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PayinId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8359,11 +11864,11 @@ func (m *PayinRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PayinId = string(dAtA[iNdEx:postIndex]) + m.ContractId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BuyerAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AuthAddress", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -8390,14 +11895,14 @@ func (m *PayinRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BuyerAddress = append(m.BuyerAddress[:0], dAtA[iNdEx:postIndex]...) - if m.BuyerAddress == nil { - m.BuyerAddress = []byte{} + m.AuthAddress = append(m.AuthAddress[:0], dAtA[iNdEx:postIndex]...) + if m.AuthAddress == nil { + m.AuthAddress = []byte{} } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BuyerChannelState", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AuthSignedTime", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8424,10 +11929,7 @@ func (m *PayinRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.BuyerChannelState == nil { - m.BuyerChannelState = &ledger.SignedChannelState{} - } - if err := m.BuyerChannelState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.AuthSignedTime, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8456,7 +11958,7 @@ func (m *PayinRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *SignedPayinRequest) Unmarshal(dAtA []byte) error { +func (m *SignedCancelRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8479,10 +11981,10 @@ func (m *SignedPayinRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SignedPayinRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SignedCancelRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SignedPayinRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SignedCancelRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8515,7 +12017,7 @@ func (m *SignedPayinRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Request == nil { - m.Request = &PayinRequest{} + m.Request = &CancelContractRequest{} } if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8523,7 +12025,7 @@ func (m *SignedPayinRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BuyerSignature", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AuthSignature", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -8550,9 +12052,9 @@ func (m *SignedPayinRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BuyerSignature = append(m.BuyerSignature[:0], dAtA[iNdEx:postIndex]...) - if m.BuyerSignature == nil { - m.BuyerSignature = []byte{} + m.AuthSignature = append(m.AuthSignature[:0], dAtA[iNdEx:postIndex]...) + if m.AuthSignature == nil { + m.AuthSignature = []byte{} } iNdEx = postIndex default: @@ -8580,7 +12082,7 @@ func (m *SignedPayinRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *PayinResult) Unmarshal(dAtA []byte) error { +func (m *CancelContractResult) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8603,15 +12105,15 @@ func (m *PayinResult) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PayinResult: wiretype end group for non-group") + return fmt.Errorf("proto: CancelContractResult: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PayinResult: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CancelContractResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PayinId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8639,13 +12141,13 @@ func (m *PayinResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PayinId = string(dAtA[iNdEx:postIndex]) + m.ContractId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EscrowId", wireType) } - m.Amount = 0 + m.EscrowId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -8655,16 +12157,16 @@ func (m *PayinResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Amount |= int64(b&0x7F) << shift + m.EscrowId |= int64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Canceled", wireType) } - m.ChannelId = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -8674,11 +12176,12 @@ func (m *PayinResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ChannelId |= int64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } + m.Canceled = bool(v != 0) case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field EscrowAddress", wireType) @@ -8746,6 +12249,77 @@ func (m *PayinResult) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + m.Amount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Amount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Paid", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Paid = bool(v != 0) + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reference", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reference = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEscrow(dAtA[iNdEx:]) @@ -8771,7 +12345,7 @@ func (m *PayinResult) Unmarshal(dAtA []byte) error { } return nil } -func (m *SignedPayinResult) Unmarshal(dAtA []byte) error { +func (m *SignedCancelContractResult) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8794,10 +12368,10 @@ func (m *SignedPayinResult) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SignedPayinResult: wiretype end group for non-group") + return fmt.Errorf("proto: SignedCancelContractResult: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SignedPayinResult: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SignedCancelContractResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8830,7 +12404,7 @@ func (m *SignedPayinResult) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Result == nil { - m.Result = &PayinResult{} + m.Result = &CancelContractResult{} } if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -8895,7 +12469,7 @@ func (m *SignedPayinResult) Unmarshal(dAtA []byte) error { } return nil } -func (m *PayinStatus) Unmarshal(dAtA []byte) error { +func (m *PayoutAddress) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8918,54 +12492,15 @@ func (m *PayinStatus) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PayinStatus: wiretype end group for non-group") + return fmt.Errorf("proto: PayoutAddress: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PayinStatus: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PayoutAddress: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Paid", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Paid = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) - } - m.ChannelId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ChannelId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ToAddress", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -8992,14 +12527,14 @@ func (m *PayinStatus) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EscrowAddress = append(m.EscrowAddress[:0], dAtA[iNdEx:postIndex]...) - if m.EscrowAddress == nil { - m.EscrowAddress = []byte{} + m.ToAddress = append(m.ToAddress[:0], dAtA[iNdEx:postIndex]...) + if m.ToAddress == nil { + m.ToAddress = []byte{} } iNdEx = postIndex - case 4: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignedTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SignedTime", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9026,7 +12561,7 @@ func (m *PayinStatus) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.EscrowSignedTime, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.SignedTime, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9055,7 +12590,7 @@ func (m *PayinStatus) Unmarshal(dAtA []byte) error { } return nil } -func (m *SignedPayinStatus) Unmarshal(dAtA []byte) error { +func (m *SignedPayoutAddress) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9078,15 +12613,15 @@ func (m *SignedPayinStatus) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SignedPayinStatus: wiretype end group for non-group") + return fmt.Errorf("proto: SignedPayoutAddress: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SignedPayinStatus: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SignedPayoutAddress: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9113,16 +12648,16 @@ func (m *SignedPayinStatus) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Status == nil { - m.Status = &PayinStatus{} + if m.Address == nil { + m.Address = &PayoutAddress{} } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignature", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -9149,9 +12684,9 @@ func (m *SignedPayinStatus) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EscrowSignature = append(m.EscrowSignature[:0], dAtA[iNdEx:postIndex]...) - if m.EscrowSignature == nil { - m.EscrowSignature = []byte{} + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} } iNdEx = postIndex default: @@ -9179,7 +12714,7 @@ func (m *SignedPayinStatus) Unmarshal(dAtA []byte) error { } return nil } -func (m *PayoutStatus) Unmarshal(dAtA []byte) error { +func (m *Payment) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9202,10 +12737,10 @@ func (m *PayoutStatus) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PayoutStatus: wiretype end group for non-group") + return fmt.Errorf("proto: Payment: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PayoutStatus: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Payment: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9328,59 +12863,6 @@ func (m *PayoutStatus) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthAddress", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthEscrow - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEscrow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AuthAddress = append(m.AuthAddress[:0], dAtA[iNdEx:postIndex]...) - if m.AuthAddress == nil { - m.AuthAddress = []byte{} - } - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) - } - m.Status = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Status |= EscrowStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } @@ -9399,125 +12881,11 @@ func (m *PayoutStatus) Unmarshal(dAtA []byte) error { break } } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Collateral", wireType) - } - m.Collateral = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Collateral |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Withhold", wireType) - } - m.Withhold = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Withhold |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PaidAmount", wireType) - } - m.PaidAmount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PaidAmount |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumPaid", wireType) - } - m.NumPaid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumPaid |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LeftAmount", wireType) - } - m.LeftAmount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LeftAmount |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumLeft", wireType) - } - m.NumLeft = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumLeft |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 14: + case 6: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NextAmount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) } - m.NextAmount = 0 + m.Index = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -9527,47 +12895,68 @@ func (m *PayoutStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NextAmount |= int64(b&0x7F) << shift + m.Index |= int32(b&0x7F) << shift if b < 0x80 { break } } - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastPayoutTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := skipEscrow(dAtA[iNdEx:]) + if err != nil { + return err } - if msglen < 0 { + if skippy < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (iNdEx + skippy) < 0 { return ErrInvalidLengthEscrow } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.LastPayoutTime, dAtA[iNdEx:postIndex]); err != nil { - return err + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PaymentResult) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 16: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PaymentResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PaymentResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPayoutTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Payment", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9594,11 +12983,12 @@ func (m *PayoutStatus) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.NextPayoutTime, dAtA[iNdEx:postIndex]); err != nil { + m.Payment = append(m.Payment, &Payment{}) + if err := m.Payment[len(m.Payment)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 17: + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field EscrowAddress", wireType) } @@ -9632,9 +13022,9 @@ func (m *PayoutStatus) Unmarshal(dAtA []byte) error { m.EscrowAddress = []byte{} } iNdEx = postIndex - case 18: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignedTime", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9661,15 +13051,69 @@ func (m *PayoutStatus) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.EscrowSignTime, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.EscrowSignedTime, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 19: + default: + iNdEx = preIndex + skippy, err := skipEscrow(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SignedPaymentResult) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SignedPaymentResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SignedPaymentResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ErrorMsg", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -9679,29 +13123,33 @@ func (m *PayoutStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.ErrorMsg = string(dAtA[iNdEx:postIndex]) + if m.Result == nil { + m.Result = &PaymentResult{} + } + if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 20: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastModifyTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignature", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -9711,23 +13159,24 @@ func (m *PayoutStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.LastModifyTime, dAtA[iNdEx:postIndex]); err != nil { - return err + m.EscrowSignature = append(m.EscrowSignature[:0], dAtA[iNdEx:postIndex]...) + if m.EscrowSignature == nil { + m.EscrowSignature = []byte{} } iNdEx = postIndex default: @@ -9755,7 +13204,7 @@ func (m *PayoutStatus) Unmarshal(dAtA []byte) error { } return nil } -func (m *SignedPayoutStatus) Unmarshal(dAtA []byte) error { +func (m *BalanceResult) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9778,17 +13227,36 @@ func (m *SignedPayoutStatus) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SignedPayoutStatus: wiretype end group for non-group") + return fmt.Errorf("proto: BalanceResult: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SignedPayoutStatus: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BalanceResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) + } + m.Balance = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Balance |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EscrowAddress", wireType) } - var msglen int + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -9798,33 +13266,31 @@ func (m *SignedPayoutStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + if byteLen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + msglen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Status == nil { - m.Status = &PayoutStatus{} - } - if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + m.EscrowAddress = append(m.EscrowAddress[:0], dAtA[iNdEx:postIndex]...) + if m.EscrowAddress == nil { + m.EscrowAddress = []byte{} } iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignature", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignedTime", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -9834,24 +13300,23 @@ func (m *SignedPayoutStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.EscrowSignature = append(m.EscrowSignature[:0], dAtA[iNdEx:postIndex]...) - if m.EscrowSignature == nil { - m.EscrowSignature = []byte{} + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.EscrowSignedTime, dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -9879,7 +13344,7 @@ func (m *SignedPayoutStatus) Unmarshal(dAtA []byte) error { } return nil } -func (m *SignedPayoutStatusBatch) Unmarshal(dAtA []byte) error { +func (m *SignedBalanceResult) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9902,15 +13367,15 @@ func (m *SignedPayoutStatusBatch) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SignedPayoutStatusBatch: wiretype end group for non-group") + return fmt.Errorf("proto: SignedBalanceResult: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SignedPayoutStatusBatch: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SignedBalanceResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9937,8 +13402,10 @@ func (m *SignedPayoutStatusBatch) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Status = append(m.Status, &PayoutStatus{}) - if err := m.Status[len(m.Status)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Result == nil { + m.Result = &BalanceResult{} + } + if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10001,7 +13468,7 @@ func (m *SignedPayoutStatusBatch) Unmarshal(dAtA []byte) error { } return nil } -func (m *CancelContractRequest) Unmarshal(dAtA []byte) error { +func (m *SignedStakeRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10024,17 +13491,17 @@ func (m *CancelContractRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CancelContractRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SignedStakeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CancelContractRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SignedStakeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -10044,27 +13511,31 @@ func (m *CancelContractRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.ContractId = string(dAtA[iNdEx:postIndex]) + if m.Data == nil { + m.Data = &StakeRequest{} + } + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -10091,42 +13562,9 @@ func (m *CancelContractRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AuthAddress = append(m.AuthAddress[:0], dAtA[iNdEx:postIndex]...) - if m.AuthAddress == nil { - m.AuthAddress = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthSignedTime", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthEscrow - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthEscrow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.AuthSignedTime, dAtA[iNdEx:postIndex]); err != nil { - return err + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} } iNdEx = postIndex default: @@ -10154,7 +13592,7 @@ func (m *CancelContractRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *SignedCancelRequest) Unmarshal(dAtA []byte) error { +func (m *StakeRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10177,15 +13615,66 @@ func (m *SignedCancelRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SignedCancelRequest: wiretype end group for non-group") + return fmt.Errorf("proto: StakeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SignedCancelRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StakeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StakerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StakerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StakeAmount", wireType) + } + m.StakeAmount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StakeAmount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TransferRequest", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10212,18 +13701,18 @@ func (m *SignedCancelRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Request == nil { - m.Request = &CancelContractRequest{} + if m.TransferRequest == nil { + m.TransferRequest = &ledger.SignedTransferRequest{} } - if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TransferRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthSignature", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RequestTime", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -10233,24 +13722,23 @@ func (m *SignedCancelRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.AuthSignature = append(m.AuthSignature[:0], dAtA[iNdEx:postIndex]...) - if m.AuthSignature == nil { - m.AuthSignature = []byte{} + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.RequestTime, dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -10278,7 +13766,7 @@ func (m *SignedCancelRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *CancelContractResult) Unmarshal(dAtA []byte) error { +func (m *StakeResult) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10301,15 +13789,15 @@ func (m *CancelContractResult) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CancelContractResult: wiretype end group for non-group") + return fmt.Errorf("proto: StakeResult: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CancelContractResult: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StakeResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StakerId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10337,13 +13825,13 @@ func (m *CancelContractResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ContractId = string(dAtA[iNdEx:postIndex]) + m.StakerId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) } - m.EscrowId = 0 + m.Balance = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -10353,16 +13841,16 @@ func (m *CancelContractResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EscrowId |= int64(b&0x7F) << shift + m.Balance |= int64(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Canceled", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MatureAmount", wireType) } - var v int + m.MatureAmount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -10372,17 +13860,16 @@ func (m *CancelContractResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.MatureAmount |= int64(b&0x7F) << shift if b < 0x80 { break } } - m.Canceled = bool(v != 0) case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowAddress", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PendingAmount", wireType) } - var byteLen int + m.PendingAmount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -10392,29 +13879,14 @@ func (m *CancelContractResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.PendingAmount |= int64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthEscrow - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEscrow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EscrowAddress = append(m.EscrowAddress[:0], dAtA[iNdEx:postIndex]...) - if m.EscrowAddress == nil { - m.EscrowAddress = []byte{} - } - iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignedTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Ledgers", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10441,54 +13913,16 @@ func (m *CancelContractResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.EscrowSignedTime, dAtA[iNdEx:postIndex]); err != nil { + m.Ledgers = append(m.Ledgers, &StakeLedger{}) + if err := m.Ledgers[len(m.Ledgers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - m.Amount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Amount |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Paid", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Paid = bool(v != 0) - case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reference", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UnfinishLedgers", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -10498,23 +13932,25 @@ func (m *CancelContractResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.Reference = string(dAtA[iNdEx:postIndex]) + m.UnfinishLedgers = append(m.UnfinishLedgers, &UnfinishStakeLedger{}) + if err := m.UnfinishLedgers[len(m.UnfinishLedgers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -10541,7 +13977,7 @@ func (m *CancelContractResult) Unmarshal(dAtA []byte) error { } return nil } -func (m *SignedCancelContractResult) Unmarshal(dAtA []byte) error { +func (m *SignedStakeResult) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10564,15 +14000,15 @@ func (m *SignedCancelContractResult) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SignedCancelContractResult: wiretype end group for non-group") + return fmt.Errorf("proto: SignedStakeResult: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SignedCancelContractResult: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SignedStakeResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10599,16 +14035,16 @@ func (m *SignedCancelContractResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Result == nil { - m.Result = &CancelContractResult{} + if m.Data == nil { + m.Data = &StakeResult{} } - if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignature", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -10635,9 +14071,9 @@ func (m *SignedCancelContractResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EscrowSignature = append(m.EscrowSignature[:0], dAtA[iNdEx:postIndex]...) - if m.EscrowSignature == nil { - m.EscrowSignature = []byte{} + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} } iNdEx = postIndex default: @@ -10665,7 +14101,7 @@ func (m *SignedCancelContractResult) Unmarshal(dAtA []byte) error { } return nil } -func (m *PayoutAddress) Unmarshal(dAtA []byte) error { +func (m *StakeLedger) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10688,17 +14124,17 @@ func (m *PayoutAddress) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PayoutAddress: wiretype end group for non-group") + return fmt.Errorf("proto: StakeLedger: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PayoutAddress: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StakeLedger: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ToAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StakerId", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -10708,29 +14144,46 @@ func (m *PayoutAddress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.ToAddress = append(m.ToAddress[:0], dAtA[iNdEx:postIndex]...) - if m.ToAddress == nil { - m.ToAddress = []byte{} - } + m.StakerId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + m.Amount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Amount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignedTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10752,72 +14205,18 @@ func (m *PayoutAddress) Unmarshal(dAtA []byte) error { } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthEscrow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.SignedTime, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEscrow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthEscrow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthEscrow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SignedPayoutAddress) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow + return ErrInvalidLengthEscrow } - if iNdEx >= l { + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.StartTime, dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SignedPayoutAddress: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SignedPayoutAddress: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field MatureTime", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10844,18 +14243,15 @@ func (m *SignedPayoutAddress) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Address == nil { - m.Address = &PayoutAddress{} - } - if err := m.Address.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.MatureTime, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OperatorId", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -10865,25 +14261,74 @@ func (m *SignedPayoutAddress) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) - if m.Signature == nil { - m.Signature = []byte{} + m.OperatorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= OperationType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperationLog", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF } + m.OperationLog = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -10910,7 +14355,7 @@ func (m *SignedPayoutAddress) Unmarshal(dAtA []byte) error { } return nil } -func (m *Payment) Unmarshal(dAtA []byte) error { +func (m *UnfinishStakeLedger) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10933,15 +14378,15 @@ func (m *Payment) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Payment: wiretype end group for non-group") + return fmt.Errorf("proto: UnfinishStakeLedger: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Payment: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UnfinishStakeLedger: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StakerId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10969,13 +14414,13 @@ func (m *Payment) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ContractId = string(dAtA[iNdEx:postIndex]) + m.StakerId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - m.EscrowId = 0 + m.Amount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -10985,16 +14430,35 @@ func (m *Payment) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EscrowId |= int64(b&0x7F) << shift + m.Amount |= int64(b&0x7F) << shift if b < 0x80 { break } } case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + m.Status = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Status |= StakeStatus(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FromAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field FailReason", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -11004,31 +14468,62 @@ func (m *Payment) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.FromAddress = append(m.FromAddress[:0], dAtA[iNdEx:postIndex]...) - if m.FromAddress == nil { - m.FromAddress = []byte{} + m.FailReason = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubmitTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.SubmitTime, dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex - case 4: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ToAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field FailTime", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -11038,31 +14533,84 @@ func (m *Payment) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.ToAddress = append(m.ToAddress[:0], dAtA[iNdEx:postIndex]...) - if m.ToAddress == nil { - m.ToAddress = []byte{} + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.FailTime, dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + default: + iNdEx = preIndex + skippy, err := skipEscrow(dAtA[iNdEx:]) + if err != nil { + return err } - m.Amount = 0 + if skippy < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthEscrow + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SignedStakePenaltyRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SignedStakePenaltyRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SignedStakePenaltyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -11072,16 +14620,33 @@ func (m *Payment) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Amount |= int64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) + if msglen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Data == nil { + m.Data = &StakePenaltyRequest{} + } + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) } - m.Index = 0 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -11091,11 +14656,26 @@ func (m *Payment) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Index |= int32(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } + if byteLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEscrow(dAtA[iNdEx:]) @@ -11121,7 +14701,7 @@ func (m *Payment) Unmarshal(dAtA []byte) error { } return nil } -func (m *PaymentResult) Unmarshal(dAtA []byte) error { +func (m *StakePenaltyRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11144,17 +14724,17 @@ func (m *PaymentResult) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PaymentResult: wiretype end group for non-group") + return fmt.Errorf("proto: StakePenaltyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PaymentResult: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StakePenaltyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payment", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StakerId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -11164,31 +14744,29 @@ func (m *PaymentResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.Payment = append(m.Payment, &Payment{}) - if err := m.Payment[len(m.Payment)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.StakerId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OperatorId", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -11198,29 +14776,97 @@ func (m *PaymentResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.EscrowAddress = append(m.EscrowAddress[:0], dAtA[iNdEx:postIndex]...) - if m.EscrowAddress == nil { - m.EscrowAddress = []byte{} - } + m.OperatorId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + m.Reason = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Reason |= OperationType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignedTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OperationLog", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthEscrow + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthEscrow + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OperationLog = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + } + m.Amount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEscrow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Amount |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubmitTime", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11247,7 +14893,7 @@ func (m *PaymentResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.EscrowSignedTime, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.SubmitTime, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11276,7 +14922,7 @@ func (m *PaymentResult) Unmarshal(dAtA []byte) error { } return nil } -func (m *SignedPaymentResult) Unmarshal(dAtA []byte) error { +func (m *StakePenaltyResult) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11299,17 +14945,17 @@ func (m *SignedPaymentResult) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SignedPaymentResult: wiretype end group for non-group") + return fmt.Errorf("proto: StakePenaltyResult: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SignedPaymentResult: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: StakePenaltyResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StakerId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -11319,33 +14965,29 @@ func (m *SignedPaymentResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Result == nil { - m.Result = &PaymentResult{} - } - if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.StakerId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignature", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestPenaltyAmount", wireType) } - var byteLen int + m.RequestPenaltyAmount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -11355,85 +14997,16 @@ func (m *SignedPaymentResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + m.RequestPenaltyAmount |= int64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { - return ErrInvalidLengthEscrow - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthEscrow - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EscrowSignature = append(m.EscrowSignature[:0], dAtA[iNdEx:postIndex]...) - if m.EscrowSignature == nil { - m.EscrowSignature = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipEscrow(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthEscrow - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthEscrow - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BalanceResult) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEscrow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BalanceResult: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BalanceResult: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OperatePenaltyAmount", wireType) } - m.Balance = 0 + m.OperatePenaltyAmount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -11443,16 +15016,16 @@ func (m *BalanceResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Balance |= int64(b&0x7F) << shift + m.OperatePenaltyAmount |= int64(b&0x7F) << shift if b < 0x80 { break } } - case 2: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OperatorId", wireType) } - var byteLen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowEscrow @@ -11462,29 +15035,27 @@ func (m *BalanceResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthEscrow } - postIndex := iNdEx + byteLen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthEscrow } if postIndex > l { return io.ErrUnexpectedEOF } - m.EscrowAddress = append(m.EscrowAddress[:0], dAtA[iNdEx:postIndex]...) - if m.EscrowAddress == nil { - m.EscrowAddress = []byte{} - } + m.OperatorId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignedTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ReceiveTime", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11511,7 +15082,7 @@ func (m *BalanceResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.EscrowSignedTime, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.ReceiveTime, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -11540,7 +15111,7 @@ func (m *BalanceResult) Unmarshal(dAtA []byte) error { } return nil } -func (m *SignedBalanceResult) Unmarshal(dAtA []byte) error { +func (m *SignedStakePenaltyResult) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11563,15 +15134,15 @@ func (m *SignedBalanceResult) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SignedBalanceResult: wiretype end group for non-group") + return fmt.Errorf("proto: SignedStakePenaltyResult: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SignedBalanceResult: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SignedStakePenaltyResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11598,16 +15169,16 @@ func (m *SignedBalanceResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Result == nil { - m.Result = &BalanceResult{} + if m.Data == nil { + m.Data = &StakePenaltyResult{} } - if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EscrowSignature", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -11634,9 +15205,9 @@ func (m *SignedBalanceResult) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EscrowSignature = append(m.EscrowSignature[:0], dAtA[iNdEx:postIndex]...) - if m.EscrowSignature == nil { - m.EscrowSignature = []byte{} + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} } iNdEx = postIndex default: diff --git a/protos/escrow/escrow.proto b/protos/escrow/escrow.proto index dc8414cb..49741590 100644 --- a/protos/escrow/escrow.proto +++ b/protos/escrow/escrow.proto @@ -51,6 +51,8 @@ service EscrowService { rpc CloseChannel(ledger.SignedChannelState) returns (ledger.ChannelClosed); //use escrow as proxy to do the payment rpc Pay(ledger.SignedTransferRequest) returns (ledger.TransferResult); + rpc Stake(SignedStakeRequest) returns (SignedStakeResult); + rpc StakePenalty(SignedStakePenaltyRequest) returns (SignedStakePenaltyResult); } enum TokenType { @@ -346,3 +348,107 @@ message SignedBalanceResult { BalanceResult result = 1; bytes escrow_signature = 2; } + +message SignedStakeRequest { + StakeRequest data = 1; + bytes signature = 2; +} + +message StakeRequest { + string staker_id = 1; + int64 stake_amount = 2; //the amount can be 0 which mean query only, if negative means stake, positive means un-stake + ledger.SignedTransferRequest transfer_request = 3; //if the request is used for stake, need to fill this object + google.protobuf.Timestamp request_time = 4 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; +} + +message StakeResult { + string staker_id = 1; + int64 balance = 2; + int64 mature_amount = 3; //the amount can be stake now + int64 pending_amount = 4; //the amount which is in request, but not finalized + repeated StakeLedger ledgers = 5; + repeated UnfinishStakeLedger unfinish_ledgers = 6; +} + +message SignedStakeResult { + StakeResult data = 1; + bytes signature = 2; +} + +message StakeLedger { + string staker_id = 1; + int64 amount = 2; + google.protobuf.Timestamp start_time = 3 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; + google.protobuf.Timestamp mature_time = 4 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; + string operator_id = 5; + OperationType type = 6; + string operation_log = 7; +} + +enum StakeStatus { + PROCEEDING = 0; + FAIL = 1; +} + +message UnfinishStakeLedger { + string staker_id = 1; + int64 amount = 2; + StakeStatus status = 3; + string fail_reason = 4; + google.protobuf.Timestamp submit_time = 5 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; + google.protobuf.Timestamp fail_time = 6 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; +} + +message SignedStakePenaltyRequest { + StakePenaltyRequest data = 1; + bytes signature = 2; +} + +enum OperationType { + STAKE = 0; + CHEAT_PENALTY = 1; + LOST_SHARD_PENALTY = 2; +} + +message StakePenaltyRequest { + string staker_id = 1; + string operator_id = 2; + OperationType reason = 3; + string operation_log = 4; + int64 amount = 5; + google.protobuf.Timestamp submit_time = 6 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; +} + +message StakePenaltyResult { + string staker_id = 1; + int64 request_penalty_amount = 2; + int64 operate_penalty_amount = 3; + string operator_id = 4; + google.protobuf.Timestamp receive_time = 5 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; +} + +message SignedStakePenaltyResult { + StakePenaltyResult data = 1; + bytes signature = 2; +} diff --git a/protos/guard/guard.pb.go b/protos/guard/guard.pb.go index 69d7fff7..8b12de12 100644 --- a/protos/guard/guard.pb.go +++ b/protos/guard/guard.pb.go @@ -438,6 +438,8 @@ type DailySummary struct { NewContractsHost int64 `protobuf:"varint,7,opt,name=new_contracts_host,json=newContractsHost,proto3" json:"new_contracts_host,omitempty" pg:"new_contracts_host"` NewContractsRenter int64 `protobuf:"varint,8,opt,name=new_contracts_renter,json=newContractsRenter,proto3" json:"new_contracts_renter,omitempty" pg:"new_contracts_renter"` NewContractsAveragePrice int64 `protobuf:"varint,9,opt,name=new_contracts_average_price,json=newContractsAveragePrice,proto3" json:"new_contracts_average_price,omitempty" pg:"new_contracts_average_price"` + NewFiles int64 `protobuf:"varint,10,opt,name=new_files,json=newFiles,proto3" json:"new_files,omitempty" pg:"new_files"` + NewShardsSize int64 `protobuf:"varint,11,opt,name=new_shards_size,json=newShardsSize,proto3" json:"new_shards_size,omitempty" pg:"new_shards_size"` XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"` XXX_unrecognized []byte `json:"-" pg:"-"` XXX_sizecache int32 `json:"-" pg:"-"` @@ -539,6 +541,20 @@ func (m *DailySummary) GetNewContractsAveragePrice() int64 { return 0 } +func (m *DailySummary) GetNewFiles() int64 { + if m != nil { + return m.NewFiles + } + return 0 +} + +func (m *DailySummary) GetNewShardsSize() int64 { + if m != nil { + return m.NewShardsSize + } + return 0 +} + func (*DailySummary) XXX_MessageName() string { return "guard.DailySummary" } @@ -3743,250 +3759,252 @@ func init() { proto.RegisterFile("protos/guard/guard.proto", fileDescriptor_ad5b func init() { golang_proto.RegisterFile("protos/guard/guard.proto", fileDescriptor_ad5b6eccdc9ebee8) } var fileDescriptor_ad5b6eccdc9ebee8 = []byte{ - // 3874 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x3b, 0x4b, 0x6f, 0x1c, 0x59, - 0x57, 0xa9, 0x7e, 0xf7, 0xe9, 0x57, 0xf9, 0xc6, 0x76, 0xda, 0x4e, 0xfc, 0x98, 0x46, 0xf9, 0x26, - 0xf9, 0xbe, 0x6f, 0x9c, 0x90, 0x89, 0x82, 0x3e, 0xbe, 0x6f, 0x66, 0x68, 0x77, 0x97, 0x1f, 0xa1, - 0xd3, 0xed, 0xdc, 0x6e, 0x13, 0x32, 0x42, 0x2a, 0x95, 0xbb, 0xaf, 0xdb, 0x35, 0xe9, 0xae, 0x72, - 0xaa, 0xaa, 0xe3, 0xc9, 0x2c, 0x58, 0xb0, 0x43, 0x48, 0x88, 0x15, 0x20, 0x7e, 0x00, 0x12, 0x88, - 0x05, 0x42, 0x82, 0x05, 0x0b, 0x60, 0x19, 0xc4, 0x82, 0x61, 0x01, 0xcb, 0x79, 0x65, 0xc1, 0x16, - 0x56, 0xcc, 0x0a, 0xa1, 0xfb, 0xa8, 0x67, 0x97, 0xdb, 0x6e, 0x13, 0x31, 0x12, 0x1b, 0xab, 0xef, - 0xb9, 0xe7, 0xdc, 0x7b, 0xcf, 0xf3, 0x9e, 0x73, 0x6e, 0x19, 0xaa, 0xa7, 0x96, 0xe9, 0x98, 0xf6, - 0xbd, 0xe1, 0x44, 0xb3, 0x06, 0xfc, 0xef, 0x16, 0x03, 0xa1, 0x34, 0x1b, 0xac, 0xde, 0x1f, 0xea, - 0xce, 0xc9, 0xe4, 0x68, 0xab, 0x6f, 0x8e, 0xef, 0x39, 0x96, 0x69, 0x7c, 0x30, 0xb1, 0xef, 0x31, - 0x84, 0xa3, 0xc9, 0xf1, 0xbd, 0xa1, 0x39, 0x34, 0xd9, 0x80, 0xfd, 0xe2, 0x84, 0xab, 0x1b, 0x43, - 0xd3, 0x1c, 0x8e, 0x88, 0x8f, 0xe5, 0xe8, 0x63, 0x62, 0x3b, 0xda, 0xf8, 0x94, 0x23, 0xd4, 0xfe, - 0x5b, 0x02, 0xa8, 0x0f, 0xc6, 0xba, 0xf1, 0x74, 0x42, 0xac, 0xd7, 0xe8, 0x97, 0xa0, 0x64, 0x91, - 0x97, 0x13, 0x62, 0x3b, 0xc4, 0x52, 0x4f, 0xf5, 0x41, 0x55, 0xda, 0x94, 0xee, 0xe4, 0x71, 0xd1, - 0x03, 0x1e, 0xe8, 0x03, 0xd4, 0x00, 0x78, 0x49, 0xb1, 0xd5, 0x81, 0xe6, 0x90, 0x6a, 0x62, 0x53, - 0xba, 0x53, 0x78, 0xb0, 0xba, 0xc5, 0x77, 0xda, 0x72, 0x77, 0xda, 0xea, 0xb9, 0x3b, 0x6d, 0xe7, - 0xde, 0x7c, 0xb5, 0x71, 0xed, 0x0f, 0xbe, 0xde, 0x90, 0x70, 0x9e, 0xd1, 0x35, 0x35, 0x87, 0xa0, - 0x0d, 0x28, 0xf0, 0x45, 0xfa, 0xe6, 0xc4, 0x70, 0xaa, 0xc9, 0x4d, 0xe9, 0x4e, 0x1a, 0xf3, 0x75, - 0x1b, 0x14, 0x82, 0x76, 0xc1, 0xdd, 0x55, 0xa5, 0x87, 0xae, 0xa6, 0xe6, 0xd8, 0xa7, 0x20, 0x28, - 0xe9, 0x1c, 0xba, 0x05, 0x79, 0x5b, 0x1f, 0x1a, 0x9a, 0x33, 0xb1, 0x48, 0x35, 0xbd, 0x29, 0xdd, - 0x29, 0x62, 0x1f, 0x50, 0xfb, 0xd7, 0x24, 0x14, 0x9b, 0x9a, 0x3e, 0x7a, 0xdd, 0x9d, 0x8c, 0xc7, + // 3909 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x3b, 0x4b, 0x6f, 0x1c, 0xd9, + 0x5a, 0xa9, 0x7e, 0xf7, 0xd7, 0xaf, 0xf2, 0x89, 0xed, 0xb4, 0x9d, 0xf8, 0x31, 0x8d, 0x72, 0x27, + 0xb9, 0xf7, 0x8e, 0x13, 0x32, 0x51, 0xd0, 0xe5, 0xde, 0x3b, 0x43, 0xbb, 0xbb, 0xfc, 0x08, 0x9d, + 0x6e, 0xe7, 0x74, 0x9b, 0x90, 0x11, 0x52, 0xa9, 0xdc, 0x7d, 0xdc, 0xae, 0x49, 0x77, 0x95, 0x53, + 0x55, 0x1d, 0x4f, 0x66, 0xc1, 0x82, 0x1d, 0x42, 0x42, 0xac, 0x00, 0xcd, 0x0f, 0x40, 0x02, 0xb1, + 0x40, 0x48, 0xb0, 0x60, 0x01, 0x2c, 0x83, 0x58, 0x30, 0x6c, 0x58, 0xce, 0x2b, 0x0b, 0xb6, 0xb0, + 0x62, 0x56, 0x08, 0x9d, 0x47, 0x3d, 0xbb, 0xdc, 0x76, 0x9b, 0x88, 0x91, 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x16, 0x31, 0x1c, 0x62, 0x55, 0x73, 0xfc, - 0x10, 0x41, 0x7c, 0xcc, 0x66, 0xd0, 0x47, 0x70, 0x33, 0x4c, 0xa1, 0xbd, 0x22, 0xec, 0xf0, 0xa7, - 0x96, 0xde, 0x27, 0xd5, 0x3c, 0x23, 0xac, 0x06, 0x09, 0xeb, 0x1c, 0xe1, 0x80, 0xce, 0xd7, 0xfe, - 0x22, 0x01, 0x05, 0xba, 0xf3, 0xff, 0x5b, 0xb5, 0xbe, 0x47, 0xfd, 0xa3, 0x6f, 0x5a, 0x03, 0xe1, - 0x41, 0x69, 0xe6, 0x41, 0x05, 0x0e, 0xe3, 0x2e, 0x74, 0x17, 0x32, 0xb6, 0xa3, 0x39, 0x13, 0xaa, - 0xc0, 0xe4, 0x9d, 0xc2, 0x83, 0x85, 0x2d, 0x1e, 0x54, 0x98, 0x5c, 0xd8, 0x04, 0x16, 0x08, 0xb5, - 0x3f, 0x93, 0x00, 0x7c, 0x30, 0x5a, 0x81, 0x1c, 0x55, 0x67, 0x20, 0x04, 0x64, 0xe9, 0x98, 0x9e, - 0xea, 0x26, 0xe4, 0x8f, 0xf5, 0x91, 0xb0, 0xa1, 0x04, 0xd3, 0x42, 0x8e, 0x02, 0x98, 0xe5, 0x6c, - 0x40, 0x81, 0xda, 0x93, 0xaa, 0x8d, 0x3d, 0xaf, 0x4e, 0x62, 0xa0, 0xa0, 0x3a, 0x83, 0xa0, 0x35, - 0x00, 0x8b, 0x9c, 0x69, 0xd6, 0x40, 0x3d, 0x72, 0x1c, 0xc6, 0x54, 0x12, 0xe7, 0x39, 0x64, 0xdb, - 0x71, 0xa8, 0xe5, 0xd9, 0x13, 0xfb, 0x94, 0xf4, 0x1d, 0xb5, 0x7f, 0x42, 0x34, 0xce, 0x55, 0x0e, - 0x17, 0x05, 0xb0, 0x41, 0x61, 0xb5, 0xdf, 0x93, 0x20, 0xd9, 0x32, 0x87, 0x48, 0x81, 0x42, 0xff, - 0x44, 0x33, 0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, 0x0e, 0x95, 0x01, 0xd8, - 0x6e, 0x2a, 0x1b, 0xe7, 0xd1, 0x75, 0xa8, 0x60, 0xa5, 0xde, 0x7c, 0xae, 0x36, 0xf6, 0xea, 0xad, - 0x96, 0xd2, 0xde, 0x55, 0x64, 0xa0, 0x81, 0x0b, 0x2b, 0x0d, 0xac, 0xd4, 0x7b, 0x4a, 0x53, 0x2e, - 0xa0, 0x25, 0x58, 0xc0, 0xca, 0xd3, 0x43, 0xa5, 0xdb, 0x0b, 0x60, 0x15, 0x6b, 0xbf, 0x9f, 0x80, - 0x25, 0x76, 0xa7, 0x39, 0xa6, 0x45, 0x5a, 0xba, 0xed, 0x60, 0x91, 0x81, 0xa1, 0x5f, 0x85, 0xac, - 0x28, 0x11, 0x44, 0x34, 0xdb, 0x74, 0x5d, 0x91, 0x61, 0xd1, 0x00, 0x43, 0x09, 0xf7, 0x8d, 0x63, - 0x13, 0x73, 0x3c, 0xec, 0x12, 0xd0, 0xc2, 0xa4, 0x3f, 0xb1, 0xd8, 0xed, 0x35, 0x77, 0x0e, 0x58, - 0x10, 0x94, 0xcc, 0xb4, 0x7e, 0x01, 0x15, 0x7e, 0x0f, 0xd3, 0xe3, 0xa9, 0x63, 0xe2, 0x68, 0xd5, - 0x24, 0x8b, 0x0b, 0x8b, 0xe2, 0x30, 0xde, 0xd9, 0x69, 0x6c, 0xc5, 0xa5, 0xe3, 0xe0, 0x90, 0x5e, - 0x62, 0x3c, 0xf1, 0x4b, 0x31, 0x5b, 0xe1, 0x83, 0x0b, 0x8a, 0x9d, 0xbf, 0x49, 0x43, 0x29, 0xb4, - 0x68, 0x24, 0x17, 0x91, 0xa2, 0xb9, 0x48, 0x28, 0x11, 0x48, 0x44, 0x12, 0x81, 0x50, 0x26, 0x98, - 0x8c, 0x64, 0x82, 0xe1, 0x2c, 0x21, 0xf5, 0xbf, 0xcf, 0x12, 0xd2, 0x57, 0xc9, 0x12, 0x98, 0xf7, - 0x92, 0xfe, 0x0b, 0xf5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d0, 0x49, 0xfb, 0x44, 0xb3, 0x06, 0x36, 0x97, 0x46, 0x81, 0xa1, 0x50, 0xbe, + 0xbb, 0x0c, 0x4a, 0x05, 0x51, 0xfb, 0xcb, 0x04, 0x14, 0xe8, 0xf1, 0xff, 0xdf, 0xda, 0xc6, 0x7b, + 0xd4, 0xc9, 0xfa, 0xa6, 0x35, 0x10, 0x6e, 0x98, 0x66, 0x6e, 0x58, 0xe0, 0x30, 0xee, 0x87, 0x77, + 0x21, 0x63, 0x3b, 0x9a, 0x33, 0xa1, 0x56, 0x90, 0xbc, 0x53, 0x78, 0xb0, 0xb0, 0xc5, 0x23, 0x13, + 0x93, 0x0b, 0x9b, 0xc0, 0x02, 0xa1, 0xf6, 0xe7, 0x12, 0x80, 0x0f, 0x46, 0x2b, 0x90, 0xa3, 0x36, + 0x11, 0x88, 0x23, 0x59, 0x3a, 0xa6, 0xa7, 0xba, 0x09, 0x79, 0xaa, 0x19, 0x2e, 0xfa, 0x04, 0xd7, + 0x0e, 0x05, 0x30, 0xf3, 0xdb, 0x80, 0x02, 0x35, 0x4a, 0x55, 0x1b, 0x7b, 0xa1, 0x21, 0x89, 0x81, + 0x82, 0xea, 0x0c, 0x82, 0xd6, 0x00, 0x2c, 0x72, 0xa6, 0x59, 0x03, 0xf5, 0xc8, 0x71, 0x18, 0x53, + 0x49, 0x9c, 0xe7, 0x90, 0x6d, 0xc7, 0xa1, 0xe6, 0x6b, 0x4f, 0xec, 0x53, 0xd2, 0x77, 0xd4, 0xfe, + 0x09, 0xd1, 0x38, 0x57, 0x39, 0x5c, 0x14, 0xc0, 0x06, 0x85, 0xd5, 0xfe, 0x40, 0x82, 0x64, 0xcb, + 0x1c, 0x22, 0x05, 0x0a, 0xfd, 0x13, 0xcd, 0x18, 0x0a, 0x5d, 0xcc, 0xa3, 0x53, 0xe0, 0x84, 0x4c, + 0x13, 0xb7, 0xa1, 0x6c, 0x5a, 0xfa, 0x50, 0x37, 0x34, 0xc7, 0xe4, 0xba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x73, 0x38, 0xa7, 0xdb, + 0x98, 0x8d, 0x6b, 0xff, 0x29, 0x51, 0xb9, 0x31, 0x31, 0x4d, 0xa7, 0xb5, 0x0f, 0x2f, 0x9f, 0x22, + 0x06, 0x12, 0xc3, 0x28, 0x5b, 0x89, 0x77, 0xc2, 0x56, 0x72, 0x26, 0x5b, 0xa9, 0x30, 0x5b, 0x61, + 0x95, 0xa6, 0xc3, 0x2a, 0xad, 0xfd, 0x7e, 0x02, 0x56, 0xdc, 0x66, 0xd6, 0x34, 0xd3, 0xf7, 0x21, + 0x23, 0xf2, 0xc7, 0x8b, 0x58, 0x16, 0x78, 0xb3, 0xd2, 0x7b, 0x16, 0x28, 0x6c, 0x73, 0xe4, 0xd6, + 0x9f, 0xc9, 0xf9, 0x2e, 0x6b, 0x46, 0x39, 0x2d, 0x8b, 0xd4, 0x4c, 0x59, 0xa4, 0x67, 0xc9, 0x22, + 0x13, 0x95, 0x85, 0x04, 0x68, 0xc7, 0xb4, 0xfa, 0x84, 0x23, 0xbf, 0x0b, 0x8f, 0x59, 0x81, 0x9c, + 0x36, 0x71, 0x4e, 0x82, 0x4f, 0x70, 0x74, 0x7c, 0xe1, 0xa3, 0x6c, 0xed, 0x8f, 0x25, 0xc8, 0x60, + 0x62, 0x4f, 0x46, 0x0e, 0x7a, 0x1f, 0x52, 0x7d, 0x73, 0xc0, 0x9f, 0x25, 0xcb, 0xde, 0x6b, 0x89, + 0xa7, 0x34, 0x73, 0x40, 0x30, 0x43, 0x40, 0x55, 0xc8, 0x8e, 0x89, 0x6d, 0x6b, 0x43, 0xe2, 0x8a, + 0x5e, 0x0c, 0xa7, 0x9f, 0x9b, 0x93, 0x57, 0x7d, 0x6e, 0xae, 0xfd, 0x73, 0x0a, 0xca, 0x5c, 0x3e, + 0xde, 0x93, 0xce, 0xcc, 0x34, 0xef, 0x47, 0x50, 0x19, 0xb1, 0xd2, 0x20, 0x98, 0x3f, 0x27, 0xef, + 0xe4, 0x71, 0x89, 0x82, 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3, 0xea, 0xf6, 0x65, 0x42, 0x78, 0xdb, 0xb0, 0x12, 0xa2, 0xa7, + 0x26, 0x6f, 0x63, 0xcd, 0x78, 0xd1, 0x26, 0x67, 0x71, 0x8b, 0xa0, 0xe0, 0x77, 0xf5, 0x62, 0x8d, + 0x26, 0xdc, 0x8c, 0x5f, 0xa3, 0x67, 0x3a, 0xda, 0xe8, 0x92, 0xab, 0x6c, 0xff, 0xc6, 0xf7, 0xdf, + 0xae, 0x4b, 0x6f, 0xbe, 0x5b, 0x97, 0xbe, 0xfc, 0x6e, 0x5d, 0xfa, 0xe6, 0xbb, 0x75, 0xe9, 0x4f, + 0xdf, 0xae, 0x4b, 0xff, 0xf8, 0x76, 0x5d, 0x7a, 0xf3, 0x76, 0x5d, 0x82, 0x92, 0x6e, 0x6e, 0x1d, + 0x39, 0xc7, 0x36, 0x27, 0xdc, 0x06, 0x16, 0x13, 0x0f, 0xe8, 0x05, 0x72, 0x20, 0x7d, 0xc2, 0xff, + 0xf1, 0xe8, 0x28, 0xc3, 0x2e, 0x94, 0x0f, 0xff, 0x27, 0x00, 0x00, 0xff, 0xff, 0x5b, 0xbd, 0x46, + 0x53, 0xa2, 0x34, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -4735,6 +4753,16 @@ func (m *DailySummary) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } + if m.NewShardsSize != 0 { + i = encodeVarintGuard(dAtA, i, uint64(m.NewShardsSize)) + i-- + dAtA[i] = 0x58 + } + if m.NewFiles != 0 { + i = encodeVarintGuard(dAtA, i, uint64(m.NewFiles)) + i-- + dAtA[i] = 0x50 + } if m.NewContractsAveragePrice != 0 { i = encodeVarintGuard(dAtA, i, uint64(m.NewContractsAveragePrice)) i-- @@ -7341,8 +7369,16 @@ func NewPopulatedDailySummary(r randyGuard, easy bool) *DailySummary { if r.Intn(2) == 0 { this.NewContractsAveragePrice *= -1 } + this.NewFiles = int64(r.Int63()) + if r.Intn(2) == 0 { + this.NewFiles *= -1 + } + this.NewShardsSize = int64(r.Int63()) + if r.Intn(2) == 0 { + this.NewShardsSize *= -1 + } if !easy && r.Intn(10) != 0 { - this.XXX_unrecognized = randUnrecognizedGuard(r, 10) + this.XXX_unrecognized = randUnrecognizedGuard(r, 12) } return this } @@ -8307,6 +8343,12 @@ func (m *DailySummary) Size() (n int) { if m.NewContractsAveragePrice != 0 { n += 1 + sovGuard(uint64(m.NewContractsAveragePrice)) } + if m.NewFiles != 0 { + n += 1 + sovGuard(uint64(m.NewFiles)) + } + if m.NewShardsSize != 0 { + n += 1 + sovGuard(uint64(m.NewShardsSize)) + } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -9934,6 +9976,44 @@ func (m *DailySummary) Unmarshal(dAtA []byte) error { break } } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NewFiles", wireType) + } + m.NewFiles = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGuard + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NewFiles |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NewShardsSize", wireType) + } + m.NewShardsSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGuard + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NewShardsSize |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipGuard(dAtA[iNdEx:]) diff --git a/protos/guard/guard.proto b/protos/guard/guard.proto index 9f280a56..352f450b 100644 --- a/protos/guard/guard.proto +++ b/protos/guard/guard.proto @@ -72,6 +72,8 @@ message DailySummary { int64 new_contracts_host = 7; //count of the hosts who receive and pass challenge the day int64 new_contracts_renter = 8; //count of the renters who upload contract the day int64 new_contracts_average_price = 9; //average price of the day's contracts + int64 new_files = 10; //files count of the day + int64 new_shards_size = 11; //all shards file size of the day } message HostSummary {