UNPKG

@routerprotocol/chain-api

Version:

Router Chain API Query client with generated gRPC bindings.

591 lines (512 loc) 18 kB
// source: cosmwasm/wasm/v1/ibc.proto /** * @fileoverview * @enhanceable * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! /* eslint-disable */ // @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; var global = Function('return this')(); var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); goog.object.extend(proto, gogoproto_gogo_pb); goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgIBCCloseChannel', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgIBCSend', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgIBCSendResponse', 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.cosmwasm.wasm.v1.MsgIBCSend = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.MsgIBCSend, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.MsgIBCSend.displayName = 'proto.cosmwasm.wasm.v1.MsgIBCSend'; } /** * 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.cosmwasm.wasm.v1.MsgIBCSendResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.MsgIBCSendResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.MsgIBCSendResponse.displayName = 'proto.cosmwasm.wasm.v1.MsgIBCSendResponse'; } /** * 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.cosmwasm.wasm.v1.MsgIBCCloseChannel = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.MsgIBCCloseChannel, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.MsgIBCCloseChannel.displayName = 'proto.cosmwasm.wasm.v1.MsgIBCCloseChannel'; } 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.cosmwasm.wasm.v1.MsgIBCSend.prototype.toObject = function(opt_includeInstance) { return proto.cosmwasm.wasm.v1.MsgIBCSend.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.cosmwasm.wasm.v1.MsgIBCSend} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.MsgIBCSend.toObject = function(includeInstance, msg) { var f, obj = { channel: jspb.Message.getFieldWithDefault(msg, 2, ""), timeoutHeight: jspb.Message.getFieldWithDefault(msg, 4, 0), timeoutTimestamp: jspb.Message.getFieldWithDefault(msg, 5, 0), data: msg.getData_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.cosmwasm.wasm.v1.MsgIBCSend} */ proto.cosmwasm.wasm.v1.MsgIBCSend.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmwasm.wasm.v1.MsgIBCSend; return proto.cosmwasm.wasm.v1.MsgIBCSend.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmwasm.wasm.v1.MsgIBCSend} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmwasm.wasm.v1.MsgIBCSend} */ proto.cosmwasm.wasm.v1.MsgIBCSend.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 2: var value = /** @type {string} */ (reader.readString()); msg.setChannel(value); break; case 4: var value = /** @type {number} */ (reader.readUint64()); msg.setTimeoutHeight(value); break; case 5: var value = /** @type {number} */ (reader.readUint64()); msg.setTimeoutTimestamp(value); break; case 6: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setData(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmwasm.wasm.v1.MsgIBCSend.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmwasm.wasm.v1.MsgIBCSend.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmwasm.wasm.v1.MsgIBCSend} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.MsgIBCSend.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getChannel(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getTimeoutHeight(); if (f !== 0) { writer.writeUint64( 4, f ); } f = message.getTimeoutTimestamp(); if (f !== 0) { writer.writeUint64( 5, f ); } f = message.getData_asU8(); if (f.length > 0) { writer.writeBytes( 6, f ); } }; /** * optional string channel = 2; * @return {string} */ proto.cosmwasm.wasm.v1.MsgIBCSend.prototype.getChannel = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.cosmwasm.wasm.v1.MsgIBCSend} returns this */ proto.cosmwasm.wasm.v1.MsgIBCSend.prototype.setChannel = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional uint64 timeout_height = 4; * @return {number} */ proto.cosmwasm.wasm.v1.MsgIBCSend.prototype.getTimeoutHeight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.cosmwasm.wasm.v1.MsgIBCSend} returns this */ proto.cosmwasm.wasm.v1.MsgIBCSend.prototype.setTimeoutHeight = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; /** * optional uint64 timeout_timestamp = 5; * @return {number} */ proto.cosmwasm.wasm.v1.MsgIBCSend.prototype.getTimeoutTimestamp = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {number} value * @return {!proto.cosmwasm.wasm.v1.MsgIBCSend} returns this */ proto.cosmwasm.wasm.v1.MsgIBCSend.prototype.setTimeoutTimestamp = function(value) { return jspb.Message.setProto3IntField(this, 5, value); }; /** * optional bytes data = 6; * @return {!(string|Uint8Array)} */ proto.cosmwasm.wasm.v1.MsgIBCSend.prototype.getData = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * optional bytes data = 6; * This is a type-conversion wrapper around `getData()` * @return {string} */ proto.cosmwasm.wasm.v1.MsgIBCSend.prototype.getData_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getData())); }; /** * optional bytes data = 6; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getData()` * @return {!Uint8Array} */ proto.cosmwasm.wasm.v1.MsgIBCSend.prototype.getData_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getData())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.cosmwasm.wasm.v1.MsgIBCSend} returns this */ proto.cosmwasm.wasm.v1.MsgIBCSend.prototype.setData = function(value) { return jspb.Message.setProto3BytesField(this, 6, 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.cosmwasm.wasm.v1.MsgIBCSendResponse.prototype.toObject = function(opt_includeInstance) { return proto.cosmwasm.wasm.v1.MsgIBCSendResponse.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.cosmwasm.wasm.v1.MsgIBCSendResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.MsgIBCSendResponse.toObject = function(includeInstance, msg) { var f, obj = { sequence: jspb.Message.getFieldWithDefault(msg, 1, 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.cosmwasm.wasm.v1.MsgIBCSendResponse} */ proto.cosmwasm.wasm.v1.MsgIBCSendResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmwasm.wasm.v1.MsgIBCSendResponse; return proto.cosmwasm.wasm.v1.MsgIBCSendResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmwasm.wasm.v1.MsgIBCSendResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmwasm.wasm.v1.MsgIBCSendResponse} */ proto.cosmwasm.wasm.v1.MsgIBCSendResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readUint64()); msg.setSequence(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmwasm.wasm.v1.MsgIBCSendResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmwasm.wasm.v1.MsgIBCSendResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmwasm.wasm.v1.MsgIBCSendResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.MsgIBCSendResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSequence(); if (f !== 0) { writer.writeUint64( 1, f ); } }; /** * optional uint64 sequence = 1; * @return {number} */ proto.cosmwasm.wasm.v1.MsgIBCSendResponse.prototype.getSequence = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.cosmwasm.wasm.v1.MsgIBCSendResponse} returns this */ proto.cosmwasm.wasm.v1.MsgIBCSendResponse.prototype.setSequence = function(value) { return jspb.Message.setProto3IntField(this, 1, 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.cosmwasm.wasm.v1.MsgIBCCloseChannel.prototype.toObject = function(opt_includeInstance) { return proto.cosmwasm.wasm.v1.MsgIBCCloseChannel.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.cosmwasm.wasm.v1.MsgIBCCloseChannel} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.MsgIBCCloseChannel.toObject = function(includeInstance, msg) { var f, obj = { channel: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.cosmwasm.wasm.v1.MsgIBCCloseChannel} */ proto.cosmwasm.wasm.v1.MsgIBCCloseChannel.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmwasm.wasm.v1.MsgIBCCloseChannel; return proto.cosmwasm.wasm.v1.MsgIBCCloseChannel.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmwasm.wasm.v1.MsgIBCCloseChannel} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmwasm.wasm.v1.MsgIBCCloseChannel} */ proto.cosmwasm.wasm.v1.MsgIBCCloseChannel.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 2: var value = /** @type {string} */ (reader.readString()); msg.setChannel(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmwasm.wasm.v1.MsgIBCCloseChannel.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmwasm.wasm.v1.MsgIBCCloseChannel.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmwasm.wasm.v1.MsgIBCCloseChannel} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.MsgIBCCloseChannel.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getChannel(); if (f.length > 0) { writer.writeString( 2, f ); } }; /** * optional string channel = 2; * @return {string} */ proto.cosmwasm.wasm.v1.MsgIBCCloseChannel.prototype.getChannel = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.cosmwasm.wasm.v1.MsgIBCCloseChannel} returns this */ proto.cosmwasm.wasm.v1.MsgIBCCloseChannel.prototype.setChannel = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; goog.object.extend(exports, proto.cosmwasm.wasm.v1);