UNPKG

@routerprotocol/chain-api

Version:

Router Chain API Query client with generated gRPC bindings.

1,456 lines (1,294 loc) 154 kB
// source: routerprotocol/routerchain/voyager/events.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); goog.exportSymbol('proto.routerprotocol.routerchain.voyager.EventDepositInfoUpdatedRequestCreated', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.voyager.EventDepositInfoUpdatedRequestExecuted', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.voyager.EventDepositInfoUpdatedRequestExecutionFailed', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.voyager.EventDepositInfoUpdatedRequestValidated', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecuted', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecutionFailed', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.voyager.EventFundPaidRequestCreated', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.voyager.EventFundPaidRequestExecuted', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.voyager.EventFundPaidRequestExecutionFailed', null, global); goog.exportSymbol('proto.routerprotocol.routerchain.voyager.EventFundPaidRequestValidated', 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.voyager.EventFundDepositRequestCreated = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.displayName = 'proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated'; } /** * 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.voyager.EventFundDepositRequestValidated = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.displayName = 'proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated'; } /** * 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.voyager.EventFundDepositRequestExecuted = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecuted, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecuted.displayName = 'proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecuted'; } /** * 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.voyager.EventFundDepositRequestExecutionFailed = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecutionFailed, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecutionFailed.displayName = 'proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecutionFailed'; } /** * 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.voyager.EventFundPaidRequestCreated = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.voyager.EventFundPaidRequestCreated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.voyager.EventFundPaidRequestCreated.displayName = 'proto.routerprotocol.routerchain.voyager.EventFundPaidRequestCreated'; } /** * 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.voyager.EventFundPaidRequestValidated = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.voyager.EventFundPaidRequestValidated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.voyager.EventFundPaidRequestValidated.displayName = 'proto.routerprotocol.routerchain.voyager.EventFundPaidRequestValidated'; } /** * 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.voyager.EventFundPaidRequestExecuted = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.voyager.EventFundPaidRequestExecuted, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.voyager.EventFundPaidRequestExecuted.displayName = 'proto.routerprotocol.routerchain.voyager.EventFundPaidRequestExecuted'; } /** * 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.voyager.EventFundPaidRequestExecutionFailed = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.voyager.EventFundPaidRequestExecutionFailed, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.voyager.EventFundPaidRequestExecutionFailed.displayName = 'proto.routerprotocol.routerchain.voyager.EventFundPaidRequestExecutionFailed'; } /** * 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.voyager.EventDepositInfoUpdatedRequestCreated = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.voyager.EventDepositInfoUpdatedRequestCreated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.voyager.EventDepositInfoUpdatedRequestCreated.displayName = 'proto.routerprotocol.routerchain.voyager.EventDepositInfoUpdatedRequestCreated'; } /** * 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.voyager.EventDepositInfoUpdatedRequestValidated = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.voyager.EventDepositInfoUpdatedRequestValidated, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.voyager.EventDepositInfoUpdatedRequestValidated.displayName = 'proto.routerprotocol.routerchain.voyager.EventDepositInfoUpdatedRequestValidated'; } /** * 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.voyager.EventDepositInfoUpdatedRequestExecuted = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.voyager.EventDepositInfoUpdatedRequestExecuted, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.voyager.EventDepositInfoUpdatedRequestExecuted.displayName = 'proto.routerprotocol.routerchain.voyager.EventDepositInfoUpdatedRequestExecuted'; } /** * 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.voyager.EventDepositInfoUpdatedRequestExecutionFailed = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.routerprotocol.routerchain.voyager.EventDepositInfoUpdatedRequestExecutionFailed, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.routerprotocol.routerchain.voyager.EventDepositInfoUpdatedRequestExecutionFailed.displayName = 'proto.routerprotocol.routerchain.voyager.EventDepositInfoUpdatedRequestExecutionFailed'; } 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.voyager.EventFundDepositRequestCreated.prototype.toObject = function(opt_includeInstance) { return proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.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.voyager.EventFundDepositRequestCreated} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.toObject = function(includeInstance, msg) { var f, obj = { attestationId: msg.getAttestationId_asB64(), srcchainid: jspb.Message.getFieldWithDefault(msg, 2, ""), srcchaintype: jspb.Message.getFieldWithDefault(msg, 3, 0), srctxhash: jspb.Message.getFieldWithDefault(msg, 4, ""), srctimestamp: jspb.Message.getFieldWithDefault(msg, 5, 0), contract: jspb.Message.getFieldWithDefault(msg, 6, ""), depositId: jspb.Message.getFieldWithDefault(msg, 7, 0), blockheight: jspb.Message.getFieldWithDefault(msg, 8, 0), destchainid: msg.getDestchainid_asB64(), amount: jspb.Message.getFieldWithDefault(msg, 10, ""), destamount: jspb.Message.getFieldWithDefault(msg, 11, ""), srctoken: jspb.Message.getFieldWithDefault(msg, 12, ""), recipient: msg.getRecipient_asB64(), depositor: jspb.Message.getFieldWithDefault(msg, 14, ""), message: msg.getMessage_asB64(), partnerId: jspb.Message.getFieldWithDefault(msg, 16, ""), depositWithMessage: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), desttoken: msg.getDesttoken_asB64() }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated; return proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setAttestationId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setSrcchainid(value); break; case 3: var value = /** @type {!proto.routerprotocol.routerchain.multichain.ChainType} */ (reader.readEnum()); msg.setSrcchaintype(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setSrctxhash(value); break; case 5: var value = /** @type {number} */ (reader.readUint64()); msg.setSrctimestamp(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setContract(value); break; case 7: var value = /** @type {number} */ (reader.readUint64()); msg.setDepositId(value); break; case 8: var value = /** @type {number} */ (reader.readUint64()); msg.setBlockheight(value); break; case 9: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setDestchainid(value); break; case 10: var value = /** @type {string} */ (reader.readString()); msg.setAmount(value); break; case 11: var value = /** @type {string} */ (reader.readString()); msg.setDestamount(value); break; case 12: var value = /** @type {string} */ (reader.readString()); msg.setSrctoken(value); break; case 13: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setRecipient(value); break; case 14: var value = /** @type {string} */ (reader.readString()); msg.setDepositor(value); break; case 15: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setMessage(value); break; case 16: var value = /** @type {string} */ (reader.readString()); msg.setPartnerId(value); break; case 17: var value = /** @type {boolean} */ (reader.readBool()); msg.setDepositWithMessage(value); break; case 18: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setDesttoken(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.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.voyager.EventFundDepositRequestCreated} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAttestationId_asU8(); if (f.length > 0) { writer.writeBytes( 1, f ); } f = message.getSrcchainid(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getSrcchaintype(); if (f !== 0.0) { writer.writeEnum( 3, f ); } f = message.getSrctxhash(); if (f.length > 0) { writer.writeString( 4, f ); } f = message.getSrctimestamp(); if (f !== 0) { writer.writeUint64( 5, f ); } f = message.getContract(); if (f.length > 0) { writer.writeString( 6, f ); } f = message.getDepositId(); if (f !== 0) { writer.writeUint64( 7, f ); } f = message.getBlockheight(); if (f !== 0) { writer.writeUint64( 8, f ); } f = message.getDestchainid_asU8(); if (f.length > 0) { writer.writeBytes( 9, f ); } f = message.getAmount(); if (f.length > 0) { writer.writeString( 10, f ); } f = message.getDestamount(); if (f.length > 0) { writer.writeString( 11, f ); } f = message.getSrctoken(); if (f.length > 0) { writer.writeString( 12, f ); } f = message.getRecipient_asU8(); if (f.length > 0) { writer.writeBytes( 13, f ); } f = message.getDepositor(); if (f.length > 0) { writer.writeString( 14, f ); } f = message.getMessage_asU8(); if (f.length > 0) { writer.writeBytes( 15, f ); } f = message.getPartnerId(); if (f.length > 0) { writer.writeString( 16, f ); } f = message.getDepositWithMessage(); if (f) { writer.writeBool( 17, f ); } f = message.getDesttoken_asU8(); if (f.length > 0) { writer.writeBytes( 18, f ); } }; /** * optional bytes attestation_id = 1; * @return {!(string|Uint8Array)} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getAttestationId = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * optional bytes attestation_id = 1; * This is a type-conversion wrapper around `getAttestationId()` * @return {string} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getAttestationId_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getAttestationId())); }; /** * optional bytes attestation_id = 1; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getAttestationId()` * @return {!Uint8Array} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getAttestationId_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getAttestationId())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setAttestationId = function(value) { return jspb.Message.setProto3BytesField(this, 1, value); }; /** * optional string srcChainId = 2; * @return {string} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getSrcchainid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setSrcchainid = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional routerprotocol.routerchain.multichain.ChainType srcChainType = 3; * @return {!proto.routerprotocol.routerchain.multichain.ChainType} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getSrcchaintype = function() { return /** @type {!proto.routerprotocol.routerchain.multichain.ChainType} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {!proto.routerprotocol.routerchain.multichain.ChainType} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setSrcchaintype = function(value) { return jspb.Message.setProto3EnumField(this, 3, value); }; /** * optional string srcTxHash = 4; * @return {string} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getSrctxhash = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setSrctxhash = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** * optional uint64 srcTimestamp = 5; * @return {number} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getSrctimestamp = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setSrctimestamp = function(value) { return jspb.Message.setProto3IntField(this, 5, value); }; /** * optional string contract = 6; * @return {string} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getContract = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setContract = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** * optional uint64 deposit_id = 7; * @return {number} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getDepositId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setDepositId = function(value) { return jspb.Message.setProto3IntField(this, 7, value); }; /** * optional uint64 blockHeight = 8; * @return {number} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getBlockheight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setBlockheight = function(value) { return jspb.Message.setProto3IntField(this, 8, value); }; /** * optional bytes destChainId = 9; * @return {!(string|Uint8Array)} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getDestchainid = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; /** * optional bytes destChainId = 9; * This is a type-conversion wrapper around `getDestchainid()` * @return {string} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getDestchainid_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getDestchainid())); }; /** * optional bytes destChainId = 9; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getDestchainid()` * @return {!Uint8Array} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getDestchainid_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getDestchainid())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setDestchainid = function(value) { return jspb.Message.setProto3BytesField(this, 9, value); }; /** * optional string amount = 10; * @return {string} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getAmount = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setAmount = function(value) { return jspb.Message.setProto3StringField(this, 10, value); }; /** * optional string destAmount = 11; * @return {string} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getDestamount = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setDestamount = function(value) { return jspb.Message.setProto3StringField(this, 11, value); }; /** * optional string srcToken = 12; * @return {string} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getSrctoken = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setSrctoken = function(value) { return jspb.Message.setProto3StringField(this, 12, value); }; /** * optional bytes recipient = 13; * @return {!(string|Uint8Array)} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getRecipient = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 13, "")); }; /** * optional bytes recipient = 13; * This is a type-conversion wrapper around `getRecipient()` * @return {string} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getRecipient_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getRecipient())); }; /** * optional bytes recipient = 13; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getRecipient()` * @return {!Uint8Array} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getRecipient_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getRecipient())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setRecipient = function(value) { return jspb.Message.setProto3BytesField(this, 13, value); }; /** * optional string depositor = 14; * @return {string} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getDepositor = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setDepositor = function(value) { return jspb.Message.setProto3StringField(this, 14, value); }; /** * optional bytes message = 15; * @return {!(string|Uint8Array)} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getMessage = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 15, "")); }; /** * optional bytes message = 15; * This is a type-conversion wrapper around `getMessage()` * @return {string} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getMessage_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getMessage())); }; /** * optional bytes message = 15; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getMessage()` * @return {!Uint8Array} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getMessage_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getMessage())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setMessage = function(value) { return jspb.Message.setProto3BytesField(this, 15, value); }; /** * optional string partner_id = 16; * @return {string} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getPartnerId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setPartnerId = function(value) { return jspb.Message.setProto3StringField(this, 16, value); }; /** * optional bool deposit_with_message = 17; * @return {boolean} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getDepositWithMessage = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); }; /** * @param {boolean} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setDepositWithMessage = function(value) { return jspb.Message.setProto3BooleanField(this, 17, value); }; /** * optional bytes destToken = 18; * @return {!(string|Uint8Array)} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getDesttoken = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 18, "")); }; /** * optional bytes destToken = 18; * This is a type-conversion wrapper around `getDesttoken()` * @return {string} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getDesttoken_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getDesttoken())); }; /** * optional bytes destToken = 18; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getDesttoken()` * @return {!Uint8Array} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.getDesttoken_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getDesttoken())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestCreated.prototype.setDesttoken = function(value) { return jspb.Message.setProto3BytesField(this, 18, 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.voyager.EventFundDepositRequestValidated.prototype.toObject = function(opt_includeInstance) { return proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.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.voyager.EventFundDepositRequestValidated} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.toObject = function(includeInstance, msg) { var f, obj = { attestationId: msg.getAttestationId_asB64(), srcChainId: jspb.Message.getFieldWithDefault(msg, 2, ""), contract: jspb.Message.getFieldWithDefault(msg, 3, ""), depositId: jspb.Message.getFieldWithDefault(msg, 4, 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.voyager.EventFundDepositRequestValidated} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated; return proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setAttestationId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setSrcChainId(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setContract(value); break; case 4: var value = /** @type {number} */ (reader.readUint64()); msg.setDepositId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.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.voyager.EventFundDepositRequestValidated} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAttestationId_asU8(); if (f.length > 0) { writer.writeBytes( 1, f ); } f = message.getSrcChainId(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getContract(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getDepositId(); if (f !== 0) { writer.writeUint64( 4, f ); } }; /** * optional bytes attestation_id = 1; * @return {!(string|Uint8Array)} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.prototype.getAttestationId = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * optional bytes attestation_id = 1; * This is a type-conversion wrapper around `getAttestationId()` * @return {string} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.prototype.getAttestationId_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getAttestationId())); }; /** * optional bytes attestation_id = 1; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getAttestationId()` * @return {!Uint8Array} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.prototype.getAttestationId_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getAttestationId())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.prototype.setAttestationId = function(value) { return jspb.Message.setProto3BytesField(this, 1, value); }; /** * optional string src_chain_id = 2; * @return {string} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.prototype.getSrcChainId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.prototype.setSrcChainId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string contract = 3; * @return {string} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.prototype.getContract = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.prototype.setContract = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional uint64 deposit_id = 4; * @return {number} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.prototype.getDepositId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated} returns this */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestValidated.prototype.setDepositId = function(value) { return jspb.Message.setProto3IntField(this, 4, 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.voyager.EventFundDepositRequestExecuted.prototype.toObject = function(opt_includeInstance) { return proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecuted.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.voyager.EventFundDepositRequestExecuted} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecuted.toObject = function(includeInstance, msg) { var f, obj = { attestationId: msg.getAttestationId_asB64(), srcChainId: jspb.Message.getFieldWithDefault(msg, 2, ""), contract: jspb.Message.getFieldWithDefault(msg, 3, ""), depositId: jspb.Message.getFieldWithDefault(msg, 4, 0), execResponse: msg.getExecResponse_asB64() }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecuted} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecuted.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecuted; return proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecuted.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecuted} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecuted} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecuted.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setAttestationId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setSrcChainId(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setContract(value); break; case 4: var value = /** @type {number} */ (reader.readUint64()); msg.setDepositId(value); break; case 5: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setExecResponse(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecuted.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecuted.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.voyager.EventFundDepositRequestExecuted} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.routerprotocol.routerchain.voyager.EventFundDepositRequestExecuted.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAttestationId_asU8(); if (f.length > 0) { writer.writeBytes( 1, f ); } f = message.getSrcChainId(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getContract(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getDepositId(); if (f !== 0) { writer.writeUint64( 4, f ); } f = message.getExecResponse_asU8(); if (f.length > 0) { writer.writeBytes( 5, f ); } }; /** * optional bytes attestation_id = 1; * @return {!(string|Uint8Array)} */ proto.route