UNPKG

@routerprotocol/chain-api

Version:

Router Chain API Query client with generated gRPC bindings.

928 lines (804 loc) 29.6 kB
// source: routerprotocol/routerchain/multichain/chain_config.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 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.ChainConfig', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.multichain.ContractConfig', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.multichain.ContractType', 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.ContractConfig = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.multichain.ContractConfig, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.multichain.ContractConfig.displayName = 'proto.routerprotocol.routerchain.multichain.ContractConfig'; } /** * 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.ChainConfig = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.multichain.ChainConfig, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.multichain.ChainConfig.displayName = 'proto.routerprotocol.routerchain.multichain.ChainConfig'; } 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.ContractConfig.prototype.toObject = function(opt_includeInstance) { return proto.routerprotocol.routerchain.multichain.ContractConfig.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.ContractConfig} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.multichain.ContractConfig.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.ContractConfig} */ proto.routerprotocol.routerchain.multichain.ContractConfig.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.routerprotocol.routerchain.multichain.ContractConfig; return proto.routerprotocol.routerchain.multichain.ContractConfig.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.routerprotocol.routerchain.multichain.ContractConfig} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.routerprotocol.routerchain.multichain.ContractConfig} */ proto.routerprotocol.routerchain.multichain.ContractConfig.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.ContractConfig.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.routerprotocol.routerchain.multichain.ContractConfig.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.ContractConfig} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.multichain.ContractConfig.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.ContractConfig.prototype.getChainid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.multichain.ContractConfig} returns this */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.setChainid = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string contractAddress = 2; * @return {string} */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.getContractaddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.multichain.ContractConfig} returns this */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.setContractaddress = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional uint64 contractHeight = 3; * @return {number} */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.getContractheight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.multichain.ContractConfig} returns this */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.setContractheight = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** * optional uint64 lastObservedEventNonce = 4; * @return {number} */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.getLastobservedeventnonce = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.multichain.ContractConfig} returns this */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.setLastobservedeventnonce = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; /** * optional uint64 lastObservedEventBlockHeight = 5; * @return {number} */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.getLastobservedeventblockheight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.multichain.ContractConfig} returns this */ proto.routerprotocol.routerchain.multichain.ContractConfig.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.ContractConfig.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.ContractConfig} returns this */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.setContracttype = function(value) { return jspb.Message.setProto3EnumField(this, 6, value); }; /** * optional bool claimSlashingEnabled = 7; * @return {boolean} */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.getClaimslashingenabled = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; /** * @param {boolean} value * @return {!proto.routerprotocol.routerchain.multichain.ContractConfig} returns this */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.setClaimslashingenabled = function(value) { return jspb.Message.setProto3BooleanField(this, 7, value); }; /** * optional uint64 claimSlashingWindow = 8; * @return {number} */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.getClaimslashingwindow = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.multichain.ContractConfig} returns this */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.setClaimslashingwindow = function(value) { return jspb.Message.setProto3IntField(this, 8, value); }; /** * optional bytes slash_fraction_missing_claim = 9; * @return {!(string|Uint8Array)} */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.getSlashFractionMissingClaim = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; /** * optional bytes slash_fraction_missing_claim = 9; * This is a type-conversion wrapper around `getSlashFractionMissingClaim()` * @return {string} */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.getSlashFractionMissingClaim_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getSlashFractionMissingClaim())); }; /** * optional bytes slash_fraction_missing_claim = 9; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getSlashFractionMissingClaim()` * @return {!Uint8Array} */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.getSlashFractionMissingClaim_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getSlashFractionMissingClaim())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.routerprotocol.routerchain.multichain.ContractConfig} returns this */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.setSlashFractionMissingClaim = function(value) { return jspb.Message.setProto3BytesField(this, 9, value); }; /** * optional bytes slash_fraction_conflicting_claim = 10; * @return {!(string|Uint8Array)} */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.getSlashFractionConflictingClaim = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 10, "")); }; /** * optional bytes slash_fraction_conflicting_claim = 10; * This is a type-conversion wrapper around `getSlashFractionConflictingClaim()` * @return {string} */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.getSlashFractionConflictingClaim_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getSlashFractionConflictingClaim())); }; /** * optional bytes slash_fraction_conflicting_claim = 10; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getSlashFractionConflictingClaim()` * @return {!Uint8Array} */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.getSlashFractionConflictingClaim_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getSlashFractionConflictingClaim())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.routerprotocol.routerchain.multichain.ContractConfig} returns this */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.setSlashFractionConflictingClaim = function(value) { return jspb.Message.setProto3BytesField(this, 10, value); }; /** * optional bool contract_enabled = 11; * @return {boolean} */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.getContractEnabled = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); }; /** * @param {boolean} value * @return {!proto.routerprotocol.routerchain.multichain.ContractConfig} returns this */ proto.routerprotocol.routerchain.multichain.ContractConfig.prototype.setContractEnabled = function(value) { return jspb.Message.setProto3BooleanField(this, 11, 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.ChainConfig.prototype.toObject = function(opt_includeInstance) { return proto.routerprotocol.routerchain.multichain.ChainConfig.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.ChainConfig} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.multichain.ChainConfig.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.ChainConfig} */ proto.routerprotocol.routerchain.multichain.ChainConfig.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.routerprotocol.routerchain.multichain.ChainConfig; return proto.routerprotocol.routerchain.multichain.ChainConfig.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.routerprotocol.routerchain.multichain.ChainConfig} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.routerprotocol.routerchain.multichain.ChainConfig} */ proto.routerprotocol.routerchain.multichain.ChainConfig.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.ChainConfig.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.routerprotocol.routerchain.multichain.ChainConfig.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.ChainConfig} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.multichain.ChainConfig.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.ChainConfig.prototype.getChainid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.multichain.ChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.ChainConfig.prototype.setChainid = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string chainName = 2; * @return {string} */ proto.routerprotocol.routerchain.multichain.ChainConfig.prototype.getChainname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.multichain.ChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.ChainConfig.prototype.setChainname = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string symbol = 3; * @return {string} */ proto.routerprotocol.routerchain.multichain.ChainConfig.prototype.getSymbol = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.multichain.ChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.ChainConfig.prototype.setSymbol = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional int64 native_decimals = 4; * @return {number} */ proto.routerprotocol.routerchain.multichain.ChainConfig.prototype.getNativeDecimals = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.multichain.ChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.ChainConfig.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.ChainConfig.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.ChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.ChainConfig.prototype.setChaintype = function(value) { return jspb.Message.setProto3EnumField(this, 5, value); }; /** * optional uint64 confirmationsRequired = 6; * @return {number} */ proto.routerprotocol.routerchain.multichain.ChainConfig.prototype.getConfirmationsrequired = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.multichain.ChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.ChainConfig.prototype.setConfirmationsrequired = function(value) { return jspb.Message.setProto3IntField(this, 6, value); }; /** * optional uint64 lastObservedValsetNonce = 7; * @return {number} */ proto.routerprotocol.routerchain.multichain.ChainConfig.prototype.getLastobservedvalsetnonce = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.multichain.ChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.ChainConfig.prototype.setLastobservedvalsetnonce = function(value) { return jspb.Message.setProto3IntField(this, 7, value); }; /** * optional bool chain_enabled = 8; * @return {boolean} */ proto.routerprotocol.routerchain.multichain.ChainConfig.prototype.getChainEnabled = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; /** * @param {boolean} value * @return {!proto.routerprotocol.routerchain.multichain.ChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.ChainConfig.prototype.setChainEnabled = function(value) { return jspb.Message.setProto3BooleanField(this, 8, value); }; /** * optional bool is_unordered_nonces = 9; * @return {boolean} */ proto.routerprotocol.routerchain.multichain.ChainConfig.prototype.getIsUnorderedNonces = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); }; /** * @param {boolean} value * @return {!proto.routerprotocol.routerchain.multichain.ChainConfig} returns this */ proto.routerprotocol.routerchain.multichain.ChainConfig.prototype.setIsUnorderedNonces = function(value) { return jspb.Message.setProto3BooleanField(this, 9, value); }; /** * @enum {number} */ proto.routerprotocol.routerchain.multichain.ContractType = { GATEWAY: 0, VOYAGER: 1 }; goog.object.extend(exports, proto.routerprotocol.routerchain.multichain);