UNPKG

@bandprotocol/bandchain.js

Version:

Library for interacting with BandChain in browser and Node.js environments

1,679 lines (1,584 loc) 88.8 kB
// source: cosmos/base/abci/v1beta1/abci.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('return this')() var gogoproto_gogo_pb = require('../../../../gogoproto/gogo_pb.js') goog.object.extend(proto, gogoproto_gogo_pb) var tendermint_abci_types_pb = require('../../../../tendermint/abci/types_pb.js') goog.object.extend(proto, tendermint_abci_types_pb) var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js') goog.object.extend(proto, google_protobuf_any_pb) goog.exportSymbol('proto.cosmos.base.abci.v1beta1.ABCIMessageLog', null, global) goog.exportSymbol('proto.cosmos.base.abci.v1beta1.Attribute', null, global) goog.exportSymbol('proto.cosmos.base.abci.v1beta1.GasInfo', null, global) goog.exportSymbol('proto.cosmos.base.abci.v1beta1.MsgData', null, global) goog.exportSymbol('proto.cosmos.base.abci.v1beta1.Result', null, global) goog.exportSymbol( 'proto.cosmos.base.abci.v1beta1.SearchTxsResult', null, global, ) goog.exportSymbol( 'proto.cosmos.base.abci.v1beta1.SimulationResponse', null, global, ) goog.exportSymbol('proto.cosmos.base.abci.v1beta1.StringEvent', null, global) goog.exportSymbol('proto.cosmos.base.abci.v1beta1.TxMsgData', null, global) goog.exportSymbol('proto.cosmos.base.abci.v1beta1.TxResponse', 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.cosmos.base.abci.v1beta1.TxResponse = function (opt_data) { jspb.Message.initialize( this, opt_data, 0, -1, proto.cosmos.base.abci.v1beta1.TxResponse.repeatedFields_, null, ) } goog.inherits(proto.cosmos.base.abci.v1beta1.TxResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.base.abci.v1beta1.TxResponse.displayName = 'proto.cosmos.base.abci.v1beta1.TxResponse' } /** * 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.cosmos.base.abci.v1beta1.ABCIMessageLog = function (opt_data) { jspb.Message.initialize( this, opt_data, 0, -1, proto.cosmos.base.abci.v1beta1.ABCIMessageLog.repeatedFields_, null, ) } goog.inherits(proto.cosmos.base.abci.v1beta1.ABCIMessageLog, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.base.abci.v1beta1.ABCIMessageLog.displayName = 'proto.cosmos.base.abci.v1beta1.ABCIMessageLog' } /** * 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.cosmos.base.abci.v1beta1.StringEvent = function (opt_data) { jspb.Message.initialize( this, opt_data, 0, -1, proto.cosmos.base.abci.v1beta1.StringEvent.repeatedFields_, null, ) } goog.inherits(proto.cosmos.base.abci.v1beta1.StringEvent, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.base.abci.v1beta1.StringEvent.displayName = 'proto.cosmos.base.abci.v1beta1.StringEvent' } /** * 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.cosmos.base.abci.v1beta1.Attribute = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.base.abci.v1beta1.Attribute, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.base.abci.v1beta1.Attribute.displayName = 'proto.cosmos.base.abci.v1beta1.Attribute' } /** * 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.cosmos.base.abci.v1beta1.GasInfo = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.base.abci.v1beta1.GasInfo, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.base.abci.v1beta1.GasInfo.displayName = 'proto.cosmos.base.abci.v1beta1.GasInfo' } /** * 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.cosmos.base.abci.v1beta1.Result = function (opt_data) { jspb.Message.initialize( this, opt_data, 0, -1, proto.cosmos.base.abci.v1beta1.Result.repeatedFields_, null, ) } goog.inherits(proto.cosmos.base.abci.v1beta1.Result, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.base.abci.v1beta1.Result.displayName = 'proto.cosmos.base.abci.v1beta1.Result' } /** * 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.cosmos.base.abci.v1beta1.SimulationResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.base.abci.v1beta1.SimulationResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.base.abci.v1beta1.SimulationResponse.displayName = 'proto.cosmos.base.abci.v1beta1.SimulationResponse' } /** * 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.cosmos.base.abci.v1beta1.MsgData = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.base.abci.v1beta1.MsgData, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.base.abci.v1beta1.MsgData.displayName = 'proto.cosmos.base.abci.v1beta1.MsgData' } /** * 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.cosmos.base.abci.v1beta1.TxMsgData = function (opt_data) { jspb.Message.initialize( this, opt_data, 0, -1, proto.cosmos.base.abci.v1beta1.TxMsgData.repeatedFields_, null, ) } goog.inherits(proto.cosmos.base.abci.v1beta1.TxMsgData, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.base.abci.v1beta1.TxMsgData.displayName = 'proto.cosmos.base.abci.v1beta1.TxMsgData' } /** * 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.cosmos.base.abci.v1beta1.SearchTxsResult = function (opt_data) { jspb.Message.initialize( this, opt_data, 0, -1, proto.cosmos.base.abci.v1beta1.SearchTxsResult.repeatedFields_, null, ) } goog.inherits(proto.cosmos.base.abci.v1beta1.SearchTxsResult, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.base.abci.v1beta1.SearchTxsResult.displayName = 'proto.cosmos.base.abci.v1beta1.SearchTxsResult' } /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmos.base.abci.v1beta1.TxResponse.repeatedFields_ = [7, 13] 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.cosmos.base.abci.v1beta1.TxResponse.prototype.toObject = function ( opt_includeInstance, ) { return proto.cosmos.base.abci.v1beta1.TxResponse.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.cosmos.base.abci.v1beta1.TxResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.base.abci.v1beta1.TxResponse.toObject = function ( includeInstance, msg, ) { var f, obj = { height: jspb.Message.getFieldWithDefault(msg, 1, 0), txhash: jspb.Message.getFieldWithDefault(msg, 2, ''), codespace: jspb.Message.getFieldWithDefault(msg, 3, ''), code: jspb.Message.getFieldWithDefault(msg, 4, 0), data: jspb.Message.getFieldWithDefault(msg, 5, ''), rawLog: jspb.Message.getFieldWithDefault(msg, 6, ''), logsList: jspb.Message.toObjectList( msg.getLogsList(), proto.cosmos.base.abci.v1beta1.ABCIMessageLog.toObject, includeInstance, ), info: jspb.Message.getFieldWithDefault(msg, 8, ''), gasWanted: jspb.Message.getFieldWithDefault(msg, 9, 0), gasUsed: jspb.Message.getFieldWithDefault(msg, 10, 0), tx: (f = msg.getTx()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), timestamp: jspb.Message.getFieldWithDefault(msg, 12, ''), eventsList: jspb.Message.toObjectList( msg.getEventsList(), tendermint_abci_types_pb.Event.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.cosmos.base.abci.v1beta1.TxResponse} */ proto.cosmos.base.abci.v1beta1.TxResponse.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.cosmos.base.abci.v1beta1.TxResponse() return proto.cosmos.base.abci.v1beta1.TxResponse.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.base.abci.v1beta1.TxResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.base.abci.v1beta1.TxResponse} */ proto.cosmos.base.abci.v1beta1.TxResponse.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break } var field = reader.getFieldNumber() switch (field) { case 1: var value = /** @type {number} */ (reader.readInt64()) msg.setHeight(value) break case 2: var value = /** @type {string} */ (reader.readString()) msg.setTxhash(value) break case 3: var value = /** @type {string} */ (reader.readString()) msg.setCodespace(value) break case 4: var value = /** @type {number} */ (reader.readUint32()) msg.setCode(value) break case 5: var value = /** @type {string} */ (reader.readString()) msg.setData(value) break case 6: var value = /** @type {string} */ (reader.readString()) msg.setRawLog(value) break case 7: var value = new proto.cosmos.base.abci.v1beta1.ABCIMessageLog() reader.readMessage( value, proto.cosmos.base.abci.v1beta1.ABCIMessageLog .deserializeBinaryFromReader, ) msg.addLogs(value) break case 8: var value = /** @type {string} */ (reader.readString()) msg.setInfo(value) break case 9: var value = /** @type {number} */ (reader.readInt64()) msg.setGasWanted(value) break case 10: var value = /** @type {number} */ (reader.readInt64()) msg.setGasUsed(value) break case 11: var value = new google_protobuf_any_pb.Any() reader.readMessage( value, google_protobuf_any_pb.Any.deserializeBinaryFromReader, ) msg.setTx(value) break case 12: var value = /** @type {string} */ (reader.readString()) msg.setTimestamp(value) break case 13: var value = new tendermint_abci_types_pb.Event() reader.readMessage( value, tendermint_abci_types_pb.Event.deserializeBinaryFromReader, ) msg.addEvents(value) break default: reader.skipField() break } } return msg } /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.cosmos.base.abci.v1beta1.TxResponse.serializeBinaryToWriter( this, writer, ) return writer.getResultBuffer() } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.base.abci.v1beta1.TxResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.base.abci.v1beta1.TxResponse.serializeBinaryToWriter = function ( message, writer, ) { var f = undefined f = message.getHeight() if (f !== 0) { writer.writeInt64(1, f) } f = message.getTxhash() if (f.length > 0) { writer.writeString(2, f) } f = message.getCodespace() if (f.length > 0) { writer.writeString(3, f) } f = message.getCode() if (f !== 0) { writer.writeUint32(4, f) } f = message.getData() if (f.length > 0) { writer.writeString(5, f) } f = message.getRawLog() if (f.length > 0) { writer.writeString(6, f) } f = message.getLogsList() if (f.length > 0) { writer.writeRepeatedMessage( 7, f, proto.cosmos.base.abci.v1beta1.ABCIMessageLog.serializeBinaryToWriter, ) } f = message.getInfo() if (f.length > 0) { writer.writeString(8, f) } f = message.getGasWanted() if (f !== 0) { writer.writeInt64(9, f) } f = message.getGasUsed() if (f !== 0) { writer.writeInt64(10, f) } f = message.getTx() if (f != null) { writer.writeMessage( 11, f, google_protobuf_any_pb.Any.serializeBinaryToWriter, ) } f = message.getTimestamp() if (f.length > 0) { writer.writeString(12, f) } f = message.getEventsList() if (f.length > 0) { writer.writeRepeatedMessage( 13, f, tendermint_abci_types_pb.Event.serializeBinaryToWriter, ) } } /** * optional int64 height = 1; * @return {number} */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.getHeight = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) } /** * @param {number} value * @return {!proto.cosmos.base.abci.v1beta1.TxResponse} returns this */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.setHeight = function ( value, ) { return jspb.Message.setProto3IntField(this, 1, value) } /** * optional string txhash = 2; * @return {string} */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.getTxhash = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) } /** * @param {string} value * @return {!proto.cosmos.base.abci.v1beta1.TxResponse} returns this */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.setTxhash = function ( value, ) { return jspb.Message.setProto3StringField(this, 2, value) } /** * optional string codespace = 3; * @return {string} */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.getCodespace = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, '')) } /** * @param {string} value * @return {!proto.cosmos.base.abci.v1beta1.TxResponse} returns this */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.setCodespace = function ( value, ) { return jspb.Message.setProto3StringField(this, 3, value) } /** * optional uint32 code = 4; * @return {number} */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.getCode = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)) } /** * @param {number} value * @return {!proto.cosmos.base.abci.v1beta1.TxResponse} returns this */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.setCode = function (value) { return jspb.Message.setProto3IntField(this, 4, value) } /** * optional string data = 5; * @return {string} */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.getData = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, '')) } /** * @param {string} value * @return {!proto.cosmos.base.abci.v1beta1.TxResponse} returns this */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.setData = function (value) { return jspb.Message.setProto3StringField(this, 5, value) } /** * optional string raw_log = 6; * @return {string} */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.getRawLog = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, '')) } /** * @param {string} value * @return {!proto.cosmos.base.abci.v1beta1.TxResponse} returns this */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.setRawLog = function ( value, ) { return jspb.Message.setProto3StringField(this, 6, value) } /** * repeated ABCIMessageLog logs = 7; * @return {!Array<!proto.cosmos.base.abci.v1beta1.ABCIMessageLog>} */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.getLogsList = function () { return /** @type{!Array<!proto.cosmos.base.abci.v1beta1.ABCIMessageLog>} */ ( jspb.Message.getRepeatedWrapperField( this, proto.cosmos.base.abci.v1beta1.ABCIMessageLog, 7, ) ) } /** * @param {!Array<!proto.cosmos.base.abci.v1beta1.ABCIMessageLog>} value * @return {!proto.cosmos.base.abci.v1beta1.TxResponse} returns this */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.setLogsList = function ( value, ) { return jspb.Message.setRepeatedWrapperField(this, 7, value) } /** * @param {!proto.cosmos.base.abci.v1beta1.ABCIMessageLog=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.abci.v1beta1.ABCIMessageLog} */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.addLogs = function ( opt_value, opt_index, ) { return jspb.Message.addToRepeatedWrapperField( this, 7, opt_value, proto.cosmos.base.abci.v1beta1.ABCIMessageLog, opt_index, ) } /** * Clears the list making it empty but non-null. * @return {!proto.cosmos.base.abci.v1beta1.TxResponse} returns this */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.clearLogsList = function () { return this.setLogsList([]) } /** * optional string info = 8; * @return {string} */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.getInfo = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, '')) } /** * @param {string} value * @return {!proto.cosmos.base.abci.v1beta1.TxResponse} returns this */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.setInfo = function (value) { return jspb.Message.setProto3StringField(this, 8, value) } /** * optional int64 gas_wanted = 9; * @return {number} */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.getGasWanted = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)) } /** * @param {number} value * @return {!proto.cosmos.base.abci.v1beta1.TxResponse} returns this */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.setGasWanted = function ( value, ) { return jspb.Message.setProto3IntField(this, 9, value) } /** * optional int64 gas_used = 10; * @return {number} */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.getGasUsed = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)) } /** * @param {number} value * @return {!proto.cosmos.base.abci.v1beta1.TxResponse} returns this */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.setGasUsed = function ( value, ) { return jspb.Message.setProto3IntField(this, 10, value) } /** * optional google.protobuf.Any tx = 11; * @return {?proto.google.protobuf.Any} */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.getTx = function () { return /** @type{?proto.google.protobuf.Any} */ ( jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 11) ) } /** * @param {?proto.google.protobuf.Any|undefined} value * @return {!proto.cosmos.base.abci.v1beta1.TxResponse} returns this */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.setTx = function (value) { return jspb.Message.setWrapperField(this, 11, value) } /** * Clears the message field making it undefined. * @return {!proto.cosmos.base.abci.v1beta1.TxResponse} returns this */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.clearTx = function () { return this.setTx(undefined) } /** * Returns whether this field is set. * @return {boolean} */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.hasTx = function () { return jspb.Message.getField(this, 11) != null } /** * optional string timestamp = 12; * @return {string} */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.getTimestamp = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, '')) } /** * @param {string} value * @return {!proto.cosmos.base.abci.v1beta1.TxResponse} returns this */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.setTimestamp = function ( value, ) { return jspb.Message.setProto3StringField(this, 12, value) } /** * repeated tendermint.abci.Event events = 13; * @return {!Array<!proto.tendermint.abci.Event>} */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.getEventsList = function () { return /** @type{!Array<!proto.tendermint.abci.Event>} */ ( jspb.Message.getRepeatedWrapperField( this, tendermint_abci_types_pb.Event, 13, ) ) } /** * @param {!Array<!proto.tendermint.abci.Event>} value * @return {!proto.cosmos.base.abci.v1beta1.TxResponse} returns this */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.setEventsList = function ( value, ) { return jspb.Message.setRepeatedWrapperField(this, 13, value) } /** * @param {!proto.tendermint.abci.Event=} opt_value * @param {number=} opt_index * @return {!proto.tendermint.abci.Event} */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.addEvents = function ( opt_value, opt_index, ) { return jspb.Message.addToRepeatedWrapperField( this, 13, opt_value, proto.tendermint.abci.Event, opt_index, ) } /** * Clears the list making it empty but non-null. * @return {!proto.cosmos.base.abci.v1beta1.TxResponse} returns this */ proto.cosmos.base.abci.v1beta1.TxResponse.prototype.clearEventsList = function () { return this.setEventsList([]) } /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmos.base.abci.v1beta1.ABCIMessageLog.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.cosmos.base.abci.v1beta1.ABCIMessageLog.prototype.toObject = function ( opt_includeInstance, ) { return proto.cosmos.base.abci.v1beta1.ABCIMessageLog.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.cosmos.base.abci.v1beta1.ABCIMessageLog} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.base.abci.v1beta1.ABCIMessageLog.toObject = function ( includeInstance, msg, ) { var f, obj = { msgIndex: jspb.Message.getFieldWithDefault(msg, 1, 0), log: jspb.Message.getFieldWithDefault(msg, 2, ''), eventsList: jspb.Message.toObjectList( msg.getEventsList(), proto.cosmos.base.abci.v1beta1.StringEvent.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.cosmos.base.abci.v1beta1.ABCIMessageLog} */ proto.cosmos.base.abci.v1beta1.ABCIMessageLog.deserializeBinary = function ( bytes, ) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.cosmos.base.abci.v1beta1.ABCIMessageLog() return proto.cosmos.base.abci.v1beta1.ABCIMessageLog.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.base.abci.v1beta1.ABCIMessageLog} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.base.abci.v1beta1.ABCIMessageLog} */ proto.cosmos.base.abci.v1beta1.ABCIMessageLog.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break } var field = reader.getFieldNumber() switch (field) { case 1: var value = /** @type {number} */ (reader.readUint32()) msg.setMsgIndex(value) break case 2: var value = /** @type {string} */ (reader.readString()) msg.setLog(value) break case 3: var value = new proto.cosmos.base.abci.v1beta1.StringEvent() reader.readMessage( value, proto.cosmos.base.abci.v1beta1.StringEvent .deserializeBinaryFromReader, ) msg.addEvents(value) break default: reader.skipField() break } } return msg } /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.base.abci.v1beta1.ABCIMessageLog.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.cosmos.base.abci.v1beta1.ABCIMessageLog.serializeBinaryToWriter( this, writer, ) return writer.getResultBuffer() } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.base.abci.v1beta1.ABCIMessageLog} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.base.abci.v1beta1.ABCIMessageLog.serializeBinaryToWriter = function (message, writer) { var f = undefined f = message.getMsgIndex() if (f !== 0) { writer.writeUint32(1, f) } f = message.getLog() if (f.length > 0) { writer.writeString(2, f) } f = message.getEventsList() if (f.length > 0) { writer.writeRepeatedMessage( 3, f, proto.cosmos.base.abci.v1beta1.StringEvent.serializeBinaryToWriter, ) } } /** * optional uint32 msg_index = 1; * @return {number} */ proto.cosmos.base.abci.v1beta1.ABCIMessageLog.prototype.getMsgIndex = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) } /** * @param {number} value * @return {!proto.cosmos.base.abci.v1beta1.ABCIMessageLog} returns this */ proto.cosmos.base.abci.v1beta1.ABCIMessageLog.prototype.setMsgIndex = function ( value, ) { return jspb.Message.setProto3IntField(this, 1, value) } /** * optional string log = 2; * @return {string} */ proto.cosmos.base.abci.v1beta1.ABCIMessageLog.prototype.getLog = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) } /** * @param {string} value * @return {!proto.cosmos.base.abci.v1beta1.ABCIMessageLog} returns this */ proto.cosmos.base.abci.v1beta1.ABCIMessageLog.prototype.setLog = function ( value, ) { return jspb.Message.setProto3StringField(this, 2, value) } /** * repeated StringEvent events = 3; * @return {!Array<!proto.cosmos.base.abci.v1beta1.StringEvent>} */ proto.cosmos.base.abci.v1beta1.ABCIMessageLog.prototype.getEventsList = function () { return /** @type{!Array<!proto.cosmos.base.abci.v1beta1.StringEvent>} */ ( jspb.Message.getRepeatedWrapperField( this, proto.cosmos.base.abci.v1beta1.StringEvent, 3, ) ) } /** * @param {!Array<!proto.cosmos.base.abci.v1beta1.StringEvent>} value * @return {!proto.cosmos.base.abci.v1beta1.ABCIMessageLog} returns this */ proto.cosmos.base.abci.v1beta1.ABCIMessageLog.prototype.setEventsList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 3, value) } /** * @param {!proto.cosmos.base.abci.v1beta1.StringEvent=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.abci.v1beta1.StringEvent} */ proto.cosmos.base.abci.v1beta1.ABCIMessageLog.prototype.addEvents = function ( opt_value, opt_index, ) { return jspb.Message.addToRepeatedWrapperField( this, 3, opt_value, proto.cosmos.base.abci.v1beta1.StringEvent, opt_index, ) } /** * Clears the list making it empty but non-null. * @return {!proto.cosmos.base.abci.v1beta1.ABCIMessageLog} returns this */ proto.cosmos.base.abci.v1beta1.ABCIMessageLog.prototype.clearEventsList = function () { return this.setEventsList([]) } /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmos.base.abci.v1beta1.StringEvent.repeatedFields_ = [2] 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.cosmos.base.abci.v1beta1.StringEvent.prototype.toObject = function ( opt_includeInstance, ) { return proto.cosmos.base.abci.v1beta1.StringEvent.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.cosmos.base.abci.v1beta1.StringEvent} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.base.abci.v1beta1.StringEvent.toObject = function ( includeInstance, msg, ) { var f, obj = { type: jspb.Message.getFieldWithDefault(msg, 1, ''), attributesList: jspb.Message.toObjectList( msg.getAttributesList(), proto.cosmos.base.abci.v1beta1.Attribute.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.cosmos.base.abci.v1beta1.StringEvent} */ proto.cosmos.base.abci.v1beta1.StringEvent.deserializeBinary = function ( bytes, ) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.cosmos.base.abci.v1beta1.StringEvent() return proto.cosmos.base.abci.v1beta1.StringEvent.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.base.abci.v1beta1.StringEvent} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.base.abci.v1beta1.StringEvent} */ proto.cosmos.base.abci.v1beta1.StringEvent.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.setType(value) break case 2: var value = new proto.cosmos.base.abci.v1beta1.Attribute() reader.readMessage( value, proto.cosmos.base.abci.v1beta1.Attribute .deserializeBinaryFromReader, ) msg.addAttributes(value) break default: reader.skipField() break } } return msg } /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.base.abci.v1beta1.StringEvent.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.cosmos.base.abci.v1beta1.StringEvent.serializeBinaryToWriter( this, writer, ) return writer.getResultBuffer() } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.base.abci.v1beta1.StringEvent} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.base.abci.v1beta1.StringEvent.serializeBinaryToWriter = function ( message, writer, ) { var f = undefined f = message.getType() if (f.length > 0) { writer.writeString(1, f) } f = message.getAttributesList() if (f.length > 0) { writer.writeRepeatedMessage( 2, f, proto.cosmos.base.abci.v1beta1.Attribute.serializeBinaryToWriter, ) } } /** * optional string type = 1; * @return {string} */ proto.cosmos.base.abci.v1beta1.StringEvent.prototype.getType = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) } /** * @param {string} value * @return {!proto.cosmos.base.abci.v1beta1.StringEvent} returns this */ proto.cosmos.base.abci.v1beta1.StringEvent.prototype.setType = function ( value, ) { return jspb.Message.setProto3StringField(this, 1, value) } /** * repeated Attribute attributes = 2; * @return {!Array<!proto.cosmos.base.abci.v1beta1.Attribute>} */ proto.cosmos.base.abci.v1beta1.StringEvent.prototype.getAttributesList = function () { return /** @type{!Array<!proto.cosmos.base.abci.v1beta1.Attribute>} */ ( jspb.Message.getRepeatedWrapperField( this, proto.cosmos.base.abci.v1beta1.Attribute, 2, ) ) } /** * @param {!Array<!proto.cosmos.base.abci.v1beta1.Attribute>} value * @return {!proto.cosmos.base.abci.v1beta1.StringEvent} returns this */ proto.cosmos.base.abci.v1beta1.StringEvent.prototype.setAttributesList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 2, value) } /** * @param {!proto.cosmos.base.abci.v1beta1.Attribute=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.abci.v1beta1.Attribute} */ proto.cosmos.base.abci.v1beta1.StringEvent.prototype.addAttributes = function ( opt_value, opt_index, ) { return jspb.Message.addToRepeatedWrapperField( this, 2, opt_value, proto.cosmos.base.abci.v1beta1.Attribute, opt_index, ) } /** * Clears the list making it empty but non-null. * @return {!proto.cosmos.base.abci.v1beta1.StringEvent} returns this */ proto.cosmos.base.abci.v1beta1.StringEvent.prototype.clearAttributesList = function () { return this.setAttributesList([]) } 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.cosmos.base.abci.v1beta1.Attribute.prototype.toObject = function ( opt_includeInstance, ) { return proto.cosmos.base.abci.v1beta1.Attribute.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.cosmos.base.abci.v1beta1.Attribute} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.base.abci.v1beta1.Attribute.toObject = function ( includeInstance, msg, ) { var f, obj = { key: jspb.Message.getFieldWithDefault(msg, 1, ''), value: 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.cosmos.base.abci.v1beta1.Attribute} */ proto.cosmos.base.abci.v1beta1.Attribute.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.cosmos.base.abci.v1beta1.Attribute() return proto.cosmos.base.abci.v1beta1.Attribute.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.base.abci.v1beta1.Attribute} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.base.abci.v1beta1.Attribute} */ proto.cosmos.base.abci.v1beta1.Attribute.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.setKey(value) break case 2: var value = /** @type {string} */ (reader.readString()) msg.setValue(value) break default: reader.skipField() break } } return msg } /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.base.abci.v1beta1.Attribute.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.cosmos.base.abci.v1beta1.Attribute.serializeBinaryToWriter( this, writer, ) return writer.getResultBuffer() } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.base.abci.v1beta1.Attribute} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.base.abci.v1beta1.Attribute.serializeBinaryToWriter = function ( message, writer, ) { var f = undefined f = message.getKey() if (f.length > 0) { writer.writeString(1, f) } f = message.getValue() if (f.length > 0) { writer.writeString(2, f) } } /** * optional string key = 1; * @return {string} */ proto.cosmos.base.abci.v1beta1.Attribute.prototype.getKey = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) } /** * @param {string} value * @return {!proto.cosmos.base.abci.v1beta1.Attribute} returns this */ proto.cosmos.base.abci.v1beta1.Attribute.prototype.setKey = function (value) { return jspb.Message.setProto3StringField(this, 1, value) } /** * optional string value = 2; * @return {string} */ proto.cosmos.base.abci.v1beta1.Attribute.prototype.getValue = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) } /** * @param {string} value * @return {!proto.cosmos.base.abci.v1beta1.Attribute} returns this */ proto.cosmos.base.abci.v1beta1.Attribute.prototype.setValue = 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.cosmos.base.abci.v1beta1.GasInfo.prototype.toObject = function ( opt_includeInstance, ) { return proto.cosmos.base.abci.v1beta1.GasInfo.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.cosmos.base.abci.v1beta1.GasInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.base.abci.v1beta1.GasInfo.toObject = function ( includeInstance, msg, ) { var f, obj = { gasWanted: jspb.Message.getFieldWithDefault(msg, 1, 0), gasUsed: jspb.Message.getFieldWithDefault(msg, 2, 0), } if (includeInstance) { obj.$jspbMessageInstance = msg } return obj } } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.cosmos.base.abci.v1beta1.GasInfo} */ proto.cosmos.base.abci.v1beta1.GasInfo.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.cosmos.base.abci.v1beta1.GasInfo() return proto.cosmos.base.abci.v1beta1.GasInfo.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.base.abci.v1beta1.GasInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.base.abci.v1beta1.GasInfo} */ proto.cosmos.base.abci.v1beta1.GasInfo.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.setGasWanted(value) break case 2: var value = /** @type {number} */ (reader.readUint64()) msg.setGasUsed(value) break default: reader.skipField() break } } return msg } /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.base.abci.v1beta1.GasInfo.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.cosmos.base.abci.v1beta1.GasInfo.serializeBinaryToWriter(this, writer) return writer.getResultBuffer() } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.base.abci.v1beta1.GasInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.base.abci.v1beta1.GasInfo.serializeBinaryToWriter = function ( message, writer, ) { var f = undefined f = message.getGasWanted() if (f !== 0) { writer.writeUint64(1, f) } f = message.getGasUsed() if (f !== 0) { writer.writeUint64(2, f) } } /** * optional uint64 gas_wanted = 1; * @return {number} */ proto.cosmos.base.abci.v1beta1.GasInfo.prototype.getGasWanted = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)) } /** * @param {number} value * @return {!proto.cosmos.base.abci.v1beta1.GasInfo} returns this */ proto.cosmos.base.abci.v1beta1.GasInfo.prototype.setGasWanted = function ( value, ) { return jspb.Message.setProto3IntField(this, 1, value) } /** * optional uint64 gas_used = 2; * @return {number} */ proto.cosmos.base.abci.v1beta1.GasInfo.prototype.getGasUsed = function () { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)) } /** * @param {number} value * @return {!proto.cosmos.base.abci.v1beta1.GasInfo} returns this */ proto.cosmos.base.abci.v1beta1.GasInfo.prototype.setGasUsed = function (value) { return jspb.Message.setProto3IntField(this, 2, value) } /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmos.base.abci.v1beta1.Result