UNPKG

@routerprotocol/chain-api

Version:

Router Chain API Query client with generated gRPC bindings.

1,463 lines (1,295 loc) 104 kB
// source: routerprotocol/routerchain/multichain/event.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 routerprotocol_routerchain_multichain_chain_type_pb = require('../../../routerprotocol/routerchain/multichain/chain_type_pb.js'); goog.object.extend(proto, routerprotocol_routerchain_multichain_chain_type_pb); var routerprotocol_routerchain_multichain_chain_config_pb = require('../../../routerprotocol/routerchain/multichain/chain_config_pb.js'); goog.object.extend(proto, routerprotocol_routerchain_multichain_chain_config_pb); var routerprotocol_routerchain_multichain_ibc_relayer_config_pb = require('../../../routerprotocol/routerchain/multichain/ibc_relayer_config_pb.js'); goog.object.extend(proto, routerprotocol_routerchain_multichain_ibc_relayer_config_pb); var cosmos_base_v1beta1_coin_pb = require('../../../cosmos/base/v1beta1/coin_pb.js'); goog.object.extend(proto, cosmos_base_v1beta1_coin_pb); var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); goog.object.extend(proto, gogoproto_gogo_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.routerprotocol.routerchain.multichain.EventCreateChainConfig', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.multichain.EventCreateContractConfig', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.multichain.EventCreateIbcRelayerConfig', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.multichain.EventDeleteIbcRelayerConfig', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.multichain.EventDeletedContractConfig', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.multichain.EventUpdateIbcRelayerConfig', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.multichain.EventUpdatedContractConfig', 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.multichain.EventCreateChainConfig = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.multichain.EventCreateChainConfig, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.displayName = 'proto.routerprotocol.routerchain.multichain.EventCreateChainConfig'; } /** * 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.multichain.EventUpdatedChainConfig = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.displayName = 'proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig'; } /** * 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.multichain.EventDeletedChainConfig = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig.displayName = 'proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig'; } /** * 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.multichain.EventCreateContractConfig = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.multichain.EventCreateContractConfig, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.displayName = 'proto.routerprotocol.routerchain.multichain.EventCreateContractConfig'; } /** * 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.multichain.EventUpdatedContractConfig = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.multichain.EventUpdatedContractConfig, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.multichain.EventUpdatedContractConfig.displayName = 'proto.routerprotocol.routerchain.multichain.EventUpdatedContractConfig'; } /** * 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.multichain.EventDeletedContractConfig = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.multichain.EventDeletedContractConfig, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.multichain.EventDeletedContractConfig.displayName = 'proto.routerprotocol.routerchain.multichain.EventDeletedContractConfig'; } /** * 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.multichain.EventCreateIbcRelayerConfig = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.multichain.EventCreateIbcRelayerConfig, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.multichain.EventCreateIbcRelayerConfig.displayName = 'proto.routerprotocol.routerchain.multichain.EventCreateIbcRelayerConfig'; } /** * 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.multichain.EventUpdateIbcRelayerConfig = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.multichain.EventUpdateIbcRelayerConfig, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.multichain.EventUpdateIbcRelayerConfig.displayName = 'proto.routerprotocol.routerchain.multichain.EventUpdateIbcRelayerConfig'; } /** * 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.multichain.EventDeleteIbcRelayerConfig = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.multichain.EventDeleteIbcRelayerConfig, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.multichain.EventDeleteIbcRelayerConfig.displayName = 'proto.routerprotocol.routerchain.multichain.EventDeleteIbcRelayerConfig'; } 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.multichain.EventCreateChainConfig.prototype.toObject = function(opt_includeInstance) { return proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.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.multichain.EventCreateChainConfig} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.toObject = function(includeInstance, msg) { var f, obj = { chainid: jspb.Message.getFieldWithDefault(msg, 1, ""), chainname: jspb.Message.getFieldWithDefault(msg, 2, ""), symbol: jspb.Message.getFieldWithDefault(msg, 3, ""), nativeDecimals: jspb.Message.getFieldWithDefault(msg, 4, 0), chaintype: jspb.Message.getFieldWithDefault(msg, 5, 0), confirmationsrequired: jspb.Message.getFieldWithDefault(msg, 6, 0), lastobservedvalsetnonce: jspb.Message.getFieldWithDefault(msg, 7, 0), chainEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), isUnorderedNonces: jspb.Message.getBooleanFieldWithDefault(msg, 9, false) }; 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.multichain.EventCreateChainConfig} */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.routerprotocol.routerchain.multichain.EventCreateChainConfig; return proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.routerprotocol.routerchain.multichain.EventCreateChainConfig} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.routerprotocol.routerchain.multichain.EventCreateChainConfig} */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.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.setChainid(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setChainname(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setSymbol(value); break; case 4: var value = /** @type {number} */ (reader.readInt64()); msg.setNativeDecimals(value); break; case 5: var value = /** @type {!proto.routerprotocol.routerchain.multichain.ChainType} */ (reader.readEnum()); msg.setChaintype(value); break; case 6: var value = /** @type {number} */ (reader.readUint64()); msg.setConfirmationsrequired(value); break; case 7: var value = /** @type {number} */ (reader.readUint64()); msg.setLastobservedvalsetnonce(value); break; case 8: var value = /** @type {boolean} */ (reader.readBool()); msg.setChainEnabled(value); break; case 9: var value = /** @type {boolean} */ (reader.readBool()); msg.setIsUnorderedNonces(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.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.multichain.EventCreateChainConfig} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getChainid(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getChainname(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getSymbol(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getNativeDecimals(); if (f !== 0) { writer.writeInt64( 4, f ); } f = message.getChaintype(); if (f !== 0.0) { writer.writeEnum( 5, f ); } f = message.getConfirmationsrequired(); if (f !== 0) { writer.writeUint64( 6, f ); } f = message.getLastobservedvalsetnonce(); if (f !== 0) { writer.writeUint64( 7, f ); } f = message.getChainEnabled(); if (f) { writer.writeBool( 8, f ); } f = message.getIsUnorderedNonces(); if (f) { writer.writeBool( 9, f ); } }; /** * optional string chainId = 1; * @return {string} */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.getChainid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.multichain.EventCreateChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.setChainid = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string chainName = 2; * @return {string} */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.getChainname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.multichain.EventCreateChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.setChainname = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string symbol = 3; * @return {string} */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.getSymbol = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.multichain.EventCreateChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.setSymbol = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional int64 native_decimals = 4; * @return {number} */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.getNativeDecimals = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.multichain.EventCreateChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.setNativeDecimals = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; /** * optional ChainType chainType = 5; * @return {!proto.routerprotocol.routerchain.multichain.ChainType} */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.getChaintype = function() { return /** @type {!proto.routerprotocol.routerchain.multichain.ChainType} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {!proto.routerprotocol.routerchain.multichain.ChainType} value * @return {!proto.routerprotocol.routerchain.multichain.EventCreateChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.setChaintype = function(value) { return jspb.Message.setProto3EnumField(this, 5, value); }; /** * optional uint64 confirmationsRequired = 6; * @return {number} */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.getConfirmationsrequired = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.multichain.EventCreateChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.setConfirmationsrequired = function(value) { return jspb.Message.setProto3IntField(this, 6, value); }; /** * optional uint64 lastObservedValsetNonce = 7; * @return {number} */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.getLastobservedvalsetnonce = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.multichain.EventCreateChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.setLastobservedvalsetnonce = function(value) { return jspb.Message.setProto3IntField(this, 7, value); }; /** * optional bool chain_enabled = 8; * @return {boolean} */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.getChainEnabled = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; /** * @param {boolean} value * @return {!proto.routerprotocol.routerchain.multichain.EventCreateChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.setChainEnabled = function(value) { return jspb.Message.setProto3BooleanField(this, 8, value); }; /** * optional bool is_unordered_nonces = 9; * @return {boolean} */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.getIsUnorderedNonces = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); }; /** * @param {boolean} value * @return {!proto.routerprotocol.routerchain.multichain.EventCreateChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventCreateChainConfig.prototype.setIsUnorderedNonces = function(value) { return jspb.Message.setProto3BooleanField(this, 9, 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.multichain.EventUpdatedChainConfig.prototype.toObject = function(opt_includeInstance) { return proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.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.multichain.EventUpdatedChainConfig} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.toObject = function(includeInstance, msg) { var f, obj = { chainid: jspb.Message.getFieldWithDefault(msg, 1, ""), chainname: jspb.Message.getFieldWithDefault(msg, 2, ""), symbol: jspb.Message.getFieldWithDefault(msg, 3, ""), nativeDecimals: jspb.Message.getFieldWithDefault(msg, 4, 0), chaintype: jspb.Message.getFieldWithDefault(msg, 5, 0), confirmationsrequired: jspb.Message.getFieldWithDefault(msg, 6, 0), lastobservedvalsetnonce: jspb.Message.getFieldWithDefault(msg, 7, 0), chainEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), isUnorderedNonces: jspb.Message.getBooleanFieldWithDefault(msg, 9, false) }; 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.multichain.EventUpdatedChainConfig} */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig; return proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig} */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.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.setChainid(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setChainname(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setSymbol(value); break; case 4: var value = /** @type {number} */ (reader.readInt64()); msg.setNativeDecimals(value); break; case 5: var value = /** @type {!proto.routerprotocol.routerchain.multichain.ChainType} */ (reader.readEnum()); msg.setChaintype(value); break; case 6: var value = /** @type {number} */ (reader.readUint64()); msg.setConfirmationsrequired(value); break; case 7: var value = /** @type {number} */ (reader.readUint64()); msg.setLastobservedvalsetnonce(value); break; case 8: var value = /** @type {boolean} */ (reader.readBool()); msg.setChainEnabled(value); break; case 9: var value = /** @type {boolean} */ (reader.readBool()); msg.setIsUnorderedNonces(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.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.multichain.EventUpdatedChainConfig} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getChainid(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getChainname(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getSymbol(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getNativeDecimals(); if (f !== 0) { writer.writeInt64( 4, f ); } f = message.getChaintype(); if (f !== 0.0) { writer.writeEnum( 5, f ); } f = message.getConfirmationsrequired(); if (f !== 0) { writer.writeUint64( 6, f ); } f = message.getLastobservedvalsetnonce(); if (f !== 0) { writer.writeUint64( 7, f ); } f = message.getChainEnabled(); if (f) { writer.writeBool( 8, f ); } f = message.getIsUnorderedNonces(); if (f) { writer.writeBool( 9, f ); } }; /** * optional string chainId = 1; * @return {string} */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.getChainid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.setChainid = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string chainName = 2; * @return {string} */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.getChainname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.setChainname = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string symbol = 3; * @return {string} */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.getSymbol = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.setSymbol = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional int64 native_decimals = 4; * @return {number} */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.getNativeDecimals = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.setNativeDecimals = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; /** * optional ChainType chainType = 5; * @return {!proto.routerprotocol.routerchain.multichain.ChainType} */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.getChaintype = function() { return /** @type {!proto.routerprotocol.routerchain.multichain.ChainType} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {!proto.routerprotocol.routerchain.multichain.ChainType} value * @return {!proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.setChaintype = function(value) { return jspb.Message.setProto3EnumField(this, 5, value); }; /** * optional uint64 confirmationsRequired = 6; * @return {number} */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.getConfirmationsrequired = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.setConfirmationsrequired = function(value) { return jspb.Message.setProto3IntField(this, 6, value); }; /** * optional uint64 lastObservedValsetNonce = 7; * @return {number} */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.getLastobservedvalsetnonce = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.setLastobservedvalsetnonce = function(value) { return jspb.Message.setProto3IntField(this, 7, value); }; /** * optional bool chain_enabled = 8; * @return {boolean} */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.getChainEnabled = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; /** * @param {boolean} value * @return {!proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.setChainEnabled = function(value) { return jspb.Message.setProto3BooleanField(this, 8, value); }; /** * optional bool is_unordered_nonces = 9; * @return {boolean} */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.getIsUnorderedNonces = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); }; /** * @param {boolean} value * @return {!proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventUpdatedChainConfig.prototype.setIsUnorderedNonces = function(value) { return jspb.Message.setProto3BooleanField(this, 9, 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.multichain.EventDeletedChainConfig.prototype.toObject = function(opt_includeInstance) { return proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig.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.multichain.EventDeletedChainConfig} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig.toObject = function(includeInstance, msg) { var f, obj = { chainid: jspb.Message.getFieldWithDefault(msg, 1, ""), chaintype: 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.routerprotocol.routerchain.multichain.EventDeletedChainConfig} */ proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig; return proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig} */ proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig.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.setChainid(value); break; case 2: var value = /** @type {!proto.routerprotocol.routerchain.multichain.ChainType} */ (reader.readEnum()); msg.setChaintype(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig.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.multichain.EventDeletedChainConfig} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getChainid(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getChaintype(); if (f !== 0.0) { writer.writeEnum( 2, f ); } }; /** * optional string chainId = 1; * @return {string} */ proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig.prototype.getChainid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig.prototype.setChainid = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional ChainType chainType = 2; * @return {!proto.routerprotocol.routerchain.multichain.ChainType} */ proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig.prototype.getChaintype = function() { return /** @type {!proto.routerprotocol.routerchain.multichain.ChainType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {!proto.routerprotocol.routerchain.multichain.ChainType} value * @return {!proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventDeletedChainConfig.prototype.setChaintype = function(value) { return jspb.Message.setProto3EnumField(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.routerprotocol.routerchain.multichain.EventCreateContractConfig.prototype.toObject = function(opt_includeInstance) { return proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.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.multichain.EventCreateContractConfig} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.toObject = function(includeInstance, msg) { var f, obj = { chainid: jspb.Message.getFieldWithDefault(msg, 1, ""), contractaddress: jspb.Message.getFieldWithDefault(msg, 2, ""), contractheight: jspb.Message.getFieldWithDefault(msg, 3, 0), lastobservedeventnonce: jspb.Message.getFieldWithDefault(msg, 4, 0), lastobservedeventblockheight: jspb.Message.getFieldWithDefault(msg, 5, 0), contracttype: jspb.Message.getFieldWithDefault(msg, 6, 0), claimslashingenabled: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), claimslashingwindow: jspb.Message.getFieldWithDefault(msg, 8, 0), slashFractionMissingClaim: msg.getSlashFractionMissingClaim_asB64(), slashFractionConflictingClaim: msg.getSlashFractionConflictingClaim_asB64(), contractEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 11, false) }; 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.multichain.EventCreateContractConfig} */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.routerprotocol.routerchain.multichain.EventCreateContractConfig; return proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.routerprotocol.routerchain.multichain.EventCreateContractConfig} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.routerprotocol.routerchain.multichain.EventCreateContractConfig} */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.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.setChainid(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setContractaddress(value); break; case 3: var value = /** @type {number} */ (reader.readUint64()); msg.setContractheight(value); break; case 4: var value = /** @type {number} */ (reader.readUint64()); msg.setLastobservedeventnonce(value); break; case 5: var value = /** @type {number} */ (reader.readUint64()); msg.setLastobservedeventblockheight(value); break; case 6: var value = /** @type {!proto.routerprotocol.routerchain.multichain.ContractType} */ (reader.readEnum()); msg.setContracttype(value); break; case 7: var value = /** @type {boolean} */ (reader.readBool()); msg.setClaimslashingenabled(value); break; case 8: var value = /** @type {number} */ (reader.readUint64()); msg.setClaimslashingwindow(value); break; case 9: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setSlashFractionMissingClaim(value); break; case 10: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setSlashFractionConflictingClaim(value); break; case 11: var value = /** @type {boolean} */ (reader.readBool()); msg.setContractEnabled(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.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.multichain.EventCreateContractConfig} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getChainid(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getContractaddress(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getContractheight(); if (f !== 0) { writer.writeUint64( 3, f ); } f = message.getLastobservedeventnonce(); if (f !== 0) { writer.writeUint64( 4, f ); } f = message.getLastobservedeventblockheight(); if (f !== 0) { writer.writeUint64( 5, f ); } f = message.getContracttype(); if (f !== 0.0) { writer.writeEnum( 6, f ); } f = message.getClaimslashingenabled(); if (f) { writer.writeBool( 7, f ); } f = message.getClaimslashingwindow(); if (f !== 0) { writer.writeUint64( 8, f ); } f = message.getSlashFractionMissingClaim_asU8(); if (f.length > 0) { writer.writeBytes( 9, f ); } f = message.getSlashFractionConflictingClaim_asU8(); if (f.length > 0) { writer.writeBytes( 10, f ); } f = message.getContractEnabled(); if (f) { writer.writeBool( 11, f ); } }; /** * optional string chainId = 1; * @return {string} */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.prototype.getChainid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.multichain.EventCreateContractConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.prototype.setChainid = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string contractAddress = 2; * @return {string} */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.prototype.getContractaddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.multichain.EventCreateContractConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.prototype.setContractaddress = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional uint64 contractHeight = 3; * @return {number} */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.prototype.getContractheight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.multichain.EventCreateContractConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.prototype.setContractheight = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** * optional uint64 lastObservedEventNonce = 4; * @return {number} */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.prototype.getLastobservedeventnonce = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.multichain.EventCreateContractConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.prototype.setLastobservedeventnonce = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; /** * optional uint64 lastObservedEventBlockHeight = 5; * @return {number} */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.prototype.getLastobservedeventblockheight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.multichain.EventCreateContractConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.prototype.setLastobservedeventblockheight = function(value) { return jspb.Message.setProto3IntField(this, 5, value); }; /** * optional ContractType ContractType = 6; * @return {!proto.routerprotocol.routerchain.multichain.ContractType} */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.prototype.getContracttype = function() { return /** @type {!proto.routerprotocol.routerchain.multichain.ContractType} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** * @param {!proto.routerprotocol.routerchain.multichain.ContractType} value * @return {!proto.routerprotocol.routerchain.multichain.EventCreateContractConfig} returns this */ proto.routerprotocol.routerchain.multichain.EventCreateContractConfig.prototype.s