@kaiachain/kss-bridges-celer
Version:
TypeScript client and use-cases for cBridge
1,567 lines (1,355 loc) • 49.6 kB
JavaScript
// source: sgn/message/v1/tx.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js');
goog.object.extend(proto, gogoproto_gogo_pb);
goog.exportSymbol('proto.sgn.message.v1.MsgClaimAllFees', null, global);
goog.exportSymbol('proto.sgn.message.v1.MsgClaimAllFeesResponse', null, global);
goog.exportSymbol('proto.sgn.message.v1.MsgSignFees', null, global);
goog.exportSymbol('proto.sgn.message.v1.MsgSignFeesResponse', null, global);
goog.exportSymbol('proto.sgn.message.v1.MsgSignMessage', null, global);
goog.exportSymbol('proto.sgn.message.v1.MsgSignMessageResponse', null, global);
goog.exportSymbol('proto.sgn.message.v1.MsgTriggerSignMessage', null, global);
goog.exportSymbol('proto.sgn.message.v1.MsgTriggerSignMessageResponse', null, global);
goog.exportSymbol('proto.sgn.message.v1.SignatureDetails', null, global);
/**
* 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.sgn.message.v1.MsgSignMessage = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.sgn.message.v1.MsgSignMessage, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.sgn.message.v1.MsgSignMessage.displayName = 'proto.sgn.message.v1.MsgSignMessage';
}
/**
* 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.sgn.message.v1.MsgSignMessageResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.sgn.message.v1.MsgSignMessageResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.sgn.message.v1.MsgSignMessageResponse.displayName = 'proto.sgn.message.v1.MsgSignMessageResponse';
}
/**
* 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.sgn.message.v1.MsgTriggerSignMessage = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.sgn.message.v1.MsgTriggerSignMessage, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.sgn.message.v1.MsgTriggerSignMessage.displayName = 'proto.sgn.message.v1.MsgTriggerSignMessage';
}
/**
* 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.sgn.message.v1.MsgTriggerSignMessageResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.sgn.message.v1.MsgTriggerSignMessageResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.sgn.message.v1.MsgTriggerSignMessageResponse.displayName = 'proto.sgn.message.v1.MsgTriggerSignMessageResponse';
}
/**
* 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.sgn.message.v1.MsgClaimAllFees = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.sgn.message.v1.MsgClaimAllFees, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.sgn.message.v1.MsgClaimAllFees.displayName = 'proto.sgn.message.v1.MsgClaimAllFees';
}
/**
* 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.sgn.message.v1.MsgClaimAllFeesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.sgn.message.v1.MsgClaimAllFeesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.sgn.message.v1.MsgClaimAllFeesResponse.displayName = 'proto.sgn.message.v1.MsgClaimAllFeesResponse';
}
/**
* 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.sgn.message.v1.SignatureDetails = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.sgn.message.v1.SignatureDetails, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.sgn.message.v1.SignatureDetails.displayName = 'proto.sgn.message.v1.SignatureDetails';
}
/**
* 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.sgn.message.v1.MsgSignFees = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.sgn.message.v1.MsgSignFees.repeatedFields_, null);
};
goog.inherits(proto.sgn.message.v1.MsgSignFees, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.sgn.message.v1.MsgSignFees.displayName = 'proto.sgn.message.v1.MsgSignFees';
}
/**
* 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.sgn.message.v1.MsgSignFeesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.sgn.message.v1.MsgSignFeesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.sgn.message.v1.MsgSignFeesResponse.displayName = 'proto.sgn.message.v1.MsgSignFeesResponse';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.sgn.message.v1.MsgSignMessage.prototype.toObject = function(opt_includeInstance) {
return proto.sgn.message.v1.MsgSignMessage.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.sgn.message.v1.MsgSignMessage} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.MsgSignMessage.toObject = function(includeInstance, msg) {
var f, obj = {
messageId: jspb.Message.getFieldWithDefault(msg, 1, ""),
sender: jspb.Message.getFieldWithDefault(msg, 2, ""),
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.sgn.message.v1.MsgSignMessage}
*/
proto.sgn.message.v1.MsgSignMessage.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.sgn.message.v1.MsgSignMessage;
return proto.sgn.message.v1.MsgSignMessage.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.sgn.message.v1.MsgSignMessage} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.sgn.message.v1.MsgSignMessage}
*/
proto.sgn.message.v1.MsgSignMessage.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.setMessageId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setSender(value);
break;
case 3:
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.sgn.message.v1.MsgSignMessage.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.sgn.message.v1.MsgSignMessage.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.sgn.message.v1.MsgSignMessage} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.MsgSignMessage.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMessageId();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getSender();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getSignature_asU8();
if (f.length > 0) {
writer.writeBytes(
3,
f
);
}
};
/**
* optional string message_id = 1;
* @return {string}
*/
proto.sgn.message.v1.MsgSignMessage.prototype.getMessageId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.sgn.message.v1.MsgSignMessage} returns this
*/
proto.sgn.message.v1.MsgSignMessage.prototype.setMessageId = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string sender = 2;
* @return {string}
*/
proto.sgn.message.v1.MsgSignMessage.prototype.getSender = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.sgn.message.v1.MsgSignMessage} returns this
*/
proto.sgn.message.v1.MsgSignMessage.prototype.setSender = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional bytes signature = 3;
* @return {!(string|Uint8Array)}
*/
proto.sgn.message.v1.MsgSignMessage.prototype.getSignature = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* optional bytes signature = 3;
* This is a type-conversion wrapper around `getSignature()`
* @return {string}
*/
proto.sgn.message.v1.MsgSignMessage.prototype.getSignature_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getSignature()));
};
/**
* optional bytes signature = 3;
* 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.sgn.message.v1.MsgSignMessage.prototype.getSignature_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getSignature()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.sgn.message.v1.MsgSignMessage} returns this
*/
proto.sgn.message.v1.MsgSignMessage.prototype.setSignature = function(value) {
return jspb.Message.setProto3BytesField(this, 3, 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_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.sgn.message.v1.MsgSignMessageResponse.prototype.toObject = function(opt_includeInstance) {
return proto.sgn.message.v1.MsgSignMessageResponse.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.sgn.message.v1.MsgSignMessageResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.MsgSignMessageResponse.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.sgn.message.v1.MsgSignMessageResponse}
*/
proto.sgn.message.v1.MsgSignMessageResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.sgn.message.v1.MsgSignMessageResponse;
return proto.sgn.message.v1.MsgSignMessageResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.sgn.message.v1.MsgSignMessageResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.sgn.message.v1.MsgSignMessageResponse}
*/
proto.sgn.message.v1.MsgSignMessageResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.sgn.message.v1.MsgSignMessageResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.sgn.message.v1.MsgSignMessageResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.sgn.message.v1.MsgSignMessageResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.MsgSignMessageResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.sgn.message.v1.MsgTriggerSignMessage.prototype.toObject = function(opt_includeInstance) {
return proto.sgn.message.v1.MsgTriggerSignMessage.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.sgn.message.v1.MsgTriggerSignMessage} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.MsgTriggerSignMessage.toObject = function(includeInstance, msg) {
var f, obj = {
messageId: jspb.Message.getFieldWithDefault(msg, 1, ""),
sender: jspb.Message.getFieldWithDefault(msg, 2, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.sgn.message.v1.MsgTriggerSignMessage}
*/
proto.sgn.message.v1.MsgTriggerSignMessage.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.sgn.message.v1.MsgTriggerSignMessage;
return proto.sgn.message.v1.MsgTriggerSignMessage.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.sgn.message.v1.MsgTriggerSignMessage} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.sgn.message.v1.MsgTriggerSignMessage}
*/
proto.sgn.message.v1.MsgTriggerSignMessage.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.setMessageId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setSender(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.sgn.message.v1.MsgTriggerSignMessage.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.sgn.message.v1.MsgTriggerSignMessage.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.sgn.message.v1.MsgTriggerSignMessage} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.MsgTriggerSignMessage.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMessageId();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getSender();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* optional string message_id = 1;
* @return {string}
*/
proto.sgn.message.v1.MsgTriggerSignMessage.prototype.getMessageId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.sgn.message.v1.MsgTriggerSignMessage} returns this
*/
proto.sgn.message.v1.MsgTriggerSignMessage.prototype.setMessageId = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string sender = 2;
* @return {string}
*/
proto.sgn.message.v1.MsgTriggerSignMessage.prototype.getSender = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.sgn.message.v1.MsgTriggerSignMessage} returns this
*/
proto.sgn.message.v1.MsgTriggerSignMessage.prototype.setSender = function(value) {
return jspb.Message.setProto3StringField(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_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.sgn.message.v1.MsgTriggerSignMessageResponse.prototype.toObject = function(opt_includeInstance) {
return proto.sgn.message.v1.MsgTriggerSignMessageResponse.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.sgn.message.v1.MsgTriggerSignMessageResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.MsgTriggerSignMessageResponse.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.sgn.message.v1.MsgTriggerSignMessageResponse}
*/
proto.sgn.message.v1.MsgTriggerSignMessageResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.sgn.message.v1.MsgTriggerSignMessageResponse;
return proto.sgn.message.v1.MsgTriggerSignMessageResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.sgn.message.v1.MsgTriggerSignMessageResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.sgn.message.v1.MsgTriggerSignMessageResponse}
*/
proto.sgn.message.v1.MsgTriggerSignMessageResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.sgn.message.v1.MsgTriggerSignMessageResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.sgn.message.v1.MsgTriggerSignMessageResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.sgn.message.v1.MsgTriggerSignMessageResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.MsgTriggerSignMessageResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.sgn.message.v1.MsgClaimAllFees.prototype.toObject = function(opt_includeInstance) {
return proto.sgn.message.v1.MsgClaimAllFees.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.sgn.message.v1.MsgClaimAllFees} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.MsgClaimAllFees.toObject = function(includeInstance, msg) {
var f, obj = {
delegatorAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
sender: jspb.Message.getFieldWithDefault(msg, 2, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.sgn.message.v1.MsgClaimAllFees}
*/
proto.sgn.message.v1.MsgClaimAllFees.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.sgn.message.v1.MsgClaimAllFees;
return proto.sgn.message.v1.MsgClaimAllFees.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.sgn.message.v1.MsgClaimAllFees} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.sgn.message.v1.MsgClaimAllFees}
*/
proto.sgn.message.v1.MsgClaimAllFees.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.setDelegatorAddress(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setSender(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.sgn.message.v1.MsgClaimAllFees.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.sgn.message.v1.MsgClaimAllFees.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.sgn.message.v1.MsgClaimAllFees} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.MsgClaimAllFees.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getDelegatorAddress();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getSender();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* optional string delegator_address = 1;
* @return {string}
*/
proto.sgn.message.v1.MsgClaimAllFees.prototype.getDelegatorAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.sgn.message.v1.MsgClaimAllFees} returns this
*/
proto.sgn.message.v1.MsgClaimAllFees.prototype.setDelegatorAddress = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string sender = 2;
* @return {string}
*/
proto.sgn.message.v1.MsgClaimAllFees.prototype.getSender = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.sgn.message.v1.MsgClaimAllFees} returns this
*/
proto.sgn.message.v1.MsgClaimAllFees.prototype.setSender = function(value) {
return jspb.Message.setProto3StringField(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_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.sgn.message.v1.MsgClaimAllFeesResponse.prototype.toObject = function(opt_includeInstance) {
return proto.sgn.message.v1.MsgClaimAllFeesResponse.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.sgn.message.v1.MsgClaimAllFeesResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.MsgClaimAllFeesResponse.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.sgn.message.v1.MsgClaimAllFeesResponse}
*/
proto.sgn.message.v1.MsgClaimAllFeesResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.sgn.message.v1.MsgClaimAllFeesResponse;
return proto.sgn.message.v1.MsgClaimAllFeesResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.sgn.message.v1.MsgClaimAllFeesResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.sgn.message.v1.MsgClaimAllFeesResponse}
*/
proto.sgn.message.v1.MsgClaimAllFeesResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.sgn.message.v1.MsgClaimAllFeesResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.sgn.message.v1.MsgClaimAllFeesResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.sgn.message.v1.MsgClaimAllFeesResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.MsgClaimAllFeesResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.sgn.message.v1.SignatureDetails.prototype.toObject = function(opt_includeInstance) {
return proto.sgn.message.v1.SignatureDetails.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.sgn.message.v1.SignatureDetails} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.SignatureDetails.toObject = function(includeInstance, msg) {
var f, obj = {
chainId: jspb.Message.getFieldWithDefault(msg, 1, 0),
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.sgn.message.v1.SignatureDetails}
*/
proto.sgn.message.v1.SignatureDetails.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.sgn.message.v1.SignatureDetails;
return proto.sgn.message.v1.SignatureDetails.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.sgn.message.v1.SignatureDetails} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.sgn.message.v1.SignatureDetails}
*/
proto.sgn.message.v1.SignatureDetails.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint64());
msg.setChainId(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.sgn.message.v1.SignatureDetails.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.sgn.message.v1.SignatureDetails.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.sgn.message.v1.SignatureDetails} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.SignatureDetails.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getChainId();
if (f !== 0) {
writer.writeUint64(
1,
f
);
}
f = message.getSignature_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
};
/**
* optional uint64 chain_id = 1;
* @return {number}
*/
proto.sgn.message.v1.SignatureDetails.prototype.getChainId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.sgn.message.v1.SignatureDetails} returns this
*/
proto.sgn.message.v1.SignatureDetails.prototype.setChainId = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional bytes signature = 2;
* @return {!(string|Uint8Array)}
*/
proto.sgn.message.v1.SignatureDetails.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.sgn.message.v1.SignatureDetails.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.sgn.message.v1.SignatureDetails.prototype.getSignature_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getSignature()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.sgn.message.v1.SignatureDetails} returns this
*/
proto.sgn.message.v1.SignatureDetails.prototype.setSignature = function(value) {
return jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.sgn.message.v1.MsgSignFees.repeatedFields_ = [3];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.sgn.message.v1.MsgSignFees.prototype.toObject = function(opt_includeInstance) {
return proto.sgn.message.v1.MsgSignFees.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.sgn.message.v1.MsgSignFees} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.MsgSignFees.toObject = function(includeInstance, msg) {
var f, obj = {
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
sender: jspb.Message.getFieldWithDefault(msg, 2, ""),
signatureDetailsListList: jspb.Message.toObjectList(msg.getSignatureDetailsListList(),
proto.sgn.message.v1.SignatureDetails.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.sgn.message.v1.MsgSignFees}
*/
proto.sgn.message.v1.MsgSignFees.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.sgn.message.v1.MsgSignFees;
return proto.sgn.message.v1.MsgSignFees.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.sgn.message.v1.MsgSignFees} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.sgn.message.v1.MsgSignFees}
*/
proto.sgn.message.v1.MsgSignFees.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.setAddress(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setSender(value);
break;
case 3:
var value = new proto.sgn.message.v1.SignatureDetails;
reader.readMessage(value,proto.sgn.message.v1.SignatureDetails.deserializeBinaryFromReader);
msg.addSignatureDetailsList(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.sgn.message.v1.MsgSignFees.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.sgn.message.v1.MsgSignFees.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.sgn.message.v1.MsgSignFees} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.MsgSignFees.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAddress();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getSender();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getSignatureDetailsListList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
proto.sgn.message.v1.SignatureDetails.serializeBinaryToWriter
);
}
};
/**
* optional string address = 1;
* @return {string}
*/
proto.sgn.message.v1.MsgSignFees.prototype.getAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.sgn.message.v1.MsgSignFees} returns this
*/
proto.sgn.message.v1.MsgSignFees.prototype.setAddress = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string sender = 2;
* @return {string}
*/
proto.sgn.message.v1.MsgSignFees.prototype.getSender = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.sgn.message.v1.MsgSignFees} returns this
*/
proto.sgn.message.v1.MsgSignFees.prototype.setSender = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* repeated SignatureDetails signature_details_list = 3;
* @return {!Array<!proto.sgn.message.v1.SignatureDetails>}
*/
proto.sgn.message.v1.MsgSignFees.prototype.getSignatureDetailsListList = function() {
return /** @type{!Array<!proto.sgn.message.v1.SignatureDetails>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.sgn.message.v1.SignatureDetails, 3));
};
/**
* @param {!Array<!proto.sgn.message.v1.SignatureDetails>} value
* @return {!proto.sgn.message.v1.MsgSignFees} returns this
*/
proto.sgn.message.v1.MsgSignFees.prototype.setSignatureDetailsListList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.sgn.message.v1.SignatureDetails=} opt_value
* @param {number=} opt_index
* @return {!proto.sgn.message.v1.SignatureDetails}
*/
proto.sgn.message.v1.MsgSignFees.prototype.addSignatureDetailsList = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.sgn.message.v1.SignatureDetails, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.sgn.message.v1.MsgSignFees} returns this
*/
proto.sgn.message.v1.MsgSignFees.prototype.clearSignatureDetailsListList = function() {
return this.setSignatureDetailsListList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.sgn.message.v1.MsgSignFeesResponse.prototype.toObject = function(opt_includeInstance) {
return proto.sgn.message.v1.MsgSignFeesResponse.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.sgn.message.v1.MsgSignFeesResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.MsgSignFeesResponse.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.sgn.message.v1.MsgSignFeesResponse}
*/
proto.sgn.message.v1.MsgSignFeesResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.sgn.message.v1.MsgSignFeesResponse;
return proto.sgn.message.v1.MsgSignFeesResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.sgn.message.v1.MsgSignFeesResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.sgn.message.v1.MsgSignFeesResponse}
*/
proto.sgn.message.v1.MsgSignFeesResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.sgn.message.v1.MsgSignFeesResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.sgn.message.v1.MsgSignFeesResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.sgn.message.v1.MsgSignFeesResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.sgn.message.v1.MsgSignFeesResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
goog.object.extend(exports, proto.sgn.message.v1);