UNPKG

@routerprotocol/chain-api

Version:

Router Chain API Query client with generated gRPC bindings.

1,420 lines (1,230 loc) 52 kB
// source: routerprotocol/routerchain/metastore/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('return this')(); var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); goog.object.extend(proto, gogoproto_gogo_pb); var cosmos_base_v1beta1_coin_pb = require('../../../cosmos/base/v1beta1/coin_pb.js'); goog.object.extend(proto, cosmos_base_v1beta1_coin_pb); goog.exportSymbol('proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequestResponse', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse', 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.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.displayName = 'proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest'; } /** * 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.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse.displayName = 'proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse'; } /** * 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.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest.displayName = 'proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest'; } /** * 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.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse.displayName = 'proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse'; } /** * 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.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest.displayName = 'proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest'; } /** * 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.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse.displayName = 'proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse'; } /** * 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.routerprotocol.routerchain.metastore.MsgBurnTokensRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest.displayName = 'proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest'; } /** * 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.routerprotocol.routerchain.metastore.MsgBurnTokensRequestResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequestResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequestResponse.displayName = 'proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequestResponse'; } 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.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.prototype.toObject = function(opt_includeInstance) { return proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.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.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.toObject = function(includeInstance, msg) { var f, obj = { orchestrator: jspb.Message.getFieldWithDefault(msg, 1, ""), chainid: jspb.Message.getFieldWithDefault(msg, 2, ""), contract: jspb.Message.getFieldWithDefault(msg, 3, ""), eventnonce: jspb.Message.getFieldWithDefault(msg, 4, 0), blockheight: jspb.Message.getFieldWithDefault(msg, 5, 0), daapaddress: jspb.Message.getFieldWithDefault(msg, 6, ""), feepayer: jspb.Message.getFieldWithDefault(msg, 7, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest} */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest; return proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest} */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.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.setOrchestrator(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setChainid(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setContract(value); break; case 4: var value = /** @type {number} */ (reader.readUint64()); msg.setEventnonce(value); break; case 5: var value = /** @type {number} */ (reader.readUint64()); msg.setBlockheight(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setDaapaddress(value); break; case 7: var value = /** @type {string} */ (reader.readString()); msg.setFeepayer(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getOrchestrator(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getChainid(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getContract(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getEventnonce(); if (f !== 0) { writer.writeUint64( 4, f ); } f = message.getBlockheight(); if (f !== 0) { writer.writeUint64( 5, f ); } f = message.getDaapaddress(); if (f.length > 0) { writer.writeString( 6, f ); } f = message.getFeepayer(); if (f.length > 0) { writer.writeString( 7, f ); } }; /** * optional string orchestrator = 1; * @return {string} */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.prototype.getOrchestrator = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest} returns this */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.prototype.setOrchestrator = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string chainId = 2; * @return {string} */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.prototype.getChainid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest} returns this */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.prototype.setChainid = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string contract = 3; * @return {string} */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.prototype.getContract = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest} returns this */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.prototype.setContract = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional uint64 eventNonce = 4; * @return {number} */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.prototype.getEventnonce = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest} returns this */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.prototype.setEventnonce = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; /** * optional uint64 blockHeight = 5; * @return {number} */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.prototype.getBlockheight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest} returns this */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.prototype.setBlockheight = function(value) { return jspb.Message.setProto3IntField(this, 5, value); }; /** * optional string daapAddress = 6; * @return {string} */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.prototype.getDaapaddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest} returns this */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.prototype.setDaapaddress = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** * optional string feePayer = 7; * @return {string} */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.prototype.getFeepayer = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest} returns this */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequest.prototype.setFeepayer = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<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.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse.prototype.toObject = function(opt_includeInstance) { return proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse.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.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse.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.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse} */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse; return proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse} */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse.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.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.metastore.MsgCreateMetadataRequestResponse.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.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest.prototype.toObject = function(opt_includeInstance) { return proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest.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.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest.toObject = function(includeInstance, msg) { var f, obj = { feePayer: jspb.Message.getFieldWithDefault(msg, 1, ""), chainId: jspb.Message.getFieldWithDefault(msg, 2, ""), dappAddress: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest} */ proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest; return proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest} */ proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest.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.setFeePayer(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setChainId(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setDappAddress(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getFeePayer(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getChainId(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getDappAddress(); if (f.length > 0) { writer.writeString( 3, f ); } }; /** * optional string fee_payer = 1; * @return {string} */ proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest.prototype.getFeePayer = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest} returns this */ proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest.prototype.setFeePayer = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string chain_id = 2; * @return {string} */ proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest.prototype.getChainId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest} returns this */ proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest.prototype.setChainId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string dapp_address = 3; * @return {string} */ proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest.prototype.getDappAddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest} returns this */ proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequest.prototype.setDappAddress = function(value) { return jspb.Message.setProto3StringField(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.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse.prototype.toObject = function(opt_includeInstance) { return proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse.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.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse.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.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse} */ proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse; return proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse} */ proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse.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.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.metastore.MsgApproveFeepayerRequestResponse.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.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest.prototype.toObject = function(opt_includeInstance) { return proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest.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.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest.toObject = function(includeInstance, msg) { var f, obj = { feepayer: jspb.Message.getFieldWithDefault(msg, 1, ""), chainid: jspb.Message.getFieldWithDefault(msg, 2, ""), dappaddress: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest} */ proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest; return proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest} */ proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest.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.setFeepayer(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setChainid(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setDappaddress(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getFeepayer(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getChainid(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getDappaddress(); if (f.length > 0) { writer.writeString( 3, f ); } }; /** * optional string feepayer = 1; * @return {string} */ proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest.prototype.getFeepayer = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest} returns this */ proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest.prototype.setFeepayer = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string chainId = 2; * @return {string} */ proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest.prototype.getChainid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest} returns this */ proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest.prototype.setChainid = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string dappAddress = 3; * @return {string} */ proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest.prototype.getDappaddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest} returns this */ proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequest.prototype.setDappaddress = function(value) { return jspb.Message.setProto3StringField(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.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse.prototype.toObject = function(opt_includeInstance) { return proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse.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.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse.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.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse} */ proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse; return proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse} */ proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse.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.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.metastore.MsgRevokeFeepayerRequestResponse.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.routerprotocol.routerchain.metastore.MsgBurnTokensRequest.prototype.toObject = function(opt_includeInstance) { return proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest.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.routerprotocol.routerchain.metastore.MsgBurnTokensRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest.toObject = function(includeInstance, msg) { var f, obj = { sender: jspb.Message.getFieldWithDefault(msg, 1, ""), amount: (f = msg.getAmount()) && cosmos_base_v1beta1_coin_pb.Coin.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest} */ proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest; return proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest} */ proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest.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.setSender(value); break; case 2: var value = new cosmos_base_v1beta1_coin_pb.Coin; reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.setAmount(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSender(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getAmount(); if (f != null) { writer.writeMessage( 2, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter ); } }; /** * optional string sender = 1; * @return {string} */ proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest.prototype.getSender = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest} returns this */ proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest.prototype.setSender = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional cosmos.base.v1beta1.Coin amount = 2; * @return {?proto.cosmos.base.v1beta1.Coin} */ proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest.prototype.getAmount = function() { return /** @type{?proto.cosmos.base.v1beta1.Coin} */ ( jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 2)); }; /** * @param {?proto.cosmos.base.v1beta1.Coin|undefined} value * @return {!proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest} returns this */ proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest.prototype.setAmount = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest} returns this */ proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest.prototype.clearAmount = function() { return this.setAmount(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequest.prototype.hasAmount = function() { return jspb.Message.getField(this, 2) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<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.routerprotocol.routerchain.metastore.MsgBurnTokensRequestResponse.prototype.toObject = function(opt_includeInstance) { return proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequestResponse.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.routerprotocol.routerchain.metastore.MsgBurnTokensRequestResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.metastore.MsgBurnTokensRequestResponse.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.routerprotocol.routerchain.metastore.MsgBurnTokensRequestResponse} */ proto.routerprotocol.routerchain.metastore.MsgBurn